Showing 19 problems

CSS specificity explained

I don't understand why some CSS rules override others. Can someone explain specificity clearly?...

Emily Chen Web Development beginner 606 0 36

Understanding Python generators and yield

I'm confused about Python generators. What's the difference between: ```python def get_numbers(): return [1, 2, 3, 4, 5] def get_numbers_gen(): yield 1 yield 2 yield 3 yield 4 ...

Daniel Kim Programming intermediate 820 0 48

When to use StandardScaler vs MinMaxScaler?

I'm preprocessing data for machine learning and confused about when to use different scalers: - StandardScaler - MinMaxScaler - RobustScaler What's the difference? Does it matter which algorithm I'm...

Emma Wilson Data Science intermediate 760 0 42

Best practices for error handling

What are the best practices for error handling in code? When should I use try/catch vs checking conditions?...

Nina Patel Programming intermediate 545 0 34

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 1308 0 89

How to prove something by mathematical induction?

I'm learning proof techniques and mathematical induction confuses me. How do I: 1. Identify the base case 2. State the inductive hypothesis 3. Prove the inductive step Can someone walk through provi...

Prof. Wei Zhang Mathematics intermediate 962 0 52

Python list vs tuple vs set

What are the differences between lists, tuples, and sets in Python? When should I use each?...

Emma Wilson Programming beginner 726 0 42

How does JavaScript event loop work?

I'm trying to understand the JavaScript event loop. I know JavaScript is single-threaded, but how does async code work then? Can someone explain: 1. What is the call stack? 2. What is the task queue?...

Robert Brown Programming advanced 1520 0 98

Understanding the Fourier Transform

How does the Fourier Transform work? I understand it converts time domain to frequency domain but the math is confusing....

Prof. Wei Zhang Mathematics advanced 352 0 21

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 860 0 58

What is the Virtual DOM in React?

I hear about the Virtual DOM in React but I don't understand what it is or why it makes React fast....

Maria Garcia Web Development intermediate 937 0 62

Understanding Big O notation

What is Big O notation and why is it important? How do I determine the time complexity of my code?...

Harry Stevens Programming intermediate 1228 0 84

Side projects that actually help you get hired

I hear "build side projects" all the time, but what KIND of projects impress employers? Is a to-do app enough? What about clones of existing apps? What makes a project portfolio-worthy?...

Harry Stevens Career Advice beginner 1632 0 112

Understanding cross-validation properly

I know I should use cross-validation to evaluate my model, but I'm confused about: 1. What's the difference between k-fold and stratified k-fold? 2. Should I do cross-validation before or after featu...

Dr. Amanda Thompson Data Science intermediate 639 0 38

Understanding JavaScript closures

I keep hearing about closures in JavaScript but I don't understand what they are or why they're useful. Help!...

Maria Garcia Programming intermediate 853 0 52

Understanding React context API

I keep hearing that "Context API can replace Redux" but I'm not sure how to use it properly. Can someone show me: 1. How to create a context 2. How to provide values 3. How to consume the context 4. ...

Mike Johnson Web Development intermediate 1171 0 71

Proof that √2 is irrational

I'm trying to understand the classic proof by contradiction that √2 is irrational. Can someone explain each step clearly?...

Prof. Wei Zhang Mathematics intermediate 310 0 15