Retired
Help Vishnu predict the rungs ⚓︎ (retired)
Loading description...
Puzzles
Mathematics
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Needs an edge case that hits exactly at where the boundary of a rung is (to catch incorrect rounding at boundary).
That was interesting. I suppose its an iq test more than coding problem. When these pshysics concept even obvious ones are presented in a coding contexts, they could be very puzzling becuase the brain used to work in specific manner in this environment. Some times these kinds of distractions can be helpful to give our brains, alternative signals.
Any reason why this is estimated as 4kyu?
My bad. Updated it to 1kyu
This comment has been hidden.
This comment has been hidden.
5head
this is not "the whole point of the puzzle", this is just impossible.... (because it's going against physics laws...)
??
This comment has been hidden.
I think the concept should be understood without any formal education, so I wouldn't really call that "physics knowledge". It's yet another kata based on a simple formula, I feel like there are enough of these already, but otherwise the idea looks OK to me.
This comment has been hidden.
Some solutions return different results for a subset of input: for example, this solution for 8050, 0. Input range should be specified.
I am really sorry to say this. But my knowledge on Python is limited to basics. I can't even comprehend the solution you gave(need to learn about lambda >.<). The input of X is (0 to 8000) and Y is (0 to 50), so it shouldn't be a problem
...
It should be specified in the description.
@rajeshias
is almost the same as
Showing input in test failure messages is preferred to just printing everything for every test.
Solutions should normally be easy to debug with the final tests, so it's a good practice to have a set of fixed tests in the final tests too.
Names of variables should be in
snake_case
(x
,y
) according to the most commonly used style guide (PEP 8).done