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.
If you know wichs are the primes number, then I don't know is this answer has sense for you.
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?
And how is this a kata issue? You can use ES6 all you want, I guess you're just doing it wrong.
Approved.
You modified the input... I modified the evaluation order of actual and expect and now your solution works.
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!
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.
!
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.
Actual and expected are swapped, could you fix it? I'll raise an issue just in case.
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 owngetSize
;-)@Ze-Marcos ..
@Ze-Marcos ..
@anter69 given you're not the kata author, to approve a translation/fork you'll have to wait 1 week.
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...