Ad
  • Custom User Avatar

    It's easy to explain ;-)
    arr.shift()
    You've modified the array arr, which is the input array

  • Custom User Avatar

    Any suggestion for this issue?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Hi, @Aloap,
    I'm sure that the correct answer should be the initial array when n=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:

    Testing for:
    arr = [665,280,368,883,720,442,756,44,457,572,50,377,-60,294]
    n = 1 
    ✔ Test Passed: Value deep equals [665, 280, 368, 883, 720, 442, 756, 44, 457, 572, 50, 377, -60, 294]
    
  • Custom User Avatar

    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 :)

  • Custom User Avatar

    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!]

  • Custom User Avatar

    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 :+1:]

  • Custom User Avatar

    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 :) )

  • Custom User Avatar

    AFAIK you can, as I did it in the past and it seems all fine now: which problem are you getting for it?

  • Custom User Avatar

    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

  • Custom User Avatar

    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 :)

  • Custom User Avatar

    I see!
    Thanks for the hint!
    There where MANY flaws :D , but in the end, it worked (even if it really sucks!)
    Grazie mille!

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...