Interview Questions  

Go Back   Interview Questions > Interview Questions & Answers > Information Technology > Programming Languages > Data Structures

Data Structures Data Structures Interview Questions, Learn by sharing Data Structures Interview Questions asked in various Companies, Get Career advices, Interview Procedures from Data Structures experts, Post asked Data Structures Interview Questions and Answers.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-31-2008, 10:47 AM
Senior Member
 
Join Date: Feb 2008
Posts: 9,095
Default What are the ways of

What are the ways of representing a queue?
Reply With Quote
  #2 (permalink)  
Old 04-25-2008, 04:52 PM
Junior Member
 
Join Date: Apr 2008
Posts: 17
Thumbs up

A queue can be represented in three ways:
  • using linear arrays
  • using circular arrays
  • using linked lists
From a programmer's point of view, the first two are one and the same, except that in the latter he/she has to use modulo arithmetic.
Reply With Quote
Reply

Tags
data structures, interview questions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On