🌓

leetcode : Combination Sum II

runtime 0 ms, beats 100% of cpp submissions
O(2^n) solution with explanation

tags: backtracking

Read More

leetcode : Combination Sum

runtime 3 ms, beats 98.16% of cpp submissions
O(2^k) solution with explanation

tags: backtracking

Read More

leetcode : Count and Say

runtime 0 ms, beats 100% of cpp submissions
O(4^(n/3)) solution with explanation

tags: simulation

Read More

leetcode : Valid Sudoku

runtime 15 ms, beats 98.64% of cpp submissions
O(n^2) solution with explanation

tags: none

Read More

leetcode : Search Insert Position

runtime 0 ms, beats 100% of cpp submissions
O(log(n)) solution with explanation

tags: binary search

Read More

leetcode : Find First and Last Position of Element in Sorted Array

runtime 4 ms, beats 97.07% of cpp submissions
O(log(n)) solution with explanation

tags: binary search

Read More

leetcode : Longest Valid Parentheses

runtime 0 ms, beats 100% of cpp submissions
O(n) solution with explanation

tags: stack

Read More

leetcode : Interleaving String

runtime 0 ms, beats 100% of cpp submissions
O(mn) solution with explanation

tags: recursion, dp

Read More

2022/8/26

2022/8/26 紀錄

Read More

leetcode : Substring with Concatenation of All Words

runtime 93 ms, beats 86.55% of cpp submissions
O(a+nb) solution with explanation

tags: sliding window, hash table

Read More