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

Tesla Autopilot Research Scientist一轮游

🔗
匿名用户-38MWF  2024-8-8 08:19:02 |倒序浏览

2024(4-6月) MachineLearningEng 硕士 全职@tesla - 网上海投 - 技术电面  | 😐 Neutral 😐 Average | Fail | 在职跳槽

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

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

x
海投被捞的, 特斯拉research engineer, 40分钟一到类似OA里面的
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies

求加米继续看面经
  1. Problem
  2. -------
  3. You're writing a function to select indices of frames given a clip of the car driving.

  4. We want to select frames that are separated *spatially* based on the movement of the car
  5. (as measured in cumulative arc-length). For example, every 5 meters apart. We've already
  6. computed the trajectory for the car, which you have available as a list of (x, y) points with
  7. an arbitrary non-zero distance between each consecutive point.

  8.     [[x_0, y_0],
  9.      [x_1, y_1],
  10.      [x_2, y_2],
  11.        ...
  12.      [x_n, y_n]] <-- current location of the car

  13. The car is currently at the last location in the trajectory.

  14. Additionally you have a list of desired strides, in terms of how many meters ago we want each
  15. frame to be. For example, it will look something like:

  16.     [25.0, 20.0, 15.0, 10.0, 5.0, 0.0]
  17.      ^ furthest frame              ^ current frame

  18. This list is always monotonically decreasing (furthest away frame first, closest frame last).
  19. Furthermore, the list is guaranteed to end with 0.0, i.e. the current frame.

  20. Your task is: for each desired stride, find the index of the frame that's closest to being the
  21. correct distance away. But if the difference between the desired distance and the closest
  22. match we can find ends up >= TOL (defined as a constant 1.0 meters below), then return -1 for
  23. that frame instead (to denote invalid).

  24. Example (1-d)
  25. -------------
  26. >>> trajectory = [
  27.         [0, 11.0],                              # <-- 2.0m ago (matches against desired stride 2.0)
  28.         [0, 10.5],                              # <-- 1.5m ago
  29.         [0, 10.6],                              # <-- 1.4m ago
  30.         [0, 11.1],                              # <-- 0.9m ago (matches against desired stride 1.0)
  31.         [0, 12.0]] # <-- current index = 4      # <-- 0.0m ago (matches against desired stride 0.0)
  32. >>> desired_strides = [3.5, 2.0, 1.0, 0.0]
  33. >>> select_indices(trajectory, desired_strides)
  34. [-1, 0, 3, 4]

  35. Implementation
  36. --------------

  37. 1) Write an implementation of select_indices. Numpy is optional. O(N * M) is acceptable.
  38. 2) Write an implementation of select_indices_batched using Numpy. O(B * N * M) is acceptable.
  39.    It should have no loops.

  40.    N = length of trajectory
  41.    M = length of desired_strides

  42. Feel free to use the internet. You are encouraged to run the code and use the unit tests to debug.

  43. Important Note
  44. --------------
  45. By *cumulative arc-length* we mean that if you travel in a circle, you've traveled cumulatively
  46. some non-zero distance even though the start point and end point are exactly the same.

  47. Special cases
  48. -------------
  49. - Can the same frame be selected by multiple desired strides?
  50.   Answer: Yes! (Assuming it's the closest frame to both desired strides, AND the tolerance is met).

  51. - Can two frames be exactly the same distance away (in terms of cumulative arc-length)?
  52.   Answer: No. You can assume the arclength traveled between two consecutive frames is > 0.01.
  53. """
  54. import numpy as np
  55. from typing import List


复制代码

评分

参与人数 1大米 +5 收起 理由
匿名用户-FN2MQ + 5 欢迎分享你知道的情况,会给更多大米奖励!

查看全部评分


上一篇:拼有趣 L14 Android team match 求捞
下一篇:香蕉厂MLE
全局:
话说。。这不是能每个点计算跟最后location的距离,排序以后二分么?
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-BQ71W  2025-11-18 10:24:17
被问了一模一样的问题。。。要是早点看到就好了
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-81GQ5  2026-5-11 08:17:17
感谢分享!
回复

使用道具 举报

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

本版积分规则

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