[Java/Codility]CyclicRotation
- Task description An array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index, and the last element...
[Java/Codility]OddOccurrencesInArray
- Task description A non-empty array A consisting of N integers is given. The array contains an odd number of elements, and each element of the array can be paired...
[Java/Codility]BinaryGap
- Task description A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation...
[Java/LeetCode]1.Two Sum
- 문제설명 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each...
[Java/프로그래머스]H-Index
- 문제설명 H-Index는 과학자의 생산성과 영향력을 나타내는 지표입니다. 어느 과학자의 H-Index를 나타내는 값인 h를 구하려고 합니다. 위키백과1에 따르면, H-Index는 다음과 같이 구합니다. 어떤 과학자가 발표한 논문 n편 중, h번 이상...