T

Tom Harris

@algorithm_ace

5430 reputation
Joined Aug 2025
Competitive programmer. Codeforces master. LeetCode addict.
3
Problems Asked
3
Solutions Given
0
Accepted Solutions
0
Stories Shared

Recent Problems

How does garbage collection work?

How does garbage collection work in languages like Java and Python? How does it know when to free memory?...

advanced 407 views 0 solutions

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...

intermediate 970 views 0 solutions

Recent Solutions

What is Object-Oriented Programming?

This is a great question that many people ask! **Here's my explanation:** The key thing to understand is that this concept builds on fundamental principles. Let me break it down: 1. **First**, you ...

53 votes Jan 12, 2026

How to reverse a string in JavaScript?

The built-in method is great for most cases, but if you're in a coding interview, they might ask you to do it without built-ins: ```javascript function reverseString(str) { const chars = [...str]; ...

89 votes Jan 6, 2026

When to use class vs function in Python?

This is a great question that many people ask! **Here's my explanation:** The key thing to understand is that this concept builds on fundamental principles. Let me break it down: 1. **First**, you ...

13 votes Apr 27, 2025