cniks117's blog

By cniks117, 11 years ago, In English

can some1 explain me the two test cases of this question.. http://mirror.codeforces.com/problemset/problem/9/D..

Full text and comments »

Tags dp
  • Vote: I like it
  • -4
  • Vote: I do not like it

By cniks117, 11 years ago, In English

please explain me the approach to solve the problem http://mirror.codeforces.com/problemset/problem/6/D .... thanx in advance

Full text and comments »

Tags dp
  • Vote: I like it
  • -11
  • Vote: I do not like it

By cniks117, 11 years ago, In English

please explain me the approach to solve the problem http://mirror.codeforces.com/problemset/problem/6/D .... thanx in advance

Full text and comments »

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

By cniks117, 11 years ago, In English

please explain me the approach to solve the problem http://mirror.codeforces.com/problemset/problem/332/B ..i read the editorial but couldnt understand the soln.. thanx in advance

Full text and comments »

Tags 332b, dp
  • Vote: I like it
  • 0
  • Vote: I do not like it

By cniks117, 11 years ago, In English

i am unable to understand the test cases of this question http://mirror.codeforces.com/problemset/problem/265/C please explain this question using a test case thanx in advance

Full text and comments »

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

By cniks117, 11 years ago, In English

how can we print all possible subsequences of string using dynamic programming. for ex . for sequence 1,2,3 the possible subsequences are {1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}

Full text and comments »

Tags dp
  • Vote: I like it
  • -5
  • Vote: I do not like it

By cniks117, 12 years ago, In English

plz explain me how to approach this problem and the answer to this problem ..thnx in advance :)

Full text and comments »

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

By cniks117, 12 years ago, In English

can anybody plzz tellme wats wrong in the following code http://ideone.com/DPnQRq its giving wrong ans on pretext 10 plzzz reply

Full text and comments »

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

By cniks117, 12 years ago, In English

what is the maximum size of array that is permissible in c++?? can't we use an array of size 10^9 ..plz reply

Full text and comments »

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

By cniks117, 12 years ago, In English

how can we compute the numbers of the series 2 ,4,6,10,14,22,30,46 .. for a number as large as 10^9 ?? here is my code http://ideone.com/0fuDO but it is too slow ..plz suggest me some faster method

Full text and comments »

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