
Write a program that marks the largest clear square inside a text map.
printf '3 . # x\n....\n....\n....\n' | ./largest_clear_squareExpected result
xxx.\nxxx.\nxxx.\nFor your own tracking. Tests grade your code.
printf '2 _ # +\n##\n##\n' | ./largest_clear_squareExpected result
##\n##\nExpected files
largest_clear_square.cAllowed functions
readwriteprintffprintfmalloccallocreallocfree
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that marks the largest clear square inside a text map.
printf '3 . # x\n....\n....\n....\n' | ./largest_clear_squareExpected result
xxx.\nxxx.\nxxx.\nFor your own tracking. Tests grade your code.
printf '2 _ # +\n##\n##\n' | ./largest_clear_squareExpected result
##\n##\nExpected files
largest_clear_square.cAllowed functions
readwriteprintffprintfmalloccallocreallocfree
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.