- 博客(3)
- 收藏
- 关注
原创 leetcode136 Single Number
Given a non-empty array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without usin...
2019-04-15 21:10:15
196
原创 leetcode217 Contains Duplicate
leetcode 217Given an array of integers, find if the array contains any duplicates.Your function should return true if any value appears at least twice in the array, and it should return false if eve...
2019-04-15 20:44:04
166
原创 leetcode189 Rotate Array
leetcode 189Given an array, rotate the array to the right by k steps, where k is non-negative.方法一开辟新数组,使用取余求下标的方法class Solution { public void rotate(int[] nums, int k) { int[] temp=new...
2019-04-15 20:04:26
171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人