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

Cryptic Studios 新鲜的面经

全局:

2015(7-9月) 码农类General 硕士 全职@Cryptic Studios - 网上海投 - 在线笔试  | | Other | 应届毕业生

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

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

x
Cryptic Studios 新鲜的面经
网上海投[size=12.8000001907349px]Cryptic Studios[size=12.8000001907349px] 他们家的software engineer的职位,hr联系我说会有一个6~8小时的c test interview(OA), hr说最好能在5小时内完成,老师说被吓到了。昨天打开了链接, 题目确实是6~8小时的量,甚至是8+!做出了一道题,剩下一道木有时间了,于是草草交了。把题目发上来供大家参考,如果有面试它们家的小伙伴,可以提前看看题准备一两天,写出来了再面,个人觉得6~8小时搞定这两道题对于非大神级别的人来说还是很不科学的。
[size=12.8000001907349px]Speed is a factor, so the sooner you get it back to us, the better, but please do not send it back until it is complete.
[size=12.8000001907349px]

[size=12.8000001907349px]Standard C or C++ are the preferred languages for this test, but this is not an absolute requirement. Please use a compiler to test your code. Don't worry about dealing with illegal inputs or giant data sets. You should *not* use reference materials (other than language references) for this test.
[size=12.8000001907349px]

[size=12.8000001907349px]Additionally, please specify how your test was compiled and run. If we cannot compile and run your test with a minimum of modification, it will receive a failing grade.
[size=12.8000001907349px]

[size=12.8000001907349px]

[size=12.8000001907349px]1. Write a function that accepts a string of digits and a target value as input parameters. This function should output the two input values followed by a string with +'s and *'s between the digits so the result of evaluating the mathematical expression is the target value. Pay attention to operator precedence. Note there may be more than one answer, it doesn't matter which one you print.
[size=12.8000001907349px]

[size=12.8000001907349px]Examples:
[size=12.8000001907349px]"1231231234",11353 -> "12*3+1+23*123*4"
[size=12.8000001907349px]"3456237490",1185 -> "3*4*56+2+3*7+490"
[size=12.8000001907349px]"3456237490",9191 -> "no solution"
[size=12.8000001907349px]

[size=12.8000001907349px]

[size=12.8000001907349px]2. Write a function "void link(char **tiles)" that accepts a list of 'tiles' in the provided format below. It should link the tiles together sequentially in the order they are given, and print out the current count and arrangement of tiles at each step exactly as shown in the example output below, including the note about how far the tile had to be rotated.
[size=12.8000001907349px]

[size=12.8000001907349px]A tile is a 2-by-2 square split into quadrants, where each quadrant has a number from 0 to 9. After the first tile, a tile can be legally placed if at least two of its quadrants match quadrants on adjacent tiles horizontally or vertically. A tile cannot be legally placed in a location if it would have fewer than two matching quadrants or has any quadrants that do not match horizontally or vertically. Tiles can be rotated, and tiles can be placed in offset positions as demonstrated with tile 9 in the third example. The inputs are always designed so there is only one place a tile will fit.
[size=12.8000001907349px]

[size=12.8000001907349px]Examples:
[size=12.8000001907349px]char *tiles1[] = {
[size=12.8000001907349px]        "11",     // 1
[size=12.8000001907349px]        "23",
[size=12.8000001907349px]        "",
[size=12.8000001907349px]        "44",     // 2
[size=12.8000001907349px]        "11",
[size=12.8000001907349px]        "",
[size=12.8000001907349px]        "16",     // 3
[size=12.8000001907349px]        "36",
[size=12.8000001907349px]        "",
[size=12.8000001907349px]        "51",     // 4
[size=12.8000001907349px]        "71",
[size=12.8000001907349px]        "",
[size=12.8000001907349px]        "46",     // 5
[size=12.8000001907349px]        "26",
[size=12.8000001907349px]        "",
[size=12.8000001907349px]        "14",     // 6
[size=12.8000001907349px]        "68",
[size=12.8000001907349px]        0};
[size=12.8000001907349px]

[size=12.8000001907349px]

[size=12.8000001907349px]link(tiles1) prints:
[size=12.8000001907349px]

[size=12.8000001907349px]6 tiles
[size=12.8000001907349px]link 1
[size=12.8000001907349px]11
[size=12.8000001907349px]23
[size=12.8000001907349px]
[size=12.8000001907349px]link 2
[size=12.8000001907349px]44
[size=12.80000
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
]93

[size=12.8000001907349px]933995
[size=12.8000001907349px]999886
[size=12.8000001907349px]
[size=12.8000001907349px]link 6
[size=12.8000001907349px]11
[size=12.8000001907349px]12
[size=12.8000001907349px]12
[size=12.8000001907349px]93
[size=12.8000001907349px]93399557
[size=12.8000001907349px]99988666
[size=12.8000001907349px]
[size=12.8000001907349px]link 7
[size=12.8000001907349px]11
[size=12.8000001907349px]12
[size=12.8000001907349px]12    77
[size=12.8000001907349px]93    57
[size=12.8000001907349px]93399557
[size=12.8000001907349px]99988666
[size=12.8000001907349px]
[size=12.8000001907349px]link 8
[size=12.8000001907349px]1113
[size=12.8000001907349px]1224
[size=12.8000001907349px]12    77
[size=12.8000001907349px]93    57
[size=12.8000001907349px]93399557
[size=12.8000001907349px]99988666
[size=12.8000001907349px]
[size=12.8000001907349px]link 9
[size=12.8000001907349px]1113
[size=12.8000001907349px]122445
[size=12.8000001907349px]12  4777
[size=12.8000001907349px]93    57
[size=12.8000001907349px]93399557
[size=12.8000001907349px]99988666
[size=12.8000001907349px]
[size=12.8000001907349px]link 10
[size=12.8000001907349px]1113
[size=12.8000001907349px]122445
[size=12.8000001907349px]12244777
[size=12.8000001907349px]9339  57
[size=12.8000001907349px]93399557
[size=12.8000001907349px]99988666
[size=12.8000001907349px]祝各位好运~🍀



上一篇:yelp onsite 面经
下一篇:Epic OA
🔗
swing 2015-8-11 03:51:57 | 只看该作者
全局:
谢谢分享,虽然我不会C的面试~
回复

使用道具 举报

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

使用道具 举报

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

本版积分规则

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