<
回复: 2
收起左侧

Scientech 笔试题目

本楼:   👍  1
50%
50%
1   👎
全局:   14
82%
18%
3

2022(10-12月) 金工类 本科 实习@scientech-research - 内推 - 在线笔试  | 😐 Neutral 🙂 EasyOther | 其他

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

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

x
做了scientech的quant developer的笔试题 感觉还比较简单 看地里都没有相关的面经,于是自爆下。问题大致如下:

Variable-length encoding is a way to encode integers space-efficiently. An integer to be encoded is split into 7-bit chunks, each of which is encoded as the 7 least significant bits of an output byte, while the most significant bit (MSB) signifies whether there are more bytes following this one. The last byte of an encoded integer always has 0 as its MSB. Here is an example of encoding decimal number 558 using variable-length encoding algorithm.
1. Represent the value in binary notation: 558 is 00001000101110.
2. Split into 7-bit chunks starting from the least significant bit. This step yields: 0000100 0101110.
3. For the first 7-bit chunk 0000100, since there are more chunks to come, set MSB to 1 and copy the chunk to output. The output buffer currently contains: 10000100.
4. For the second 7-bit chunk 0101110, since this is the last chunk, set MSB to 0 and copy the chunk to output. The output buffer currently contains: 10000100 00101110.
5. Thus the output of encoding is 0x842e in hexdecimal form. The decoding algorithm is the opposite of the encoding algorithm.

Question 1
The objective of this interview question is to implement a v
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
itive and negative integers? Please explain how you can modify the current binary representation to allow both positive and negative number. Then put your ideas into code.
Feel free to share code between two questions, but please comment clearly as how we can use it as the basic positive integer library and how we can use it for signed integers.

还是比较友善的,请加米!!!

评分

参与人数 3大米 +17 收起 理由
Dreamtalezhy + 1 赞一个
vincy_20 + 1 很有用的信息!
清道神君 + 15

查看全部评分


上一篇:Nordstrom HireVue summer intern oa
下一篇:Cisco SDE NG OA
Whats312 2023-2-23 09:46:28 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   13
100%
0%
0
大佬Scientech面到哪里啦?
回复

使用道具 举报

JFFFF 2023-2-28 03:15:01 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   42
89%
11%
5
做完OA感觉自己写的还行,然后就挂了
扫码关注一亩三分地求职移民公众号
更多干货内容等你发现
回复

使用道具 举报

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

本版积分规则

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