Skip to content

Instantly share code, notes, and snippets.

View Chuncheonian's full-sized avatar
🎯
Focusing

권동영 Chuncheonian

🎯
Focusing
View GitHub Profile
def performance_time(func, n):
start_time = time.time()
func(random_list(n))
end_time = time.time()
print(end_time - start_time)
import Foundation
struct Heap<T: Comparable> {
private var elements: [T] = []
/// > : Max Heap
/// < : Min Heap
private let priorityFunction: (T, T) -> Bool