20 master knowledge is sufficient.
And there are 10 data structures: arrays, linked lists, stacks, queues, hash tables, binary trees, heaps, jump table, FIG, Trie tree; 10 Algorithm: recursion, sorting, binary search, search, hash algorithm, greedy algorithm , divide and conquer algorithms, backtracking algorithms, dynamic programming, string matching algorithm.