几道英语面试题

nosuchtracter 2008-04-24 01:21:45
一、Binary Search and it's use
二、Suppose you have 10000 Electronic circuits in hand.
Now more than half of those circuits are good and rest are bad. There is only one way to find out if a circuit is good or bad. You have to compare the circuit with another circuit. Suppose you want to find out if circuit A is good or bad. You compare it with another circuit B. Now if B is a good circuit it will tell you the truth about A.
But if B is a bad circuit it's answer about a is not reliable. Write a function to find out one good circuit.
第一道有点难
大家帮忙看下

...全文
165 11 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
stning 2008-04-24
  • 打赏
  • 举报
回复
帮顶
nosuchtracter 2008-04-24
  • 打赏
  • 举报
回复
有1000个电路圈,一半以上是好的,其余的都是坏的。
有一种方法可以查找A是个好的还是坏的
用B去比较A,如果B是好的,则A是好的,如果B是坏的,则说明A是不可靠的
写个函数,查找一个好的线圈
意思应该是这么翻译的吧?
boyle0630 2008-04-24
  • 打赏
  • 举报
回复
题目都看不太懂,帮顶
nosuchtracter 2008-04-24
  • 打赏
  • 举报
回复
怎么把页面给撑大了
不会自动换行啊
nosuchtracter 2008-04-24
  • 打赏
  • 举报
回复
第二道题目有点困难
shoumangli 2008-04-24
  • 打赏
  • 举报
回复
1、例:(C语言)

方程式为:f(x) = 0,示例中f(x) = 1+x-x^3

使用示例:

input a b e: 1 2 1e-5

solution: 1.32472

源码如下:

#include <stdio.h>

#include <stdlib.h>

#include <math.h>

#include <assert.h>

double f(double x)

{

return 1+x-x*x*x;

}

int main()

{

double a = 0, b = 0, e = 1e-5;

printf("input a b e: ");

scanf("%lf%lf%lf", &a, &b, &e);

e = fabs(e);

if (fabs(f(a)) <= e)

{

printf("solution: %lg\n", a);

}

else if (fabs(f(b)) <= e)

{

printf("solution: %lg\n", b);

}

else if (f(a)*f(b) > 0)

{

printf("f(%lg)*f(%lg) > 0 ! need <= 0 !\n", a, b);

}

else

{

while (fabs(b-a) > e)

{

double c = (a+b)/2.0;

if (f(a)* f ( c ) < 0)

b = c;

else

a = c;

}

printf("solution: %lg\n", (a+b)/2.0);
}
return 0;
}
奔跑的蜗牛007 2008-04-24
  • 打赏
  • 举报
回复
支持一下
chinayeren 2008-04-24
  • 打赏
  • 举报
回复
.
nosuchtracter 2008-04-24
  • 打赏
  • 举报
回复
第一道是二分法,英语不好,还以为是考数据结构呢,呵呵
没人顶准备结贴了
nosuchtracter 2008-04-24
  • 打赏
  • 举报
回复
没人顶吗?
企业公司软件测试面试笔试题集合 软件测试面试题 (测试基础).doc 01_企业面试试卷(综合).doc 01_企业面试试卷(综合)_参考答案.doc 04_企业面试试卷(测试基础).doc 04_企业面试试卷(测试基础)_参考答案.doc 500强公司面试的经典正确与错误回答对比!!! 看看你的弱点.doc C面试题.txt Java初学者都必须知道的六大问题.doc 百度笔试题.txt 北京博彦科技笔试+面试.doc 北京大学计算机科学技术研究所.doc 波尔世通的笔试+面试.doc 测试人员面试题.doc 测试题.doc 常见的测试题(转贴).doc 传视数码公司的面试题.doc 汉端笔试题(7页).doc 合力金桥的笔试题.doc 华为面试题.doc 经典逻辑题.ppt 联合网视面试题.doc 美国英网软件公司题目.doc 面试考题(腾讯,招行等等).txt 某公司的面试试题.doc 奇虎面试题.doc 千像互动的笔试.doc 清华同方开发的面试题 (有兴趣的看一下了 !).doc 缺陷的等级划分,一个经常被问到的问题.doc 软件测试工程师笔试试题(大集合).doc 软件测试工程师测试试题大集合(二)包括答案.doc 软件测试工程师试题发布版.doc 软件测试试题.doc 软件评测复习知识点(小颖).doc 软通动力面试笔答.doc 瑞星笔试题(15道).doc 神州泰岳测试试题(笔试)转贴.doc 时力科技面试题.doc 瓦瑟笔试题(限男性).doc 喜安科 面试题.doc 性能计算公式.txt 亚控科技比试题.doc 一道测试notepad笔试题.doc 一道数据库的笔试题目.doc 一个外包测试公司的笔试题!.doc 一家通讯公司的面试题目.doc 英文自我介绍大全.doc 英语面试.doc 英语面试题.doc 有意思的逻辑题.doc 中软的面试题(转贴).doc

111,098

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧