摘要:
VS低版本打开高版本常会出现的错: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build 阅读全文
摘要:
#387. First Unique Character in a String Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, retu 阅读全文
摘要:
#136. Single Number Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a l 阅读全文
摘要:
常见报错:warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNI 阅读全文
摘要:
#441. Arranging Coins You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, 阅读全文
摘要:
#462. Minimum Moves to Equal Array Elements II Given a non-empty integer array, find the minimum number of moves required to make all array elements e 阅读全文
摘要:
#453. Minimum Moves to Equal Array Elements Given a non-empty integer array of size n, find the minimum number of moves required to make all array ele 阅读全文
摘要:
#27. Remove Element Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for 阅读全文
摘要:
#66. Plus One Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most signific 阅读全文
摘要:
#88. Merge Sorted Array Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 h 阅读全文
摘要:
#189. Rotate Array Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [ 阅读全文
摘要:
#217. Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears 阅读全文