Societe Generalte

Details

Job Status

Full Time (Employment + Internship Mandatory)

Criteria

StudyCutoff
X60%
XII60%
UG6 GPA

Round 1

06/09/23

Coding Questions

  1. Number of Pairs: Given a string of characters, find the total number of pairs that can be formed of the same character. Ex: aaaaabb can have 2 pairs of a and 1 pair of b.

  1. Min Swap Greatest Even Number: Given a number as a string, find the greatest even number that can be made with just one swap, it is given that atleast one even digit exists.

If the number is odd, then the last digit has to be switched with some other, so find the first even number the odd number is greater than if not, swap it with the rightmost even number, if it is even, then find two numbers two swap such that it is the greatest.