
LeetCode
19951211丶
这个作者很懒,什么都没留下…
展开
-
LeetCode oj 338. Counting Bits(DP)
338. Counting Bits QuestionEditorial Solution My SubmissionsTotal Accepted: 46702Total Submissions: 79672Difficulty: MediumGiven a non negative integer number num. For every numbers i in the r原创 2016-09-26 22:21:40 · 395 阅读 · 0 评论 -
LeetCode oj 349. Intersection of Two Arrays(HashSet)
349. Intersection of Two Arrays QuestionEditorial Solution My SubmissionsTotal Accepted: 52852Total Submissions: 118189Difficulty: EasyContributors: AdminGiven two原创 2016-10-14 19:58:07 · 367 阅读 · 0 评论 -
LeetCode oj 409. Longest Palindrome (回文串)
409. Longest Palindrome QuestionEditorial Solution My SubmissionsTotal Accepted: 7696Total Submissions: 17179Difficulty: EasyContributors: AdminGiven a string which原创 2016-10-14 20:23:14 · 528 阅读 · 0 评论 -
LeetCode oj 389. Find the Difference(Hash)
389. Find the Difference QuestionEditorial Solution My SubmissionsTotal Accepted: 22851Total Submissions: 46129Difficulty: EasyGiven two strings s and t which consi原创 2016-09-29 23:08:35 · 576 阅读 · 0 评论 -
LeetCode oj 226. Invert Binary Tree (DFS||BFS)
226. Invert Binary Tree QuestionEditorial Solution My SubmissionsTotal Accepted: 124813Total Submissions: 257083Difficulty: EasyInvert a binary tree. 4 / \原创 2016-10-04 18:59:10 · 596 阅读 · 0 评论 -
LeetCode oj 167. Two Sum II - Input array is sorted (双指针)
167. Two Sum II - Input array is sorted QuestionEditorial Solution My SubmissionsTotal Accepted: 29576Total Submissions: 61336Difficulty: MediumGiven an array of in原创 2016-10-05 19:01:33 · 1047 阅读 · 0 评论 -
LeetCode oj 260. Single Number III (位运算)
260. Single Number III QuestionEditorial Solution My SubmissionsTotal Accepted: 49443Total Submissions: 103739Difficulty: MediumGiven an array of numbers nums, in w原创 2016-10-05 20:17:32 · 470 阅读 · 0 评论 -
LeetCode oj 283. Move Zeroes (选择排序)
283. Move Zeroes QuestionEditorial Solution My SubmissionsTotal Accepted: 122129Total Submissions: 262841Difficulty: EasyGiven an array nums, write a function to原创 2016-10-05 20:58:17 · 397 阅读 · 0 评论 -
LeetCode oj 404. Sum of Left Leaves (DFS||BFS)
404. Sum of Left Leaves QuestionEditorial Solution My SubmissionsTotal Accepted: 8223Total Submissions: 17874Difficulty: EasyFind the sum of all left leaves in a gi原创 2016-10-06 13:33:06 · 759 阅读 · 0 评论 -
LeetCode oj 237. Delete Node in a Linked List (链表)
237. Delete Node in a Linked List QuestionEditorial Solution My SubmissionsTotal Accepted: 111980Total Submissions: 249417Difficulty: EasyContributors: AdminWrite a原创 2016-10-14 19:07:08 · 489 阅读 · 0 评论 -
LeetCode oj 383. Ransom Note(哈希)
383. Ransom Note QuestionEditorial Solution My SubmissionsTotal Accepted: 23593Total Submissions: 52194Difficulty: EasyContributors: Admin Given an arbitrary ran原创 2016-10-14 18:24:24 · 2450 阅读 · 0 评论 -
LeetCode oj 104. Maximum Depth of Binary Tree(DFS||BFS)
104. Maximum Depth of Binary Tree QuestionEditorial Solution My SubmissionsTotal Accepted: 179819Total Submissions: 361510Difficulty: EasyGiven a binary tree, find原创 2016-09-29 02:34:32 · 612 阅读 · 0 评论 -
LeetCode oj 344. Reverse String(字符串)
344. Reverse String QuestionEditorial Solution My SubmissionsTotal Accepted: 90670Total Submissions: 156010Difficulty: EasyWrite a function that takes a string as i原创 2016-09-27 18:56:58 · 335 阅读 · 0 评论 -
LeetCode oj 292. Nim Game(尼姆博奕)
292. Nim Game QuestionEditorial Solution My SubmissionsTotal Accepted: 100010Total Submissions: 184472Difficulty: EasyYou are playing the following Nim Game with yo原创 2016-09-27 19:13:27 · 575 阅读 · 0 评论 -
LeetCode oj 392. Is Subsequence (字符串)
392. Is Subsequence QuestionEditorial Solution My SubmissionsTotal Accepted: 11558Total Submissions: 26312Difficulty: MediumContributors: AdminGiven a string s and原创 2016-10-13 14:00:48 · 329 阅读 · 0 评论 -
LeetCode oj 238. Product of Array Except Self (思维)
238. Product of Array Except Self QuestionEditorial Solution My SubmissionsTotal Accepted: 65971Total Submissions: 144366Difficulty: MediumContributors: AdminGiven原创 2016-10-13 21:33:31 · 371 阅读 · 0 评论 -
LeetCode oj 406. Queue Reconstruction by Height(优先队列)
406. Queue Reconstruction by Height QuestionEditorial Solution My SubmissionsTotal Accepted: 1911Total Submissions: 3604Difficulty: MediumSuppose you have a random原创 2016-09-28 16:31:05 · 777 阅读 · 0 评论 -
LeetCode oj 371. Sum of Two Integers(位运算)
371. Sum of Two Integers QuestionEditorial Solution My SubmissionsTotal Accepted: 37210Total Submissions: 71785Difficulty: EasyCalculate the sum of two integers a a原创 2016-09-29 01:20:45 · 533 阅读 · 0 评论 -
LeetCode oj 136. Single Number (位运算)
136. Single Number QuestionEditorial Solution My SubmissionsTotal Accepted: 158682Total Submissions: 306217Difficulty: EasyGiven an array of integers, every element原创 2016-09-29 01:32:46 · 507 阅读 · 0 评论 -
LeetCode oj 258. Add Digits(数字根)
258. Add Digits QuestionEditorial Solution My SubmissionsTotal Accepted: 127957Total Submissions: 257201Difficulty: EasyGiven a non-negative integer num, repeatedly原创 2016-09-29 01:50:49 · 443 阅读 · 0 评论 -
LeetCode oj 515. Find Largest Value in Each Tree Row(DFS||BFS)
515. Find Largest Value in Each Tree RowAdd to ListDescription Submission SolutionsTotal Accepted: 3223Total Submissions: 6121Difficulty: MediumContributors: love_FDU_llp原创 2017-02-18 11:12:28 · 616 阅读 · 0 评论