摘要: 1 """ 2 Given the head of a linked list, we repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences. 3 4 Afte 阅读全文
posted @ 2020-02-01 22:20 yawenw 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 We are given head, the head node of a linked list containing unique integer values. 3 4 We are also given the list G, a subset of the values i 阅读全文
posted @ 2020-02-01 22:18 yawenw 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given an array of integers, return indices of the two numbers such that they add up to a specific target. 3 4 You may assume that each input w 阅读全文
posted @ 2020-02-01 22:14 yawenw 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and 阅读全文
posted @ 2020-02-01 22:02 yawenw 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 坐标:北京 百度 地图内容生态部_推荐算法实习生 http://collabedit.com 如果i=5;那么 a=(++i)--;之后,a和i的值各是多少构造函数和析构函数必须要使用初始化列表 Python 列表和元组有什么不同? a = 0.1b = 0.2c = 0.3a + b == c a 阅读全文
posted @ 2020-01-02 17:46 yawenw 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-15 16:32 yawenw 阅读(133) 评论(0) 推荐(0) 编辑
摘要: int &a=b;引用符 int const a = 3; int *p = &a; 只读 不能 赋给 读写 有默认参数值得参数必须在参数表的最右端 void fun(int i, int j=5,int k); 重载函数可以处理多类型 内联函数节省时间,省去调用和返回步骤。要求逻辑简单,调用频繁, 阅读全文
posted @ 2019-07-05 19:36 yawenw 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 坐标:腾讯深圳 社交应用场景 APP开发运营部 两部分:一 介绍自己 二 提问 1.继承 组合 2.STL容器特性 3.Linux查看内存使用情况的命令 4.Linux进程通信 5.TCP和UDP的优缺点 6.网络编程socket 7.mysql 8.http 阅读全文
posted @ 2019-06-12 20:06 yawenw 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 第一章 python3玩转机器学习 第二章 机器学习基础 安装:1.anaconda 2.pycharm 第三章 Jupyter Notebook,numpy,Matplotlib 1.jupyter notebook 魔法命令: %run %timeit %time 2.numpy基础: nump 阅读全文
posted @ 2019-05-16 22:05 yawenw 阅读(776) 评论(0) 推荐(0) 编辑
摘要: 1.函数式编程 变量名可以指向函数,那么函数就可以通过一个变量传递给另一个函数或者变量。 map()函数:接收一个函数 f 和一个 list,并通过把函数 f 依次作用在 list 的每个元素上,得到一个新的list 并返回。(注意不改变原有的list) reduce()函数:接收一个函数 f 和一 阅读全文
posted @ 2019-04-18 17:57 yawenw 阅读(1722) 评论(0) 推荐(0) 编辑