Home
My Technical Diary
Cancel

LeetCode - 581. Shortest Unsorted Continuous Subarray

581. Shortest Unsorted Continuous Subarray - Medium 문제 Given an integer array nums, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the who...

LeetCode - 856. Score of Parentheses

856. Score of Parentheses - Medium 문제 Given a balanced parentheses string S, compute the score of the string based on the following rule: () has score 1 AB has score A + B, where A and B ...

LeetCode - 524. Longest Word in Dictionary through Deleting

524. Longest Word in Dictionary through Deleting - Medium 문제 Given a string and a string dictionary, find the longest string in the dictionary that can be formed by deleting some characters of ...

LeetCode - 413. Arithmetic Slices

413. Arithmetic Slices - Medium 문제 A sequence of numbers is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same. ...

LeetCode - 11. Container With Most Water

11. Container With Most Water - Medium 문제 Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoin...

LeetCode - 784. Letter Case Permutation

784. Letter Case Permutation - Medium 문제 Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible strin...

LeetCode - 1337. The K Weakest Rows in a Matrix

1337. The K Weakest Rows in a Matrix - easy 문제 Given a m * n matrix mat of ones (representing soldiers) and zeros (representing civilians), return the indexes of the k weakest rows in the matri...

LeetCode - 284. Peeking Iterator

284. Peeking Iterator - medium 문제 Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation – it essentially...

LeetCode - 71. Simplify Path

71. Simplify Path - medium 문제 Given a string path, which is an absolute path (starting with a slash ‘/’) to a file or directory in a Unix-style file system, convert it to the simplified canonic...

LeetCode - 594. Longest Harmonious Subsequence

594. Longest Harmonious Subsequence - easy 문제 We define a harmonious array as an array where the difference between its maximum value and its minimum value is exactly 1. Given an integer array...