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
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.48 MB | 10 月前3
Just-in-Time Compilation - J F Bastien - CppCon 2020let’s change topics a bit and use a swear word…Java “Java” That’s right, I said it, at a C++ conference…Java At least I didn’t say “Rust”…Compiling Java just in time Avoiding unnecessary overhead is constructing an intermediate representation (IR) of a method is a standard process. When compiling from Java bytecode, however, we can eliminate that overhead. The bytecodes themselves are an IR. Because they ideal IR for compilation, but they can easily be used for that purpose. — 1997 (read)Compiling Java just in time Avoiding unnecessary overhead is crucial for fast compilation. In many compilers, constructing0 码力 | 111 页 | 3.98 MB | 6 月前3
Oracle VM VirtualBox 4.1.40 Programming Guide and Referenceservice with any language . . . . . . . . . . . . . . . . . . . 25 2.2.1 Raw web service example for Java with Axis . . . . . . . . . . . . . . . 25 2.2.2 Raw web service example for Perl . . . . . . . . . . . . . . . . . . . . . . . . . . 293 9 VirtualBox external authentication modules 294 10 Using Java API 296 10.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . toolkit that understands WSDL. These days, that includes most programming languages that are available: Java, C++, .NET, PHP, Python, Perl and probably many more. All of this is explained in detail in subsequent0 码力 | 306 页 | 1.92 MB | 6 月前3
Oracle VM VirtualBox 4.2.32 Programming Guide and Referenceservice with any language . . . . . . . . . . . . . . . . . . . 26 2.2.1 Raw web service example for Java with Axis . . . . . . . . . . . . . . . 26 2.2.2 Raw web service example for Perl . . . . . . . . . . . . . . . . . . . . . . . . . . 323 9 VirtualBox external authentication modules 324 10 Using Java API 326 10.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . toolkit that understands WSDL. These days, that includes most programming languages that are available: Java, C++, .NET, PHP, Python, Perl and probably many more. All of this is explained in detail in subsequent0 码力 | 339 页 | 2.07 MB | 6 月前3
Oracle VM VirtualBox 4.3.36 Programming Guide and Referenceservice with any language . . . . . . . . . . . . . . . . . . . 28 2.2.1 Raw web service example for Java with Axis . . . . . . . . . . . . . . . 28 2.2.2 Raw web service example for Perl . . . . . . . . . . . . . . . . . . . . . . . . . . 359 9 VirtualBox external authentication modules 360 10 Using Java API 362 10.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . toolkit that understands WSDL. These days, that includes most programming languages that are available: Java, C++, .NET, PHP, Python, Perl and probably many more. All of this is explained in detail in subsequent0 码力 | 376 页 | 1.99 MB | 6 月前3
Oracle VM VirtualBox 4.3.12 Programming Guide and Referenceservice with any language . . . . . . . . . . . . . . . . . . . 28 2.2.1 Raw web service example for Java with Axis . . . . . . . . . . . . . . . 28 2.2.2 Raw web service example for Perl . . . . . . . . . . . . . . . . . . . . . . . . . . 359 9 VirtualBox external authentication modules 360 10 Using Java API 362 10.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . toolkit that understands WSDL. These days, that includes most programming languages that are available: Java, C++, .NET, PHP, Python, Perl and probably many more. All of this is explained in detail in subsequent0 码力 | 376 页 | 2.24 MB | 6 月前3
Oracle VM VirtualBox 5.2.40 Programming Guide and Referenceservice with any language . . . . . . . . . . . . . . . . . . . 30 2.2.1 Raw web service example for Java with Axis . . . . . . . . . . . . . . . 30 2.2.2 Raw web service example for Perl . . . . . . . . . . . . . . . . . . . . . . . . . 400 10 VirtualBox external authentication modules 402 11 Using Java API 404 11.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . toolkit that understands WSDL. These days, that includes most programming languages that are available: Java, C++, .NET, PHP, Python, Perl and probably many more. All of this is explained in detail in subsequent0 码力 | 422 页 | 2.45 MB | 6 月前3
Oracle VM VirtualBox 5.2.12 Programming Guide and Referenceservice with any language . . . . . . . . . . . . . . . . . . . 30 2.2.1 Raw web service example for Java with Axis . . . . . . . . . . . . . . . 30 2.2.2 Raw web service example for Perl . . . . . . . . . . . . . . . . . . . . . . . . . 399 10 VirtualBox external authentication modules 401 11 Using Java API 403 11.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . toolkit that understands WSDL. These days, that includes most programming languages that are available: Java, C++, .NET, PHP, Python, Perl and probably many more. All of this is explained in detail in subsequent0 码力 | 421 页 | 2.43 MB | 6 月前3
廖雪峰JavaScript教程由JavaScript驱动的。 简单地说,JavaScript是一种运行在浏览器中的解释型的编程语言。 那么问题来了,为什么我们要学JavaScript?尤其是当你已经掌握了某些其他编程语言如Java、 C++的情况下。 简单粗暴的回答就是:因为你没有选择。在Web世界里,只有JavaScript能跨平台、跨浏览器驱动网 页,与用户交互。 Flash背后的ActionScript曾经流 Eich这哥们在两周之内 设计出了JavaScript语言。你没看错,这哥们只用了10天时间。 为什么起名叫JavaScript?原因是当时Java语言非常红火,所以网景公司希望借Java的名气来推 广,但事实上JavaScript除了语法上有点像Java,其他部分基本上没啥关系。 因为网景开发了JavaScript,一年后微软又模仿JavaScript开发了JScript,为了让JavaScript io/liaoxuefeng/content/js/3.html 练习 2 快速入门 - 12 - 本文档使用 书栈(BookStack.CN) 构建 2.1 基本语法 JavaScript的语法和Java语言类似,每个语句以 ; 结束,语句块用 {…} 。但是,JavaScript 并不强制要求在每个语句的结尾加 ; ,浏览器中负责执行JavaScript代码的引擎会自动在每个语句 的结尾补上0 码力 | 264 页 | 2.81 MB | 10 月前3
共 188 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19













