Tag: tutorial
Question: Implement integer square root for int sqrt(int x) There are many ways to compute the integer square root. But if you don’t bother, you can always cheat the compilers …
You probably came across the following declaration in C# and wonder what the hell does keyword this do. namespace ConsoleApplication1 { public static class Numbers { public static int AddOne(this …
Question: Given a string containing only numbers, restore it by returning all possible IP addresses (in a vector) Original Problem Page: http://oj.leetcode.com/problems/restore-ip-addresses/ Examples: Given "25525511135", return . (Order does not matter) A …
Question: Given an array and a element, remove all instances of that value in place and return the new length. The order of elements can be changed and it …
Question : Given a sorted list represented by a directional link structure (as follows), remove the duplicates and return the new list. /** * Definition for singly-linked list. * …