CLRS
CLRS copied to clipboard
CLRS in C++
Found that infinity is often needed to implement algorithms from CLRS. Is there any way to implement a real generic infinity type that can be stored in a container?
Such as : ``` cpp // // @author Yue Wang // @time [read system time] // ``` Seems a dictionary can be used here, like: ``` python dic['author'] = `Yue...
test code: # include # include "stack_by_2queues.hpp" int main() { ch10::stack_by_2queues stk(3); ``` for(int i = 0; i != 3; ++i) stk.push(i); for(int i = 0; i != 3; ++i)...