kashyap2108's blog

By kashyap2108, history, 9 years ago, In English
  • Vote: I like it
  • -8
  • Vote: I do not like it

By kashyap2108, history, 10 years ago, In English

How to solve SPOJ-FREQUENT VALUES "http://www.spoj.com/problems/FREQUENT/" using segment tree?? I want to know what to store in the node of the tree?

Full text and comments »

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

By kashyap2108, history, 10 years ago, In English

Given a Tree. How to find no.of pairs (i,j) such that XOR of all the paths from I'th node to J'th node is equal to given k??

Full text and comments »

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