You're viewing a single thread.
All comments
138
comments
Lets fix it. I think that since we are removing the ones, then "11" - 1 should be equal to "".
24 0 ReplyShould it, or should it be "1"? (just removing one, one)
15 0 ReplyWhich "1" did it remove? And did it search the string to find a "1" to remove, or did it remove whichever character happened to be at array index 1?
4 0 ReplyIt should just randomly pick any "1". Add a bit of spice, you know
4 0 Replymaybe we removed the last n characters
3 0 Reply
Hear me out:
"11" - 1 = "11" - (-1) = "11" (did not find "-1" in "11)
Or
"11" - 1 = "11" - (-1) = "1" (removed first "1")
2 0 Reply
138
comments
Scroll to top