時間複雜度: 數數字(The Digit Counting Problem)
  • 51:08,
  • 2,782 views,
  • 2017-01-08,
  • 上傳者: 系統管理者,
  •  0
 
 
 
  • 1. 012345678901234567890123456
  • 2. Observation 1: brute force by counting horizontally
  • 3. Observation 2: smart by counting vertically
  • 4. Observation 3: x parts of 十位數 of 165
  • 5. Observation 4: x parts of 十位數 of 165
  • 6. Observation 5 : y parts of 十位數 of 165
  • 7. Observation 6: z parts of 十位數 of 165
  • 8. Observation 7: (x, y, z) parts of 個位數 of 165
  • 9. Observation 8: (x, y, z) parts of 佰位數 of 165
  • 10. Observation 9: remove leading zeroes
  • 11. Observation 10: x, y, z, and leading zeroes
  • 12. Core program:
  • 13. Conclusion: Brute force vs. Smart
  • 14. Brute force programming
  • 15. Conclusion: Brute force vs. Smart
1/15
Volume
  • 速度 :
  • 畫質 :
  • 播放設定
00:00/51:08
00:00/00:19
 
 
    訪客如要回應,請先 登入
      解析度 : x
      資料夾 :
      標籤 :
      發表時間 :
      2017-01-08 07:30:00
      觀看數 :
      2,782
      長度 :
      51:08
      發表人 :
      系統管理者
      部門 :
      www
      QR Code :