Heap π What is heap? 1οΈβ£ A Heap is a special Tree-based data structure in which the tree is a complete binary tree. 2οΈβ£ All the nodes of the heap are arranged in a specific order. In Java, Pri...
[Algorithm] Heap
Heap In Java, PriorityQueue can be used as a Heap. Detail Task λ λ§΅κ² in Programmers (Level 2) π Problem https://programmers.co.kr/learn/courses/30/lessons/42626 π The point Use PriorityQu...
[Algorithm] Hash2
Hash HashMap<Key, Value> Task 2. μμ₯ in Programmers (Level 2) π Problem https://programmers.co.kr/learn/courses/30/lessons/42578 π The point Use number of cases ex. If {hat...
[Algorithm] Hash
Hash HashMap(Key, Value) Task μ νλ²νΈ λͺ©λ‘ in Programmers (Level 2) π Problem https://programmers.co.kr/learn/courses/30/lessons/42577 π Answer 1. Use HashMap The point HashMap.containsKey(Str...
[Algorithm] Sort2
Sort Task 2. H-Index in Programmers (Level 2) π Problem https://programmers.co.kr/learn/courses/30/lessons/42747 π Answer 1. Use Arrays.sort() import java.util.Arrays; class Solution { p...