dp_is_life's blog

By dp_is_life, history, 3 years ago, In English

select two non overlapping segment such that sum of their length minimum. O(n) eg. [2,5], [4,6], [6,7]

ans-6 explanation 2 is overlapped with first and third but 1 and 3 is not ans-(5-2+1)+(7-6+1)=6 1<=n<=10^6 timeLimit-1 second

Full text and comments »

  • Vote: I like it
  • -16
  • Vote: I do not like it

By dp_is_life, history, 4 years ago, In English

has any GM or LGM develop some standard algorithm like-dijkstra or data structure like-fenwick tree or something?

Full text and comments »

  • Vote: I like it
  • +10
  • Vote: I do not like it

By dp_is_life, history, 4 years ago, In English

How people generate large test case for hacking phase after contest?

Full text and comments »

  • Vote: I like it
  • +5
  • Vote: I do not like it