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 easy to explain ;-)
arr.shift()
You've modified the array
arr
, which is the input arrayAny suggestion for this issue?
This comment is hidden because it contains spoiler information about the solution
Hi, @Aloap,
I'm sure that the correct answer should be the
initial array
whenn=1
.My validate function include this at the first line:
if(n==1) return arr
So perhaps something is wrong at other place. Could you tell me the details?
EDIT: my result in random tests:
hello!
I'm trying to solve this kata but after attempting I fail all the tests with n=1 value. They expected an empty array, but how come do they? In basic tests, there where an n=1 too but its output were the initial array, because each number is equal to itself, so min=max=number itself.
Am I missing something?
Thank you in advance for your reply :)
just click it again[...]
Ouch! So simple? ^^ I don't know why I supposed VIM/EMACS where toggling themselves.
Thanks so much! You saved my cw account from an untimely death :)
[AHAHAHAA.. never go against conventions!]
If you have selected one by mistake, just click it again in the upper right corner and the traditional shortcuts should be available again.
And you don't want to start with VIM or Emacs if you are not ready for a tough ride.
[No worries for the n00bness, we have all been that at some point in time. Plus I need to support female coders to further stereotypes on the Italian flirtatious attitude ]
I'm not able to copy/paste text in any of the site entry. That's why I used to post my code linking an external page.
I read (quite rapidly) and came along thay it could depend on EMAC or VIM mode. They probably have different commands, I guess, I barely know what they are ^^
Is there a way to disable them or do I have to quit my beloved ctrl-c ctrl-v sequence and start looking for the right commands to work? :D
(Sorry about these newbie's stuff.. just fumble around the site in these first days :) )
AFAIK you can, as I did it in the past and it seems all fine now: which problem are you getting for it?
I do speak Italian :D
E a tal proposito.. mi sfugge qualcosa o davvero non è possibile far copia/incolla su questa piattaforma?
Non credo di resisterci a lungo se è così XD
Piacere mio [I suspected you could speak my language by your name, but you tell me]; thank you for your kind feed and glad now it passed :)
I see!
Thanks for the hint!
There where MANY flaws :D , but in the end, it worked (even if it really sucks!)
Grazie mille!
That is a lovely place to put your code, but I can see there is a flaw: try to
console.log()
the input and to figure out which should be the correct reply when you fail a test.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...