Premium Only Content
This video is only available to Rumble Premium subscribers. Subscribe to
enjoy exclusive content and ad-free viewing.
Does it work if there are 2 people in the room?
3 years ago
10.2K
Let's see.Does it work if there are 2 people in the room?In line 1, we initialize n to zero.For that one pair of people, we then increment n by 2.And so, by this algorithm's end, n is 2,which indeed matches the number of people in the room.Suppose next that there are zero people in the room.In line 1, we initialize n to zero.As before, line 3 doesn't execute at all since there aren't any pairs of people in the room,and so, n remains zero,which indeed matches the number of people in the room.
Loading comments...
-
46:29
Professor Nez
2 hours ago🚨I HAVE RECEIPTS! They’re Sacrificing Americans for Votes 😡
5.81K1 -
31:39
The Boomer Effect
3 hours agoGone is the Golden Age of Housing: What went wrong?
2 -
1:00:16
Timcast
3 hours agoTHE MOB IS BACK, FBI Busts MASSIVE Sports Betting Racket
133K25 -
2:25:56
Steven Crowder
5 hours agoCandace Just Claimed Trump Killed Charlie
388K493 -
DVR
Robert Gouveia
3 hours agoNewsom Crushed AGAIN!! NBA Arrests! NEW Pipe Bomber Info! Melania SUED!
20K11 -
59:41
Sean Unpaved
3 hours agoHoops & Handcuffs: FBI's Mafia Takedown in NBA Betting Scandal
13.1K -
LIVE
Side Scrollers Podcast
2 hours ago🔴FIRST EVER RUMBLE SUB-A-THON🔴DAY 4🔴WAKE YOUR ASS UP!
933 watching -
1:07:10
Rebel News
2 hours agoCarney's lacklustre speech, Libs partner with China, How many illegals in Canada? | Rebel Roundup
10.3K2 -
41:55
The Rubin Report
4 hours agoListen to ‘The View’ Crowd Gasp as Whoopi Lies to Their Faces
91.7K55 -
1:41:47
The Mel K Show
4 hours agoMORNINGS WITH MEL K - Cause and Effect: The Intentional Dumbing Down of a Nation - 10-23-25
31.1K3