wonderkid
BAN USER
Questions (1)
Comments (2)
Reputation 10
- 1of 1 vote
Answers## This is the text editor interface.
- wonderkid in United States
## Anything you type or change here will be seen by the other person in real time.
# Implement the function that takes a board string
# and decodes it into the representative 2D array.
#
# |_|_|_|_|_|_|_|
# |_|_|r|_|_|_|_|
# |b|r|b|r|b|r|_|
# |b|b|b|r|r|b|_|
# |b|r|r|b|b|r|_|
# |r|b|b|r|r|r|b|
# CFN: 9_r4_brbrbr_3b2rb_b2r2br_r2b3rb
#
# This function should return a list of lists of strings.
# (i.e. a string[6][7]). The strings should be one of:
# * 'r' to indicate a red piece
# * 'b' to indicate a black piece
# * '_' to indicate an empty space
#
# The input string is not necessarily a valid
# CFN board string. It is guaranteed not-empty.| Report Duplicate | Flag | PURGE
Palantir Technology Software Engineer Python
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Was this reverse a string problem asked in the Guru interview, or the initial hirevue challenge?
- wonderkid February 27, 2017