摘要: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the  阅读全文
posted @ 2019-08-10 16:20 fatttcat 阅读(122) 评论(0) 推荐(0)
摘要: Given 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 arr 阅读全文
posted @ 2019-08-10 16:01 fatttcat 阅读(133) 评论(0) 推荐(0)
摘要: Given a sorted array nums, remove the duplicates in-placesuch that duplicates appeared at most twice and return the new length. Do not allocate extra 阅读全文
posted @ 2019-08-10 13:50 fatttcat 阅读(140) 评论(0) 推荐(0)
摘要: Given a string S, remove the vowels 'a', 'e', 'i', 'o', and 'u' from it, and return the new string. Example 1: Example 2: Note: 阅读全文
posted @ 2019-08-10 12:30 fatttcat 阅读(250) 评论(0) 推荐(0)
摘要: Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for another ar 阅读全文
posted @ 2019-08-10 08:48 fatttcat 阅读(107) 评论(0) 推荐(0)
摘要: Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elements beyond 阅读全文
posted @ 2019-08-10 08:36 fatttcat 阅读(152) 评论(0) 推荐(0)
摘要: Given an array A of strings made only from lowercase letters, return a list of all characters that show up in all strings within the list (including d 阅读全文
posted @ 2019-08-10 08:07 fatttcat 阅读(124) 评论(0) 推荐(0)