10 2019 档案

摘要:## 判断输入文件 import os import sys for line in sys.stdin: map_input_file = os.environ.get("map_input_file") if path in map_input_file: # do sth 阅读全文
posted @ 2019-10-29 16:56 机器狗mo 阅读(357) 评论(0) 推荐(0)
摘要:给定两个大小为 m 和 n 的正序(从小到大)数组 nums1 和 nums2。请你找出并返回这两个正序数组的中位数。 进阶:你能设计一个时间复杂度为 O(log (m+n)) 的算法解决此问题吗? 示例 1: 输入:nums1 = [1,3], nums2 = [2] 输出:2.00000 解释: 阅读全文
posted @ 2019-10-28 23:19 机器狗mo 阅读(60) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/sandy-t/p/13198746.html 阅读全文
posted @ 2019-10-27 16:31 机器狗mo 阅读(93) 评论(0) 推荐(0)
摘要:给定一个整数数组 nums,其中恰好有两个元素只出现一次,其余所有元素均出现两次。 找出只出现一次的那两个元素。 示例 : 输入: [1,2,1,3,2,5] 输出: [3,5] 注意: 1、结果输出的顺序并不重要,对于上面的例子, [5, 3] 也是正确答案。 2、你的算法应该具有线性时间复杂度。 阅读全文
posted @ 2019-10-27 16:30 机器狗mo 阅读(97) 评论(0) 推荐(0)
摘要:python package : https://github.com/mwburke/xgboost python deploy pred1 pred2 diff 33243 0.515672 0.515672 1.635301e 08 15742 0.478694 0.478694 3.4686 阅读全文
posted @ 2019-10-14 17:15 机器狗mo 阅读(947) 评论(0) 推荐(0)