Skip to main content
Home › Blog › #data-structures
Tag

#data-structures

42 articles
Can you describe a time when you had to redesign a data structure for a high-performance system, and what considerations influenced your decision-making?

I once had to redesign a user session management system to improve retrieval times. I opted for a combination of hash tables and trees to balance fast access and ordered…

🏷️
Can you explain what a binary search is and when it is appropriate to use it?

A binary search is an efficient algorithm for finding an item from a sorted list of items. It works by repeatedly dividing the search interval in half and can be…

🏷️
What data structure would you use to ensure secure storage of passwords, and why is this important?

For secure password storage, I would use a hash table with a strong hash function like bcrypt. This is important because it protects passwords by not storing them in plaintext…

🏷️
How would you choose the best data structure for storing and retrieving user sessions in a web application, considering performance and optimization?

For storing user sessions, I would typically use a hash table, such as a dictionary in Python. This allows for average constant time complexity for both insertions and lookups, which…

🏷️
Can you explain what a Tensor is in TensorFlow and why it is fundamental to its operations?

A Tensor in TensorFlow is a multi-dimensional array that represents data. It is fundamental because it is the primary data structure used for building and training models, allowing for efficient…

🏷️
How would you choose between using an array or a linked list for a data structure that requires frequent insertions and deletions?

For frequent insertions and deletions, I would choose a linked list. This is because linked lists allow for O(1) time complexity for adding or removing nodes, while arrays require O(n)…

🏷️
2,000 Interview Questions and Answers PDF cover
Developer Interview Kit · PDF

2,000 Interview Questions & Answers, in one PDF

  • Short answers, in-depth explanations, common mistakes and follow-ups
  • 89 topics, from Beginner to Architect, with a clickable contents list
  • 226 extra questions that are not on this website
  • Free Bonus Pack: 30-day study plan, behavioral questions, salary scripts
$7.99 one-time · instant email delivery
260 Developer Learning Paths cover
Also available: 260 Developer Learning Paths $4.99 Week-by-week roadmaps for 16 career tracks (Python, React, Java, DevOps, SQL, AI and more), with a progress tracker on every path. See what's inside →

Get both books for $9.99 (save $2.99):

The material stays free to read online. This is the organised, offline, print-ready PDF edition. Secure payment by PayPal; your personal download link is emailed after payment is confirmed. Digital product, no shipping.