热文【LeetCode】94. Binary Tree Inorder Traversal 解法及注释
94. Binary Tree Inorder Traversal Total Accepted: 119866 Total Submissions: 303779 Diff
热文【LeetCode】31. Next Permutation解法
31. Next Permutation Implement next permutation, which rearranges numbers into t
热文leetcode 20. Valid Parentheses
Given a string containing just the characters `'('`, `')'`, `'{'`, `'}'`, `'['` and `']'
热文【LeetCode】89. Gray Code解法及注释
89. Gray Code Total Accepted: 58433 Total Submissions: 161645 Difficulty: Medium Th
热文【LeetCode】84. Largest Rectangle in Histogram 解法及注释
84. Largest Rectangle in Histogram Total Accepted: 57808 Total Submissions: 239940 Diff
热文【LeetCode】80. Remove Duplicates from Sorted Array II解法及注释
80. Remove Duplicates from Sorted Array II Total Accepted: 71844 Total Submissions: 220
热文【LeetCode】73. Set Matrix Zeroes解法及注释
73. Set Matrix Zeroes Given a m x n matrix, if an element is 0, set its entire row and
热文【LeetCode】61. Rotate List解法及分析
61. Rotate List Given a list, rotate the list to the right by k places, where k is n
热文【LeetCode】48. Rotate Image解法及注释
48. Rotate Image You are given an n x n 2D matrix representing an image. Rotate the i
热文【LeetCode】44. Wildcard Matching解法及注释
44. Wildcard Matching Implement wildcard pattern matching with support for '?' and '\'.
热文leetcode 9. Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.
热文【LeetCode】41. First Missing Positive的解法及注释
41. First Missing Positive Total Accepted: 62151 Total Submissions: 261770 Difficulty:
热文【LeetCode】39. Combination Sum & 40. Combination Sum II分析及解法&DFS
39. Combination Sum Total Accepted: 87334 Total Submissions: 283947 Difficulty: Medium
热文HDU 1159-Common Subsequence(LCS 最长公共子序列)
Common Subsequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K
热文算法导论之动态规划:最长公共子序列
公共子序列定义: 给定一个序列X=<x1,x2,x3……,xm>,另一个序列Z=<z1,z2,z3……,zk>满足如下条件时称为X的子序列。 即存在一个严格递增的X的下标序
热文LeetCode 20. Valid Parentheses
一个关于堆使用的问题,其实学习过关于二叉树,了解过遍历思想的,应该很容易看到此题的时候,朝这个方向思考,LeetCode 20题的原题是: Given a string co
热文FZU 1056 扫雷游戏
![20160806195456288][] 一开始居然没看出来这是一个水题, 中间8个if语句是复制的,没有注意i+1是小于m,复制的j+1的,写的i+1<n,错了三次,
热文程序员如何做到『编程速度又快,Bug 数量又少』?
有网友在 Quora 提问:如何把自己训练得『编程速度又快,Bug 数量又少』?下面是 Glyn Williams 的回复很精彩,4.5 k 赞。 三个程序员被要求穿过一
热文【Leetcode】 Flip Game 翻转游戏
You are playing the following Flip Game with your friend: Given a string that contains o
热文[leetcode]9. Palindrome Number -- JavaScript 代码
/ @param {number} x @return {boolean} / var isPalindrome = function(x) {
热文计算机算法设计与分析之不定期更新的日常+动态规划矩阵连乘+最长公共子序列
计算机算法设计与分析之不定期更新的日常+动态规划矩阵连乘+最长公共子序列 1.代码实现与分析如下: include <iostream> include <
热文Linux下的C语言编程——字符串中的数字转int型
上个星期老师给我们一个题目让我们把字符串中的数字字符找出来然后在把他变成整型的 这个程序分成两个部分,一是在字符串中找出数字字符,二是将数字字符转换成整型数字。 下面附上我
热文MIT牛人解说数学体系
在我们快要踏上无论是职业生涯还是考验生涯的旅途,我们都应该知道,并不是计算机是最完美的,也并不是唯一的,我们应该报以客观的角度去了解我们所知道的但又不明白的世界。 有些文章
热文20. Valid Parentheses (括号匹配)
Given a string containing just the characters `'('`, `')'`, `'{'`, `'}'`, `'['` and `']'
热文14. Longest Common Prefix (计算一组字符串最长公共前缀)
Write a function to find the longest common prefix string amongst an array of strings.
热文13. Roman to Integer (罗马数字转int)
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the r
热文9. Palindrome Number (回文数判断)
Determine whether an integer is a palindrome. Do this without extra space. Some hints: