알고리즘22 [leetcode/JS] 94. Binary Tree Inorder Traversal / Javascript 문제 링크 https://leetcode.com/problems/binary-tree-inorder-traversal/ Binary Tree Inorder Traversal - 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 기억하면 좋을 것 / 소감 DFS 탐색 순서 Inorder - (Left - Root - Right) Preorder - ( Root - Left - Right) Postorder - ( Left - Right - Root) JS에서 0, n.. 2022. 5. 2. [leetcode] 20. Valid Parentheses / JS Javascript 코드 , 풀이 문제 제목 Valid 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 코드 /** * @param {string} s * @return {boolean} */ var isValid = function(s) { let A = [s[s.length-1]]; for (let i =s.length-2; i>=0; i-.. 2022. 4. 6. 이전 1 ··· 3 4 5 6 다음