PHP translator here. First translation which I have done.
PHP translation was done by taking Java and Javascript translations as an example and those both have the same 1 to 10 arrays. Now, that doesn't really excuse the bad test cases, but the problem is more spread than just the PHP translation.
I know right?:)
wow how i couldn't think this way ;)
it's very simple idea and clear, big thanks
man, are you a god
Cant take breaks off from coding it seems :(
I did this. With a whole bunch of uneccessary extra code ;-)
Pfffft well I suppose you coooouuuulllldddd do it the smart way. Nerd! :)
I may or may not be salty that this did not occurr to me. Well done!
after i thought all the settish iterative kinda solutuions...this same crispy one popped out in my head :'D.
Shame on me..
Pooog
pretty clear!
👏
This one is clean
PHP translator here. First translation which I have done.
PHP translation was done by taking Java and Javascript translations as an example and those both have the same 1 to 10 arrays. Now, that doesn't really excuse the bad test cases, but the problem is more spread than just the PHP translation.
The expected outputs for the last 2 sample tests seem to be swapped.