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

SoFi IC3 Senior全套过经

🔗
匿名用户-TGQLT  2024-10-5 00:51:29 |倒序浏览

2024(7-9月) 码农类General 硕士 全职@sofi - 网上海投 - Onsite 视频面试  | 😃 Positive 😐 Average | Pass | 在职跳槽

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

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

x
网银全套。

第一轮coding。白人小哥。neighbor words. lc 127.建个graph 然后bfs。还行。
第二轮coding。中国小哥。
  1. /**
  2. Question:
  3. Let’s say on the website, we keep track of what specific pages/products members are viewing, for things like business metrics.
  4. Every time somebody comes to the website, we write a record to a log file consisting of Timestamp, PageId, CustomerId. At the end of the day we have a big log file with many entries in that format. And for every day we have a new file.
  5. Now, given two log files (log file from day 1 and log file from day 2) we want to generate a list of ‘loyal members’ that meet the criteria of: (a) they came on both days, and (b) they visited at least two unique pages.
  6. */
复制代码
答案放后面大家自己参考。
第三个印度大哥senior staff 面SD。让你design 一个gift card的系统,可以track user的gift cards, 还有balance。然后如果用户消费了,第三方会有消息过来,你怎么处理和update
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
eedback不错。但是差点,只能给ic3 。

Recruiter说感觉给你直接发offer也没啥意义,你考虑一下。

十动然拒。

大家给点米好不好?发的面经都没有米,没有动力了啊。
  1. public class Solution {

  2.     public static void main(String[] args) {
  3.         String[][] log1 = new String[][]{{"t11", "p1", "c1"}, {"t12", "p2", "c2"}, {"t13","p3", "c3" }, {"t13","p4", "c4" }, {"t14","p2", "c4" }};
  4.         String[][] log2 = new String[][]{{"t21", "p1", "c1"}, {"t22", "p1", "c2"}, {"t23","p3.1", "c3" }};
  5.         
  6.         Set<String> result = identify(log1, log2);
  7.         System.out.println(result);
  8.         
  9.         
  10.         String[][] log11 = new String[][]{{"t11", "p1", "c1"}, {"t12", "p2", "c1"}, {"t13","p3", "c1" }, {"t13","p4", "c4" }, {"t14","p2", "c4" }};
  11.         String[][] log21 = new String[][]{{"t21", "p1", "c1"}, {"t22", "p5", "c1"}, {"t23","p3.1", "c3" }};
  12.         Set<String> result2 = identify(log11, log21);
  13.         System.out.println(result2);
  14.     }
  15.    
  16.    
  17.     public static Set<String> identify(String[][] list1, String[][] list2) {
  18.         // identify the common customers within the 2 list,
  19.         // count of the visite page uniquely > 2
  20.         
  21.         // iterate the list1, identify all unique customers => set of customer set1
  22.         // ietrate the list2,  => if a customer is in set1 => first => set 2
  23.         
  24.         // iterate the customers in set2 identify the unique customer
  25.         
  26.         // list1 => transform into a map => customerid => set of pageIds
  27.         // LIST2 => TRANSFORMA into a map => customer id => set of pageIds
  28.         //
  29.         
  30.         /**
  31.         
  32.         m log1  n log2
  33.         
  34.         O(m) + O(n) => O(max(m, n));
  35.         
  36.         let the unique customers be k, the maximum page visited j
  37.         
  38.         K => J
  39.         
  40.         O(max(k, j))
  41.         
  42.         
  43.         O(m + n);
  44.         
  45.         compare the size of the 2 input, and construct a map using the short list,
  46.         => O(min(m, n)); => if size of the value is >= 2; drop => skip
  47.    
  48.         
  49.         */
  50.         
  51.         // set result => Map<String, String> result : customer id to timestamp map
  52.         Set<String> result = new HashSet<>();
  53.         
  54.         Map<String, Set<String>> map = new HashMap<>(); // map => set of unique pages
  55.         
  56.         for (String[] log: list1) {
  57.             // String ts = log[0];
  58.             String pageId = log[1];
  59.             String customerId = log[2];
  60.             
  61.             map.putIfAbsent(customerId, new HashSet<>());
  62.             map.get(customerId).add(pageId);
  63.         }
  64.         
  65.         for (String[] log: list2) {
  66.             String pageId = log[1];
  67.             String customerId = log[2];
  68.             if (!map.containsKey(customerId)) { // customer didn't visite yesterday
  69.                 continue;
  70.             }
  71.             
  72.             if (map.get(customerId).size() < 2) { // only add if customer < 2
  73.                 map.get(customerId).add(pageId);

  74.             }

  75.             if (map.get(customerId).size() >= 2) {
  76.                 result.add(customerId); // result.put(customerId, Math.max(map.get(customerId), timestamp));
  77.              }
  78.         }
  79.         
  80.         return result;
  81.         
  82.     }
  83. }
复制代码

评分

参与人数 8大米 +17 收起 理由
wzzdc1996 + 1 欢迎分享你知道的情况,会给更多积分奖励!
mygamer999999 + 1 赞一个
astray1988 + 1 很有用的信息!
lookrain + 1 给你点个赞!
苦行僧 + 1 给你点个赞!

查看全部评分


上一篇:#MLE: 请问哪个公司的MLE面试形式和META相似?#
下一篇:帕洛阿托网店面
地里匿名用户
推荐
匿名用户-TGQLT  2025-7-25 09:01:58 来自APP
匿名用户 发表于 2025-07-24 15:46:35
想问下面试coding轮是用的Karat吗?
hackerank吧
回复

使用道具 举报

地里匿名用户
推荐
匿名用户-TGQLT  2025-2-16 09:58:55 来自APP
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies

评分

参与人数 1大米 +1 收起 理由
richard_515 + 1 赞一个

查看全部评分

回复

使用道具 举报

地里匿名用户
推荐
匿名用户-TGQLT  2024-11-9 08:41:21 来自APP
匿名用户 发表于 2024-11-08 16:30:11
哦哦哦 大厂还没面是吗 我现在都在一起面 如果你准备面了可以交流哈
面完啦。其他的面经我也都发了。你加油!!
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-ZXM8U  2024-10-5 04:06:49
ic4是staff?所以他家ic3给多少tc啊?
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-WZUYB  2024-10-5 04:46:24 来自APP
那他家sde2是ic3?
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-TGQLT  2024-10-5 05:00:21
匿名用户 发表于 2024-10-4 13:06
ic4是staff?所以他家ic3给多少tc啊?

他家的staff。可能就是外面的senior。
ic3 据说300 - 400k之间。
ic4 > 400k
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-TGQLT  2024-10-5 05:01:02

title 是senior。但是3/4 yoe的就能是senior。可能level 分得比较细。
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-WZUYB  2024-10-5 05:03:36 来自APP
匿名用户 发表于 2024-10-04 14:01:02
title 是senior。但是3/4 yoe的就能是senior。可能level 分得比较细。
明白了感谢!
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-VHDHZ  2024-10-5 23:45:04 来自APP
Lz 决定接了吗?
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-TGQLT  2024-10-6 02:14:26

没。不接了。
回复

使用道具 举报

全局:
”最后和老哥讨论了很多db的东西。比如我说用ddb的话我把live 放在0,老哥说fintech的话都是直接写后面。不改第一个。之类的。“
楼主可以对这个扩展吗?什么是live?db讨论了什么
回复

使用道具 举报

全局:
System design 要写code吗
回复

使用道具 举报

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

本版积分规则

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