Amazon Interview Question

round 1: 2 Programs (Divisibility array and find largest Prime Factor) round 2: 1.)Find the longest path in the tree 2.)Find the diameter of the tree

Interview Answer

Anonymous

Jul 7, 2017

Traced the logic upto min time and space complexity