Given an 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 using extra memory?
LeetCode-141 Linked List Cycle
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
LeetCode-69 Sqrt(x)
Implement
int sqrt(int x)
.
Compute and return the square root of x.
x is guaranteed to be a non-negative integer.
LeetCode-186 Reverse words in a string II
Given an input string, reverse the string word by word.
For example,
Given s ="the sky is blue"
,
return"blue is sky the"
.Could you do it in-place without allocating extra space?
Drawing of some old avatar pictures
So the other day, I had this idea to redraw the avatar image of older version QQ.
Looking forward to 2018
Well, hope I can find a job.