JobsJob TrackerJob alerts

Citi · 152 questions

All 152Coding 81Low-Level Design 6Behavioral 26Product Sense 5
  • Rat in a mazeCoding
  • Pattern printing questionCoding
  • Mouse and cheese maze (Rat in a Maze variant)Coding
  • Pay an employee using a 7-unit gold rod
  • Cut a round cake into 8 equal pieces with 3 cuts
  • The burning rope puzzle
  • Why CitiBehavioral
  • Matrix multiplicationCoding
  • Camel and banana puzzle
  • Mirror image of a tree, leaf elements, and basic DPCoding
  • Explain the project on your resumeBehavioral
  • Best achievement, recent learning, hobbies and project cross-questionsBehavioral
  • Approach to creating and maintaining an automation framework
  • Why look for a job when you already hold an offer?Behavioral
  • CI/CD pipeline: canary, blue-green, lift-and-shift testing, building a pipeline
  • Print a trapezium patternCoding
  • Interface vs abstract class, static inheritance, protected access, volatile
  • What happens when you enter something in a text field on a website
  • Find the nth node from the end of a linked listCoding
  • Weaknesses, five-year plan, teamwork preference, group project and why intern at CitiBehavioral
  • How would you launch a new rewards tier for the Citi Double Cash Card?Product Sense
  • Launch a fintech partnership with PlaidProduct Sense
  • Program to print the trapezium patternCoding
  • Sort elements by frequencyCoding
  • Pattern printingCoding
  • Rat in a Maze variationCoding
  • GCD of an arrayCoding
  • Gray Code SequenceCoding
  • Find second highest salary in databaseCoding
  • List top 10 records from databaseCoding
  • Determine if cheese is reachable in a mazeCoding
  • Customers with no transactions and top platformsCoding
  • Factorial of a numberCoding
  • Binary Tree TraversalCoding
  • Find GCD of array elementsCoding
  • Implement Queue using two stacksCoding
  • Design a basic approach and choose technologyProduct Sense
  • Draw an ER diagram of your project's databaseLow-Level Design
  • Android activity lifecycle
  • First missing positive number in O(n) time and O(1) spaceCoding
  • Use case diagram for an ATMLow-Level Design
  • Method overloading vs overriding with an example
  • Why do you want to join Citi?Behavioral
  • Client-server vs a normal application
  • Count distinct characters in a stringCoding
  • Count occurrences of a digit in a numberCoding
  • Longest bitonic subsequenceCoding
  • Find the merge point of a Y-shaped linked listCoding
  • Convert a binary tree to a linked list under a conditionCoding
  • Resolving a team conflict as team leaderBehavioral
  • Print N lines number patternCoding
  • Core CS and DBMS concepts
  • Asynchronous JavaScript and API integrationCoding
  • Frequency Sorting, Rat-Maze and Gray-code SequenceCoding
  • Database Normalization, SQL Queries and Duplicate ElementCoding
  • Transition to Software Sector and Career GoalsBehavioral
  • Maximum oil transport in a pipe networkCoding
  • Prefix reverse operations on a stringCoding
  • 100 doors puzzle
  • 25 horses and 5 lanes puzzle
  • DBMS transactions and isolation
  • Merge and sort two unsorted arraysCoding
  • Implement ArrayList using arraysCoding
  • Print left and right walls of a binary treeCoding
  • Self-join in DBMS
  • Check if number is palindromeCoding
  • Reverse a Singly Linked ListCoding
  • Implement floor and ceil functionsCoding
  • Inheritance, Overloading, and Overriding
  • Situation-based app designing and Kotlin basicsProduct Sense
  • Project explanation and class definitionBehavioral
  • Array and Backtracking coding problemsCoding
  • Complexity analysis of data structures and sorting
  • Gray code bit manipulationCoding
  • Rat and cheese backtracking problemCoding
  • C, C++, Java and OOP fundamentals
  • Ethical dilemma and managerial questionsBehavioral
  • College journey and relocation confirmationBehavioral
  • Return numbers from array within a given rangeCoding
  • Sort array elements based on frequenciesCoding
  • Full Join, string filtering in SQL, and NoSQL comparison
  • Social Networking DBMS Implementation StepsLow-Level Design
  • Project-based SQL QueriesCoding
  • Check Prime NumberCoding
  • Check Palindrome StringCoding
  • Tell me about yourself and discuss projectsBehavioral
  • Situational data structures design problemCoding
  • Cut a cake into 3 identical parts using 2 cuts
  • Morris TraversalCoding
  • KNN Algorithm and Phone Face RecognitionCoding
  • Draw ER diagram for projectLow-Level Design
  • Second youngest student and hobbyCoding
  • Summary based on custom preferencesCoding
  • Behavioral and situational questionsBehavioral
  • AVL tree basic rotationCoding
  • Trie tree implementationCoding
  • Deletion in BSTCoding
  • Nth element from the end of a linked listCoding
  • Middle element in a linked listCoding
  • Implementation of DEQUECoding
← Citi questions
  1. Interview questions
  2. Citi
  3. Implementation of DEQUE
Coding

Implementation of DEQUE

Filed under Citi

The question

Implement a double-ended queue.

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

Related Citi questions

  • Rat in a maze
  • Pattern printing question
  • Mouse and cheese maze (Rat in a Maze variant)
  • Mirror image of a tree, leaf elements, and basic DP
  • Print a trapezium pattern
← Middle element in a linked list

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