Recursion-Dictionary Order(Larger) Search Contents.. search < Dashboard


two test case is not passing
please check my code , and mark the mistakes in my logic

https://ide.codingblocks.com/s/162283 one test case is not passing

Instead of getline in line no 25 of the code, use cin>>input, and then try to submit the code…

1 Like

yeah
passed all the test cases.
thank you ma’am!
can you please explain why getline was not working ?

cin will take input uptil space, whereas getline() will take entire input along with space…thts why its better to use cin… instead of getline()…

1 Like

Since you arent replying anything, I am marking this doubt as resolved… You can reopen it if you still face any issues…