Skip to content

Solved Pirate Speak and Family Tree coding challenges #27

Open
cmacgregor wants to merge 4 commits intoNetworkContractSolutions:masterfrom
cmacgregor:master
Open

Solved Pirate Speak and Family Tree coding challenges #27
cmacgregor wants to merge 4 commits intoNetworkContractSolutions:masterfrom
cmacgregor:master

Conversation

@cmacgregor
Copy link

Pirate Speak solution

  • Break down strings into character arrays, order them, then check that they're equal

Family Tree solution

  • BFS search of descendants
  • Update test tree generation to always have enough nodes for test cases

Implemented checking for anagrams. Implemented helper function to convert strings into sorted character arrays.
Added null and empty tests for parameters of GetPossibleWords function. Updated GetPossibleWords function to guard against these cases.
Implemented GetBirthMonth function to use BFS. Updated test data generator to always create a tree large enough to support current test cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant