CS기초 23

LeetCode 1217 (Easy) Minimum Cost to Move Chips to The Same Position

출처: leetcode.com/problems/minimum-cost-to-move-chips-to-the-same-position/ Minimum Cost to Move Chips to The Same Position - LeetCode 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 문제 한글 번역은 아래 더보기를 클릭해주세요. 더보기 i번째 칩의 위치가 position[i]를 나타내는 n개의 칩이 있다. 모든 칩을 같은 위치로 옮겨야 한다. 한 번에, i번째 칩의 위치를 p..

LeetCode 1725 (Easy) Number Of Rectangles That Can Form The Largest Square

출처: leetcode.com/problems/number-of-rectangles-that-can-form-the-largest-square/ 문제 한글 번역은 아래 더보기를 클릭해주세요. 더보기 사각형들의 배열이 주어지는 데, 여기서 rectangles[i] = [li, wi]는 길이가 li이고 너비가 wi인 i번째 사각형을 의미한다. i번째 사각형을 잘라서 한 변의 길이가 k인 정사각형을 만들 수 있다. 이 때 k는 k

LeetCode 1221 (Easy) Split a String in Balanced Strings

출처: leetcode.com/problems/split-a-string-in-balanced-strings/ Split a String in Balanced Strings - LeetCode 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 문제 한글 번역은 아래 더보기를 클릭해주세요. 더보기 균형잡힌 문자열은 같은 수의 'L'과 'R' 문자를 갖고 있는 문자열이다. 균형잡힌 문자열 한 개가 주어졌을 때, 균형잡힌 문자열이 가장 많이 생기도록 쪼개라. 쪼개진 균형잡힌 문자열의 최..