219. Contains Duplicate IIGiven an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that ... ...
分类:
其他好文 时间:
2018-02-04 22:48:25
阅读次数:
249
Bootmcr is missing Press Ctrl+Alt+Del to restart这是Bootmcr丢失引导文件所致启动失败。一般按照提示做不能正常进入操作系统的,此时只有尝试进入安全模式。开机按F8键,进入安全模式,如有有改善,那就再重启电脑,继续按F8键:此时可以选择使用【“最后一 ...
分类:
其他好文 时间:
2018-02-02 20:19:12
阅读次数:
150
在oozie中有Bundle、Coordinator和Workflow三种类型的job,他们之间可以有以下包含关系。 Bundle > Coordinator > Workflow。 1. 重新运行一个Coordinator job,可以通过如下命令: 2. 如果只想重新运行一个workflow j ...
分类:
其他好文 时间:
2018-01-31 14:19:52
阅读次数:
846
现象: 在创建外键的时候遇到报错:TypeError: __init__() missing 1 required positional argument: 'on_delete' 解决: 查询一番后发现Django2.0版本创建外键时需要在后面加上on_delete。 解决: 查询一番后发现Dja ...
分类:
其他好文 时间:
2018-01-30 19:58:03
阅读次数:
107
【题目描述】 Given an array contains N numbers of 0 ..N, find which number doesn't exist in the array. 给出一个包含 0 ..N中N个数的序列,找出0 ..N中没有出现在序列中的那个数。 【题目链接】 www. ...
分类:
其他好文 时间:
2018-01-28 11:20:08
阅读次数:
114
Given an array containing n distinct numbers taken from , find the one that is missing from the array. Example 1 Example 2 我的版本: 大神的版本: java public st ...
分类:
其他好文 时间:
2018-01-27 21:23:12
阅读次数:
163
在Android上链接 Xamarin.Android应用程序使用链接器来减小应用程序的大小。链接器使用应用程序的静态分析来确定哪些程序集、类型、成员被实际使用。链接器的行为就像一个GC,不断寻找被引用的程序集,类型和成员,直到整个引用的程序集,类型和成员都被找到。没被引用到的类型和程序集都被抛弃掉 ...
分类:
移动开发 时间:
2018-01-27 17:11:40
阅读次数:
244
yum install zlibyum install zlib-devel 安装完成后,重新编译 python不需要删除,只需要重新编译就行了 makemake install 然后重新安装setuptools: cd setuptools-0.6c11python setup.py instal ...
分类:
编程语言 时间:
2018-01-26 00:31:37
阅读次数:
173
1、上传临时素材到公众号遇到的问题:"errcode":41005,"errmsg":"media data missing 解决办法:因为php版本的原因,上传素材一直保错。php的curl的curl_setopt 函数存在版本差异 php5.5已经把通过@加文件路径上传文件的方式给放入到Depr ...
分类:
微信 时间:
2018-01-23 10:55:24
阅读次数:
512
#-*-coding:utf-8-*-#!/usr/bin/pythonimportsysreload(sys)#reload才能调用setdefaultencoding方法sys.setdefaultencoding(‘utf-8‘)#设置‘utf-8‘importparamikoimportsysimportoshost=sys.argv[1]##通过sys下的argv来获取命令行的输入,这里
分类:
编程语言 时间:
2018-01-22 20:05:50
阅读次数:
175