I suppose I didn't change. in public static void main(String[] args) I call method greedy(dice). Method looks this way: public static int greedy(int[] dice) (like in kata)
I solved this Kata. My IDEA says, that int [] dice=new int[]{1,1,1,3,1} leads to 1100. But here Ive got a mistake when testing (int[]{1,1,1,3,1} leads to 1350). Is it possible to prove to admins, tham my code is ok?
I've solved it, but c++ compiler on my pc doesn't report any problems and i passed all tests successfully. However, when i upload my code into the website, i don't pass final 2 tests..Why?? (i rebuilt my code so that it had 1 function called narcissistic(int x))
good idea but at least for python it gets stuck in formating/typing issues very easily.
I would recommend at least putting some of it in the instructions so the coder knows whats comming.
Not supporting optional chaining (?.) of ES6
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Mmmm... I knew it was equivalent but I didn't interpret it correctly in that context. Thanks!
0 means 'false'
It's alr fixed by Volie (see comment above)
It's alr fixed by Volie (see comment above)
I suppose I didn't change. in public static void main(String[] args) I call method greedy(dice). Method looks this way: public static int greedy(int[] dice) (like in kata)
Are you changing the input to the function? That will lead to mystifying errors like this.
I solved this Kata. My IDEA says, that int [] dice=new int[]{1,1,1,3,1} leads to 1100. But here Ive got a mistake when testing (int[]{1,1,1,3,1} leads to 1350). Is it possible to prove to admins, tham my code is ok?
Read this, please: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
I've solved it, but c++ compiler on my pc doesn't report any problems and i passed all tests successfully. However, when i upload my code into the website, i don't pass final 2 tests..Why?? (i rebuilt my code so that it had 1 function called narcissistic(int x))
Guys. I wrote and came up with a solution in 20 minutes. I accidentally closed the code and I can't remember the solution for the second day (((((((
good idea but at least for python it gets stuck in formating/typing issues very easily.
I would recommend at least putting some of it in the instructions so the coder knows whats comming.
Works!
I don't understand why ... but it will have to be.
Thank you!
Loading more items...