bhayanak's blog

By bhayanak, history, 4 years ago, In English

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

How to solve this one?detailed approach please.

Read more »

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

By bhayanak, history, 4 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?

Read more »

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

By bhayanak, history, 4 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

Read more »

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

By bhayanak, history, 4 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.

Read more »

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

By bhayanak, history, 4 years ago, In English

Somebody please give some good approach.

https://www.codechef.com/JUNE17/problems/UNIONSET

Read more »

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