文/麦大人 01 “小时候,乡愁是一枚小小的邮票,我在这头,母亲在那头。长大后,乡愁是一张窄窄的船票,我在这头,新娘在那头…” 很多年前,读到余光中先生的这首《乡愁》,当时只...
文/麦大人 01 “小时候,乡愁是一枚小小的邮票,我在这头,母亲在那头。长大后,乡愁是一张窄窄的船票,我在这头,新娘在那头…” 很多年前,读到余光中先生的这首《乡愁》,当时只...
Given an array nums of n integers and an integer target, find three integers in nums su...
Given an array nums of n integers and an integer target, are there elements a, b, c, an...
Given an array nums of n integers, are there elements a, b, c in nums such that a + b +...
Given a string, find the length of the longest substring without repeating characters. ...
Given inorder and postorder traversal of a tree, construct the binary tree. Note:You ma...
Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may...
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that ...
Given an array where elements are sorted in ascending order, convert it to a height bal...
The demons had captured the princess (P) and imprisoned her in the bottom-right corner ...
After robbing those houses on that street, the thief has found himself a new place for ...
You are a professional robber planning to rob houses along a street. Each house has a c...
You are climbing a stair case. It takes n steps to reach to the top. Each time you can ...
Given a m x n grid filled with non-negative numbers, find a path from top left to botto...
Say you have an array for which the ith element is the price of a given stock on day i....
开始动态规划啦!Given an integer array nums, find the contiguous subarray (containing at least ...
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagra...
Reverse a singly linked list. 画图即可,创建两个指针,一个pivot指向头节点,可用于判断是否反转到最后一个,用pivot.next == nu...