Hi, my solution is passing test case 1 but not 0, let me know why https://ide.codingblocks.com/s/363152
I tried to implement it using bitwise logic.
Ultra fast mathematicians test cases
Found the error, as i was using getline with delim as a space, the last string was taking in input of other testcase also!
Resolved it using character array, although would like to know the string solution for it!
Nevermind, resolved it!
Updated my code tooβ¦
Thanks for helping out!
@yashjain0112 okay fine .
i just find your error as well .
happy to help you .
happy Learning !!
1 Like
you can see this solution if you want to do it with string .
this is much easier .
1 Like
Will do, thanks for helping out!