Sunday, 28 July 2019

Goldman Sachs Software Developer Hiring Test

 Goldman Sachs Software Developer Hiring Test


Q1 Number Checker
Given an integer array as input, find out the integers which contains the digit 1, 2, 3. The order need not be sequential.
  • In case multiple numbers qualifies the condition, the outcome should be ordered based on numeric value in ascending order separated by comma
  • In case no number qualifies the condition, return -1.

Saturday, 16 February 2019

Salesforce Interview Experience

Salesforce Interview Experience - Security Team

Got a chance to interview with the salesforce security team.

Paytm Interview Experience

Paytm Interview Experience

Coding Round 1
Q1 You have to make a necklace with pearls. Minimum number of pearls that can be used is 1 and maximum is n. Each pearl has a magnificence coefficient and the necklace should be such that the pearls are in ascending order of their magnificence. Find such number of necklaces that can be formed with given condition.
Input given is n (no of pearls), Lowest magnificence and highest magnificence.
Example n= 1, LM= 8 HM=9, so there can be 2 cases, one necklace with pearl 8 and one with pearl 9.

Q2 Write a program to find sum of first largest k elements from a given array of integers?

Microsoft IDC Interview Experience

Microsoft IDC Interview Experience


Round1
Q1 Write a program for maximum sum contiguous subarray.
Q2 Below string is encoded in a matrix in below fashion. Logic to decode the string