思元的開發筆記

關於 web service, unity, blogger 等軟體工程筆記

顯示具有 LeetCode 標籤的文章。 顯示所有文章

LeetCode #84 Largest Rectangle in Histogram

Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of larges...

LeetCode #42 Trapping Rain Water

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to ...

LeetCode #37 Sudoku Solver

Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character ‘.’. You may assume ...

LeetCode #32 Longest Valid Parentheses

Given a string containing just the characters '(' and ')' , find the length of the longest valid (well-formed) pare...

LeetCode #25 Reverse Nodes in k-Group

Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.

LeetCode #23 Merge k Sorted Lists

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 在這次問題中,嘗試使用 Go 來實作三種不同的解題方式,總結其複雜...

LeetCode #10 Regular Expression Matching

'.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the e...

LeetCode #6 ZigZag Conversion

記錄 LeetCode #6 ZigZag 思考解法的過程筆記,並使用 Go 來實作。

LeetCode #1 #167 #653 Two Sum

最近再嘗試使用 Go 來解 LeetCode 上的題目,剛好解完這三個非常相似的簡單題目,因此寫下筆記紀錄。