JobsJob TrackerJob alerts

IIT Gandhinagar ยท 10 questions

All 10Coding 8Low-Level Design 2
  • Find the height of a binary treeCoding
  • Time complexity to find maximum in min heapCoding
  • Two elements with sum equal to xCoding
  • Two numbers whose sum equals the rest of n-2 elementsCoding
  • Transformer Architecture and Positional Embeddings in NLPLow-Level Design
  • Transformer Structure, Self-Attention, and Word EmbeddingsLow-Level Design
  • Second Minimum Spanning TreeCoding
  • Reverse a String and Check PalindromeCoding
  • Find Middle and Detect Circular Linked ListCoding
  • Dijkstra's Algorithm with BFS ModificationCoding
โ† IIT Gandhinagar questions
  1. Interview questions
  2. IIT Gandhinagar
  3. Two elements with sum equal to x
CodingReported in a candidate post, Jan 2020

Two elements with sum equal to x

Filed under IIT Gandhinagar

The question

Given an array of length n and a number x, find two elements in the array whose sum equals x, and optimize the solution.

No write-up yet. Related questions below have one.

Related IIT Gandhinagar questions

  • Time complexity to find maximum in min heap
  • Two numbers whose sum equals the rest of n-2 elements
  • Second Minimum Spanning Tree
  • Reverse a String and Check Palindrome
  • Find Middle and Detect Circular Linked List
โ† Time complexity to find maximum in min heapTwo numbers whose sum equals the rest of n-2 elements โ†’

Collected from public candidate posts and coding forums. Updated Nov 2026.