https://uva.onlinejudge.org/external/110/11078.pdf
Please go through the link..
How can i solve this problem with linear scan. O(n^2) solution is very obvious to me. But linear scan solution o(n), i have no idea,Please help?
Open Credit System (UVA — 11078), how to do it in O(n)?
https://uva.onlinejudge.org/external/110/11078.pdf
Please go through the link..
How can i solve this problem with linear scan. O(n^2) solution is very obvious to me. But linear scan solution o(n), i have no idea,Please help?