Amazon Interview Question

Write a JS code to travers the DOM and find an element with a specified class name

Interview Answer

Anonymous

Feb 26, 2012

Start simple. They will try to push you to optimize it (O(n) vs O(log n), recursive etc). Be aware of edge cases. Depthvs breadth)

1