📣 黑五网一特惠|VIP一年通行证5折,蓝莓、Offer多多同步特惠
回复: 20
跳转到指定楼层
上一主题 下一主题
收起左侧

Ditto Technology的OA(全选择题 基础知识)

全局:

2015(10-12月) 码农类General 硕士 全职@Ditto - 网上海投 - 在线笔试  | | Fail | 应届毕业生

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
申请的是一家三番小公司的research engineer的岗位,要求oa错三道以下,楼主提交以后发现自己错了6道,再仔细一看发现有两个题自己选项看错了。。。看来今天做oa不在状态。。。但是改正后还是错了四道,都不知道自己哪里错了,所以打算分享给大家 ,就当娱乐娱乐,大家一起看看基础知识。如果能指正的就再好不过了。


1) In an ordered array of size N, binary search finds an answer in 10 steps maximum. What is the max number of steps will the binary search need for an array of size 2 * N?
  • N
  • 20
  • N+1
  • 11

2) X is an integer drawn from a uniform distribution 1..7 (including 1 and 7). What is the probability that bit 1 of the binary representation of X is set? (Assume that the lowest bit has index 0).
  • 4/7
  • 1/7
  • 1/3
  • 1

3) A quick sort takes 10ms on average to sort an array of 1000 numbers. What would be the expected sorting time for 5000 numbers?
  • 50 ms
  • 62 ms
  • 32 ms
  • 308 ms

4) If P(A) = 0.3, P(B|A) = 0.4, P(B|not A) = 0.7, then P(B) is:
  • 0.28
  • 0.12
  • 0.61
  • 0.7

5) The first-order Taylor series expansion for (1 + x)^a around x=0 is:
  • 1 + x
  • a(1 + x)^(a-1)
  • 1 + ax
  • such expansion does not exist

6) How practically useful is an algorithm with the run time complexity of O(N^4)?
  • Not very useful because it gets slow even with moderately large input sequences
  • Very useful because its run time complexity is polynomial
  • Not very useful because it is NP-hard
  • Useful but only if N is larger than 1,000

7) If you use a breadth-first (expanding left to right) algorithm for printing all nodes of the following three.
A|\B C|  \D   EWhat your output would be? :
  • ABDCE
  • ABCDE
  • ACEDB
    您好!
    本帖隐藏的内容需要积分高于 188 才可浏览
    您当前积分为 0。
    使用VIP即刻解锁阅读权限或查看其他获取积分的方式
    游客,您好!
    本帖隐藏的内容需要积分高于 188 才可浏览
    您当前积分为 0。
    VIP即刻解锁阅读权限 或 查看其他获取积分的方式
    Unlock interview details and practice with AI
    Popular Interview Questions from Top Companies
    ; k < N; ++k) {        C[i][j] += A[i][k] * B[k][j];      }    }  }  // Variant B.  for (int i = 0; i < N; ++i) {    for (int j = 0; j < N; ++j) {      for (int k = 0; k < N; ++k) {        C[i][j] = C[i][j] + A[i][k] * B[k][j];      }    }  }  // Variant C.  for (int i = 0; i < N; ++i) {    for (int k = 0; k < N; ++k) {      for (int j = 0; j < N; ++j) {        C[i][j] = C[i][j] + A[i][k] * B[k][j];      }    }  }  // Variant D.  for (int j = 0; j < N; ++j) {    for (int k = 0; k < N; ++k) {      for (int i = 0; i < N; ++i) {        C[i][j] += A[i][k] * B[k][j];      }    }  }Which version of the code works faster? :
    • Variant A
    • Variant B
    • Variant C
    • Variant D

    20) This quiz has 20 questions, with 4 answer choices each, and only one of the choices is right. What is the probability to get exactly 50% of the quiz right by selecting answers completely at random?
    • 0.00332
    • 0.0025
    • 0.025
    • 0.00992



    补充内容 (2015-10-9 06:25):
    抱歉,我的答案好像没显示出来,下面是我做的答案:
    D,A,B,C,A
    A,A,A,C,A
    B,D,A,C,B
    C,B,D,D,D

    补充内容 (2015-10-12 12:33):
    由于概念不清,导致第五题做错了,正确答案应该是C,还有三道是错的。。。

上一篇:Akuna Capital
下一篇:Uber电面完一般多久有消息?
推荐
pk38555 2015-11-18 11:57:39 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

推荐
 楼主| attractor 2015-11-26 15:45:29 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

推荐
 楼主| attractor 2015-10-12 12:28:50 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

🔗
chengluxi 2015-10-12 03:15:25 | 只看该作者
全局:
第二十题我怎么算也算不出答案,不知楼主是怎么做的?

还有第八题,应该就是log(17) x = 25吧,那么就求9^x是多少呗,为什么我也算不出来答案呢?
回复

使用道具 举报

🔗
muancy 2015-10-12 03:42:18 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

🔗
yiliaobailiao 2015-10-12 10:34:38 | 只看该作者
全局:
第五题,为啥是A呢?
回复

使用道具 举报

🔗
Fireleg 2015-11-24 03:18:04 | 只看该作者
全局:
pk38555 发表于 2015-11-18 11:57
这是我遇到的题,18,19没有,剩下的是一样的
12) An HTML page can include links to CSS files and Javas ...

层主面过了吗?
回复

使用道具 举报

🔗
pk38555 2015-11-24 08:21:42 | 只看该作者
全局:
刚刚面了,挂了
题目:
7瓶红酒,一瓶有毒,
有三个老鼠可以试毒,可以随便mix,怎么知道哪瓶有毒,三只老鼠必须同时试。只有一次机会
回复

使用道具 举报

🔗
巫山云似盖 2015-11-26 08:46:25 | 只看该作者
全局:
第三题怎么错了?是选B呀。
lz确定第12,18,19是对的吗?

补充内容 (2015-11-26 09:11):
第19题A和C是一维的array,不是matrix吗?
回复

使用道具 举报

🔗
巫山云似盖 2015-11-26 12:51:54 | 只看该作者
全局:
pk38555 发表于 2015-11-24 08:21
刚刚面了,挂了
题目:
7瓶红酒,一瓶有毒,

请问层主的电面是一个半小时吗?只有这道智力题吗?有没有编程?都有什么内容呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表