Hello 算法 1.2.0 繁体中文 Java 版Hello 演算法 Java 語言版 作者:靳宇棟(@krahets) 程式碼審閱:靳宇棟(@krahets) Release 1.2.0 2024‑12‑06 序 兩年前,我在力扣上分享了“劍指 Offer”系列題解,受到了許多讀者的鼓勵與支持。在與讀者交流期間,我 最常被問到的一個問題是“如何入門演算法”。漸漸地,我對這個問題產生了濃厚的興趣。 兩眼一抹黑地刷題似乎是最受歡迎的方 記錄。需要注意的是,Python 中 range(a, b) 對應的區間是“左閉右開”的,對應的走訪範圍為 ?, ? + 1, … , ? − 1 : // === File: iteration.java === /* for 迴圈 */ int forLoop(int n) { int res = 0; // 迴圈求和 1, 2, ..., n-1, n for (int i = 1; 迴圈中,程式每輪都會先檢查條件,如果條 件為真,則繼續執行,否則就結束迴圈。 下面我們用 while 迴圈來實現求和 1 + 2 + ⋯ + ? : // === File: iteration.java === /* while 迴圈 */ int whileLoop(int n) { int res = 0; int i = 1; // 初始化條件變數 // 迴圈求和 1, 2, .0 码力 | 379 页 | 18.79 MB | 10 月前3
多雲一體就是現在:
GOOGLE CLOUD 的
KUBERNETES
混合雲戰略多雲一體就是現在: GOOGLE CLOUD 的 KUBERNETES 混合雲戰略 安玟宇 Wayne An Customer Engineer, Google Cloud WayneAn@google.com 安玟宇 Wayne An Customer Engineer, Google Cloud WayneAn@google.com 多雲一體就是現在: Google Cloud Portable Elastic Transform Efficient Secure Pay for use Out ● ● Migrate Move up, out or both? Google is a recognized leader in Open Source Cloud Kubernetes Istio Apache Beam TensorFlow Service Machine Intelligence Kubernetes Contributors opensource.google.com A strong community with corporate and independent support. Independent Google Red Hat Huawei ZTE Corp FathomDB IBM Microsoft0 码力 | 32 页 | 2.77 MB | 1 年前3
julia 1.10.10Advanced Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 17.5 Syntax Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 18 Metaprogramming Revise-based workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447 36 Style Guide 449 36.1 Indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . is called, not just return a value. For more information about stylistic conventions, see the Style Guide.Chapter 4 Integers and Floating-Point Numbers Integers and floating-point values are the basic0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9Advanced Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 17.5 Syntax Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 18 Metaprogramming Revise-based workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447 36 Style Guide 449 36.1 Indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . is called, not just return a value. For more information about stylistic conventions, see the Style Guide.Chapter 4 Integers and Floating-Point Numbers Integers and floating-point values are the basic0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4Advanced Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 18.5 Syntax Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 19 Metaprogramming Revise-based workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480 37 Style Guide 482 37.1 Indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . is called, not just return a value. For more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 DocumentationAdvanced Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 18.5 Syntax Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 19 Metaprogramming Revise-based workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480 37 Style Guide 482 37.1 Indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . is called, not just return a value. For more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release NotesAdvanced Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 18.5 Syntax Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 19 Metaprogramming Revise-based workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480 37 Style Guide 482 37.1 Indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . is called, not just return a value. For more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic0 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.13.0 DEVAdvanced Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 18.5 Syntax Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 19 Metaprogramming workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491CONTENTS vii 37 Style Guide 493 37.1 Indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . is called, not just return a value. For more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1Advanced Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 18.5 Syntax Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 19 Metaprogramming workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492CONTENTS vii 37 Style Guide 494 37.1 Indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . is called, not just return a value. For more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4Advanced Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 18.5 Syntax Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 19 Metaprogramming workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491CONTENTS vii 37 Style Guide 493 37.1 Indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . is called, not just return a value. For more information about stylistic conventions, see the Style Guide.Chapter 5 Integers and Floating-Point Numbers Integers and floating-point values are the basic0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 41 条
- 1
- 2
- 3
- 4
- 5













