JobsJob TrackerJob alerts

MetLife ยท 14 questions

All 14Coding 7System Design 1Low-Level Design 1Behavioral 3
  • Largest Sum Contiguous SubarrayCoding
  • Tell me something not on your resumeBehavioral
  • Why MetLife?Behavioral
  • Rate yourself on a scale of 1 to 10Behavioral
  • Sort an array according to the order defined by another arrayCoding
  • Detect cycle in an undirected graphCoding
  • Find all anagrams in a given sorted dictionaryCoding
  • Find missing card from 51 given cardsCoding
  • Design a horizontally scalable order serviceSystem Design
  • 25 horses 3 fastest 5 races puzzle
  • Weighing 9 balls puzzle
  • Write JSON Parser and data structures usedLow-Level Design
  • Write DFS code and data structures usedCoding
  • Find the single non-repeated element in an arrayCoding
โ† MetLife questions
  1. Interview questions
  2. MetLife
  3. Write DFS code and data structures used
Coding

Write DFS code and data structures used

Filed under MetLife

The question

Write the code for Depth First Search (DFS) and explain the data structures used for it.

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

Related MetLife questions

  • Find all anagrams in a given sorted dictionary
  • Find missing card from 51 given cards
  • Find the single non-repeated element in an array
โ† Write JSON Parser and data structures usedFind the single non-repeated element in an array โ†’

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