---- Eric
00:25 Introduction to Binary Numbers
01:28 Binary Representations of Power of Two
02:24 Concatenation of Consecutive Binary Numbers
03:00 Convert Binary to Decimal
04:25 Bin Function
04:40 Straightforward Solution via Array and Join
06:08 Bit Shifting Left - Math Solution
10:00 When the Length of Binary Digits Increases?
12:26 How to Check Integer is Power of Two?
14:35 math.log(i, 2)
---- Ryan
17:30 Introduction to Binary Numbers
18:18 Convert Binary to Decimal
20:04 Binary Representations of Power of Two
20:27 Convert Binary to Decimal
20:48 Check Number is Power of Two
21:00 Concatenation of Consecutive Binary Numbers
22:50 Converting to Binary via Bin
23:09 Algorithm Convert Decimal to Binary - An Example
24:00 Straightforward Solution via Array and Join
25:25 A Better Solution - Bit Shifting Left - Math Solution
27:57 Python Solution
29:10 Observe the Pattern, What Happens to the Length of Binary?
30:05 Increase One Digit when Power of Two
31:10 If Number is Power of Two, Increment the Length
31:25 How to Check Number is Power of Two?
31:35 Multiply by Two or Divide by Two
32:19 Optimal Algorithm to Check if Integer Power of Two
32:24 What is Log Function?
#二进制 #数学 #Python #入门 #算法 #编程 #程序设计
英国博士, 现居英国剑桥, 教两娃(BBC)教小白老婆编程 - 现微软剑桥研究院MSRC高级软件工程师
油管 https://youtu.be/4gLDKpDwAuw
目录 (可能需要梯子) https://zhihua-lai.com/teaching/ch/
****请支持鼓励我,请转发 评论 点赞,谢谢!*****
请打赏我: https://justyy.com/out/bmc
收起