💡 LeetCode 94 - Binary Tree Inorder Traversal
문제 Given the root of a binary tree, return the inorder traversal of its nodes’ values. 입출력 예제 ✅ 예제 1 Input: root = [1,null,2,3] Output: [1,3,2] ✅ 예제 2 Input: root = [1,2,3,4,5,null,8,null,...
문제 Given the root of a binary tree, return the inorder traversal of its nodes’ values. 입출력 예제 ✅ 예제 1 Input: root = [1,null,2,3] Output: [1,3,2] ✅ 예제 2 Input: root = [1,2,3,4,5,null,8,null,...
문제 You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively. Merge nums1...
📘 『소플의 처음 만난 리액트』를 읽고 정리한 글입니다. 조건부 렌더링이란? 조건에 따라 렌더링이 달라지는 걸 의미한다. 여기서 조건은 프로그래밍 언어에서 보통 일컫는 조건문을 의미한다. Inline 조건이란? 조건문을 코드 안에 집어넣는 것을 의미한다. ✅ Inline-if function Mailbox(props) { co...
P6Spy 도입 근거 코드에서 DB 접근 시 SQL문이 예상대로 실행되는지 확인하기 위함 WHERE 조건에 예상한 값이 들어갔는지 Lazy Loading이 예상치 않게 여러 번 발생했는지(N+1) 특정 조회가 너무 느린 건 아닌지 의존성 주입 /* p6spy */ implementatio...
문제 Given the head of a sorted linked list, delete all duplicates such that each element appears only once. Return the linked list sorted as well. 입출력 예제 ✅ 예제 1 Input: head = [1,1,2] Output...
문제 You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In howmany distinct ways can you climb to the top? 입출력 예제 ✅ 예제 1 Input: n = 2...
문제 Given a non-negative integer x, return the square root of x rounded down to the nearest integer. The returned integer should be non-negative as well. You must not use any built-in exponent...
문제 Given two binary strings a and b, return their sum as a binary string. 입출력 예제 ✅ 예제 1 Input: a = "11", b = "1" Output: "100" ✅ 예제 2 Input: a = "1010", b = "1011" Output: "10101" 제약조건 ...
문제 You are given a large integer represented as an integer array digits, where each digits[i] is the ith digit of the integer. The digits are ordered from most significant to least significant ...
문제 Given a string s consisting of words and spaces, return the length of the last word in the string. A word is a maximal substring consisting of non-space characters only. 입출력 예제 ✅ 예제 1 Input...