- Today
- Total
목록스터디 (246)
작심삼일
문제 링크: https://leetcode.com/problems/count-sorted-vowel-strings/ 문제 Given an integer n, return the number of strings of length n that consist only of vowels (a, e, i, o, u) and are lexicographically sorted. A string s is lexicographically sorted if for all valid i, s[i] is the same as or comes before s[i+1] in the alphabet. 조건 1
문제 링크: https://leetcode.com/problems/combination-sum-iii/ 문제 Find all valid combinations of k numbers that sum up to n such that the following conditions are true: Only numbers 1 through 9 are used. Each number is used at most once. Return a list of all possible valid combinations. The list must not contain the same combination twice, and the combinations may be returned in any order. 조건 2
문제 링크: https://leetcode.com/problems/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 digit to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters. 조건 0
문제 링크: https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/ 문제 You are given a string s and an integer k, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them, causing the left and the right side of the deleted substring to concatenate together. We repeatedly make k duplicate removals on s until we no longer can. Return the final ..
문제 링크: https://leetcode.com/problems/max-number-of-k-sum-pairs/ 문제 You are given an integer array nums and an integer k. In one operation, you can pick two numbers from the array whose sum equals k and remove them from the array. Return the maximum number of operations you can perform on the array. 조건 1
문제 링크: https://leetcode.com/problems/shortest-unsorted-continuous-subarray/ 문제 Given an integer array nums, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be sorted in ascending order. Return the shortest such subarray and output its length. 조건 1
문제 링크: https://leetcode.com/problems/sort-array-by-parity/ 문제 Given an integer array nums, move all the even integers at the beginning of the array followed by all the odd integers. Return any array that satisfies this condition. 조건 1
문제 링크: https://leetcode.com/problems/path-with-minimum-effort/ 문제 You are a hiker preparing for an upcoming hike. You are given heights, a 2D array of size rows x columns, where heights[row][col] represents the height of cell (row, col). You are situated in the top-left cell, (0, 0), and you hope to travel to the bottom-right cell, (rows-1, columns-1) (i.e., 0-indexed). You can move up, down, le..