Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update longest_dictionary_word_test.go #173

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions strings/longest_dictionary_word_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ TestLongestDictionaryWordContainingKey tests solution(s) with the following sign
Given a key as string, and a slice of strings containing a dictionary of words, return the longest
word that contains all letters of the key.
For example given "cat" and {"rectify", "race", "archeology", "racoon"}, it should return "archeology",
because "archeology" is the longest word in the given set that contains "c","a",and "t".
For example given "car" and {"rectify", "race", "archeology", "racoon"}, it should return "archeology",
because "archeology" is the longest word in the given set that contains "c","a",and "r".
*/
func TestLongestDictionaryWordContainingKey(t *testing.T) {
tests := []struct {
Expand Down