高盛 CoderPad Interview | 高盛Goldman Sachs oa | Goldman 高盛一畝三分地

1,656Views

Goldman Sachs 的面試一向以“難”著稱,不僅 Behavioral 部分會深挖細節,Technical 也考察得相當嚴格,幾乎不給任何僥倖空間。 所以想要拿下高盛的面試,前期準備必須做到充分、全面。

他們的技術面試通常是在 CoderPad 上完成 coding 題,真實還原工作場景。 這周我剛剛 support 了一位同學完成 高盛 OA + VO,整理一下最新的考點和流程,給大家一個直觀參考。

高盛 CoderPad Interview | 高盛Goldman Sachs oa | Goldman 高盛一畝三分地

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 分鐘完成。

  1. 搖骰子 456 對手的得一分 123 你得一分,贏家必須到達 5 以上並且分數比對手大 2。 現在是 5 平局,我贏的概率是多少?
  2. 5张随机扑克,3张是A,问4张是A的概率
  3. 給積分求級數通項
  4. 求積分導數
  5. 3×3 線性方程組,問解是否 consistent 和 unique
  6. 搖骰子。 搖到 1 重搖,如果平局輸,問贏的概率
  7. 路徑積分
  8. 給 3 個 algebra 的 statement 判斷對錯。和特徵值,行列式,恆等矩陣有關
  9. 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

透過這次全程陪跑,不少同學不僅順利過了Goldman的OA和麵試,還在過程中真正把思路捋順了、表達練出來了。 面試官看到的已經不只是程式碼,而是你面對複雜問題時清晰的思考和溝通能力——這其實才是他們最想要的。 祝大家都能帶著這份從容和底氣,拿到心儀的offer~希望大家帶著這份清晰和自信去面試~ 也歡迎隨時聯絡我們,一起把下一關也講得漂漂亮亮!

author avatar
Alex Ma Staff Software Engineer
目前就職於Google,10餘年開發經驗,目前擔任Senior Solution Architect職位,北大計算機本碩,擅長各種算法、Java、C++等編程語言。在學校期間多次參加ACM、天池大數據等多項比賽,擁有多項頂級paper、專利等。
END