Light Mode
Dark Mode
Am I missing something? It says the answer is two
print main("Dog,cat,mouse,bird.Human.") -> 3

print main("My name is ...") -> 3
print main("Hello world") -> 0
print main("A quantity of striped words.") -> 1
print main("1st 2a ab3er root rate") -> 1
print main("A quantity of striped words.") -> 1
print main("I can see dead people. yes,no.") -> 3
print main("see dead people") -> 0
print main("can . yes,no.") -> 3

Question is - how is 'print main("I can see dead people. yes,no.")' two? can, yes and no would total 3 no? Unless I misunderstood the question :(

Created: Dec. 15, 2014, 4:12 p.m.
Updated: June 1, 2021, 11:40 p.m.
1
9
User avatar
pdtpatrick