妞妞一周没上站了!# bagua - 娱乐八卦
b*r
1 楼
print words from a boggle:
Given an NxN matrix, and a dictionary, print a list of all words that
appear in the matrix. You can not use the same letter twice. For example,
if the matrix were:
W A
D R
You could find the words: WAR, WARD, DRAW and RAW (一个字符只能用一次)
没想出好的方法,大牛们?
Given an NxN matrix, and a dictionary, print a list of all words that
appear in the matrix. You can not use the same letter twice. For example,
if the matrix were:
W A
D R
You could find the words: WAR, WARD, DRAW and RAW (一个字符只能用一次)
没想出好的方法,大牛们?