CS 61B Lecture 21: Hash Tables
Top Comments
All Comments (41)
-
imagine if he just scratched his nails down the chalk board.
-
he could get on my nerves. kinda pompous
-
Hot teacher lol
-
7 mod -3 = -2 but 7 % -3 = 1
% is the remainder operator. % is not a modulus operator.
In java the remainder operator is designed to follow the following identity for all integers a and b such that b is not 0 (since n / 0 is undefined for all n):
(a / b) * b + (a % b) == a
So in the example, 7 % -3, we enter in the following numbers:
(7 / -3) * -3 + (7 % -3) = 7
Integer arithmetic discards partial numbers.
(-2) * -3 + (7 % -3) = 7
6 + (7 % -3) = 7
(7 % -3) = 1
-
'pus', 'goo'. LOL
-
@jimmyjubejube One of our professors said that it's forbidden to share data to the outside world, including footage/audio.. bah.
-
If only other lecturers would be like him.
-
Dr. Schewchuk is an excellent lecturer! These videos have helped me so much!
-
he writes so cool lol
-
Great lecture.



Very helpful and nicelly explained :)
Good work!
MetaBrainX 2 years ago 23
This is awesome, definitely helped me out in my data structures class.
elektrosaurus 2 years ago 16