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.
OP solved it, closing
Right
Side doesnt equal diameter. The diameter of the cylinder is the hypotenuse of two sides. U can use this to calculate a side
The question fails to convey that the corners of top part of the cuboid touch the cylinder
Look at it top down and draw a circle inside a square with all corners touching the circle.
The height of the cuboid is pretty obvious though so i guess i wont mention anything about that to not get in trouble
No, find what he scores per minute and then muliply by the full game length.
Please mark your post as having spoiler content next time. That method is not available in the Node versions this kata has.
Says source image is 374 × 280 and cropped is 500 × 280. The height (280) is the same, although resolution area and width are changing changes
But example picture is clearly cropped in height rather than width.
The kata's description clearly says that you must maintain equal height
Why are you trying to bruteforce a solution where it isn't possible? Do you understand what RANDOM string means? This isn't the kind of task where you solve it by 'if input == this, return that', for there's millions of possible inputs. Focus on what the description is asking of you. And don't just ask us what's possible, try it yourself first.
Yes, that would be a part of the solution. Just notice how
'gh12cdy695m1'
has three numbers in it: 12, 695 and 1. You have to find all of them, and determine max of the three.Array unnecessary. Use Regex, or you can actually use a loop if you can check if a character is a digit. It's trivial, that's why it's 7 Kyu.
It will not work, because strings are different every time. You won't be able to create array with all strings: there's too many possibilities, and you do not know (no one knows) what strings will be tested.
Please read this paragraph to see if it explains anything.
You won't be able to fix this solution without changing its overall structure. Strings used by tests are diffeent for every test run and you cannot just hardcode them in your solution. You need to find some generic way which would work for any string.