CODINGAME: THE BROKEN EDITOR
Replace the part that handles the keyboard inputs and build the output myself!
EXPLANATION CODE:
1) The code starts by declaring three variables: an integer called curs which represents the cursor position, and two strings called in and out.
2) After being requested by the user, a string is entered and stored into a variable in
3) Each character in the string is iterated through after the string has been received by the code. It employs a switch expression to carry out various operations based on the character. If the character is "left arrow sign" the cursor location is decreased. If the character is "right arrow sign," the cursor location is increased. If the character is a "-," the character immediately to the left of the pointer is deleted. If not, the character is inserted at the cursor location into the output string.
4) The output string is displayed to the console once all the characters have been analyzed.
#codingame #coding #game #programming #easy #difficulty #reading #arithmetic #cplusplus #cplusplusprogramming #learntocode #tutorial #education #problemsolving #algorithmic #asmr #asmrtyping #arrays #string #manipulation #the #broken #editor
Other Videos By One Person Studio
2023-03-20 | SONIC #shorts #art #drawing |
2023-03-20 | POKEBALL |
2023-03-19 | SKETCHBOOK TOUR PART XCIII #shorts #art #drawing |
2023-03-18 | SPRIG PLANTAR #shorts #art #drawing |
2023-03-18 | KIRBY #shorts #art #drawing |
2023-03-18 | BOY XXXII #shorts #art #drawing |
2023-03-18 | RORONOA ZORO #shorts #art #drawing |
2023-03-18 | DOT'S ON DOMINO'S BONES - 7KYU |
2023-03-18 | SKETCHBOOK TOUR PART XCII #shorts #art #drawing |
2023-03-17 | GOKU & SONIC #shorts #art #drawing |
2023-03-17 | CODINGAME: THE BROKEN EDITOR |
2023-03-17 | ROAD RUNNER #shorts #art #drawing |
2023-03-17 | SANS #shorts #art #drawing |
2023-03-17 | CODINGAME: FIX THE SPACES |
2023-03-16 | TUNNEL #shorts #blender #animation |
2023-03-16 | BOY XXXI #shorts #art #drawing |
2023-03-16 | BART SIMPSON #shorts #art #drawing |
2023-03-16 | MICKEY MOUSE #shorts #art #drawing |
2023-03-16 | HACKERRANK: SIMPLE ARRAY SUM |
2023-03-16 | HACKERRANK: SOLVE ME FIRST |
2023-03-15 | ARIFWORLD: I:V #shorts #impact |