NeverSayNever's blog

By NeverSayNever, 10 years ago, In English

Hello all,

I am trying to solve this problem .. http://www.hackerearth.com/sudo-code-2/algorithm/shyam/ but could not able to come up with a solution which works in given time with given constraints .. . So i opened some solution .. They smells like greedy approaches .. but can anybody elaborate the idea or help me in verifying the given approach..

Here is one simple implementation ... link

http://www.hackerearth.com/sudo-code-2/algorithm/shyam/submission/1194446/

Thanx in advance ..

  • Vote: I like it
  • 0
  • Vote: I do not like it