Category: c / c++
Given an integer, write a function to determine if it is a power of two. This is not new, and the solution has been posted at Using a Faster …
On Windows Operating System, the PE executables have file extension ending with *.exe and the DLL (Dynamic Link Library) end with *.dll. If you right click the property, and …
April 15, 2015
algorithms, BFS, Breadth First Search, c / c++, Depth First Search, DFS, dynamic programming, Dynamic Programming, Memoization, python, Recursion
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each …
Given an index k, return the k-th row of the Pascal’s triangle. For example, given k = 3, Return . Could you optimize your algorithm to use only O(k) …
Windows OS is full of DLLs (Dynamic Link Library). Each DLL file has some APIs, which can be used whenever needed (avoid re-inventing the wheel). For example, the system …