Comrade! I hope, everything is much better then you think :) This algorithm has O(N) complexity. Beter complexity is impossible, because you have to look every month record... Though, this algorithm is optimal...
Apply the GOOD JOB for College ACMers to Make Large Money and Become a Millionaire
Hello, We need large no. of dedicated and hard working ACMers. The payment is good so we need ACMers to be efficient. All you have to do to get the job is to sign up at our websites. The link of our websites are given below.
After the registration, a confirmation email will be sent to your specified email address. Please click on the link inside the confirmation email to activate your account and recieve ACM work instantly. For any other queries you can mail the administrator.