Ad
  • Default User Avatar

    If you know wichs are the primes number, then I don't know is this answer has sense for you.

  • Custom User Avatar

    I didn't get notified about your replies, but I see you solved it. I still don't understand, which part of ES6 wasn't working for you?

  • Custom User Avatar

    And how is this a kata issue? You can use ES6 all you want, I guess you're just doing it wrong.

  • Custom User Avatar
  • Default User Avatar

    You modified the input... I modified the evaluation order of actual and expect and now your solution works.

  • Default User Avatar

    Well it's not easy to give details because when you fail the input array is rather big and it is not displayed...
    I think that if you want to debug your code in a simpler way you should accumulate the results in a fresh allocated resulting array instead of reporting the results in the input array (it is never good practice to modify the input array). With that and a small modification of your code I made it work. Good luck!

  • Default User Avatar

    I tried your solution and it didn't pass when there are big arrays. I can't say more... 21 people passed the Power Shell kata. If you want me to take your issue in consideration you must give some details.

  • Custom User Avatar
  • Custom User Avatar

    I think there's probably a problem in your code since there's already 12 powershell solves, but I unfortunarely don't know PowerShell well enough to help you.

  • Custom User Avatar

    Actual and expected are swapped, could you fix it? I'll raise an issue just in case.

  • Custom User Avatar

    You forgot to add the NUL terminator at the end of your returned C-string in to_alternating_case.

    Also, protip: there is a built-in strlen function in the C standard library for finding the length of a C-string so you don't have to roll out your own getSize ;-)

  • Custom User Avatar

    @Ze-Marcos ..

    • Many Many Thanks Mark for your Great Efforts :relaxed: :blush:
    • Of Course Approved :+1:
    • It's my first F# translation Ever Approved On CW , You made my day :relaxed: :blush:
    • and all my katas are yours Mark , Feel free to translate any of them to your preferable languages With a Bonus of Instant Approval :wink: :+1:
    • Happy to Follow you Bro , Wishing you all the best On/Off CW .. Regards .. Zizou
  • Custom User Avatar

    @Ze-Marcos ..

    • Many Many Thanks Mark for your Great Efforts :relaxed: :blush:
    • Of Course Approved :+1:
    • It's my first F# translation Ever Approved On CW , You made my day :relaxed: :blush:
    • and all my katas are yours Mark , Feel free to translate any of them to your preferable languages With a Bonus of Instant Approval :wink: :+1:
    • Happy to Follow you Bro , Wishing you all the best On/Off CW .. Regards .. Zizou
  • Custom User Avatar

    @anter69 given you're not the kata author, to approve a translation/fork you'll have to wait 1 week.

  • Custom User Avatar

    1st test case - input = "477 073 360"
    solution - // 4 7 7 0 7 3 3 6 0 -> 4 14 7 0 7 6 3 12 0 -> 4 5 7 0 7 6 3 3 0 -> 35 % 10 = 5 false
    but compiler expects true :/

  • Loading more items...