上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页
摘要: 1. 原始题目 Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Example 2: 2. 题目理解 给定一个链表,旋转链表,将链表每个节点向右移动  阅读全文
posted @ 2019-04-04 22:39 三年一梦 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, only nodes itself m 阅读全文
posted @ 2019-04-04 22:05 三年一梦 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Given a linked list, remove the n-th node from the end of list and return its head. Example: 2. 题目理解 删除列表中倒数第n个数 注意:空列表,和n大于链表长度的情况 3. 解题 改题和剑 阅读全文
posted @ 2019-04-04 20:50 三年一梦 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their node 阅读全文
posted @ 2019-04-04 17:00 三年一梦 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Reverse a singly linked list. Example: 2. 题目理解 反转一个单链表 注意:空链表的处理,单个结点的处理 3. 解法 因为在反向指向结点的时候容易导致链表出现断裂,所以需3个结点保存当前结点,当前结点之前,之后的结点。 4. 验证结果 1 1 阅读全文
posted @ 2019-04-04 15:32 三年一梦 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 阅读全文
posted @ 2019-04-04 14:51 三年一梦 阅读(532) 评论(1) 推荐(0) 编辑
摘要: 1. 原始题目 You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers fo 阅读全文
posted @ 2019-04-01 11:50 三年一梦 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 本文转自:谷歌工程师:聊一聊深度学习的weight initialization TLDR (or the take-away) Weight Initialization matters!!! 深度学习中的weight initialization对模型收敛速度和模型质量有重要影响! 在ReLU 阅读全文
posted @ 2019-03-30 19:57 三年一梦 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 整理自:博客 & Python中文 常用的有:defaultdict、deque、Ccounter defaultdict 对象 class collections.defaultdict([default_factory[, ...]]) 1)在有dict的情况下为何使用defaultdict: 阅读全文
posted @ 2019-03-30 10:46 三年一梦 阅读(1335) 评论(0) 推荐(0) 编辑
摘要: Reprinted from: Iterables vs. Iterators vs. Generators Occasionally I've run into situations of confusion on the exact differences between the followi 阅读全文
posted @ 2019-03-17 10:47 三年一梦 阅读(390) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页