Tag: interview
The question is: how many bits are required to change if we want to convert a integer to another? The problem is from . This may seem complicated at …
If we want to know whether a given string has repeated characters, the simplest way is to use the existing method of finding first occurrence from the end of …
C/C++ is powerful because of pointers. The pointers are used to represent the address of some memory locations. Pointers can be involved in arithmetic operations, for example, int *p; …
Remember a couple days ago, I write a solution to this puzzle using Dynamic Programming (DP)? The DP solution helps to avoid duplicate computation in the sub-problems (smaller size). …
A Stack is a data structure that satisfies Last-In-First-Out. It can be considered as a pile of plates where you always take the top plate (you put on last). …