전체 글 (2344) 썸네일형 리스트형 (C++) - LeetCode (easy) 883. Projection Area of 3D Shapes https://leetcode.com/problems/projection-area-of-3d-shapes/ Projection Area of 3D Shapes - LeetCode Can you solve this real interview question? Projection Area of 3D Shapes - You are given an n x n grid where we place some 1 x 1 x 1 cubes that are axis-aligned with the x, y, and z axes. Each value v = grid[i][j] represents a tower of v cubes placed on to leetcode.com 공식을 찾아내 구현한 문제였습니다. 📕 풀이방법 📔.. (C++) - LeetCode (easy) 872. Leaf-Similar Trees https://leetcode.com/problems/middle-of-the-linked-list/description/ Middle of the Linked List - LeetCode Can you solve this real interview question? Middle of the Linked List - Given the head of a singly linked list, return the middle node of the linked list. If there are two middle nodes, return the second middle node. Example 1: [https://assets.leetcode. leetcode.com 자료구조에 대한 이해를 토대로 구현한 문제였습.. (C++) - LeetCode (easy) 872. Leaf-Similar Trees https://leetcode.com/problems/leaf-similar-trees/description/ Leaf-Similar Trees - LeetCode Can you solve this real interview question? Leaf-Similar Trees - Consider all the leaves of a binary tree, from left to right order, the values of those leaves form a leaf value sequence. [https://s3-lc-upload.s3.amazonaws.com/uploads/2018/07/16/tree.png leetcode.com tree순회를 구현하는 문제였습니다. 📕 풀이방법 📔 입력 및 초기화.. (C++) - LeetCode (easy) 868. Binary Gap https://leetcode.com/problems/binary-gap/description/ Binary Gap - LeetCode Can you solve this real interview question? Binary Gap - Given a positive integer n, find and return the longest distance between any two adjacent 1's in the binary representation of n. If there are no two adjacent 1's, return 0. Two 1's are adjacent if th leetcode.com 이진법 변환 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 1. 이진법으로 변환해 문자열.. (C++) - LeetCode (easy) 867. Transpose Matrix https://leetcode.com/problems/transpose-matrix/description/ Transpose Matrix - LeetCode Can you solve this real interview question? Transpose Matrix - Given a 2D integer array matrix, return the transpose of matrix. The transpose of a matrix is the matrix flipped over its main diagonal, switching the matrix's row and column indices. [https:// leetcode.com 📕 풀이방법 📔 입력 및 초기화 matrix의 행을 열로 열을 행으로 2.. (C++) - LeetCode (easy) 860. Lemonade Change https://leetcode.com/problems/lemonade-change/description/ Lemonade Change - LeetCode Can you solve this real interview question? Lemonade Change - At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you and order one at a time (in the order specified by bills). Each customer will only buy one lemonade leetcode.com 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 5, 10, 20짜리 지.. (C++) - LeetCode (easy) 859. Buddy Strings https://leetcode.com/problems/buddy-strings/description/ Buddy Strings - LeetCode Can you solve this real interview question? Buddy Strings - Given two strings s and goal, return true if you can swap two letters in s so the result is equal to goal, otherwise, return false. Swapping letters is defined as taking two indices i and j (0-ind leetcode.com 문자열을 다뤄보는 문제였습니다. 📕 풀이방법 📔 풀이과정 여러 경우의 수가 있습니다.. (C++) - LeetCode (easy) 844. Backspace String Compare https://leetcode.com/problems/backspace-string-compare/description/ Backspace String Compare - LeetCode Can you solve this real interview question? Backspace String Compare - Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace character. Note that after backspacing an empty text, the tex leetcode.com 문자열 trim하는 구현 문제였습니다. 📕 .. 이전 1 ··· 67 68 69 70 71 72 73 ··· 293 다음