楼主: 李浩泉
跳转到指定楼层
上一主题 下一主题
收起左侧

[找工就业] 2020年 微软 亚麻 脸书 Capital ONE DE类编程题

🔗
 楼主| 李浩泉 2020-6-29 19:33:41 | 只看该作者
全局:
  1. """
  2. Write a function that takes the most frequent number
  3. """
  4. def solution(input):
  5.     m = 0
  6.     l = []
  7.     while input > 0:. Χ
  8.         m = input % 10
  9.         input = input // 10
  10.         l.append(m)
  11.     number = 0
  12.     result = 0
  13.     for c in l:.
  14.         n = l.count(c)
  15.         if n > number:
  16.             result = c
  17.             number = n
  18.     return result
  19.     . 1point 3 acres
  20.     . From 1point 3acres bbs
  21. assert solution(1223) == 2
  22. assert solution(4001) == 0
复制代码



补充内容 (2020-9-17 23:23):
from collections import Counter.--

def solution(a):
    l = []
    while a > 0:
        l.append(a%10)
        a = a // 10.google  и
    return Counter(l).most_common()[0][0]
回复

使用道具 举报

🔗
 楼主| 李浩泉 2020-6-29 20:07:44 | 只看该作者
全局:
Input: s = "abc", shift = [[0,1],[1,2]]
. 1point 3acres Output: "cab"
Explanation:
[0,1] means shift to left by 1. "abc" -> "bca"
[1,2] means shift to right by 2. "bca" -> "cab"

. check 1point3acres for more.
  1. def stringShift(self, s: str, shift: List[List[int]]) -> str:
  2.         left = 0
  3.         for nums in shift:. check 1point3acres for more.
  4.             left += nums[1] if nums[0] == 0 else -nums[1]
  5.         left %= len(s). 1point 3acres
  6.         return s[left:] + s[:left]
复制代码


回复

使用道具 举报

全局:
李浩泉 发表于 2020-6-28 01:23
高盛的题,被capital one用了

Given a string S that only contains "I" (increase) or "D" (decrease), ...

很好的贴子,用来指导复习python基础知识。楼主方便的时候能解释一下这道题目的题意吗,没太看明白,十分感谢!
回复

使用道具 举报

🔗
 楼主| 李浩泉 2020-7-16 13:51:05 | 只看该作者
本帖为密码帖 ,请输入密码 
回复

使用道具 举报

🔗
 楼主| 李浩泉 2020-7-17 02:03:33 | 只看该作者
本帖为密码帖 ,请输入密码 
回复

使用道具 举报

🔗
 楼主| 李浩泉 2020-7-17 04:25:45 | 只看该作者
本帖为密码帖 ,请输入密码 
回复

使用道具 举报

🔗
 楼主| 李浩泉 2020-7-17 05:24:22 | 只看该作者
本帖为密码帖 ,请输入密码 
回复

使用道具 举报

🔗
 楼主| 李浩泉 2020-7-17 06:40:48 | 只看该作者
本帖为密码帖 ,请输入密码 
回复

使用道具 举报

🔗
 楼主| 李浩泉 2020-7-17 07:37:13 | 只看该作者
本帖为密码帖 ,请输入密码 
回复

使用道具 举报

🔗
 楼主| 李浩泉 2020-7-17 07:40:40 | 只看该作者
全局:
本帖最后由 李浩泉 于 2020-7-17 08:09 编辑

VO (提前两天,recruiter会告诉你面试的全部人员名单,你可以去问谁是HM,谁是BR). From 1point 3acres bbs

第二轮 11:00 - 12:00 Sr. IT Manager (bar raiser)

1. Customer Obsession
2. Ownership (和第一轮重复,重新说了一遍)
14. Deliver Results (和第一轮重复,重新说了一遍).
13. Have Backbone; Disagree and Commit(和第一轮重复,重新说了一遍).google  и
Bar Raiser聊LP和其他人不一样,她重点在probing questions和challenge questions,讲故事3分钟,后面的问题可以聊10分钟。

Why is this important?
What was the goal?
What was the initial scope of the project?
What were thechallenges?
What were the risks and potential consequences if nothing happend?
Why did you choose this story to illustrate the accomplishment?
What other stories can you think of that accomplishment?
Could you come up with an example that is more recent? (一个LP至少准备3个故事才保险,14个LP除了2个不考,其他12个都要准备,差不多要准备35-40个小文章,每个400-500字的样子,背下来)
What were the most significant obstacles you faced? How did you overcome them?
What were the lessons learned? What would you have done differently?
回复

使用道具 举报

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

本版积分规则

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