Smart Mock Interview Logo
Get Started
Goldman Sachs
Coding
Technical
Goldman Sachs Coding Interview
Created by Smart Mock Interview

Interview Questions

  1. Next Permutation
    coding

    Title:

    Next Permutation

    Problem:

    Given an array of integers, rearrange them into the lexicographically next greater permutation of numbers. If such arrangement is not possible, rearrange them into the lowest possible order (i.e., sorted in ascending order).