Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Replace Words
Bookmark
Brute Force
Hash Set
Trie
Input
Standard
Short Roots
Overlapping Roots
Custom
dictionary
=
[cat, bat, rat]
,
sentence
=
the cattle was rattled by the battery
Phase
Check every root
Current Word
-
Best Match
-
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
-
Phase
Check every root
Current Word
-
Best Match
-
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
-
Phase
Check every root
Current Word
"the"
Best Match
"the"
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
-
Phase
Check every root
Current Word
"cattle"
Best Match
"cat"
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
"the"
Phase
Check every root
Current Word
"was"
Best Match
"was"
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
"the cat"
Phase
Check every root
Current Word
"rattled"
Best Match
"rattled"
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
"the cat was"
Phase
Check every root
Current Word
"rattled"
Best Match
"rat"
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
"the cat was rat"
Phase
Check every root
Current Word
"by"
Best Match
"by"
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
"the cat was rat"
Phase
Check every root
Current Word
"the"
Best Match
"the"
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
"the cat was rat by"
Phase
Check every root
Current Word
"battery"
Best Match
"battery"
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
"the cat was rat by the"
Phase
Complete
Current Word
-
Best Match
-
Sentence
(7)
the
cattle
was
rattled
by
the
battery
Dictionary roots
(3)
cat
bat
rat
Result
"the cat was rat by the bat"
algo
master
.
io
Step:
Split the sentence into 7 words
0 / 39
Input
Standard
Short Roots
Overlapping Roots
Custom
dictionary
=
[cat, bat, rat]
,
sentence
=
the cattle was rattled by the battery
0 / 39
algo
master
.
io
Step:
Split the sentence into 7 words