bhayanak's blog

By bhayanak, history, 6 years ago, In English

https://www.codechef.com/problems/TREES

How to solve this one?detailed approach please.

Full text and comments »

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

By bhayanak, history, 7 years ago, In English

How to solve this simple problem?

You are given a tree of N vertices, and an integer K. How many ways are there to colour the tree with K colours such that no edge is adjacent to vertices of the same colour.

Since the answer may be large, output the answer modulo 1,000,000,007.

Please explain how did u arrive at the result?

Full text and comments »

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

By bhayanak, history, 7 years ago, In English

i want an help beecause it is a difficult questions (sorry for mine poor english)

https://www.codechef.com/problems/DIGJUMP

Full text and comments »

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

By bhayanak, history, 7 years ago, In English

https://www.codechef.com/problems/SUBLCM need help in this problem.anyone to give a detailed explanation please?

Thanks in advance.

Full text and comments »

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

By bhayanak, history, 7 years ago, In English
  • Vote: I like it
  • -5
  • Vote: I do not like it