Jihao's Blog

Coding & Art

Home Archives
2018-01-08
LeetCode►Math

LeetCode-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 linear runtime complexity. Could you implement it without using extra memory?

Read More

  • leetcode
2018-01-08
LeetCode►Data Structure

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?

Read More

  • leetcode
2018-01-04
LeetCode►Math

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.

Read More

  • leetcode
2018-01-01
LeetCode►String

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?

Read More

  • leetcode
2018-01-01
Arts

Drawing of some old avatar pictures

So the other day, I had this idea to redraw the avatar image of older version QQ.

Read More

  • drawings
2017-12-31
Diary

Looking forward to 2018

Well, hope I can find a job.

  • random
« Prev1…456

Categories

  • Arts
  • Diary
  • LeetCode
    • Algorithm
    • Array
    • Binary Search
    • Bit Manipulation
    • DP
    • Data Structure
    • Design
    • Math
    • String

Tags

  • 2 pointers
  • array
  • backtracking
  • binary search
  • bit manipulation
  • drawings
  • leetcode
  • random
  • slidewindow
  • stack
  • tree
© 2018 Jihao Duan
Powered by Hexo
Home Archives