上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 233. Number of Digit One Given an integer n, count the total number of digit 1 appearing in all non-negative int 阅读全文
posted @ 2019-01-05 16:28 wikiwen 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 136. Single Number Given a non-empty array of integers, every element appears twice except for one. Find that si 阅读全文
posted @ 2019-01-05 16:26 wikiwen 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 191. Number of 1 Bits Write a function that takes an unsigned integer and returns the number of '1' bits it has 阅读全文
posted @ 2019-01-05 16:25 wikiwen 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 位运算规律总结 1 与运算 //(对于某位为1的bit_mask,一个数如果该比特位为1,与bit_mask相与得1,否则得0) if(a & 1 == 0) //偶数 if(a & 1 == 1) //奇数 (n-1) & 阅读全文
posted @ 2019-01-05 16:24 wikiwen 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) Set Matrix Zeroes Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. 阅读全文
posted @ 2019-01-05 16:21 wikiwen 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) Kth Smallest Element in a Sorted Matrix Given a n x n matrix where each of the rows and columns are sorted in as 阅读全文
posted @ 2019-01-05 16:20 wikiwen 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 74. Search a 2D Matrix Write an efficient algorithm that searches for a value in an m x n matrix. This matrix ha 阅读全文
posted @ 2019-01-05 16:19 wikiwen 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 54. Spiral Matrix Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spi 阅读全文
posted @ 2019-01-05 16:19 wikiwen 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 20 表示数值的字符串(了解即可) 题目描述 请实现一个函数用来判断字符串是否表示数值(包括整数和小数)。例如,字符串"+100","5e2","-123","3.1416"和"-1E-16"都表示数值。 但是"12e"," 阅读全文
posted @ 2019-01-05 16:15 wikiwen 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 19 正则表达式匹配(hard,了解即可) 题目描述 请实现一个函数用来匹配包括'.'和'*'的正则表达式。模式中的字符'.'表示任意一个字符,而'*'表示它前面的字符可以出现任意次(包含0次)。 在本题中,匹配是指字符串的 阅读全文
posted @ 2019-01-05 16:14 wikiwen 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页