- 博客(242)
- 资源 (20)
- 收藏
- 关注
转载 [ZZ]IT 民工男的 CS 课程记忆
转载: http://bbs.sysu.edu.cn/bbstcon?board=CS&file=M.1267951351.A 先介绍下自己, 03CS 本科 在某更懂中文的地方混了两年多, 做社区产品, 后来做基础平台 带项目带新人前端到后端应用到底层跟各部门死磕无处不折腾 每年都为可以公费回广东回来校招, 据说是杀手, 不过我不觉得 最近在一以企鹅为吉祥物的公司继续折腾 此文仅代表个人观点
2017-11-06 11:28:53
563
原创 leetcode 链表 Insertion Sort List
Insertion Sort List Total Accepted: 24444 Total Submissions: 96639My Submissions Sort a linked list using insertion sort. 题意:用插入排序对一个链表排序 思路: 插入排序对当前元素在前面已经排好的元素中找到一个位置
2014-10-13 12:00:38
1098
原创 leetcode dfs Palindrome Partitioning
Palindrome Partitioning Total Accepted: 21056 Total Submissions: 81036My Submissions Given a string s, partition s such that every substring of the partition is a palindrome. Return all
2014-10-13 10:29:32
982
原创 leetcode dfs Validate Binary Search Tree
Validate Binary Search Tree Total Accepted: 23828 Total Submissions: 91943My Submissions Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined
2014-10-12 15:34:35
1070
原创 leetcode 二分查找 Sqrt(x)
Sqrt(x) Total Accepted: 26074 Total Submissions: 116517My Submissions Implement int sqrt(int x). Compute and return the square root of x. 题意:实现求方根 sqrt(x) 思路:二分法 对于一个数,它的方
2014-10-12 14:36:47
1631
原创 leetcode 二分法 Pow(x, n)
Pow(x, n) Total Accepted: 25273 Total Submissions: 97470My Submissions Implement 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
1393
原创 leetcode dfs Subsets II
Subsets II Total Accepted: 19243 Total Submissions: 71148My Submissions Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements
2014-10-12 10:08:19
888
原创 leetcode 链表 Partition List
Partition List Total Accepted: 19761 Total Submissions: 73252My Submissions Given 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
1084
原创 leetcode dfs Convert Sorted List to Binary Search Tree
Convert Sorted List to Binary Search Tree Total Accepted: 21420 Total Submissions: 78476My Submissions Given a singly linked list where elements are sorted in ascending order, convert it
2014-10-11 20:42:15
1017
原创 leetcode dfs Flatten Binary Tree to Linked List
Flatten Binary Tree to Linked List Total Accepted: 25034 Total Submissions: 88947My Submissions Given a binary tree, flatten it to a linked list in-place. For example, Given 1
2014-10-11 18:07:39
928
原创 leetcode dfs Minimum Depth of Binary Tree
Minimum Depth of Binary Tree Total Accepted: 25609 Total Submissions: 86491My Submissions Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the
2014-10-11 16:00:29
863
原创 leetcode 二分查找 Search for a Range
Search for a Range Total Accepted: 21480 Total Submissions: 78454My Submissions Given a sorted array of integers, find the starting and ending position of a given target value. Your algo
2014-10-10 21:30:41
976
原创 leetcode 二分查找 Search in Rotated Sorted ArrayII
Search in Rotated Sorted Array II Total Accepted: 18500 Total Submissions: 59945My Submissions Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this
2014-10-10 20:02:08
954
原创 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
892
原创 Leetcode 细节实现 Set Matrix Zeroes
Set Matrix Zeroes Total Accepted: 18139 Total Submissions: 58671My Submissions Given 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
910
原创 Leetcode dp Interleaving String
Interleaving String Total Accepted: 15409 Total Submissions: 79580My Submissions Given 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
797
原创 Leetcode dp Distinct Subsequences
Distinct Subsequences Total Accepted: 15484 Total Submissions: 62324My Submissions Given 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
839
原创 Leetcode dp Edit Distance
Edit Distance Total Accepted: 14997 Total Submissions: 59129My Submissions Given 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
797
原创 Leetcode dfs Construct Binary Tree from Inorder and Postorder Traversal
Construct Binary Tree from Inorder and Postorder Traversal Total Accepted: 14363 Total Submissions: 54254My Submissions Given inorder and postorder traversal of a tree, construct the bina
2014-09-11 07:12:22
850
原创 Leetcode dfs&dp Triangle
Triangle Total Accepted: 17536 Total Submissions: 65508My Submissions Given 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
1020
原创 Leetcode dfs Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Preorder and Inorder Traversal Total Accepted: 14824 Total Submissions: 55882My Submissions Given preorder and inorder traversal of a tree, construct the binary
2014-09-10 13:16:10
1096
原创 Leetcode dfs N-Queens II
N-Queens II Total Accepted: 12668 Total Submissions: 38109My Submissions Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct
2014-09-10 09:11:01
991
原创 Leetcode dfs N-Queens
N-Queens Total Accepted: 14054 Total Submissions: 54127My Submissions The 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
1051
原创 Leetcode dfs Path SumII
Path Sum II Total Accepted: 18489 Total Submissions: 68323My Submissions Given 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
1348
原创 Leetcode 贪心 Jump Game II
Jump Game II Total Accepted: 16242 Total Submissions: 65802My Submissions Given 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
1089
原创 Leetcode dfs Word Break II
Word Break II Total Accepted: 15138 Total Submissions: 92228My Submissions Given 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
1061
原创 Leetcode dp Word Break
Word Break Total Accepted: 22281 Total Submissions: 105657My Submissions Given 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
1078
原创 Leetcode 贪心 Jump Game
Jump Game Total Accepted: 18745 Total Submissions: 68916My Submissions Given 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
803
原创 Leetcode dfs Letter Combinations of a Phone Number
Letter Combinations of a Phone Number Total Accepted: 15964 Total Submissions: 60700My Submissions Given a digit string, return all possible letter combinations that the number could repr
2014-09-08 17:08:13
837
原创 Leetcode 细节实现 Longest Common Prefix
Longest Common Prefix Total Accepted: 17298 Total Submissions: 63704My Submissions Write a function to find the longest common prefix string amongst an array of strings. 题意
2014-09-08 16:20:17
721
原创 Leetcode 栈 Longest Valid Parentheses
Longest Valid Parentheses Total Accepted: 14818 Total Submissions: 75749My Submissions Given a string containing just the characters '(' and ')', find the length of the longest valid (w
2014-09-08 15:59:12
732
原创 Leetcode 贪心 Longest Consecutive Sequence
Longest Consecutive Sequence Total Accepted: 19169 Total Submissions: 68303My Submissions Given an unsorted array of integers, find the length of the longest consecutive elements sequence
2014-09-07 20:24:09
691
原创 Leetcode 模拟 Count and Say
Count and Say Total Accepted: 14508 Total Submissions: 53213My Submissions The 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
723
原创 Leetcode 细节实现 Length of Last Word
Length of Last Word Total Accepted: 17518 Total Submissions: 59526My Submissions Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the lengt
2014-09-07 15:56:19
806
原创 Leetcode 栈 Valid Parentheses
Valid Parentheses Total Accepted: 17916 Total Submissions: 63131My Submissions Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input stri
2014-09-07 15:23:39
821
原创 Leetcode dfs Sudoku Solver
Sudoku Solver Total Accepted: 11799 Total Submissions: 56732My Submissions Write 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
839
原创 Leetcode 细节实现 Valid Sudoku
Valid Sudoku Total Accepted: 13142 Total Submissions: 47070My Submissions Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially fi
2014-09-07 13:05:03
728
原创 Leetcode 二分查找 Search a 2D Matrix
Search a 2D Matrix Total Accepted: 18506 Total Submissions: 59402My Submissions Write 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
873
原创 Leetcode bfs&dfs Binary Tree Postorder Traversal II
Binary Tree Level Order Traversal II Total Accepted: 16983 Total Submissions: 54229My Submissions Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie
2014-09-05 16:21:41
719
原创 Leetcode dfs Binary Tree Postorder Traversal
Binary Tree Postorder Traversal Total Accepted: 28560 Total Submissions: 92333My Submissions Given a binary tree, return the postorder traversal of its nodes' values. For example: Given
2014-09-05 16:04:00
772
UNIX网络编程 卷1
2012-08-13
Android中文合集(126+8篇)
2011-10-05
java编程思想(第4版)
2011-09-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人