0

Deja vu[code coach]

2 task failed It works well but doesnt output "Deja Vu" for required string and about the comparison of integer and string Can anyone review and help Thanks in advance!!! https://code.sololearn.com/caB5ceLdCm5W/?ref=app

8th Jun 2020, 2:43 PM
Samir_Shah
Samir_Shah - avatar
2 Réponses
+ 2
Samir_Shah , I suggest different approach - do the check in one loop. In fact you need just to compare the current character with the next one. So that is all to solve the task 🐱
8th Jun 2020, 2:57 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
It's simple just take a look at it's example input and output.
9th Jun 2020, 1:01 PM
Naveed
Naveed - avatar