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

[求大米] ramp OA 45min question (2025) - CodeSignal Industry Coding Framework

全局:

2025(1-3月) 码农类General 硕士 全职@Ramp - 网上海投 - 在线笔试  | 😐 Neutral 🙂 Easy | Pass | 在职跳槽

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

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

x
本帖最后由 cloudfarm 于 2025-2-2 14:45 编辑

不是论坛里面的90分钟的题. 是一个45分钟的.


We want to query an API endpoint to receive data about currently available apartment listings from a rental website. Among the data fields is a column called num_bedrooms , which takes the value of 1 for a "1-bedroom" apartment and 0 for a "studio".
Note: This rental agency only works with studios and 1-bedroom apartments, so there will never be 2+ bedroom listings. Each listing includes information about a
  1. "studio"
复制代码
or a
  1. "1-bedroom"
复制代码
apartment, so there will never be a listing with both a
  1. "studio"
复制代码
and
  1. "1-bedroom"
复制代码
offerings in one posting.
The algorithm used occasionally mistags the num_bedrooms
value. Specifically, sometimes a "studio" is tagged as having num_bedrooms = 1
or a
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
_CODE_36        ].
  • In the fourth listing,
    1. description
    复制代码
    =
    1. "Beautiful studio with a nearby art studio."
    复制代码
    1. "studio"
    复制代码
    should have
    1. num_bedrooms = 0
    复制代码
    . Ignore the second appearance of
    1. "studio"
    复制代码
    since it is followed by
    1. "art"
    复制代码
    .

    Input/Output
    • [execution time limit] 4 seconds (py3)
    • [memory limit] 1 GB
    • [input] string jsonData
      String in JSON format. It's guaranteed that each listing contains the fields
      1. "id"
      复制代码
      ,
      1. "agent"
      复制代码
      ,
      1. "unit"
      复制代码
      ,
      1. "description"
      复制代码
      and
      1. "num_bedrooms"
      复制代码
      .
      Guaranteed constraints:
      1. 136 ≤ jsonData.length ≤ 15366
      复制代码
      .
    • [output] array.integer
      Return an array that contains the correct values for
      1. num_bedrooms
      复制代码
      for all of the listings in
      1. jsonData
      复制代码
      .
      Note for Python3 users: if you use a numpy array, casting to a list creates a list of
      1. numpy.int64
      复制代码
      integers. Your returned array needs to be an array of standard Python
      1. int
      复制代码
      types.
  • 评分

    参与人数 3大米 +17 收起 理由
    hfpp + 1 给你点个赞!
    mygamer999999 + 1 赞一个
    匿名用户-JYUG8 + 15 欢迎分享你知道的情况,会给更多大米奖励!

    查看全部评分


    上一篇:qube rt qr 笔试
    下一篇:硬币基地vo挂经
    地里匿名用户
    🔗
    匿名用户-3F0QX  2025-2-13 09:06:09 来自APP
    Thanks for sharing !
    回复

    使用道具 举报

    地里匿名用户
    🔗
    匿名用户-PDT6V  2025-4-10 02:30:36
    感谢分享!
    回复

    使用道具 举报

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

    本版积分规则

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