San Jose各个房价 <1.5m 区域买房总结

一亩三分地论坛

 找回密码
 Sign Up 注册获取更多干货
E轮2.5亿美元融资
K12教育独角兽一起作业
北京-诚聘人工智能/教育/大数据岗
坐标湾区
Games Startup
招聘游戏开发工程师
游戏初创公司招聘工程师、UIUX Designer和游戏策划
码农求职神器Triplebyte:
不用海投
内推多家公司面试
把贵司招聘信息放这里
查看: 2378|回复: 3
收起左侧

IBM Cloud OA新鲜跪经。。。。。

[复制链接] |试试Instant~ |关注本帖
小翔926 发表于 2016-4-16 14:54:04 | 显示全部楼层 |阅读模式

2016(4-6月) 码农类General 硕士 实习@IBM - 网上海投 - 在线笔试  | Other | fresh grad应届毕业生

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

您需要 登录 才可以下载或查看,没有帐号?Sign Up 注册获取更多干货

x
正在做IBM的OA献上新鲜的直播……5道题
第一题 问想去的城市……全选


                               
登录/注册后可看大图
. visit 1point3acres for more.
-google 1point3acres

第二题 让选择Java和Python………………我去楼主是CPP选手啊= =……让好基友帮我做的,我的锅,没告清楚他输入……30分钟……结果因为输入没弄对……傻逼了-google 1point3acres
Programming Challenge Description:
A web server logs page views in a log file. The log file consists of a line per page view. A page view consists of a page id and a user id, separated by a comma. The affinity of a pair of pages is the number of distinct users who viewed both.
Input:
For example, in the log file below, the affinity of “user1” and “user2” is 2

User1,page1. 一亩-三分-地,独家发布

User2,page1

User3,page2

User2,page3. 围观我们@1point 3 acres

User2,page3

User2,page4
. more info on 1point3acres
User3,page3

User3,page1

User1,page3

User2,page4


Output:
The Code should be able to handle various length and combinations.
. more info on 1point3acres

Test Case1:
Input: User1, User2
Output: 2
Test Case2:. more info on 1point3acres
Input: User2, User3
Output: 2



                               
登录/注册后可看大图

第三题……不限时间
Programming Challenge Description:
The goal of this challenge is to design a cash register program. You will be given two decimal numbers. The first is the purchase price (PP) of the item. The second is the cash (CH) given by the customer. Your register currently has the following bills/coins within it:
'PENNY': .01,
'NICKEL': .05,
'DIME': .10,
'QUARTER': .25,
'HALF DOLLAR': .50,. 1point3acres
'ONE': 1.00,
'TWO': 2.00,
'FIVE': 5.00,
'TEN': 10.00,
'TWENTY': 20.00,.1point3acres网
'FIFTY': 50.00,
'ONE HUNDRED': 100.00
The aim of the program is to calculate the change that has to be returned to the customer..1point3acres网

Input:. more info on 1point3acres
Your program should read lines of text from standard input. Each line contains two numbers which are separated by a semicolon. The first is the Purchase price (PP) and the second is the cash(CH) given by the customer.

Output:. 1point 3acres 论坛
For each line of input print a single line to standard output which is the change to be returned to the customer. In case the CH < PP, print out ERROR. If CH == PP, print out ZERO. For all other cases print the amount that needs to be returned, in terms of the currency values provided. The output should be alphabetically sorted.

Test 1
Test Input Download Test Input15.94;16.00
Expected Output Download Test OutputNICKEL,PENNY
Test 2
Test Input Download Test Input17;16 来源一亩.三分地论坛.
Expected Output Download Test OutputERROR
Test 3
Test Input Download Test Input35;35
Expected Output Download Test OutputZERO
Test 4.本文原创自1point3acres论坛
Test Input Download Test Input45;50
Expected Output Download Test OutputFIVE


. From 1point 3acres bbs
                               
登录/注册后可看大图

第四题……我靠能用CPP了……激动……又不限时间了
Programming Challenge Description:
Write a program that, given a string, outputs a new string that contains each character in the original string exactly one time, followed by the frequency of occurrences of that character in the original string, and in alphabetical order.

Input:
Your program should read lines from standard input. Each line contains a string. The string will consist of ASCII characters and no spaces. Ignore case when considering a character. e.g. 'a' and 'A' are to be interpreted to be the same. When printing out the character, it should always be in lowercase and the characters should be alphabetically sorted.

Output:
Print to standard output the new string comprised of each character followed by its frequency. Print out each result on a new line.

Test 1
Test Input Download Test Inputhello 来源一亩.三分地论坛.
Expected Output Download Test Outpute1h1l2o1
Test 2
Test Input Download Test Inputmighty
Expected Output Download Test Outputg1h1i1m1t1y1. more info on 1point3acres


.留学论坛-一亩-三分地
                               
登录/注册后可看大图
-google 1point3acres
第五题 .留学论坛-一亩-三分地
Programming Challenge Description:
Given two integers N and M, count the number of prime numbers between N and M (both inclusive).

Input:
Your program should read lines from standard input. Each line contains two comma-separated positive integers.

Output:
Print out the number of primes between N and M (both inclusive).

Test 1. from: 1point3acres
Test Input Download Test Input2,10
Expected Output Download Test Output4


。。。。。。。。。。。。。。。。。。。。。。。。。楼主实习要找不到了……感觉暑期要各种语言刷一次了……

本帖被以下淘专辑推荐:

我们家的狗叫猫 发表于 2016-10-17 22:22:37 | 显示全部楼层
时隔这么久 挖到了楼主这帖子 好搞笑 楼主最后找到了吗
回复 支持 反对

使用道具 举报

 楼主| 小翔926 发表于 2016-10-18 02:21:08 | 显示全部楼层
我们家的狗叫猫 发表于 2016-10-17 06:22. 1point 3acres 论坛
时隔这么久 挖到了楼主这帖子 好搞笑 楼主最后找到了吗

这是一个伤心的故事。。。没找到。。。。。。要早点找。。。。刚来了上学就开始。。。
回复 支持 反对

使用道具 举报

我们家的狗叫猫 发表于 2016-10-18 23:39:41 | 显示全部楼层
小翔926 发表于 2016-10-18 02:21
这是一个伤心的故事。。。没找到。。。。。。要早点找。。。。刚来了上学就开始。。。

楼主别灰心 刷好题 直接fulltime
回复 支持 反对

使用道具 举报

本版积分规则

提醒:发帖可以选择内容隐藏,部分板块支持匿名发帖。请认真读完以下全部说明:

■隐藏内容方法: [hide=200]你想要隐藏的内容比如面经[/hide]
■意思是:用户积分低于200则看不到被隐藏的内容
■可以自行设置积分值,不建议太高(200以上太多人看不到),也不建议太低(那就没必要隐藏了)
■建议只隐藏关键内容,比如具体的面试题目、涉及隐私的信息,大部分内容没必要隐藏。
■微信/QQ/电子邮件等,为防止将来被骚扰甚至人肉,以论坛私信方式发给对方最安全。
■匿名发帖的板块和方法:http://www.1point3acres.com/bbs/thread-405991-1-1.html

关闭

一亩三分地推荐上一条 /5 下一条

手机版|小黑屋|一亩三分地论坛声明

custom counter

GMT+8, 2018-5-26 02:59

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

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