The Travels of Marco Cai

  • Home

  • About

  • Tags

  • Archives

  • Search

[LeetCode] Challenge log 811

Posted on 2018-04-18 |
811. Subdomain Visit Count

Straight forward. Use String.split() and collections.Counter()to prettify code.

Read more »

[LeetCode] Challenge log 344

Posted on 2018-04-15 | Edited on 2018-04-25 |
.
  1. pythonic s[::-1]
  2. recursive (memory limit exceed)
  3. swithch fisrt and last
Read more »

[SQL] [LeetCode] Challenge log 177

Posted on 2018-04-13 | Edited on 2018-04-16 |
177. Nth Highest Salary

Use limit, offset, order by together

Read more »

[SQL] [LeetCode] Challenge log 176

Posted on 2018-04-13 | Edited on 2018-04-16 |
176. Second Highest Salary

Use limit, offset, order by together

Read more »

[SQL] [LeetCode] Challenge log 185

Posted on 2018-04-13 | Edited on 2018-04-16 |
185. Department Top Three Salaries

Use limit, offset, order by together

Read more »

[SQL] [LeetCode] Challenge log 595

Posted on 2018-04-12 |
595. Big Countries

Union is Faster then OR!

Read more »

[LeetCode] Challenge log 728

Posted on 2018-04-10 |
728. Self Dividing Numbers

https://leetcode.com/problems/self-dividing-numbers/description/

Nothing worth mentioned.

Read more »

[LeetCode] Challenge log 814

Posted on 2018-04-10 |
814. Binary Tree Pruning

https://leetcode.com/problems/binary-tree-pruning/description/

Another DFS problem.

Read more »

[SQL] [LeetCode] Challenge log 184

Posted on 2018-04-09 | Edited on 2018-04-12 |
184. Department Highest Salary

Review usage of in, exists

Read more »

[LeetCode] Challenge log 617

Posted on 2018-04-09 | Edited on 2018-04-10 |
617. Merge Two BInary Trees

https://leetcode.com/problems/merge-two-binary-trees/description/

DFS Problem. Recursive Solution.

Read more »
1…8910…13
Mingxiang Cai

Mingxiang Cai

A learner, a hobbyist.

128 posts
56 tags
© 2019 Mingxiang Cai
0%