You are given an integer array nums. Two players are playing a game with this array: player 1 and player 2 take turns, with player 1 starting first. Both players start the game with a score of 0.
At each turn, the player takes one of the numbers from either end of the array (i.e., nums[0] or nums[nums.length - 1]) which reduces the size of the array by 1. The player adds the chosen number to their score. The game ends when there are no more elements in the array. First dynamic programming approach,then asked exponential approached,then asked edges cases that if we don’t do this and all
The following metrics were computed from 1 interview experience for the Cohesity SDE-2 role.
Cohesity's interview process for their SDE-2 roles is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for Cohesity's SDE-2 interview process.