본문 바로가기

공부이야기/Algorithm11

[LeetCode][Stack] 20. Vali Parentheses 문제 링크 https://leetcode.com/problems/valid-parentheses/ Valid Parentheses - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brac.. 2022. 9. 3.
[LeetCode][DFS|BFS] 130. Surrounded Regions 문제 링크 https://leetcode.com/problems/surrounded-regions/ Surrounded Regions - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given an m x n matrix board containing 'X' and 'O', capture all regions that are 4-directionally surrounded by 'X'. A region is captured by flipping all 'O's.. 2022. 4. 7.
[LeetCode][DFS|BFS] 1654. Minimum Jumps to Reach Home 문제 링크 https://leetcode.com/problems/minimum-jumps-to-reach-home/ Minimum Jumps to Reach Home - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com A certain bug's home is on the x-axis at position x. Help them get there from position 0. The bug jumps according to the following rules: I.. 2021. 11. 21.
[LeetCode][Greedy] 11. Container With Most Water 문제 링크 https://leetcode.com/problems/container-with-most-water/ Container With Most Water - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 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 t.. 2021. 11. 19.