read the following two links: http://www.programmerinterview.com/index.php/database-sql/difference-between-a-l…
分类:LeetCode
[LeetCode] Minimum Absolute Difference in BST 二叉搜索树的最小绝对差
Given a binary search tree with non-negative values, find the minimum absolute difference bet…
[LeetCode] Non-decreasing Array 非递减数列
Given an array with n integers, your task is to check if it could become non-decreasing by mo…
[LeetCode] Number of Subarrays with Bounded Maximum 有界限最大值的子数组数量
We are given an array A of positive integers, and two positive integers L and …
LeetCode之Sort题目汇总
H-Index Given an array of citations (each citation is a non-negative integer) of a researcher, write a functio…
LeetCode 018 4Sum
题目描述 Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? …
Leetcode 88. Merge Sorted Array
Python 3 实现: 源代码已上传 Github,持续更新。 """ 88. Merge Sorted Array Given two sorted integer arrays nums1 and nums2, m…
"cannot resolve symbol R" in Android Studio
这个错误真的让我想弃用Android Studio, 解决办法是把程序里所有有R的地方先注释掉,然后 Build —> Make project,就好了。
验证大小中括号是否成对闭合匹配
验证大小中括号是否成对闭合匹配 Valid Parentheses 验证大小中括号是否成对闭合匹配。 Given a string containing just the characters ‘(̵…
99. Recover Binary Search Tree
99. Recover Binary Search Tree 题目 Two elements of a binary search tree (BST) are swapped by mistake. Recover t…
[LeetCode] Find All Numbers Disappeared in an Array 找出数组中所有消失的数字
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear …
[LeetCode] Detect Capital 检测大写格式
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usag…