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

MEDALLIA online test【完整题目版】

全局:

2014(1-3月) 码农类General 硕士 全职@MEDALLIA - 网上海投 - 在线笔试  | | Other |
之前有同学贴过,但是不是很完全,今天我就把我做的online test的完整版贴过来。貌似M都不换题的。。。两题都是之前同学简要介绍的原题。
大家加油~~
Question 1 /2 (Reverse a linked list)
Reverse a singly-linkedlist in blocks of k in place. An iterative approach is preferred.
The first block of theresulting list should be maximal with regards to k.  If the list containsn elements, the last block will either be full (containing k elements) orcontain n mod k elements.
For example:
For k = 2 and input list= [1, 2, 3, 4, 5, 6, 7, 8, 9], then the resulting blocks are (8, 9), (6, 7),(4, 5), (2, 3) and (1), so the actual reversed lis
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
o restrictions bythe submission system:

  • DO     NOT CHANGE OR INCLUDE the commented out main method or outer class     declaration in your submission.  These are provided for your     convenience in running in an IDE only.
  • Do     not rename the provided methods
  • Do     not write to stdout in your submission


We suggest you copy theprovided code into your favorite IDE, solve the problem, then copy the relevantportion back.

本帖子中包含更多资源

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

x

评分

参与人数 3大米 +73 收起 理由
Ilovefreedom + 3 楼主好人
jby1797 + 10
北美农民 + 60

查看全部评分


上一篇:ETSY面试
下一篇:FactSet Research Systems面经

本帖被以下淘专辑推荐:

全局:
Zhenying 发表于 2014-10-2 15:22
积分不够图看不到啊。。。
请问第二题怎么做的?首先树是二叉树么?其次怎么找出所有的公共子树啊?
谢谢

我贴了个我的解法http://www.1point3acres.com/bbs/ ... D311%26sortid%3D311
一起讨论
回复

使用道具 举报

推荐
ohmystill 2014-10-20 23:17:48 | 只看该作者
全局:
楼主  你的 code 没法实现 这个 功能
If there are separategroups of subtrees that are in common with the same maximal size, then youshould return the root nodes from all of the subtrees.
稍微改一下就行
回复

使用道具 举报

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

使用道具 举报

🔗
exuberance 2014-3-9 04:00:09 | 只看该作者
全局:
大赞,谢谢楼主分享,Good Luck !
回复

使用道具 举报

🔗
qwert1234567 2014-3-9 05:51:56 | 只看该作者
全局:
我也投了,到现在连个消息都没。。
回复

使用道具 举报

🔗
hmsun77 2014-9-19 00:52:14 | 只看该作者
全局:
wa~感谢楼主分享!
回复

使用道具 举报

🔗
chasedream 2014-10-1 12:54:01 | 只看该作者
全局:
楼主你有消息吗?
回复

使用道具 举报

🔗
Zhenying 2014-10-2 15:22:02 | 只看该作者
全局:
积分不够图看不到啊。。。
请问第二题怎么做的?首先树是二叉树么?其次怎么找出所有的公共子树啊?
谢谢
回复

使用道具 举报

🔗
int_179 2014-10-3 03:08:46 | 只看该作者
全局:
这也忒难了吧,尤其是第二题,多叉树怎么办
回复

使用道具 举报

🔗
present1117 2014-10-16 10:38:51 | 只看该作者
全局:
投了简历直接被拒,连OA都没给。。。要求好严
回复

使用道具 举报

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

本版积分规则

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