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.
it's not a "litteral", it's a notation that implies this is a "long" integer (as opposed to an "int" integer, let's say). There is nothing ambiguous here, as long (pun? x) ) as the user looks at the signature in the initial solution and knows the basic data types in Java (which he should know already, for a blue kata).
cheers
The point is that 987654321L is decieving since it has literal which never were noted to have. I don't know for sure but I guess not every single language have literals like this, just make a note in a task
Both of you, stop it, now.
Well, you're an example yourself
987654321L is the standart way of marking number as LONG. Here's the initial function signature in java:
public static long nextBiggerNumber(long n)
. Do you now see it? The description is written universal for 10+ other languages, not all of them have longs, that's why there's function signature given which you must've changed for no reason.Seriously, get a f..ing grip man. I understand stupidity has no limits, but come on... Don't be that example.
Just make a note in the descriptiion of the task or make an example with literals since it's etremely decieving in a way it is now.
Please don't escalate this any further. Let's see:
That
integer
doesn't mean data type, it means it's a whole number (a positive one), without decimals. And you can see the initial code:Btw, for a dumb people like you're:
The task says
Create a function that takes a positive integer...
Now you tell me since when 987654321L is an integer, mr. ThereIsNoMistakesInTests?
I don't know what you're on about, you're just spewing words at this point...
But here's the secret: you can PRINT THE INPUT. For java, that's using
System.out.println(arg)
.What IS dumb is your inability to read anything... It's all explained in troubleshooting article, but you're too cool to read it apparently.
Are you really so much dumb? I don't know the initial number cause I can't look at ALL TEST CASES, it's prohibited unless I forfeit the Kata which I don't want to. So I asked if any1 can find a problem in logic, but you're too much dumb to understand what I am asking for.
Now since I forfeited this Kata I can say that the case is
assertEquals(-1, Kata.nextBiggerNumber(9876543210L));
which is just as dumb as you're. It is supposed to have a note at least that number can be given in such form since all examples use an ordinary numbers without L at the end, cause it's quite dumb since the function itself says that initial number is long type.
How could anyone understand what you're asking for? All you're saying is that some test is saying some number should equal -1. So what's the initial number?!
9876543281 = your result, -1 = expected result. And what's the initial number you're working with? No one knows, because you're not saying it.
Oh yeah it's very cool repeating the same things and being ignored. If you actually spent 5 minutes on the article Chrono linked, I'm pretty sure you'd find your answer, or how to look for it.
Bottom line: the tests are correct, your code is wrong, and you should try fixing it. If you're REALLY sure your code is correct, you can post your code here as shown in the same article.
You're right, it's like talking to a wall, you don't even understand what I am asking for but still trying to look cool while not being able to help.
It's like talking to a wall...
Literally you haven't provided a single input parameter yet.
Anyway, good luck trying to debug it, and make sure to read the article Chrono linked.
You have all the input you need to find out where the problem is. If it's supposed to be -1 - then you don't need another part of the code since it's the only rule to get -1. If only you can't see the spoiler part but it is said to mark parts of solution as spoilers
Well, what changed? Did you print the input? You keep showing us the output, but that's meaningless without seeing which test you're talking about.
No.
You don't lose any points for attempting a kata.
Loading more items...