Given a positive integer, return its corresponding column title as appear in an Excel s...
Given a positive integer, return its corresponding column title as appear in an Excel s...
A peak element is an element that is greater than its neighbors.Given an input array wh...
Given an array of integers that is already sorted in ascending order, find two numbers ...
Follow up for "Find Minimum in Rotated Sorted Array":What if duplicates are allowed? Wo...
Suppose an array sorted in ascending order is rotated at some pivot unknown to you befo...
Design a stack that supports push, pop, top, and retrieving the minimum element in cons...
Sort a linked list using insertion sort. 分析 使用插入排序,排序一个链表。先列出首节点,然后依次对比节点大小,然后插入到合适的位置即...
Given a linked list, return the node where the cycle begins. If there is no cycle, retu...
Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it with...
A linked list is given such that each node contains an additional random pointer which ...
There are N gas stations along a circular route, where the amount of gas at station i i...
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could repre...
题目 Given inorder and postorder traversal of a tree, construct the binary tree. Note:You...
The gray code is a binary numeral system where two successive values differ in only one...
Given n pairs of parentheses, write a function to generate all combinations of well-for...
Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may...
Given an array of integers, every element appears three times except for one, which app...
Given an array of integers, every element appears twice except for one. Find that singl...
Given a string, determine if it is a palindrome, considering only alphanumeric characte...