sol: https://ide.codingblocks.com/s/421287
prob: https://hack.codingblocks.com/app/contests/2022/1436/problem
the code is passing on leetcode so that means it is correct but I’m not able to print the output for hackerblocks
sol: https://ide.codingblocks.com/s/421287
prob: https://hack.codingblocks.com/app/contests/2022/1436/problem
the code is passing on leetcode so that means it is correct but I’m not able to print the output for hackerblocks
Are you sure it’s passing? Here you aren’t taking t as input, but even after taking that as input it is showing segmentation fault on sample case.
Now it’s working https://ide.codingblocks.com/s/421466, there was a vector declaration issue as well.
there is another doubt as well I posted it around 13 hours ago but no one replied so I posted it again 1 hr ago and still no reply should I delete it and post again?
Some TA must have accepted it, so please wait for some time for them to respond.
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.