💡 오늘의 학습 키워드더보기📌 문자열 문제 설명문제 링크 : https://leetcode.com/problems/sort-characters-by-frequency/Given a string s, sort it in decreasing order based on the frequency of the characters. The frequency of a character is the number of times it appears in the string.Return the sorted string. If there are multiple answers, return any of them.제한 사항1. 1 2. s consists of uppercase and lowercase English le..
전체 글
fac, si facis💡 오늘의 학습 키워드더보기📌 배열 문제 설명문제 링크 : https://leetcode.com/problems/minimum-suffix-flips/You are given a 0-indexed binary string target of length n. You have another binary string s of length n that is initially set to all zeros. You want to make s equal to target.In one operation, you can pick an index i where 0 and flip all bits in the inclusive range [i, n - 1]. Flip means changing '0' to '1' a..
💡 오늘의 학습 키워드더보기📌 조합📌 백트래킹 문제 설명문제 링크 : https://leetcode.com/problems/iterator-for-combination/Design the CombinationIterator class:- CombinationIterator(string characters, int combinationLength) Initializes the object with a string characters of sorted distinct lowercase English letters and a number combinationLength as arguments.- next() Returns the next combination of length combinationL..