分类:算法
Follow up for “Remove Duplicates”: What if […]
Given an array and a value, remove all instances of tha […]
You are given an n x n 2D matrix representing an image. […]
There are N gas stations along a circular route, where […]
问题描述: 给定一个数据流,要求从n个元素中等概率的采样k个样本点,n的数值未知并且数量很大。 解析: 如果n […]
概述 排序有内部排序和外部排序,内部排序是数据记录在内存中进行排序,而外部排序是因排序的数据很大,一次不能容纳 […]
Given a sorted array, remove the duplicates in-place su […]
Write a function to find the longest common prefix stri […]
Given an unsorted array of integers, find the length of […]
Given an array of integers, every element appears three […]
Given an array of integers, every element appears twice […]
Given a string s consists of upper/lower-case alphabets […]
Implement int sqrt(int x). Compute and return the squar […]
Implement pow(x, n). Example 1: Input: 2.00000, 10 Outp […]
Implement strStr(). Returns the index of the first occu […]