cherrychenlee

导航

 
上一页 1 2 3 4 5 6 7 ··· 15 下一页

2019年5月8日

摘要: 原文地址:https://www.jianshu.com/p/245a71670d37 时间限制:1秒 空间限制:32768K 题目描述 Sort a linked list using insertion sort. 我的代码 运行时间:57ms 占用内存:968k 阅读全文
posted @ 2019-05-08 14:08 cherrychenlee 阅读(100) 评论(0) 推荐(0)
 
摘要: 原文地址:https://www.jianshu.com/p/4f3bf22ea9de 时间限制:1秒 空间限制:32768K 题目描述 Sort a linked list in O ( n log n ) time using constant space complexity. 我的代码 运行 阅读全文
posted @ 2019-05-08 14:07 cherrychenlee 阅读(80) 评论(0) 推荐(0)
 
摘要: 原文地址:https://www.jianshu.com/p/126cbb3d49f5 时间限制:1秒 空间限制:32768K 题目描述 Given n points on a 2D plane, find the maximum number of points that lie on the s 阅读全文
posted @ 2019-05-08 14:06 cherrychenlee 阅读(112) 评论(0) 推荐(0)
 
摘要: 原文地址:https://www.jianshu.com/p/237145bd53b0 时间限制:1秒 空间限制:32768K 题目描述 Evaluate the value of an arithmetic expression in "Reverse Polish Notation" . Val 阅读全文
posted @ 2019-05-08 14:05 cherrychenlee 阅读(96) 评论(0) 推荐(0)
 
摘要: 原文地址:https://www.jianshu.com/p/7b8c36de21fd 时间限制:1秒 空间限制:32768K 题目描述 Given a binary tree, find its minimum depth.The minimum depth is the number of no 阅读全文
posted @ 2019-05-08 14:03 cherrychenlee 阅读(87) 评论(0) 推荐(0)
 
摘要: 原文地址:https://www.jianshu.com/p/a02c6bd5d5e9 error来自哪?来自于偏差Bias和方差Variance。 就如打靶时瞄准一个点$\overline{f}$,打出的点$f^ $分布在该点周围。那么,$\overline{f}$与实际靶心$\hat{f}$的距 阅读全文
posted @ 2019-05-08 09:57 cherrychenlee 阅读(245) 评论(0) 推荐(0)
 

2019年5月7日

摘要: 原文地址:https://www.jianshu.com/p/4df50a647831 时间限制:1秒 空间限制:32768K 题目描述 地上有一个m行和n列的方格。一个机器人从坐标0,0的格子开始移动,每一次只能向左,右,上,下四个方向移动一格,但是不能进入行坐标和列坐标的数位之和大于k的格子。例 阅读全文
posted @ 2019-05-07 13:25 cherrychenlee 阅读(148) 评论(0) 推荐(0)
 
摘要: 原文地址:https://www.jianshu.com/p/34782400bc16 时间限制:1秒 空间限制:32768K 题目描述 请设计一个函数,用来判断在一个矩阵中是否存在一条包含某字符串所有字符的路径。路径可以从矩阵中的任意一个格子开始,每一步可以在矩阵中向左,向右,向上,向下移动一个格 阅读全文
posted @ 2019-05-07 13:24 cherrychenlee 阅读(131) 评论(0) 推荐(0)
 
摘要: 原文地址:https://www.jianshu.com/p/e9af38e066bf 时间限制:1秒 空间限制:32768K 题目描述 给定一个数组和滑动窗口的大小,找出所有滑动窗口里数值的最大值。例如,如果输入数组{2,3,4,2,6,2,5,1}及滑动窗口的大小3,那么一共存在6个滑动窗口,他 阅读全文
posted @ 2019-05-07 13:23 cherrychenlee 阅读(66) 评论(0) 推荐(0)
 
摘要: 原文地址:https://www.jianshu.com/p/7d7ef2a018b2 时间限制:1秒 空间限制:32768K 题目描述 如何得到一个数据流中的中位数?如果从数据流中读出奇数个数值,那么中位数就是所有数值排序之后位于中间的数值。如果从数据流中读出偶数个数值,那么中位数就是所有数值排序 阅读全文
posted @ 2019-05-07 13:22 cherrychenlee 阅读(74) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 ··· 15 下一页