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.
Everything except non-integers are not tested.
Okay, let's get this straight: the kata idea is bad and it's hot garbage. You're inserting like 10 artificial, arbitrary, unrelated requirements to a simple
8kyu
task that is already a duplicate. That's not what a kata should be like.Since you only divide by
5
or9
in the kata, this should be obvious.You actually have to return the total amount of money, not just the value of X. Description should be changed.
Apparently 13 people submitted the solution understanding the goal, which was to find X. Very weirdly the return of the function was not even X, it has to be the total amount of his money. I am here wondering how magically those 13 people knew that ?
Well, have fun with
please avoid not solving the kata
anddid you not had no fun?
then :PI have edited the kata to reflect your suggestions. Thank you very much. @JohanWiltink, donaldsebleung. :)
Simple Math Puzzle (Easy) #1
#2 in the series "Simple Math Puzzle"
The title is "Simple Math Puzzle (Easy) #1" - I take it that it is the first in a series? However, in the description it starts "states this.." that it is the second. This Kata is also not easy, at least how it stands now.
It is useful to show your initial conditions in the variable declarations. Except the route since what you have there is really more of a text description. I am also very confused if the travel is to be restricted only along x and y axis (no diagonals), though if you did include diagonals this would be very complex.
You should state more clearly in the Instructions what is the expected output. For example, minutes as an integer. You may also want your initial settings to be variables: start, dest and speed.
The instructions are not consistent, first you say
"If you started at (-25, -72), and has been traveling along the y-axis (the vertical line) for 32 minutes
Then, below the graph you say
"[You] started at (-25, -72);"
"Then [You] went to (0, -72);"
"Then [You] traveled [SOUTH] for 32 minutes;"
That second description sounds like 2 segments of travel, whereas at the top its only two, started at (-25, -72) and go south.
It also does not help when you refer to the direction of travel at one point as along y-axis but later as going South.
Test cases also needed in Test Driven Development (TDD). Or, blank that out so no tests are run
I was not able to complete this because it is too vague to follow
Technically, this is impossible.
undefined
is returned implicitly if there is noreturn
statement.I agree with Donald that the description could use some cleaning up generally.
The specification (i.e. Kata Description) is rather ambiguous with regards to what constitutes a "repeating decimal", e.g. exactly how many times should a digit repeat after the decimal point before it is officially treated as a "repeating decimal"? This lead me into spending more time than necessary doing guesswork and guessing when exactly I should round a decimal and when I shouldn't. I strongly suggest that the Kata Description be edited to provide a more rigorous definition of when exactly a decimal number constitutes a repeating decimal.
No offence but this is a very poor kata! The goal of the kata isn't clear (
ISSUE no. 1
) and it's about computing one specific value which needs to be returned in specific format (ISSUE no. 2
).SUGGESTION
: You could parametrize your equations and make this kata a real kata.ISSUE no 3:
WTH? The description says nothing about what the actual goal is => it makes no sense to read it again.
Regards,
suic
What?
@myjinxin2015, actually... I do understand some Chinese...
你好,我叫aoikage,我喜欢编程!
Had some thoughts about how to improve the kata, but the best course of action may be to simply unpublish it.
Native speakers make that mistake as well. But divide by a half does not mean divide by two.
You need a bit of two languages for this: English and Math.
Loading more items...