摘要: Given an array of citations sorted in ascending order (each citation is a non-negative integer) of a researcher, write a function to compute the resea 阅读全文
posted @ 2018-07-02 17:46 小T在学习 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Example 1: Example 2: 阅读全文
posted @ 2018-07-02 16:47 小T在学习 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Example 2: 很简单的链表问题,可以写成递归和迭代两种形式。具体思路: 第一步,寻找第一 阅读全文
posted @ 2018-07-02 13:17 小T在学习 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. 阅读全文
posted @ 2018-07-02 01:01 小T在学习 阅读(922) 评论(0) 推荐(0) 编辑