leetcode.com/problems/first-bad-version/ First Bad Version - 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 문제 마지막 상품이 품질 체크에 실패했다. 이전 버전에 기반해 새로 개발되기 때문에 실패한 버전 이후로 나온 모든 버전은 동작하지않는다. n개의 버전이 있다고 가정하고 첫번째 실패한 버전을 찾아라. bool isBadVersion()이라는 실패한 버전인지 아닌지 확인 할 수 있는 api가 제공된다. api 호..
leetcode.com/problems/intersection-of-two-arrays-ii/ Intersection of Two Arrays II - 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 문제 num1, num2 숫자 배열이 주어진다. 교집합인 요소들의 배열을 리턴하라. 어떻게 풀까 for문 두개를 사용해 문제를 풀었다. 하지만 이렇게 푸는게 좋지않은듯.. 구현 class Solution { public int[] intersect(int[] nums..
leetcode.com/problems/two-sum-ii-input-array-is-sorted/ Two Sum II - Input array is sorted - 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 문제 오름차순의 정수 배열이 주어진다. 합해서 target 숫자가 되는 두개의 숫자를 찾아서 인덱스를 리턴해라. 단, 항상 하나의 답이 있으며 같은 인덱스를 두번 더해선 안된다. 어떻게 풀까 for문 두개를 사용한다. 첫번째 포문 안에선 순서대로 val..
leetcode.com/problems/search-insert-position/ Search Insert 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 문제 독립된 정수가 들어있는 정렬된 배열과 타겟 값이 주어진다. 배열에서 타겟 값의 인덱스를 구하시오. 없다면 들어갈때 있어야하는 인덱스를 리턴하시오. 어떻게 풀까 binary search 방식을 사용하자 leftIdx와 rightIdx를 사용하여 middleIdx를 구하고 타겟 값으로 향하..
- Total
- Today
- Yesterday
- java
- gradle빌드
- 릿코드
- config.xml
- 도커
- leetcode 350
- 1491
- leetcode 35
- 언제까지할수있을까
- xmlpullparserexceptioin
- elastic ip
- leetcode 167
- Leetcode717
- leetcode 349
- 티스토리코드작성
- binary search
- 백준
- 2447
- Jenkins
- Github
- binarySearch
- 별찍기-10
- LeetCode
- webhook
- ngrok
- leetcode 278
- leetcode 204
- leetcode 69
- 뒤늦은 1년 후기
- Docker
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |