摘要: 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 阅读全文
posted @ 2021-02-19 23:24 coderJ_ONE 阅读(58) 评论(0) 推荐(0) 编辑
摘要: Given a syntax tree (binary), you are supposed to output the corresponding postfix expression, with parentheses reflecting the precedences of the oper 阅读全文
posted @ 2021-02-19 23:12 coderJ_ONE 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 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​​→b​m​​. If n≥2m, you are supposed to reverse and merge 阅读全文
posted @ 2021-02-19 22:56 coderJ_ONE 阅读(61) 评论(0) 推荐(0) 编辑