- 博客(242)
- 资源 (20)
- 收藏
- 关注
转载 [ZZ]IT 民工男的 CS 课程记忆
转载:http://bbs.sysu.edu.cn/bbstcon?board=CS&file=M.1267951351.A先介绍下自己, 03CS 本科在某更懂中文的地方混了两年多, 做社区产品, 后来做基础平台带项目带新人前端到后端应用到底层跟各部门死磕无处不折腾每年都为可以公费回广东回来校招, 据说是杀手, 不过我不觉得最近在一以企鹅为吉祥物的公司继续折腾此文仅代表个人观点
2017-11-06 11:28:53 538
原创 leetcode 链表 Insertion Sort List
Insertion Sort List Total Accepted: 24444 Total Submissions: 96639My SubmissionsSort a linked list using insertion sort.题意:用插入排序对一个链表排序思路:插入排序对当前元素在前面已经排好的元素中找到一个位置
2014-10-13 12:00:38 1086
原创 leetcode dfs Palindrome Partitioning
Palindrome Partitioning Total Accepted: 21056 Total Submissions: 81036My SubmissionsGiven a string s, partition s such that every substring of the partition is a palindrome.Return all
2014-10-13 10:29:32 965
原创 leetcode dfs Validate Binary Search Tree
Validate Binary Search Tree Total Accepted: 23828 Total Submissions: 91943My SubmissionsGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined
2014-10-12 15:34:35 1058
原创 leetcode 二分查找 Sqrt(x)
Sqrt(x) Total Accepted: 26074 Total Submissions: 116517My SubmissionsImplement int sqrt(int x).Compute and return the square root of x.题意:实现求方根 sqrt(x)思路:二分法对于一个数,它的方
2014-10-12 14:36:47 1616
原创 leetcode 二分法 Pow(x, n)
Pow(x, n) Total Accepted: 25273 Total Submissions: 97470My SubmissionsImplement pow(x, n).题意:求x的n次幂思路:二分法n有可能是负的或正的当n为负是,pow(x, n) = 1/pow(x, -n)x^n = x^{n/2} *
2014-10-12 11:15:47 1376
原创 leetcode dfs Subsets II
Subsets II Total Accepted: 19243 Total Submissions: 71148My SubmissionsGiven a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements
2014-10-12 10:08:19 872
原创 leetcode 链表 Partition List
Partition List Total Accepted: 19761 Total Submissions: 73252My SubmissionsGiven a linked list and a value x, partition it such that all nodes less than x come before nodes greater than
2014-10-12 00:15:47 1064
原创 leetcode dfs Convert Sorted List to Binary Search Tree
Convert Sorted List to Binary Search Tree Total Accepted: 21420 Total Submissions: 78476My SubmissionsGiven a singly linked list where elements are sorted in ascending order, convert it
2014-10-11 20:42:15 1000
原创 leetcode dfs Flatten Binary Tree to Linked List
Flatten Binary Tree to Linked List Total Accepted: 25034 Total Submissions: 88947My SubmissionsGiven a binary tree, flatten it to a linked list in-place.For example,Given 1
2014-10-11 18:07:39 910
原创 leetcode dfs Minimum Depth of Binary Tree
Minimum Depth of Binary Tree Total Accepted: 25609 Total Submissions: 86491My SubmissionsGiven a binary tree, find its minimum depth.The minimum depth is the number of nodes along the
2014-10-11 16:00:29 848
原创 leetcode 二分查找 Search for a Range
Search for a Range Total Accepted: 21480 Total Submissions: 78454My SubmissionsGiven a sorted array of integers, find the starting and ending position of a given target value.Your algo
2014-10-10 21:30:41 953
原创 leetcode 二分查找 Search in Rotated Sorted ArrayII
Search in Rotated Sorted Array II Total Accepted: 18500 Total Submissions: 59945My SubmissionsFollow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this
2014-10-10 20:02:08 942
原创 leetcode 二分查找 Search in Rotated Sorted Array
题意:一个已经排序好的数组,被按某个位置旋转了一次,给定一个值target,在该旋转后的数组里查找该值。思路:二分查找难点在于确定往数组的哪一半段继续二分查找设起点、中间点、终点分别为 start、middle、end (采用前闭后开的区间表示方法如果target = A[middle] return middle如果A[middle] >= A[start],则[start,
2014-10-10 19:48:43 871
原创 Leetcode 细节实现 Set Matrix Zeroes
Set Matrix Zeroes Total Accepted: 18139 Total Submissions: 58671My SubmissionsGiven a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show
2014-09-28 23:50:02 898
原创 Leetcode dp Interleaving String
Interleaving String Total Accepted: 15409 Total Submissions: 79580My SubmissionsGiven s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.For example,Given:s1 =
2014-09-21 20:23:21 779
原创 Leetcode dp Distinct Subsequences
Distinct Subsequences Total Accepted: 15484 Total Submissions: 62324My SubmissionsGiven a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of
2014-09-16 21:31:26 821
原创 Leetcode dp Edit Distance
Edit Distance Total Accepted: 14997 Total Submissions: 59129My SubmissionsGiven two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each oper
2014-09-16 17:47:06 777 1
原创 Leetcode dfs Construct Binary Tree from Inorder and Postorder Traversal
Construct Binary Tree from Inorder and Postorder Traversal Total Accepted: 14363 Total Submissions: 54254My SubmissionsGiven inorder and postorder traversal of a tree, construct the bina
2014-09-11 07:12:22 826
原创 Leetcode dfs&dp Triangle
Triangle Total Accepted: 17536 Total Submissions: 65508My SubmissionsGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row
2014-09-11 07:12:15 1004
原创 Leetcode dfs Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Preorder and Inorder Traversal Total Accepted: 14824 Total Submissions: 55882My SubmissionsGiven preorder and inorder traversal of a tree, construct the binary
2014-09-10 13:16:10 1078
原创 Leetcode dfs N-Queens II
N-Queens II Total Accepted: 12668 Total Submissions: 38109My SubmissionsFollow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct
2014-09-10 09:11:01 980
原创 Leetcode dfs N-Queens
N-Queens Total Accepted: 14054 Total Submissions: 54127My SubmissionsThe n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other
2014-09-10 09:04:43 1033
原创 Leetcode dfs Path SumII
Path Sum II Total Accepted: 18489 Total Submissions: 68323My SubmissionsGiven a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For exampl
2014-09-10 00:37:10 1334
原创 Leetcode 贪心 Jump Game II
Jump Game II Total Accepted: 16242 Total Submissions: 65802My SubmissionsGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each elem
2014-09-10 00:33:08 1070
原创 Leetcode dfs Word Break II
Word Break II Total Accepted: 15138 Total Submissions: 92228My SubmissionsGiven a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a va
2014-09-09 23:33:51 1053
原创 Leetcode dp Word Break
Word Break Total Accepted: 22281 Total Submissions: 105657My SubmissionsGiven a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence o
2014-09-09 20:23:35 1062
原创 Leetcode 贪心 Jump Game
Jump Game Total Accepted: 18745 Total Submissions: 68916My SubmissionsGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element
2014-09-09 10:08:31 790
原创 Leetcode dfs Letter Combinations of a Phone Number
Letter Combinations of a Phone Number Total Accepted: 15964 Total Submissions: 60700My SubmissionsGiven a digit string, return all possible letter combinations that the number could repr
2014-09-08 17:08:13 820
原创 Leetcode 细节实现 Longest Common Prefix
Longest Common Prefix Total Accepted: 17298 Total Submissions: 63704My SubmissionsWrite a function to find the longest common prefix string amongst an array of strings.题意
2014-09-08 16:20:17 705
原创 Leetcode 栈 Longest Valid Parentheses
Longest Valid Parentheses Total Accepted: 14818 Total Submissions: 75749My SubmissionsGiven a string containing just the characters '(' and ')', find the length of the longest valid (w
2014-09-08 15:59:12 715
原创 Leetcode 贪心 Longest Consecutive Sequence
Longest Consecutive Sequence Total Accepted: 19169 Total Submissions: 68303My SubmissionsGiven an unsorted array of integers, find the length of the longest consecutive elements sequence
2014-09-07 20:24:09 680
原创 Leetcode 模拟 Count and Say
Count and Say Total Accepted: 14508 Total Submissions: 53213My SubmissionsThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is
2014-09-07 19:44:37 713
原创 Leetcode 细节实现 Length of Last Word
Length of Last Word Total Accepted: 17518 Total Submissions: 59526My SubmissionsGiven a string s consists of upper/lower-case alphabets and empty space characters ' ', return the lengt
2014-09-07 15:56:19 791
原创 Leetcode 栈 Valid Parentheses
Valid Parentheses Total Accepted: 17916 Total Submissions: 63131My SubmissionsGiven a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input stri
2014-09-07 15:23:39 804
原创 Leetcode dfs Sudoku Solver
Sudoku Solver Total Accepted: 11799 Total Submissions: 56732My SubmissionsWrite a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character
2014-09-07 13:05:31 822
原创 Leetcode 细节实现 Valid Sudoku
Valid Sudoku Total Accepted: 13142 Total Submissions: 47070My SubmissionsDetermine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially fi
2014-09-07 13:05:03 713
原创 Leetcode 二分查找 Search a 2D Matrix
Search a 2D Matrix Total Accepted: 18506 Total Submissions: 59402My SubmissionsWrite an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following pr
2014-09-05 16:26:00 863
原创 Leetcode bfs&dfs Binary Tree Postorder Traversal II
Binary Tree Level Order Traversal II Total Accepted: 16983 Total Submissions: 54229My SubmissionsGiven a binary tree, return the bottom-up level order traversal of its nodes' values. (ie
2014-09-05 16:21:41 706
原创 Leetcode dfs Binary Tree Postorder Traversal
Binary Tree Postorder Traversal Total Accepted: 28560 Total Submissions: 92333My SubmissionsGiven a binary tree, return the postorder traversal of its nodes' values.For example:Given
2014-09-05 16:04:00 754
UNIX网络编程 卷1
2012-08-13
Android中文合集(126+8篇)
2011-10-05
java编程思想(第4版)
2011-09-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人