일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- counting elements
- spring security
- algorithm
- 2018 KAKAO BLIND RECRUITMENT
- codility
- Spring
- springboot
- java
- 소수
- brute force
- 백준
- HTTP
- 2981
- BFS
- API
- javascript
- 라이브템플릿
- 파이썬
- 탐욕법
- 알고리즘
- 코딩테스트
- Python
- 문자열
- Dijkstra
- Greedy
- applicationeventpublisher
- 최단경로
- 프로그래머스
- error
- beandefinitionstoreexception
Archives
- Today
- Total
목록Arrays (1)
Altiora Petamus

OddOccurrencesInArray coding task - Learn to Code - Codility Find value that occurs in odd number of elements. app.codility.com 🤔생각해보기 Arrays 관련 문제다보니 여러 풀이 방법이 있을 것이다. 그 중에 필자가 가장 먼저 떠오른 방법은 문제의 마지막에 적혀있는 조건과 관련이 있다. all but one of the values in A occur an even number of times. "A 의 값 중 하나를 제외한 모든 값은 짝수로만 발생한다" 단 하나를 제외한 모든 값이 짝수로 발생한다면, 홀수로 발생하는 그 하나를 집어낼 수 있으면 되는 것 아닌가? 개수를 세는 알고리즘은 여러가지가 있지만..
1day-1algorithm
2021. 6. 18. 14:28