摘要:
LeetCode: Word BreakGiven a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more di... 阅读全文
摘要:
LeetCode: Word BreakGiven a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more di... 阅读全文
摘要:
LeetCode: Linked List CycleGiven a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space?地址:https://oj.... 阅读全文
摘要:
Foundations of Machine Learning: Boosting Boosting是属于自适应基函数(Adaptive basis-function Model(ABM))中的一种模型。自适应基函数可以表示成:$$f(x)=w_0+\sum_{m=1}^Mw_m\phi_m(x).... 阅读全文
摘要:
LeetCode: Reorder List Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering ... 阅读全文
摘要:
LeetCode: Binary Tree Traversal题目:树的先序和后序。后序地址:https://oj.leetcode.com/problems/binary-tree-postorder-traversal/先序地址:https://oj.leetcode.com/problems/... 阅读全文
摘要:
LeetCode: LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.... 阅读全文
摘要:
LeetCode: Insertion Sort ListSort a linked list using insertion sort.地址:https://oj.leetcode.com/problems/insertion-sort-list/算法:按题目的意思,采用插入排序对链表进行排序,时... 阅读全文
摘要:
LeetCode: Sort ListSort a linked list in O(n log n) time using constant space complexity.地址:https://oj.leetcode.com/problems/sort-list/算法:采用分治的思想,首先利用... 阅读全文
摘要:
LeetCode: Max Points on a LineGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.地址:https://oj.leetcod... 阅读全文
摘要:
LeetCode: Reverse Words in a String:Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression in Reverse Polish Notation.Valid op... 阅读全文
|