You can improve your solution. Try change int i = 0 to size_t i = 0. Because you will not find any negative values. Your numbers.size() can't be -1 or -1000.
This was the solution I settled upon, my editor is throwin error 132 with no text to go along with the error, this is happening across every kata I try does anyone know what is causing this please.
This is eye opening for me. Really struggled to figure out the method for converting value to [value] and now it seems obvious. I tried a similar approach, but ended up doing too much by not understanding some fundamentals. I like your solution best!
If there's a way, kindly point me to it. Otherwise, I'd give my two front teeth for an option to turn off (Cmd + s) to Attempt. My save-twitch is causing me to miss out on first try submissions, and it's breaking my heart.
You can improve your solution. Try change int i = 0 to size_t i = 0. Because you will not find any negative values. Your numbers.size() can't be -1 or -1000.
Same
We would have to see your solution which throws the error 132.
This was the solution I settled upon, my editor is throwin error 132 with no text to go along with the error, this is happening across every kata I try does anyone know what is causing this please.
You can just filter the string. Slickness.
Please make requests on CW github instead of this page.
Thank you for your nice comment :)
Purposeful and clean. Nice one!
This is eye opening for me. Really struggled to figure out the method for converting value to [value] and now it seems obvious. I tried a similar approach, but ended up doing too much by not understanding some fundamentals. I like your solution best!
If there's a way, kindly point me to it. Otherwise, I'd give my two front teeth for an option to turn off (Cmd + s) to Attempt. My save-twitch is causing me to miss out on first try submissions, and it's breaking my heart.
Huh... Should've done bit shifting instead of division...
Too lazy to rewrite it though. Thanks for commenting
:^)
oh yeah no, just keep it a dictionary of [String : Int] and cast your characters into strings over and over... doh! LOL 3am coding strikes again
optimized AF
So bitwise AND determines a power of two... I wish I had seen that before I put my ignorance on display LOL
Loading more items...