Indent Ruby
Practice
2.2 (6 votes)
Ad Hoc
Medium
Stacks
Problem
58% Success 651 Attempts 30 Points 5s Time Limit 256MB Memory 1024 KB Max Code

Write your program in Ruby which takes an un-indented Ruby code as string and outputs the indented Ruby code as string.

Input Format A string which is un-indented Ruby code

Output Format A string which is indented Ruby code

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
19 votes
Tags:
ApprovedDepth First SearchEasyGraphsReady
Points:30
6 votes
Tags:
AlgorithmsBasic ProgrammingBasics of ImplementationImplementationMedium
Points:20
8 votes
Tags:
MathematicsEasy
Editorial

No editorial available for this problem.