본문 바로가기

전체 글

(2344)
(C++, Rust) - LeetCode (easy) 905. Sort Array By Parity https://leetcode.com/problems/sort-array-by-parity/description/ Sort Array By Parity - LeetCode Can you solve this real interview question? Sort Array By Parity - Given an integer array nums, move all the even integers at the beginning of the array followed by all the odd integers. Return any array that satisfies this condition. Example 1: Input: leetcode.com 자료구조를 사용해보는 문제였습니다. 📕 풀이방법 📔 입력 및 초기..
(C++, Rust) - LeetCode (easy) 897. Increasing Order Search Tree https://leetcode.com/problems/increasing-order-search-tree/description/ Increasing Order Search Tree - LeetCode Can you solve this real interview question? Increasing Order Search Tree - Given the root of a binary search tree, rearrange the tree in in-order so that the leftmost node in the tree is now the root of the tree, and every node has no left child and only o leetcode.com tree 순회 문제였습니다. ..
(C++, Rust) - LeetCode (easy) 896. Monotonic Array https://leetcode.com/problems/monotonic-array/description/ Monotonic Array - LeetCode Can you solve this real interview question? Monotonic Array - An array is monotonic if it is either monotone increasing or monotone decreasing. An array nums is monotone increasing if for all i
(C++, Rust) - LeetCode (easy) 892. Surface Area of 3D Shapes https://leetcode.com/problems/surface-area-of-3d-shapes/description/ Surface Area of 3D Shapes - LeetCode Can you solve this real interview question? Surface Area of 3D Shapes - You are given an n x n grid where you have placed some 1 x 1 x 1 cubes. Each value v = grid[i][j] represents a tower of v cubes placed on top of cell (i, j). After placing these cubes, leetcode.com 공간지각능력 문제였습니다? 📕 풀이방법 ..
(C++, Rust) - LeetCode (easy) 222. Count Complete Tree Nodes https://leetcode.com/problems/fair-candy-swap/description/ Fair Candy Swap - LeetCode Can you solve this real interview question? Fair Candy Swap - Alice and Bob have a different total number of candies. You are given two integer arrays aliceSizes and bobSizes where aliceSizes[i] is the number of candies of the ith box of candy that Alice h leetcode.com 이분탐색 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 1. alice 가 ..
(C++) - LeetCode (easy) 222. Count Complete Tree Nodes https://leetcode.com/problems/count-complete-tree-nodes/description/ Count Complete Tree Nodes - LeetCode Can you solve this real interview question? Count Complete Tree Nodes - Given the root of a complete binary tree, return the number of the nodes in the tree. According to Wikipedia [http://en.wikipedia.org/wiki/Binary_tree#Types_of_binary_trees], every lev leetcode.com 재귀를 이용한 tree 순회 문제였습니다..
(C++) - LeetCode (easy) 884. Uncommon Words from Two Sentences https://leetcode.com/problems/uncommon-words-from-two-sentences/description/ Uncommon Words from Two Sentences - LeetCode Can you solve this real interview question? Uncommon Words from Two Sentences - A sentence is a string of single-space separated words where each word consists only of lowercase letters. A word is uncommon if it appears exactly once in one of the sentences leetcode.com 자료구조를 ..
(C++) - LeetCode (easy) 696. Count Binary Substrings https://leetcode.com/problems/count-binary-substrings/description/ Count Binary Substrings - LeetCode Can you solve this real interview question? Count Binary Substrings - Given a binary string s, return the number of non-empty substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in these substrings are grouped consecutively leetcode.com 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초..