
Goldman Sachs面试出了名难,特别注重behavioral,当然technical得考核也是比较严格的,所以要提前充分准备!Goldman的面试是用CoderPad写题,下面分享下本周刚刚support的高盛OA和VO。
OA 2 Coding + 9个数学选择题
CoderPad 1:Area of box, given 2d array queries with [[row, col]], how many boxes can be formed for each query? A box is a a × a box for 1 ≤ a ≤ min(row, col)
- 这道题的解题思路不难,主要是找规律,画出来就完事了,公式是
(row - a + 1) * (col - a + 1)
,code就几行很简单,找到所有可能的正方形相加即可。
def count_squares_for_queries(queries):
results = []
for row, col in queries:
total_squares = 0
max_size = min(row, col)
for a in range(1, max_size + 1):
total_squares += (row - a + 1) * (col - a + 1)
results.append(total_squares)
return results
CoderPad 2:Longest subarray, give the maximum length of subarray with sum ≤ k
- 使用滑动窗口,不断移动左右指针,用一个变量记录最大的子数组长度即可。
def longest_subarray_with_sum_at_most_k(nums, k):
left = 0
current_sum = 0
max_length = 0
for right in range(len(nums)):
current_sum += nums[right]
while current_sum > k:
current_sum -= nums[left]
left += 1
max_length = max(max_length, right - left + 1)
return max_length
接下来是数学选择题,一共9道题,大概40分钟完成。
- 摇骰子456对手的得一分123你得一分,赢家必须到达5以上并且分数比对手大2。现在是5平局,我赢的概率是多少?
- 5张随机扑克,3张是A,问4张是A的概率
- 给积分求级数通项
- 求积分导数
- 3×3线性方程组,问解是否consistent和unique
- 摇骰子。摇到1重摇,如果平局输,问赢的概率
- 路径积分
- 给3个algebra的statement判断对错。和eigenvalue,determinant,identity matrix有关
- 100个p=0.5的Bernoulli variables的和求小于60的概率
Hirevue问题
Goldman的Hirevue一共六道题,面试前有45秒准备,2分钟回答一题,时间还是比较紧张的
1. Walk through your resume
2. Working with someone who was not completing his or her part. What did you do?
3. A time you met a high challenge goal that someone else thought you could not make it
4. A time you turned down a project or opportunity because you have a conflict
5. You decide to take extra class and you are overwhelmed. You are doing an individual project that prohibits teamwork and your classmate want to help you?What would you do?
6. How do you debug?
Read More
Goldman Sachs Interview Preparation
Goldman Sachs Coderpad OA | 一亩三分地
Contact Us
经过我们的强力面试辅助,OA代写,候选人通过这些面试题的解析和沟通,面试官不仅了解了候选人的编程能力,也看到了我在解决问题过程中清晰的思路和有效的沟通技巧。这些不仅有助于应对Goldman的面试,同时也能提升我们解决实际编程问题的能力。祝大家面试顺利!