Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
its good practice because n.left or n.right could be falsy values
This comment is hidden because it contains spoiler information about the solution
please make a python translation, i need a dopamine boost when i break the kata (idk any hacky things about js)
Very nice puzzle!
This comment is hidden because it contains spoiler information about the solution
I enjoyed solving this kata, but my solution, which uses backtracking with constraint satisfaction, only passes 204 tests!
Try changing your approach. This greedy algorithm takes ~2^65 steps for "worst-case" 128-bit numbers.
vibe coding is bad
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Random tests sometimes generate value for
n
for which no (nontrivial) solution existsLoading more items...