摘要: https://leetcode.com/problems/missing-number/ Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing fr 阅读全文
posted @ 2019-01-19 22:56 丧心病狂工科女 阅读(112) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/odd-even-linked-list/ Given a singly linked list, group all odd nodes together followed by the even nodes. Please note h 阅读全文
posted @ 2019-01-19 22:33 丧心病狂工科女 阅读(122) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/add-two-numbers-ii/ You are given two non-empty linked lists representing two non-negative integers. The most significan 阅读全文
posted @ 2019-01-19 21:14 丧心病狂工科女 阅读(187) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/reverse-linked-list/ Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively 阅读全文
posted @ 2019-01-19 17:21 丧心病狂工科女 阅读(102) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/ Given a sorted linked list, delete all nodes that have duplicate numbers, leaving 阅读全文
posted @ 2019-01-19 16:22 丧心病狂工科女 阅读(84) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/array-partition-i/ Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, 阅读全文
posted @ 2019-01-19 15:53 丧心病狂工科女 阅读(69) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/move-zeroes/ Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order 阅读全文
posted @ 2019-01-19 15:48 丧心病狂工科女 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/remove-nth-node-from-end-of-list/ Given a linked list, remove the n-th node from the end of list and return its head. Ex 阅读全文
posted @ 2019-01-19 15:33 丧心病狂工科女 阅读(123) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/swap-nodes-in-pairs/ Given a linked list, swap every two adjacent nodes and return its head. Example: Note: Your algorit 阅读全文
posted @ 2019-01-19 12:58 丧心病狂工科女 阅读(136) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805348471259136 Recommendation system predicts the preference that a user would give to 阅读全文
posted @ 2019-01-19 12:09 丧心病狂工科女 阅读(216) 评论(0) 推荐(0) 编辑