[LeetCode/Kotlin]Easy - 228. Summary Ranges
·
LeetCode/Kotlin | Easy
LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 You are given a sorted unique integer array nums. A range [a,b] is the set of all integers from a to b (inclusive). Return the smallest sorted list of ranges that cover all..
[LeetCode/Kotlin]Easy - 704. Binary Search
·
LeetCode/Kotlin | Easy
LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then return its inde..
[LeetCode/Kotlin]Easy - 463. Island Perimeter
·
LeetCode/Kotlin | Easy
LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells are connected horizontally/vertically (..
[LeetCode/Kotlin]Easy - 345. Reverse Vowels of a String
·
LeetCode/Kotlin | Easy
LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given a string s, reverse only all the vowels in the string and return it. The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both lower and upper cases, mo..
[LeetCode/Kotlin]Easy - 441. Arranging Coins
·
LeetCode/Kotlin | Easy
LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 You have n coins and you want to build a staircase with these coins. The staircase consists of k rows where the ith row has exactly i coins. The last row of the staircase m..
[LeetCode/Kotlin]Medium - 39. Combination Sum
·
LeetCode/Kotlin | Medium
Combination Sum - LeetCode Can you solve this real interview question? Combination Sum - Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the comb leetcode.com 문제 Given an array of distinct integers candidates and a target integer target, return a list of all u..
[LeetCode/Kotlin]Easy - 141. Linked List Cycle
·
LeetCode/Kotlin | Easy
Linked List Cycle - LeetCode Can you solve this real interview question? Linked List Cycle - Given head, the head of a linked list, determine if the linked list has a cycle in it. There is a cycle in a linked list if there is some node in the list that can be reached again by continuo leetcode.com 문제 Given head, the head of a linked list, determine if the linked list has a cycle in it. There is ..
[LeetCode/Kotlin]Medium - 1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
·
LeetCode/Kotlin | Medium
Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold - LeetCode Can you solve this real interview question? Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold - Given an array of integers arr and two integers k and threshold, return the number of sub-arrays of size k and average greater than leetcode.com 문제 Given an array of integers arr and tw..
[LeetCode/Kotlin]Medium - 518. Coin Change II
·
LeetCode/Kotlin | Medium
Coin Change II - LeetCode Can you solve this real interview question? Coin Change II - You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Return the number of combinations that make up that leetcode.com 문제 You are given an integer array coins representing coins of different denominations and an integer am..
[LeetCode/Kotlin]Medium - 36. Valid Sudoku
·
LeetCode/Kotlin | Medium
Valid Sudoku - LeetCode Can you solve this real interview question? Valid Sudoku - Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: 1. Each row must contain the digits 1-9 without repetition. 2. Each c leetcode.com 문제 Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the foll..
[LeetCode/Kotlin]Medium - 53. Maximum Subarray
·
LeetCode/Kotlin | Medium
Maximum Subarray - LeetCode Can you solve this real interview question? Maximum Subarray - Given an integer array nums, find the subarray with the largest sum, and return its sum. Example 1: Input: nums = [-2,1,-3,4,-1,2,1,-5,4] Output: 6 Explanation: The subarray [4,-1,2,1] has t leetcode.com 문제 Given an integer array nums, find the subarray with the largest sum, and return its sum. Example 1: ..
[LeetCode/Kotlin]Medium - 200. Number of Islands
·
LeetCode/Kotlin | Medium
Number of Islands - LeetCode Can you solve this real interview question? Number of Islands - Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. An island is surrounded by water and is formed by connecting adjacent l leetcode.com 문제 Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), retur..
[LeetCode/Kotlin]Medium - 926. Flip String to Monotone Increasing
·
LeetCode/Kotlin | Medium
Flip String to Monotone Increasing - LeetCode Can you solve this real interview question? Flip String to Monotone Increasing - A binary string is monotone increasing if it consists of some number of 0's (possibly none), followed by some number of 1's (also possibly none). You are given a binary string leetcode.com Problem A binary string is monotone increasing if it consists of some number of 0'..
[LeetCode/Kotlin]Medium - 17. Letter Combinations of a Phone Number
·
LeetCode/Kotlin | Medium
Letter Combinations of a Phone Number - LeetCode Can you solve this real interview question? Letter Combinations of a Phone Number - Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. A mapping of d leetcode.com Problem Given a string containing digits from 2-9 inclusive, return all possibl..
[LeetCode/Kotlin]Easy - 392. Is Subsequence
·
LeetCode/Kotlin | Easy
Is Subsequence - LeetCode Can you solve this real interview question? Is Subsequence - Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequence of a string is a new string that is formed from the original string by deleting some (can be n leetcode.com 문제 Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequenc..
뿌꾸 빵
'LeetCode' 카테고리의 글 목록 (2 Page)