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...
-
15:59
ArynneWexler
8 hours agoAll The Reasons You're Right to Fear Zohran Mamdani | NN6
15.1K3 -
LIVE
Side Scrollers Podcast
12 hours ago🔴FIRST EVER RUMBLE SUB-A-THON🔴DAY 4🔴BLABS VS STREET FIGHTER!
1,252 watching -
LIVE
DLDAfterDark
4 hours ago $2.55 earnedGlock's Decision - How Could It Impact The Industry?
376 watching -
25:57
The Kevin Trudeau Show Limitless
1 day agoThe Sound Of Control: This Is How They Program You
42.8K8 -
8:29
Colion Noir
15 hours agoThree Masked Idiots Show Up at Her Door — Here’s What Happened Next
49.4K28 -
15:38
Cash Jordan
9 hours agoPortland Zombies EMPTY 52 Stores… Mayor FREAKS as “Sanctuary” SELF DESTRUCTS
58.9K76 -
1:23:21
Precision Rifle Network
1 day agoS5E4 Guns & Grub - Dustin Coleman of ColeTac
15K3 -
1:09:25
Donald Trump Jr.
10 hours agoCorrupt UN Carbon Tax Exposed, Interview with John Konrad | TRIGGERED Ep.285
161K80 -
42:58
TheCrucible
8 hours agoThe Extravaganza! EP: 59 with Guest Co-Host: Rob Noerr (10/23/25)
97.1K7 -
1:40:59
Kim Iversen
9 hours agoTrump Threatens To End ALL Support For Israel
83.4K234