You are working on a real-time trading application where the order of transactions is crucial. Which data structure would be most appropriate to ensure that the first transaction entered is the first one processed?

  • Binary Tree
  • Hash Table
  • Queue
  • Stack
In real-time trading, the order of transactions is critical. A 'Queue' is the most suitable data structure to ensure the first transaction entered is the first one processed. It follows a First-In-First-Out (FIFO) order, which aligns with transaction sequence requirements.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *