JobsJob TrackerJob alerts

National Instruments ยท 26 questions

All 26Coding 24Behavioral 1
  • Water Jug Problem
  • Order distinct experiments uniquely by difficultyCoding
  • Select two robots of different modelsCoding
  • Assign edge weights summing to S to minimise the maximum weight on any diameterCoding
  • Count ways to paint N buildings with K colours with no equal neighboursCoding
  • Board game: longest valid path moving right or down on a gridCoding
  • Count pairs of robots from different modelsCoding
  • Count islands in a binary gridCoding
  • Most challenging situation and previous internshipBehavioral
  • Swap characters in string using matrix pairsCoding
  • Snake and Ladder ProblemCoding
  • Find the Second Maximum element in an unsorted arrayCoding
  • Finding the Majority element in the arrayCoding
  • Knapsack / Coin Change II problemCoding
  • Policemen catch thievesCoding
  • Search an element in a sorted and rotated arrayCoding
  • Minimum number of platforms required for a stationCoding
  • Intersection point of two Linked ListsCoding
  • Find the minimum element in the stackCoding
  • Check if an array can be divided into pairs divisible by kCoding
  • Count intersecting points of lines between street building pairsCoding
  • Count redundant parentheses in an expressionCoding
  • Minimum steps to convert one word to another using a dictionaryCoding
  • Written Aptitude and Technical QuestionsCoding
  • String Decoding and Contiguous Subarrays Divisible by KCoding
  • Maximum Sum Path and String TransformationCoding
โ† National Instruments questions
  1. Interview questions
  2. National Instruments
  3. Find the minimum element in the stack
Coding

Find the minimum element in the stack

Filed under National Instruments

The question

Design a stack that supports retrieving the minimum element in constant time.

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

Related National Instruments questions

  • Order distinct experiments uniquely by difficulty
  • Select two robots of different models
  • Assign edge weights summing to S to minimise the maximum weight on any diameter
  • Count ways to paint N buildings with K colours with no equal neighbours
  • Board game: longest valid path moving right or down on a grid
โ† Intersection point of two Linked ListsCheck if an array can be divided into pairs divisible by k โ†’

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