📣 独立日限时特惠: VIP通行证立减$68
12
返回列表 发新帖
楼主: 老子ggyy
跳转到指定楼层
上一主题 下一主题
收起左侧

Amazon hackerrank OA, 60 min,一道题,没见过的。

🔗
 楼主| 老子ggyy 2015-9-21 10:22:21 | 只看该作者
全局:

谢啦~,大家都搞定~
回复

使用道具 举报

🔗
 楼主| 老子ggyy 2015-9-21 10:23:37 | 只看该作者
全局:
有同学说看不到图,照着敲了一遍:

For input your receive a string that represents all text in a file.
Lines in the string are separated by '\n' and words in the lines are separated by spaces.

Write a function that parses the file and returns a string containing all the words in a file in alphabetical order and the line numbers containing the words.
The index built should be case insensitive and the results should be all lower case.

Consider this example input:
  1. My name is Simon
  2. my favorite color is blue
  3. Why is the sky blue
复制代码
The function should return:
  1. blue 2,3
  2. color 2
  3. favorite 2
  4. is 1,2,3
  5. my 1,2
  6. name 1
  7. simon 1
  8. sky 3
  9. the 3
  10. why 3
复制代码
回复

使用道具 举报

🔗
huarsenal 2015-9-23 04:29:11 | 只看该作者
全局:
谢谢楼主,这题的 function signature 是啥呀?
回复

使用道具 举报

🔗
 楼主| 老子ggyy 2015-9-25 14:32:15 | 只看该作者
全局:
huarsenal 发表于 2015-9-23 04:29
谢谢楼主,这题的 function signature 是啥呀?

印象中应该是 string f(string) 吧
回复

使用道具 举报

🔗
Soloking_Saxon 2015-10-17 07:02:49 | 只看该作者
全局:
请问楼主为何你的是hackrank上的OA?
回复

使用道具 举报

🔗
billlipeng 2015-11-13 06:38:00 | 只看该作者
全局:
楼主,hackrank上面开摄像头吗?屏幕录像吗?
回复

使用道具 举报

🔗
 楼主| 老子ggyy 2015-11-13 08:16:35 | 只看该作者
全局:
billlipeng 发表于 2015-11-13 06:38
楼主,hackrank上面开摄像头吗?屏幕录像吗?

不用开摄像头,屏幕录像不知道,应该没有吧。
回复

使用道具 举报

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

本版积分规则

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