일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 백준
- 카드 짝 맞추기
- 셔틀버스
- 백트래킹
- Java
- 알고리즘
- Heap
- 소셜 광고
- 332
- reconstruct itinerary
- 프로그래머스
- 주사위 고르기
- SW아카데미
- n+1카드게임
- PCCP
- 847
- 2251
- BFS
- 미로 탈출 명령어
- 자바
- 양궁대회
- leetcode
- Eliminate Maximum Number of Monsters
- 리트코드
- 주사위고르기
- DFS
- Number of Flowers in Full Bloom
- Shortest Path Visiting All Nodes
- 표편집
- 구현
Archives
- Today
- Total
목록Heap (1)
알고리즘이 재미있다
[LeetCode] 2251 - Number of Flowers in Full Bloom(java)
https://leetcode.com/problems/number-of-flowers-in-full-bloom/ LeetCode - The World's Leading Online Programming Learning Platform 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 현재의 people 위치에서 꽃이 몇 개가 있는지를 체크하는 문제이다. 매우 단순한 방법으로 브루트포스를 생각할 수 있지만, 시간복잡도 때문에 우선순위 큐를 활용하여 풀 수 있었다. 핵심 문제의 요구 ..
카테고리 없음
2023. 10. 11. 13:02