Coding Blog
  • Home
  • Archives
  • Tags
  • Categories
Coding Blog
  • Home
  • Archives
  • Tags
  • Categories

Leetcode 704 Binary Search

2021-11-09
Leetcode
83 words 1 min read

704. Binary Search

Read more...

Leetcode 367 Valid perfect square

2021-11-09
Leetcode
106 words 1 min read

[367. Valid perfect square]](https://leetcode.com/problems/valid-perfect-square/)

Read more...

Leetcode 912 Sort an Array

2021-11-09
Leetcode
375 words 1 min read

912. Sort an Array

數值範圍不大的話,可以直接 counting sort!

Heap sort 跟 merge sort 之後補上。

Read more...

Leetcode 1218 Longest Arithmetic Subsequence of Given Difference

2021-11-08
Leetcode
133 words 1 min read

1218. Longest Arithmetic Subsequence of Given Difference

The special case is $difference == 0$.

Depends on your implementation, the time for the init to happen might need to be carefully thought of.

Read more...

Leetcode 611 Valid Triangle Number

2021-11-08
Leetcode
225 words 2 mins read

611. Valid Triangle Number

Read more...
Next
Powered by Hugo | Theme - Even © 2019 - 2021Chun-Hung Tseng