I only need the hint. That's all. I don't need the exact solution. Thank you.
# | User | Rating |
---|---|---|
1 | tourist | 3690 |
2 | jiangly | 3647 |
3 | Benq | 3581 |
4 | orzdevinwang | 3570 |
5 | Geothermal | 3569 |
5 | cnnfls_csy | 3569 |
7 | Radewoosh | 3509 |
8 | ecnerwala | 3486 |
9 | jqdai0815 | 3474 |
10 | gyh20 | 3447 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 165 |
3 | adamant | 161 |
4 | TheScrasse | 160 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 152 |
8 | orz | 146 |
9 | SecondThread | 145 |
9 | pajenegod | 145 |
How can we solve http://www.spoj.com/SPOJ/problems/CTRICK/ this question? What is the approach behind this?
I only need the hint. That's all. I don't need the exact solution. Thank you.
I mean how can we proceed. Can we apply dfs or bfs in this question?
My approach is that if both the cats are diagonal to each other then only mouse can not escape otherwise it will escape. Also I have doubt When both cats are diagonal to each other is it necessary that the mouse should be in the middle of the diagonal? or it is not and we have to only for diagonal? Please correct me if i am wrong and also provide me the right approach? www.spoj.com/problems/CATM
Hello i am new to programming. I want to learn how to do bit masking? Please provide some tutorials or any books
How can i approach this problem using graphs and dynamic programming? Brute force is giving TLE. I am trying to find the all the distance from '*' to each other and then finding the minimum distance.but it's not working? Can anyone please help?
I know we can solve it using segment tree but i am not unable to proceed. There are two things we need to solve this question are that the sum should be zero (if we consider '(' as 1 and ')' as -1) and i am not able to figure out the other thing? Can you please tell the second point which is important and explain it as well?
Name |
---|