You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.Given n, find the total number
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).Binar
Day3 Prison Cells After N Days 문제 There are 8 prison cells in a row, and each cell is either occupied or vacant. Each day, whether the cell is occupi
Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example:Note: is typically t
The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Given two integers x and y, calcula
Given a non-empty array of digits representing a non-negative integer, plus one to the integer.The digits are stored such that the most significant di
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water.Grid cells are connected horizontally/ver
Day 8 3Sum 문제 Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array whi