CS-OA cs-vo Faang

2024高盛保姆级面经以及真题

高盛HireVue通常情况是“5+n”模式 (n取决于你申了几个division, 每个division 有一道自己的问题)

每个问题45s的准备时间和2min的回答时间

以Behavioral问题为主,根据岗位不同偶尔有Technical的问题

下面是几个HireVue常见题目,大概率 面试过程中会用到:

Talk about a time when you failed at work. Are you applying to work for any of Goldman Sachs' competitors? How would your most recent leader describe you? Talk to us about your proudest accomplishment. Talk about your ideal work environment.

engineering OA一共三小时九道题,主要考察编程和数学能力 总结 Engineering OA 三小时 7道数学题 2道编程题

1 Is Possible - Consider a pair of integers, (a, b). The following operations can be performed on (a, b) in any order, zero or more times. - (a,b)→(a+b,b) - (a,b)→(a,a+b) - Return a string that denotes whether or not (a, b) can be converted to (c, d) by performing the operation zero or more times.

考虑一对整数 (a, b)。可以以任意顺序、零次或多次对 (a, b) 执行以下操作: (a, b)→(a+b, b) (a, b)→(a, a+b) 返回一个字符串,表示是否可以通过零次或多次执行这些操作将 (a, b) 转换为 (c, d)。

2 回文串 一个回文串是一个从左到右和从右到左读取都相同的字符串。例如,"mom" 和 "tacocat" 都是回文串,任何单字符字符串也都是回文串。

给定一个字符串,要确定其中有多少个回文子串。 示例:给定字符串 s = 'tacocat'。回文子串包括['t', 'a', 'c', 'o', 'a', 'a', 't', 'coc', 'acoca', 'tacocat']。共有 10 个回文子串。

我们注意到题目中的输入是一个列表,列表中包含了不同学生的名字和分数。我们需要找出平均分数最高的学生。

我们可以通过以下步骤来解决这个问题:

遍历输入列表,对于每个学生,计算他们的分数和平均分数。 找出平均分数最高的学生。 以下是Python代码实现:

输出:csharp

The student with the highest average is Charles with an average of 87.0

下面是一个完成该功能的JavaScript代码:

这个函数首先检查输入的分数列表是否为空。如果为空,则返回0。然后,它遍历分数列表,将每个分数加到总和中,并增加计数器。最后,它计算平均分数,并使用Math.floor函数将其向下取整为最接近的整数。以上就是这些真题了,想要更多的可以主页上看看噢

Leave a Reply

Your email address will not be published. Required fields are marked *