Algorithm study notes

Tree:

https://www.cs.cmu.edu/~adamchik/15-121/lectures/Trees/trees.html

 

Backtrack:

A general recursive template for backtracking:

helper (parameters of given data and current recursive level) {
        // Handle base cases, i.e. the last level of recursive call
        if (level == lastLevel) {
            record result;
            return sth;
        }
        // Otherwise permute every possible value for this level.
        for (every possible value for this level) {
            helper(parameters of given data and next recursive level);
        }
        return sth;
    }

 

最近的文章

GDB useful addons or plugins

Helpful GDB Plugins:PEDAPEDA – Python Exploit Development Assistance for GDBhttps://github.com/longld/pedaGEFGDB Enhanced Featureshttps://github.com/hugsy/gef Lisa.py LLDBLisa.py: An Exploit Dev Swiss Army Knife.https://github.com/ant4g0nist/lisa....…

gdb pwn继续阅读
更早的文章

some interesting linux command

1. Supervise command (run every 2s) watch "ls -larth"2. Kill program using one port sudo fuser -k 8000/tcp3. Limit memory usage for following commands ulimit -Sv 1000 # 1000 KBs = 1 MBulimit -Sv unlimited # Remove limit4. Rename selected...…

command interesting command linux shell继续阅读