I am getting Time Limit Exceeded for my answer.Please do help.
simple answer is, you solution complexity is O(N*T)
- too slow
how to reduce the time complexity in the above solution???
I am getting Time Limit Exceeded for my answer.Please do help.
simple answer is, you solution complexity is O(N*T)
- too slow
how to reduce the time complexity in the above solution???