Akuna capital hackerrank | Akuna 一亩三分地 | Akuna capital oa

Akuna capital hackerrank

Akuna Capital OA 共 13 道题:10 道 C++ 知识选择题,最后 3 道编程题,全部在 Hackerrank 上 AC。

Akuna Capital’s online assessment has 13 questions in total: 10 C++ multiple-choice and 3 coding problems, all solved on Hackerrank.

OA 1:卡牌游戏得分差

两名玩家 Sabrina 和 Mikhail 交替从牌堆两端抽牌。如抽到的牌值是 3 的倍数,则翻转牌堆方向;否则保持当前方向。 实现函数返回 Sabrina 得分减 Mikhail 得分的差值。正值表示 Sabrina 胜,负值表示 Mikhail 胜,零为平局。

Two players, Sabrina and Mikhail, alternately draw cards from either end of a deck. If the drawn card is a multiple of 3, the deck orientation flips;otherwise it stays the same. Implement a function that returns Sabrina’s score minus Mikhail’s.

Time Complexity: O(n)

OA 2:罗马数字转整数

从字符串中提取罗马数字,然后将其转换为十进制整数,遵循加法/减法规则(若小值在大值左侧则减,否则加)。

Extract a Roman numeral from a string and convert it to its integer value, applying standard addition and subtraction rules.

阅读更多

联系我们

通过我们的面试辅助和 OA 代写,候选人不仅展现了扎实的编程能力,也练就了清晰的思路与沟通技巧。祝大家面试顺利!

author avatar
ProgramHelp
END
 0
Comment(尚無留言)