When I first stumbled upon this question, I immediately made a TreeNode implementation and tried to write down the solution. As it turns out, I forgot one important step of…
Posts tagged as “Java”
Following our Binary Tree Implementation in Java, I put 5 mins of my time towards a small tutorial on ‘How to implement a Linked List in Java. Everything can be…
I was thinking about writing a Binary Tree coding question and just realized I need a Binary Tree implementation in Java for that. Explaining shortly – we will keep track…
This was asked to me in an interview a long long time ago. The question seems easy at first sight – Find next higher number with the same digits: i.e.:…
When I first saw this question I got quite intrigued and a bit #mindflabergasted. This sounds like something you could get asked on interviews. A very interesting question that can…
So, by now you should know how to create and delete Files and Directories as described in the previous post – How To Do Basic Operations With Files In Java…
Well well, it has been a while since i last wrote something (a week I think?), mainly because my shoulder got dislocated last weekend, while snowboarding… but fear not, there…
If you have followed my previous post – How to Implement Threads in Java, then you probably know by now how to create and start your own threads. However what…
Today we are going to take a look at a fun little question and learn how to convert decimals to binary 🙂 First off, to clarify any confusion we have…
How to implement a LRU Cache? I got asked this question at a phone interview a long time ago. If you have rarely used and heard the term “cache” this…