Calculates score incorrectly, adds score multiple times if same word is found twice via different paths on board. For word addition HashSet is used, which is correct, it skips word if it already exist, but score is still added.
Calculates score incorrectly, adds score multiple times if same word is found twice via different paths on board.
For word addition HashSet is used, which is correct, it skips word if it already exist, but score is still added.