Skip to main content
3 of 6
added 1 character in body
sporkl
  • 6.9k
  • 8
  • 11

#Fill to the line!

Given input consisting of the characters _, , and newline, fill the empty space up to the line!

Example:

I will use # as the filler character in the example.

1. Input
        
        
________
        
        
        
2. Fill up to the line, but not above.
        
        
________
########
########
########
  • You may assume that the input either is rectangular (is padded), or consists only of the line and newlines.
  • You may assume that there is only one straight, unbroken line.

Test cases coming soon.

sporkl
  • 6.9k
  • 8
  • 11