Find repeated 10 char sequences in DNA sample

FindĀ repeated 10 char sequences in DNA sampleĀ is just a modified version of Find all repeated substrings of size K, which is a pretty common question that gets asked in interviews. Since I did not find appropriate information about this question online, I decided to take...

Continue reading »

Zig Zag Tree Traversal in Java

Write a method to find the zig zag tree traversal in a tree. I got asked this question once in an interview. Now I found a few solutions to this problem over the internet, but none was really explaining how to get to the solution,...

Continue reading »