We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Simple Text Editor
- Discussions
Simple Text Editor
Simple Text Editor
Sort by
recency
|
258 Discussions
|
Please Login in order to post a comment
Point 4 is worded confusingly, I'd put it as:
"4. undo - Undo the last operation of type 1 or 2 , reverting S to the state it was in prior to that operation." and for further clarity it could be added "(it could reach its initial empty state)."
For anyone else who took too long to debug; while the description demonstrates a list of operations ["1 ,4", "2,5"...] make no mistake that the input being sent to the function you are intended to implement is a string. The first step is parsing the input string which really would be nice if they put that in the description.
Im starting to have a hard time understanding if this is intentional complexity of Hackerrank or incidental....am I supposed to be looking at this as a poorly implemented code that I need to work around the oddness of and proveI can?