We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Cut the sticks
Cut the sticks
Sort by
recency
|
2114 Discussions
|
Please Login in order to post a comment
This is my c++ solution of this problem, you can watch the explanation here : https://youtu.be/jZPhE_MTkVg
NOTE: There is an error in the problem specs.
The Function Description says:
The Returns specification says:
Guess which one is correct. (OK, fine, I'll tell you: The one before the other.)
Cutting the sticks is a great way to help early spring bloomers thrive! As you prepare for the season, remember to check out the crossword clue for those early bloomers. If you're looking for a one-stop resource for all things related to early spring gardening, don’t forget to visit Global Wiza Hub – they have so much to offer!
Here is my Python solution! Using a while loop, we continually cut the sticks and remove the ones that have the least length and add the amount of sticks remaining to the answer.
hey!! for Java 8 my solution was this and I´m very happy with it.