[Leetcode] 263. Ugly Number - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/ugly-number/description/ Ugly Number - 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 문제 An ugly number is a positive integer whose prime factors are limited to 2, 3, and 5. Given an integer n, return true if n is an ugly number. Example 1: Input: n =..
[LeetCode] 153. Find Minimum in Rotated Sorted Array - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/ Find Minimum in Rotated Sorted Array - 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 문제 Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,..
[LeetCode] 152. Maximum Product Subarray - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/maximum-product-subarray/ Maximum Product Subarray - 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 문제 Given an integer array nums, find a subarray that has the largest product, and return the product. The test cases are generated so that the answer w..
[LeetCode] 374. Guess Number Higher or Lower - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/guess-number-higher-or-lower/description/ Guess Number Higher or Lower - 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 문제 We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Eve..
[프로그래머스] 옹알이 (2) - Java
·
알고리즘/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/133499 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 문제 문제 설명 머쓱이는 태어난 지 11개월 된 조카를 돌보고 있습니다. 조카는 아직 "aya", "ye", "woo", "ma" 네 가지 발음과 네 가지 발음을 조합해서 만들 수 있는 발음밖에 하지 못하고 연속해서 같은 발음을 하는 것을 어려워합니다. 문자열 배열 babbling이 매개변수로 주어질 때, 머쓱이의 조카가 발음할 수 있는 단어의 개수를 return하도록 solution 함수를 완..
HYOJUN
'자바' 태그의 글 목록 (15 Page)