[LeetCode/Kotlin]Medium - 22. Generate Parentheses
·
LeetCode/Kotlin | Medium
Generate Parentheses - LeetCode Can you solve this real interview question? Generate Parentheses - Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Example 1: Input: n = 3 Output: ["((()))","(()())","(())()","()(())","()()()"] Exa leetcode.com 문제 Given n pairs of parentheses, write a function to generate all combinations of well-formed paren..
[LeetCode/Kotlin]Medium - 1027. Longest Arithmetic Subsequence
·
LeetCode/Kotlin | Medium
Longest Arithmetic Subsequence - LeetCode Can you solve this real interview question? Longest Arithmetic Subsequence - Given an array nums of integers, return the length of the longest arithmetic subsequence in nums. Note that: * A subsequence is an array that can be derived from another array by leetcode.com 문제 Given an array nums of integers, return the length of the longest arithmetic subsequ..
[LeetCode/Kotlin]Easy - 58. Length of Last Word
·
LeetCode/Kotlin | Easy
Length of Last Word - LeetCode Can you solve this real interview question? Length of Last Word - Given a string s consisting of words and spaces, return the length of the last word in the string. A word is a maximal substring consisting of non-space characters only. Example 1: Input: leetcode.com 문제 Given a string s consisting of words and spaces, return the length of the last word in the string..
[LeetCode/Kotlin]Easy - 1356. Sort Integers by The Number of 1 Bits
·
LeetCode/Kotlin | Easy
Sort Integers by The Number of 1 Bits - LeetCode Can you solve this real interview question? Sort Integers by The Number of 1 Bits - You are given an integer array arr. Sort the integers in the array in ascending order by the number of 1's in their binary representation and in case of two or more integ leetcode.com 문제 You are given an integer array arr. Sort the integers in the array in ascendin..
[LeetCode/Kotlin]Easy - 28. Find the Index of the First Occurrence in a String
·
LeetCode/Kotlin | Easy
Find the Index of the First Occurrence in a String - LeetCode Can you solve this real interview question? Find the Index of the First Occurrence in a String - Given two strings needle and haystack, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: I leetcode.com 문제 Given two strings needle and haystack, return the index of the fir..
뿌꾸 빵
개발새발 안드로그