만족은 하되 안주하지는 말자

기록해야 기억한다

프로그래밍/leetcode 7

[leetcode] Smallest String With A Given Numeric Value

문제 https://leetcode.com/problems/smallest-string-with-a-given-numeric-value/ Smallest String With A Given Numeric Value - 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 내 풀이 class Solution { public String getSmallestString(int n, int k) { int remain = k - n; char[] array = new cha..

[leetcode] 1007. Minimum Domino Rotations For Equal Row

문제 https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/ Minimum Domino Rotations For Equal Row - 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 내 풀이 import java.util.Arrays; class Solution { public int minDominoRotations(int[] tops, int[] bottoms) { int[] rotation..