So the purpose of this question is to print out N integers in String Order. For example, if N is 1000, then we will output: 1, 10, 100, 1000, 101,…
Posts tagged as “Interview question”
This question came to my attention from one of my readers a few days ago. They had been asked this question in an online interview and implied that it was…
Today thought I’d do a basic String question, since I have not done one in a while. How to find the first non repeated character in a String, is a…
Well hi again, it has been a while since I last posted…. well these weeks have been hectic. Lots of work and lots of side projects… Anyway leaving all the…
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…
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…
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…
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…