Great kata. I understand everyone's complaints because we are so accustomed to zooming through 7 kyus with simple arithmetic and parameters being spoon-fed. If you're stuck, a tip is to compare mass to mass and percentages to percentages.
This kata looked easy at first but I did not realize a solution faster than linear time was required. After writing out a few test cases and all the possible combinations that returns the same answer, I was finally able to connect the dots for a solution in constant time.
Great kata. I understand everyone's complaints because we are so accustomed to zooming through 7 kyus with simple arithmetic and parameters being spoon-fed. If you're stuck, a tip is to compare mass to mass and percentages to percentages.
(20)[17,34,51,68,85,102,119,136,153,170,187,204,221,238,255,272,289,306,323,340]
This kata looked easy at first but I did not realize a solution faster than linear time was required. After writing out a few test cases and all the possible combinations that returns the same answer, I was finally able to connect the dots for a solution in constant time.
Thanks. It took me too long to realize the amount of spaces needed to be recalculated after every line and every tab.
More simply, return all factors of x in a sorted array from lowest to highest.
Hmm... Is '2a' more simple or is 'b' more simple? OR MAYBE '1b'?? 🤔
You are amazing
Thanks!
This is one of the most satisfying katas I've ever solved
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution