
enum 枚举enum spectrum{red, orange, yellow, green, blue, violet, indigo, ultraviolet};spe...
1.nones and free tier EC2 just like a computer with only an operating system. The free ...
文件 cdcd 去文件夹cd g 按tab自动补全cd g* 去文件夹cd g*4 去文件夹pwd 路径present working directory lsls 显示文...
QuestionGiven two binary strings, return their sum (also a binary string). For example,...
1 单个文件是不能调试的,只有工程才能调试2 文件路径不要有中文,或者空格,否则断点不会停下3 setting complier中勾上:
QuestionGiven a non-negative integer represented as a non-empty array of digits, plus o...
QuestionGiven a string s consists of upper/lower-case alphabets and empty space charact...
QuestionFind the contiguous subarray within an array (containing at least one number) w...
QuestionThe count-and-say sequence is the sequence of integers with the first five term...
QuestionGiven a sorted array and a target value, return the index if the target is foun...
易错点:if(needle.size()==0)return 0;
QuestionGiven an array and a value, remove all instances of that value in-place and ret...
Question:Given a sorted array, remove the duplicates in-place such that each element ap...
first attempt improved 2nd improved
third attempt: 易错点:检查vector是否为空i的增长是+1还是+2
first attempt
first attempt
first attempt second attempt