回复: 6
跳转到指定楼层
上一主题 下一主题
收起左侧

热乎乎的巴克莱oa

全局:

2018(1-3月) 码农类General 硕士 实习@barclays - 网上海投 - 在线笔试  | | Other | 应届毕业生

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

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

x
这家公司oa果然如传闻中的恶心,第一轮18道bq+gre,第二轮4道coding+bq,还要录video。我找了地里好多面经题练,结果居然一道都没有。。
废话不多说
您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

1.
Given two axis-aligned rectangles A and B, determine if the two overlap. The rectangles considered overlapping if they have at least one common point.

Input:
Your program should read lines from standard input. Each line contains 8 comma-separated coordinates. The coordinates are upper left x of A, upper left y of A, lower right x of A, lower right y of A, upper left x of B, upper left y of B, lower right x of B, lower right y of B.

Output:
Print out True if A and B intersect, False otherwise.

2.
The example sequence 011212201220200112 ... is constructed as follows:
1. The first element in the sequence is 0.
2. For each iteration, repeat the following action: take a copy of the entire current sequence, replace 0 with 1, 1 with 2, and 2 with 0, and place it at the end of the current sequence. E.g.
0 -> 01 -> 0112 -> 01121220 -> ...
Create an algorithm which determines what number is at the Nth position in the sequence (using 0-based indexing).

Input:
Your program should read lines from standard input. Each line contains an integer N such that 0 <= N <= 3000000000.

Output:
Print out the number which is at the Nth position in the sequence.

3.
Given two strings, write a program to determine the longest common subsequence between them. Each string can have a maximum length of 50 characters. Note, this subsequence need not be contiguous.

Input:
Your program should read lines of text from standard input. Ignore empty lines. Each non-empty line will contain two semicolon-seperated strings. You can assume that there is only one unique subsequence per line.

Output:
For each line of input, print to standard output the longest common subsequence. Ensure that there are no trailing spaces on each line you print.

4.
You will be given an M*N matrix. Each item in this matrix is either a '*' or a '.'. A '*' indicates a mine, whereas a '.' does not. The objective of the challenge is to output a M*N matrix where each element contains a number (except the positions which actually contain a mine which will remain as '*') which indicates the number of mines adjacent to it. Notice that each position has at most 8 adjacent positions e.g. left, top left, top, top right, right, ...
In the first sample test case, the matrix:
* * . . .
. . . . .
. * . . .
becomes
* * 1 0 0
3 3 2 0 0
1 * 1 0 0

Input:
Your program should read lines from standard input. Each line contains M,N, a semicolon and the M*N matrix in row major form.

Output:

Print out the new M*N matrix (in row major form) with each position(except the ones with the mines) indicating how many adjacent mines are there.


其他的就是什么五分钟说思路,给你情景让你录video回答,看图分析计算什么的(这部分时间给的很短,12mins就要答和计算五道题包括读懂那一大堆材料)

祝各位好运!
求加米!谢谢!



评分

参与人数 2大米 +55 收起 理由
lanking + 50 很有用的信息!
取个响亮的名号 + 5 欢迎来一亩三分地论坛!

查看全部评分


上一篇:FB实习二面跪经
下一篇:g家ios码农
🔗
 楼主| Melonchild 2018-1-10 08:03:56 | 只看该作者
全局:
积分限制那里面没有内容
回复

使用道具 举报

🔗
kg1988121 2018-4-18 08:11:22 | 只看该作者
全局:
lz投的是software engineer这个职位吗?
回复

使用道具 举报

🔗
kg1988121 2018-4-18 08:35:31 | 只看该作者
全局:
lz第一题为什么输入只给了A的2个点坐标 B的两个点坐标?不是应该给A的4个点,B的4个点的坐标吗?4个点才能组成矩形吧
回复

使用道具 举报

🔗
malaisi 2018-10-14 03:14:42 | 只看该作者
全局:
正在做。。。咱们题目一样。。
回复

使用道具 举报

🔗
kitty0924 2018-10-25 22:20:46 | 只看该作者
全局:
malaisi 发表于 2018-10-14 03:14
正在做。。。咱们题目一样。。

请问你投的是什么岗位呀?是用Codility做嘛?可不可以用python写呀~ 感谢感谢!
回复

使用道具 举报

🔗
malaisi 2018-10-27 03:58:34 | 只看该作者
全局:
kitty0924 发表于 2018-10-25 22:20
请问你投的是什么岗位呀?是用Codility做嘛?可不可以用python写呀~ 感谢感谢!

programming analyst。。。。。很cs,不是很适合我哈。可以用很多种语言写,python还分了3和2.7
回复

使用道具 举报

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

本版积分规则

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