code : https://ide.codingblocks.com/s/201237
ques : https://hack.codingblocks.com/app/practice/1/545/problem
1 case is not passing
code : https://ide.codingblocks.com/s/201237
ques : https://hack.codingblocks.com/app/practice/1/545/problem
1 case is not passing
where i am wrong in logic?
more than 5 test cases are passing
@chaman9
u r considering only substring of string n2 . but it can happen that any subsequence of string n2 can form n1. thats why some testcases are failing.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.