wes d2a2ba9e15 first commit %!s(int64=4) %!d(string=hai) anos
..
README.md d2a2ba9e15 first commit %!s(int64=4) %!d(string=hai) anos
code.cpp d2a2ba9e15 first commit %!s(int64=4) %!d(string=hai) anos
unitTest.cpp d2a2ba9e15 first commit %!s(int64=4) %!d(string=hai) anos

README.md

Something in the Box?

by Helen Yu tags: sorting, formatting

Summary

Create a function that returns true if an asterisk * is inside a box. Examples inBox([ "###", "##", "###" ]) ➞ true inBox([ "####", "# #", "# #", "####" ]) ➞ true inBox([ "####", "# #", "# #", "####" ]) ➞ false inBox([ "#####", "# #", "# #", "# #", "#####" ]) ➞ false Notes The asterisk may be in the array, howev

Instructions

Create a function that returns true if an asterisk * is inside a box.

Examples

inBox([
  "###",
  "#*#",
  "###"
]) ➞ true

inBox([
  "####",
  "#* #",
  "#  #",
  "####"
]) ➞ true

inBox([
  "*####",
  "# #",
  "#  #*",
  "####"
]) ➞ false

inBox([
  "#####",
  "#   #",
  "#   #",
  "#   #",
  "#####"
]) ➞ false

Notes

The asterisk may be in the array, however, it must be inside the box, if it exists.