[LeetCode] 206. Reverse Linked List - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/reverse-linked-list/description/ Reverse Linked List - 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 the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3,4,5] Output: [5,4,3,2,1] E..
[LeetCode] 226. Invert Binary Tree - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/invert-binary-tree/description/ Invert Binary Tree - 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 the root of a binary tree, invert the tree, and return its root. Example 1: Input: root = [4,2,7,1,3,6,9] Output: [4,7,2,9,6,3,1] Example 2: I..
[LeetCode] 100. Same Tree - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/same-tree/description/ Same Tree - 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 the roots of two binary trees p and q, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ..
[LeetCode] 125. Valid Palindrome - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/valid-palindrome/description/ Valid Palindrome - 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 phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the sa..
[LeetCode] 20. Valid Parentheses - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/valid-parentheses/description/ 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: ..
HYOJUN
'leetcode' 태그의 글 목록 (13 Page)