CISCO | software engineer 1 | USA | 3/15/22
Anonymous User
598

The following questions were given to me:

1.) Given a number N, return what a chessboard the size of N by N would look like using B to show black and W to show white.
ex: n= 2
'WB
BW'

2.) Given a number, remove one 5 to get the largest number:
ex: n= 565
65

3.) Given an array, deliminated by spaces, return the length of the array.
[1, ,2, ,3, ,4, ,5, ,6, ,7, ,8]

4.) Given a grid, and a list of words, return True or False for each word in the wordbank. Diagonal is not an option in the grid, only forwards, backwards, horizontal and reverse horizontal.

Comments (0)