122篇文章 · 6907字 · 0人关注
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n,...
Given a 2D binary matrix filled with 0's and 1's, find the largest squar...
Reverse a singly linked list.
Given a 2d grid map of '1' s (land) and '0' s (water), count the number ...
Write a function that takes an unsigned integer and returns the number o...
Rotate an array of n elements to the right by k steps.For example, with ...
Given an array of size n, find the majority element. The majority elemen...
Design a stack that supports push, pop, top, and retrieving the minimum ...
Follow up for "Find Minimum in Rotated Sorted Array":What if duplicates ...
文集作者