avatar
B*1
1
There is an array and the distance between any two consequent elements is on
e(+1 or -1) and given a number. You have to check whether the number is in a
rray or not with minimum complexity.
Actually very simple, but do not know which way is the best.
avatar
i*x
2
1. 确实无论任何方法激活的升级win10后都能洗白。然后下载个media creation tool
做个自启动u盘,格了装新的,装好还是正版。
2. 各路驱动支持非常给力,所有硬件都有win10驱动了。
3. 新开始菜单还是跟win8差不多蛋疼。要看程序列表得鼠标滚那个长长的字母排序表
,滚半天才能找到。开始菜单里找不到控制面板、删除程序等。后来发现开始上点右键
,常见系统工具都在里面。
4. 系统默认把wifi设为公共连接,造成远程桌面无法连接。没有办法修改为私有链接
,有个旁门左道,选择共享文件系统就会提示必须改为私有,这叫什么鸟设计。。
5. 我设好关机后按任意键开机的,安了win10就不行了,这个难道不是bios功能? 怎
么还跟系统有关?我win7升8时就好像就出这么一毛病,后来修好了,现在怎么也想不
起来咋修得了。。。有没有高人知道
6. 这个是win8老毛病,win10还是没改:安了中文输入法后就成了默认,设置里把默认
输入法改成英文也无效。。很恶心,只要按键就出来一个拼音框。。
7. 一个小问题不是微软的错,N的3dtv驱动要花钱买在线激活,我重装系统后输入激活
码没反应,一查原来N的3dtv激活服务器从六月初就挂了,你娘的这叫什么公司,激活
服务器挂了这么大点问题竟然两个月都修不好,也不知道直接把软件做成免费的。。准
备给老黄直接写信了
总结:win10也不是什么质的变化。想做一些大的改动,结果扯了蛋,细节上很多地方
还是跟不上。
avatar
x*y
3
n/2?

on
a

【在 B*******1 的大作中提到】
: There is an array and the distance between any two consequent elements is on
: e(+1 or -1) and given a number. You have to check whether the number is in a
: rray or not with minimum complexity.
: Actually very simple, but do not know which way is the best.

avatar
E*e
4
可以开始做空微软了吧

tool

【在 i****x 的大作中提到】
: 1. 确实无论任何方法激活的升级win10后都能洗白。然后下载个media creation tool
: 做个自启动u盘,格了装新的,装好还是正版。
: 2. 各路驱动支持非常给力,所有硬件都有win10驱动了。
: 3. 新开始菜单还是跟win8差不多蛋疼。要看程序列表得鼠标滚那个长长的字母排序表
: ,滚半天才能找到。开始菜单里找不到控制面板、删除程序等。后来发现开始上点右键
: ,常见系统工具都在里面。
: 4. 系统默认把wifi设为公共连接,造成远程桌面无法连接。没有办法修改为私有链接
: ,有个旁门左道,选择共享文件系统就会提示必须改为私有,这叫什么鸟设计。。
: 5. 我设好关机后按任意键开机的,安了win10就不行了,这个难道不是bios功能? 怎
: 么还跟系统有关?我win7升8时就好像就出这么一毛病,后来修好了,现在怎么也想不

avatar
w*s
5
find the min and max of the array, if the number is between min and max then
it is in the array

on
a

【在 B*******1 的大作中提到】
: There is an array and the distance between any two consequent elements is on
: e(+1 or -1) and given a number. You have to check whether the number is in a
: rray or not with minimum complexity.
: Actually very simple, but do not know which way is the best.

avatar
i*x
6
微软没啥下行空间了吧.. pc它肯定能把住,pc慢慢衰落也无可逆转,其他方面微软也
不可能有啥大建树,现在股价就是windows+office的体现

【在 E***e 的大作中提到】
: 可以开始做空微软了吧
:
: tool

avatar
B*1
7
Finding the number within the array or not is at most o(n)
why i still need to find min and max, finding the min and max is already o(n
).
Obvious, it needs better than o(n).

then

【在 w*******s 的大作中提到】
: find the min and max of the array, if the number is between min and max then
: it is in the array
:
: on
: a

avatar
a*a
8
3. 可以首字母跳转,可以直接cortana搜。

tool

【在 i****x 的大作中提到】
: 1. 确实无论任何方法激活的升级win10后都能洗白。然后下载个media creation tool
: 做个自启动u盘,格了装新的,装好还是正版。
: 2. 各路驱动支持非常给力,所有硬件都有win10驱动了。
: 3. 新开始菜单还是跟win8差不多蛋疼。要看程序列表得鼠标滚那个长长的字母排序表
: ,滚半天才能找到。开始菜单里找不到控制面板、删除程序等。后来发现开始上点右键
: ,常见系统工具都在里面。
: 4. 系统默认把wifi设为公共连接,造成远程桌面无法连接。没有办法修改为私有链接
: ,有个旁门左道,选择共享文件系统就会提示必须改为私有,这叫什么鸟设计。。
: 5. 我设好关机后按任意键开机的,安了win10就不行了,这个难道不是bios功能? 怎
: 么还跟系统有关?我win7升8时就好像就出这么一毛病,后来修好了,现在怎么也想不

avatar
x*y
9
你的min max只是理论值
array 也可以能事 5 6 5 6 5 6
显然3不里面
不过就是可以帮你缩小范围罢了

then

【在 w*******s 的大作中提到】
: find the min and max of the array, if the number is between min and max then
: it is in the array
:
: on
: a

avatar
i*x
10
本来鼠标操作的 现在变成键鼠操作了..

【在 a****a 的大作中提到】
: 3. 可以首字母跳转,可以直接cortana搜。
:
: tool

avatar
i*e
11
Worst case is n/2 comparisons.
Can be proven no better algorithm than O(n).
bool isExist(int A[], int n, int target) {
int i = 0, j = n-1;
while (i <= j) {
int left = A[i];
int right = A[j];
int diff1 = abs(target - left);
int diff2 = abs(target - right);
if (diff1 == 0 || diff2 == 0) {
return true;
} else {
i += diff1;
j -= diff2;
}
}
return false;
}
一些常见面试题的答案与总结 -
http://www.ihas1337code.com
avatar
m*d
12
能详细讲解一下1吗?先升级win10,然后再格了装新的?
谢谢

tool

【在 i****x 的大作中提到】
: 1. 确实无论任何方法激活的升级win10后都能洗白。然后下载个media creation tool
: 做个自启动u盘,格了装新的,装好还是正版。
: 2. 各路驱动支持非常给力,所有硬件都有win10驱动了。
: 3. 新开始菜单还是跟win8差不多蛋疼。要看程序列表得鼠标滚那个长长的字母排序表
: ,滚半天才能找到。开始菜单里找不到控制面板、删除程序等。后来发现开始上点右键
: ,常见系统工具都在里面。
: 4. 系统默认把wifi设为公共连接,造成远程桌面无法连接。没有办法修改为私有链接
: ,有个旁门左道,选择共享文件系统就会提示必须改为私有,这叫什么鸟设计。。
: 5. 我设好关机后按任意键开机的,安了win10就不行了,这个难道不是bios功能? 怎
: 么还跟系统有关?我win7升8时就好像就出这么一毛病,后来修好了,现在怎么也想不

avatar
B*1
13
thanks very much. Really clean and nice code.

【在 i**********e 的大作中提到】
: Worst case is n/2 comparisons.
: Can be proven no better algorithm than O(n).
: bool isExist(int A[], int n, int target) {
: int i = 0, j = n-1;
: while (i <= j) {
: int left = A[i];
: int right = A[j];
: int diff1 = abs(target - left);
: int diff2 = abs(target - right);
: if (diff1 == 0 || diff2 == 0) {

avatar
k*h
14
直接点首字母,不需要键盘呀。如果程序多的话,比看一大串list方便多。
但是win8更好些,可以选择按日期,类别,字母排序。

【在 i****x 的大作中提到】
: 本来鼠标操作的 现在变成键鼠操作了..
avatar
g*0
15
How does this work?
If I understand the problem correctly, the array can be increasing and
decreasing. How do the following lines work?
i += diff1;
j -= diff2;
If the example is 5 6 7 6 7 8 9, the code doesn't seem to work, does it?
我有可能题目没有看明白,请指点。

【在 i**********e 的大作中提到】
: Worst case is n/2 comparisons.
: Can be proven no better algorithm than O(n).
: bool isExist(int A[], int n, int target) {
: int i = 0, j = n-1;
: while (i <= j) {
: int left = A[i];
: int right = A[j];
: int diff1 = abs(target - left);
: int diff2 = abs(target - right);
: if (diff1 == 0 || diff2 == 0) {

avatar
k*h
16
4。 还有这种bug?我今天回去也试试。如果是真的,我的HTPC还不能升级win10了。
6。你装的啥输入法,我没遇到这个问题呀。win8开始就可以设置每个软件的默认输入
法,win10也有这个设置呀。

tool

【在 i****x 的大作中提到】
: 1. 确实无论任何方法激活的升级win10后都能洗白。然后下载个media creation tool
: 做个自启动u盘,格了装新的,装好还是正版。
: 2. 各路驱动支持非常给力,所有硬件都有win10驱动了。
: 3. 新开始菜单还是跟win8差不多蛋疼。要看程序列表得鼠标滚那个长长的字母排序表
: ,滚半天才能找到。开始菜单里找不到控制面板、删除程序等。后来发现开始上点右键
: ,常见系统工具都在里面。
: 4. 系统默认把wifi设为公共连接,造成远程桌面无法连接。没有办法修改为私有链接
: ,有个旁门左道,选择共享文件系统就会提示必须改为私有,这叫什么鸟设计。。
: 5. 我设好关机后按任意键开机的,安了win10就不行了,这个难道不是bios功能? 怎
: 么还跟系统有关?我win7升8时就好像就出这么一毛病,后来修好了,现在怎么也想不

avatar
i*e
17
The reason this works is because each step it can either increment/decrement
by one. Therefore we can skip the abs(target - currElem) steps because it's
guaranteed that there would be no solution in between them.
一些常见面试题的答案与总结 -
http://www.ihas1337code.com

【在 g******0 的大作中提到】
: How does this work?
: If I understand the problem correctly, the array can be increasing and
: decreasing. How do the following lines work?
: i += diff1;
: j -= diff2;
: If the example is 5 6 7 6 7 8 9, the code doesn't seem to work, does it?
: 我有可能题目没有看明白,请指点。

avatar
i*x
18
对。先升级(为了洗白成正版)。然后用media creation tool做个u盘,然后u盘启动
格了c盘装新的(为了干净,不必要)

【在 m*****d 的大作中提到】
: 能详细讲解一下1吗?先升级win10,然后再格了装新的?
: 谢谢
:
: tool

avatar
l*7
19
lgN
avatar
i*x
20
4是可以解决的,只要尝试share一个文件夹,windows就会问你是否要改成private
wifi,但没有任何其他地方可以直接修改。这个设计实在太傻逼了。以前都是第一次连
接时问你公共还是在家,估计很多人看也不看就选在家,微软就默认公共了。
6 我用的就是微软拼音,已经选择了不按每个软件设置,在默认输入法列表里也选择英
文,结果还是英文,而且的确是每个软件不同的。。。我就X它XX了

【在 k*h 的大作中提到】
: 4。 还有这种bug?我今天回去也试试。如果是真的,我的HTPC还不能升级win10了。
: 6。你装的啥输入法,我没遇到这个问题呀。win8开始就可以设置每个软件的默认输入
: 法,win10也有这个设置呀。
:
: tool

avatar
p*a
21
Can you give an example of worst case?

【在 i**********e 的大作中提到】
: Worst case is n/2 comparisons.
: Can be proven no better algorithm than O(n).
: bool isExist(int A[], int n, int target) {
: int i = 0, j = n-1;
: while (i <= j) {
: int left = A[i];
: int right = A[j];
: int diff1 = abs(target - left);
: int diff2 = abs(target - right);
: if (diff1 == 0 || diff2 == 0) {

avatar
i*x
22
对了加一条:关机极慢,有时候要整整一分钟(ssd)。奇怪的是重启只要几秒。垃圾
的微软
avatar
h*k
23
01010...01010 中找2

【在 p*****a 的大作中提到】
: Can you give an example of worst case?
avatar
M*H
24
为每个软件设置默认输入法是在哪里啊?我在win 8里,被这个问题困扰得很厉害

【在 k*h 的大作中提到】
: 4。 还有这种bug?我今天回去也试试。如果是真的,我的HTPC还不能升级win10了。
: 6。你装的啥输入法,我没遇到这个问题呀。win8开始就可以设置每个软件的默认输入
: 法,win10也有这个设置呀。
:
: tool

avatar
t*g
25
It's infinitely more difficult to understand this wording of question than
to find the solution. So terrible.
I am always amazed that people can actually understand the questions.

on
a

【在 B*******1 的大作中提到】
: There is an array and the distance between any two consequent elements is on
: e(+1 or -1) and given a number. You have to check whether the number is in a
: rray or not with minimum complexity.
: Actually very simple, but do not know which way is the best.

avatar
e*y
26
用了两个月,发现最烂的地方是update太TM频繁了。搞得开机后经常都要等很久才能用
avatar
a*m
27
如果第一个元素比目标小,只要在后面的数字里面找是不是有比目标数字大的就可以了
。每次可以跳过 目标-当前数字 个元素。
avatar
i*x
28
控制面板,语言,高级选项,但我已经说了这个设置是无效的,无论开关不同软件的输
入法都不同

【在 M****H 的大作中提到】
: 为每个软件设置默认输入法是在哪里啊?我在win 8里,被这个问题困扰得很厉害
avatar
p*a
29
It is n/4, not n/2.

【在 h**k 的大作中提到】
: 01010...01010 中找2
avatar
m*n
30
windows 7升级后能洗白么?

【在 i****x 的大作中提到】
: 对。先升级(为了洗白成正版)。然后用media creation tool做个u盘,然后u盘启动
: 格了c盘装新的(为了干净,不必要)

avatar
i*x
31
可以

【在 m*****n 的大作中提到】
: windows 7升级后能洗白么?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。