Toggle navigation
MYNDBOOK
Popular
My Library
Signup for free!
Login
Stanford CS 107
Assignment 0 Logic Problem
Wrong position
#again faz#
#faz
#
Produces:
faz
again faz
Wrong Overlap
#again asdfasdf#
#asdfasdf
#
Produces:
again asdfasdfasdf
Wrong position, with a '.' instead of a '/n'
#ap peter asdfap#
#asdfap.#
Produces:
asdfap. ap peter asdfap
Logic Bug
Alphabetical Order..?
#gain zagz#
#zagz
#
Produces:
gain zagzagz
searching for longest overlap issues
#qwer asdfasdf#
#asdfasdfa#
Produces:
qwer asdfasdfasdfa
Wrong position
#again az#
#az
#
Produces:
az
again faz
Alphabetical Order..?
#gain zag#
#zag
#
Produces:
zag
gain zag
Theory:
When the fragment contains an overlap with a punctuation mark at the end, it takes the SECOND largest overlap
the direction in which it reads?
Doesn't find overlap?
#qwer asdf#
#asdfa#
Produces
asdfaqwer asdf
Login
to remove ads
X
Feedback
|
How-To