摘要:
Dijkstra's algorithm is one of the very famous greedy algorithms. It is used for solving the single source shortest path problem which gives the short 阅读全文
摘要:
7-1 Forever (20分) "Forever number" is a positive integer A with K digits, satisfying the following constrains: the sum of all the digits of A is m; th 阅读全文
摘要:
7-2 Merging Linked Lists (25分) Given two singly linked lists L 1 =a 1 →a 2 →⋯→a n−1 →a n and L 2 =b 1 →b 2 →⋯→b m−1 阅读全文
摘要:
7-3 Postfix Expression (25分) Given a syntax tree (binary), you are supposed to output the corresponding postfix expression, with parentheses reflectin 阅读全文
摘要:
算法笔记 c++ string 阅读全文