Principal Global | Array Pairs & String Parsing | Cracking the Principal Global Coding Round | Repeating Integers & Camera Line of Sight Latest Principal Global Placement Questions

Question · Posted Mar 2026

Question 1: Repeating Integer Pairs Problem Statement: You are given a list of integers. Write a program which prints all the integer pairs in the list that repeat. If the list has more than one such pair, print all the pairs in consecutive lines in a sorted order. Sorting should be performed on the first integer of the pair. Read the input from STDIN and print the output to STDOUT. Do not write arbitrary strings while reading the input or ...

The full answer & interview discussion are available to premium members.

Log in Create a free account