上一页 1 ··· 10 11 12 13 14
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 39 数组中出现次数超过一半的数字 题目描述 数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。例如输入一个长度为9的数组{1,2,3,2,2,2,5,4,2}。由于数字2在数组中出现了5次,超过数组长度的一半, 阅读全文
posted @ 2019-01-05 14:05 wikiwen 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 26. Remove Duplicates from Sorted Array Given a sorted array nums, remove the duplicates in-place such that each 阅读全文
posted @ 2019-01-05 14:03 wikiwen 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 287. Find the Duplicate Number Given an array nums containing n + 1 integers where each integer is between 1 and 阅读全文
posted @ 2019-01-05 14:02 wikiwen 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should r 阅读全文
posted @ 2019-01-05 13:48 wikiwen 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 3Sum Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all uni 阅读全文
posted @ 2019-01-05 13:46 wikiwen 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 57 有序数组中和为s的两个数 题目描述 输入一个递增排序的数组和一个数字S,在数组中查找两个数,是的他们的和正好是S,如果有多对数字的和等于S,输出两个数的乘积最小的。 输出描述: 对应每个测试案例,输出两个数,小的先输出 阅读全文
posted @ 2019-01-05 13:38 wikiwen 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 【LeetCode & 剑指offer 刷题笔记】目录(持续更新中...) 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific tar 阅读全文
posted @ 2019-01-05 13:34 wikiwen 阅读(461) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14