查看: 1605| 回复: 1
跳转到指定楼层
上一主题 下一主题
收起左侧

[找工就业] 开花堡电面

全局:

2020(7-9月)-CS硕士+1-3年 | 网上海投|大纽约地区 码农类General全职@bloomberg

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

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

x
开花堡电面:

一个很nice的美国人,简单的自我介绍后,开始coding:

1. 给一个boolean array numbers , 如果numbers index 是prime number,  update array[index] 为 true else false. range 是[2, numbers.length-1]

for(int i=2; i<numbers.length; i++) {.google  и
    if (numbers[i]) {
         for(int j = 2; j * i <= numbers.length; j++) {
               numbers[i*j] = false;
          }
     }
}

2.  使用LRU 结构储存url.

. Χ/ API & storage design: class for maintaining the URL history function of a web browser

// each visit to a unique URL (string) is recorded
// if the same URL is visited again, it should not be duplicated, but should be moved to the front of the list
public class BrowserHistory {
// function to record a visited URL

// function to return list of visited URLs in chronological order.
// (assume most recent to oldest, but allow flexibility for reverse order later)

// data members, helper functions?

一天后,面试官通知过了,不过第二轮电面。

评分

参与人数 3大米 +3 收起 理由
andysli6590 + 1 支持
Esperical + 1 给你点个赞!
armu + 1 赞一个

查看全部评分


上一篇:水果组distributed挂经
下一篇:疫情下找到500Fortunte工作,美东供应链分析专业的我经历了什么
🔗
Esperical 2020-10-14 15:00:37 | 只看该作者
全局:
楼主第一题方便细讲讲题目描述吗? 你code里j*i明显不是prime啊
回复

使用道具 举报

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

本版积分规则

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