Home
My Technical Diary
Cancel

LeetCode - 1022. Sum of Root To Leaf Binary Numbers

1022. Sum of Root To Leaf Binary Numbers - esay 문제 Given a binary tree, each node has value 0 or 1. Each root-to-leaf path represents a binary number starting with the most significant bit. F...

Programmers - 영어 끝말잇기

영어 끝말잇기 - lv.2 문제 1부터 n까지 번호가 붙어있는 n명의 사람이 영어 끝말잇기를 하고 있습니다. 영어 끝말잇기는 다음과 같은 규칙으로 진행됩니다. 1번부터 번호 순서대로 한 사람씩 차례대로 단어를 말합니다. 마지막 사람이 단어를 말한 다음에는 다시 1번부터 시작합니다. 앞사람이 말한 단어의 마지막 문자로 시작하는 단어...

Programmers - 피보나치 수

피보나치 수 - lv.2 문제 피보나치 수는 F(0) = 0, F(1) = 1일 때, 1 이상의 n에 대하여 F(n) = F(n-1) + F(n-2) 가 적용되는 수 입니다. 예를들어 F(2) = F(0) + F(1) = 0 + 1 = 1 F(3) = F(1) + F(2) = 1 + 1 = 2 F(4) = F(2) + F(3) ...

Programmers - 튜플

튜플 - lv.2 문제 셀수있는 수량의 순서있는 열거 또는 어떤 순서를 따르는 요소들의 모음을 튜플(tuple)이라고 합니다. n개의 요소를 가진 튜플을 n-튜플(n-tuple)이라고 하며, 다음과 같이 표현할 수 있습니다. (a1, a2, a3, …, an) 튜플은 다음과 같은 성질을 가지고 있습니다. 중복된 원소가 있을 수...

Programmers - 크레인 인형뽑기 게임

크레인 인형뽑기 게임 - lv.3 문제 게임개발자인 “죠르디”는 크레인 인형뽑기 기계를 모바일 게임으로 만들려고 합니다. “죠르디”는 게임의 재미를 높이기 위해 화면 구성과 규칙을 다음과 같이 게임 로직에 반영하려고 합니다. 게임 화면은 “1 x 1” 크기의 칸들로 이루어진 “N x N” 크기의 정사각 격자이며 위쪽에는 크레인이 있고 오른...

LeetCode - 674. Longest Continuous Increasing Subsequence

674. Longest Continuous Increasing Subsequence - easy 문제 Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). 제한사항 Length of the ar...

LeetCode - 1160. Find Words That Can Be Formed by Characters

1160. Find Words That Can Be Formed by Characters - easy 문제 You are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each char...

LeetCode - 110. Balanced Binary Tree

110. Balanced Binary Tree - easy 문제 Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the left ...

LeetCode - 171. Excel Sheet Column Number

171. Excel Sheet Column Number - easy 문제 Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3 ....

LeetCode - 125. Valid Palindrome

125. Valid Palindrome - easy 문제 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, we define e...