Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя NeverSayNever

Автор NeverSayNever, 10 лет назад, По-английски

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 ..

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится