Minimizing Difference
https://codeforces.com/contest/1244/problem/E
More …https://codeforces.com/contest/1244/problem/E
More …https://leetcode.com/problems/lru-cache/
More …Implementing a find-grained locking mechanism is a bit hard in data structures such as linked list and tree. The main reason is dynamic allocation of nodes. We can utilize a locking technique called hand-over-hand locking. The main idea is to lock two mutexes simultaneously.
More …In this post, we will conceptually implement four basic synchronization primitives in C: (1) spinlock, (2) semaphore and (3) condition variables. The codes are somewhat like pseudo code, and I will not actually run it.
More …This is a full code of Hello Triangle from the tutorial “Learn OpenGL” 1.
More …