Monotonic Deque Use: Sliding window max/min in O(1) per step Invariant Elements in the deque are monotonic (duplicates allowed) Store up to k elements in the deque for window size k New elements go to back; expired elements go out from front Idea Maximum in window = keep the largest elements in the ...
This is basically a culmination of my experiences so far in state management in Flutter ( where the practices are broadly applicable to any other system as well ).
mutable and const in C++ A mutable member variable is allowed to be reassigned and modified even if the object is const or if the function modifying it is const.
vDSO (virtual dynamic shared object) is a virtual file provided by kernel that maps some syscalls to userspace so that they can be called without a context switch.
Refer this All of this is mostly in practice only relevant to varargs but due to quirks like being able to define a function protoype with no parameters ( in C, not in C++ ), this allows for some interesting code that compiles.