Showing 13 problems with active filters

CAP theorem explained

What is the CAP theorem in distributed systems? Can you explain with real examples?...

Patricia Johnson Computer Science advanced 531 0 35

Database scaling: vertical vs horizontal

My database is becoming a bottleneck. Should I: - Scale vertically (bigger server)? - Scale horizontally (sharding/replication)? What are the trade-offs? How do I decide which approach to use?...

Sarah Chen Computer Science advanced 720 0 43

Microservices vs Monolith - how to decide?

I'm designing a new system and can't decide between microservices and monolithic architecture. What factors should I consider? When is microservices overkill? What are the hidden costs of microservic...

Rachel Martinez Computer Science advanced 945 0 61

When to use BFS vs DFS for graph traversal?

I understand how BFS and DFS work, but I'm not sure when to use which one. Can someone explain: 1. When is BFS better? 2. When is DFS better? 3. What about space complexity considerations? 4. Any rea...

Tom Harris Computer Science intermediate 969 0 58

How does a hash table work internally?

I use dictionaries/maps all the time, but I want to understand how they work: 1. How is the hash function used? 2. What happens with hash collisions? 3. Why is lookup O(1)? 4. When does it become O(n...

Harry Stevens Computer Science intermediate 1058 0 67

Understanding recursion vs iteration

I can write iterative solutions but struggle with recursive thinking. Can someone help me understand: 1. How to think recursively 2. When to use recursion vs iteration 3. What about the call stack an...

Nina Patel Computer Science intermediate 1307 0 89

How does a database index work?

What happens internally when I create an index on a database column? How does it speed up queries?...

Harry Stevens Computer Science intermediate 859 0 58