Can this problem be solved using Binary Search
# | User | Rating |
---|---|---|
1 | Benq | 3813 |
2 | tourist | 3768 |
3 | maroonrk | 3570 |
4 | Radewoosh | 3535 |
5 | fantasy | 3526 |
6 | jiangly | 3523 |
7 | Um_nik | 3522 |
8 | orzdevinwang | 3441 |
9 | cnnfls_csy | 3427 |
10 | zh0ukangyang | 3423 |
# | User | Contrib. |
---|---|---|
1 | awoo | 180 |
2 | -is-this-fft- | 178 |
3 | nor | 169 |
4 | Um_nik | 168 |
5 | SecondThread | 164 |
6 | maroonrk | 163 |
7 | adamant | 162 |
8 | kostka | 161 |
9 | YouKn0wWho | 158 |
10 | antontrygubO_o | 154 |
Can this problem be solved using Binary Search
why he made this condition in his code in this problem : https://codeforces.com/contest/1512/problem/E if(s — i >= 1LL * (len — 1) * len / 2 && len > 0) i am talking about s-i =>(len-1)*(len)/2 code : https://ideone.com/sPISxq
Hi , i want to learn algorithms Is Algorithm specialization course for Tim Roughgarden good or there are better than it ?
Name |
---|