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

Zoox电面经验

全局:

2019(7-9月) 码农类General 硕士 全职@zoox - 猎头 - 技术电面  | | Other | 在职跳槽

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

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

x
本帖最后由 zenlotus 于 2019-10-10 04:30 编辑

Zoox (无人车/智能车) 软件工程师电面

由于该公司核心团队主要是用C++,所以选择了C++面试

第一面并不太理想,反馈是说C++的知识性的问题回答得还可以,就是编程题不太好,该题主要是靠OO设计、多态性等

“设计一个批处理图像的简单系
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
peline? ”
  1. // Mock image manipulation library.
  2. // Do not modify.
  3. namespace ImgLib {

  4. void convertToGrayScale (Image & img) {
  5.   cout << img.name() << ": Converting to gray scale" << endl;
  6. }

  7. void blur (Image & img, float factor) {
  8.   cout << img.name() << ": Blurring with factor " << factor << endl;
  9. }

  10. void resize (Image & img, int x, int y) {
  11.   cout << img.name() << ": Resizing img with x = " << x << " and y = " << y << endl;
  12. }

  13. void blend (Image & img, const Image& other) {
  14.   cout << img.name() << ": Blending with " << other.name() << endl;
  15. }

  16. // ******************************************************************
  17. // *                                                                *
  18. // *  NOTE: There are at least 1000 additional functions.           *
  19. // *  The rest have been omitted due to the scope of the exercise.  *
  20. // *                                                                *
  21. // ******************************************************************

  22. } // namespace ImgLib
复制代码





后来领会到主要是要做成抽象类,pure virtual function等
大概是这个样子
  1. class AbstractOperation {
  2. public:
  3.   virtual ~AbstractOperation() = default;
  4.   virtual void execute(Image& image) = 0;
  5. };

  6. class ConvertToGrayScaleOperation : AbstractOperation {
  7. public:
  8.   ConvertToGrayScaleOperation();
  9.   Execute(Image& image) {
  10.     ImgLib::ConvertToGrayScale(image);
  11.   }
  12. };

  13. class BlurOperation : AbstractOperation {
  14. public:
  15.   BlurOperation(double factor) : factor_(factor);
  16.   Execute(Image& image) {
  17.     ImgLib::Blur(image, factor_);
  18.   }
  19. private:
  20.   double factor_;
  21. }

  22. class ResizeOperation : AbstractOperation {
  23. public:
  24.   ResizeOperation(int width, int height) : width_(width), height_(height);
  25.   Execute(Image& image) {
  26.     ImgLib::Resize(image, width_, height_);
  27.   }
  28. private:
  29.   int width_;
  30.   int height_;
  31. }
复制代码








评分

参与人数 3大米 +19 收起 理由
lishiyi + 3 给你点个赞!
louislgyc + 1 给你点个赞!
匿名用户-ISXO3 + 15

查看全部评分


上一篇:FB ML intern phone
下一篇:Apple phone interview-hardware
🔗
liutian16 2019-10-17 02:58:43 | 只看该作者
全局:
楼主面完多久收到feedback的呀
回复

使用道具 举报

🔗
 楼主| zenlotus 2019-10-17 03:01:07 | 只看该作者
全局:
liutian16 发表于 2019-10-17 02:58
楼主面完多久收到feedback的呀

不太久,我面试后第二天自己写邮件去问情况,他们就告诉需要加面一轮
回复

使用道具 举报

🔗
liutian16 2019-10-17 06:21:22 | 只看该作者
全局:
zenlotus 发表于 2019-10-17 03:01
不太久,我面试后第二天自己写邮件去问情况,他们就告诉需要加面一轮

哦哦 多谢  我昨天刚面完一面 还不知道结果如何
后来你去onsite了吗
回复

使用道具 举报

🔗
 楼主| zenlotus 2019-10-17 06:49:50 | 只看该作者
全局:
liutian16 发表于 2019-10-17 06:21
哦哦 多谢  我昨天刚面完一面 还不知道结果如何
后来你去onsite了吗

没有啊,第二面挂了,主要是对我C++的熟悉程度不太满意

并不是都要第二面,一般是第一面不太确定,才需要第二面
回复

使用道具 举报

🔗
liutian16 2019-10-17 08:29:20 | 只看该作者
全局:
zenlotus 发表于 2019-10-17 06:49
没有啊,第二面挂了,主要是对我C++的熟悉程度不太满意

并不是都要第二面,一般是第一面不太确定,才 ...

知道了 谢谢楼主!
回复

使用道具 举报

🔗
pr1234567 2022-10-5 13:59:17 | 只看该作者
全局:
这个抽象感觉根本没有必要啊
回复

使用道具 举报

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

本版积分规则

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