Stack
-
2021-02-05] Simplify Path카테고리 없음 2021. 2. 5. 23:54
오늘의 문제: leetcode.com/explore/challenge/card/february-leetcoding-challenge-2021/584/week-1-february-1st-february-7th/3629/ 오늘은 Easy한 문제인 것 같다. linux를 사용하는 개발자라면 당연히 봤을 directory path 문제이다. 예제를 보며 이해해 보자. 입력값으로 string 변수 path가 주어지고, 결과값으로 저 path로 인해 실제 현재의 위치 값을 반환하는 문제이다. linux system을 사용하지 않는 사람이라면, '..' , '.' 에 대해서 생소할 것이다. linux에서는 상대적인 경로로 현재 위치를 '.'로 상위 directory 위치를 '..'로 표현한다. 예제 4번을 direc..
-
2021-01-21] Find the Most Competitive SubsequenceIT/자기계발 ( Leetcode ) 2021. 1. 22. 01:16
오늘의 문제: leetcode.com/explore/challenge/card/january-leetcoding-challenge-2021/581/week-3-january-15th-january-21st/3611/ Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com 문제의 난이도는 Medium인데 나에겐 왤케 어려운지.. 문제를 풀려고만 하지말고, 알고리..