摘要: Remove all elements from a linked list of integers that have valueval. Have you met this question in a real interview? Yes Remove all elements from a 阅读全文
posted @ 2017-06-13 22:14 mximo 阅读(610) 评论(0) 推荐(0) 编辑
摘要: Reverse a linked list from position m to n. Notice Given m, n satisfy the following condition: 1 ≤ m ≤ n ≤ length of list. Have you met this question 阅读全文
posted @ 2017-06-13 22:11 mximo 阅读(144) 评论(0) 推荐(0) 编辑
摘要: floyd Floyd算法是一个经典的动态规划算法。用通俗的语言来描述的话,首先我们的目标是寻找从点i到点j的最短路径。从动态规划的角度看问题,我们需要为这个目标重新做一个诠释(这个诠释正是动态规划最富创造力的精华所在) 从任意节点i到任意节点j的最短路径不外乎2种可能,1是直接从i到j,2是从i经 阅读全文
posted @ 2017-06-13 15:40 mximo 阅读(237) 评论(0) 推荐(0) 编辑