The AND operation takes two bits and
returns 1 if both bits
are 1. Otherwise, it
returns 0.
1 & 1 → 1
1 & 0 → 0
0 & 1 → 0
0 & 0 → 0
Think of it like a hose with two knobs. Both knobs must
be set to on for water to come out.
When performing AND on two integers, the AND operation is
calculated on each pair of bits (the two bits at the same index in
each number).
5 & 6 // gives 4
// at the bit level:
// 0101 (5)
// & 0110 (6)
// = 0100 (4)
{"id":8592030,"username":"2018-06-14_02:34:08_l9wg(!","email":"liencf@gmail.com","date_joined":"2018-06-14T02:34:08.228184+00:00","first_name":"志峰","last_name":"連","full_name":"志峰 連","short_name":"志峰","is_anonymous":false,"is_on_last_question":false,"percent_done":0,"num_questions_done":0,"num_questions_remaining":46,"is_full_access":true,"is_student":false,"first_payment_date":"2020-08-29T15:29:02.529209Z","last_payment_date":"2020-08-29T15:29:02.529209Z","num_free_questions_left":0,"terms_has_agreed_to_latest":false,"preferred_content_language":"csharp","preferred_editor_language":"","is_staff":false,"auth_providers_human_readable_list":"Google","num_auth_providers":1,"auth_email":"liencf@gmail.com"}
“Interview Cake for coding interview prep is doing what Rosetta Stone is doing for language learning.
—
Willy
. . .