Hello 算法 1.2.0 简体中文 C# 版Hello 算法 C# 语言版 作者:靳宇栋(@krahets) 代码审阅:@hpstory Release 1.2.0 2024‑12‑06 序 两年前,我在力扣上分享了“剑指 Offer”系列题解,受到了许多读者的鼓励和支持。在与读者交流期间,我 最常被问的一个问题是“如何入门算法”。逐渐地,我对这个问题产生了浓厚的兴趣。 两眼一抹黑地刷题似乎是最受欢迎的方法,简单、直接且有效。然而刷题就如同玩“扫雷”游戏,自学能力 ) 等。 2. Q & A Q:尾递归的空间复杂度是 ?(1) 吗? 理论上,尾递归函数的空间复杂度可以优化至 ?(1) 。不过绝大多数编程语言(例如 Java、Python、C++、 Go、C# 等)不支持自动优化尾递归,因此通常认为空间复杂度是 ?(?) 。 Q:函数和方法这两个术语的区别是什么? 函数(function)可以被独立执行,所有参数都以显式传递。方法(method)与一个对象关联,被隐式传递给 ‧ C 语言是过程式编程语言,没有面向对象的概念,所以只有函数。但我们可以通过创建结构体(struct) 来模拟面向对象编程,与结构体相关联的函数就相当于其他编程语言中的方法。 ‧ Java 和 C# 是面向对象的编程语言,代码块(方法)通常作为某个类的一部分。静态方法的行为类似于 函数,因为它被绑定在类上,不能访问特定的实例变量。 ‧ C++ 和 Python 既支持过程式编程(函数),也支持面向对象编程(方法)。0 码力 | 379 页 | 18.48 MB | 10 月前3
Hello 算法 1.2.0 繁体中文 C# 版Hello 演算法 C# 語言版 作者:靳宇棟(@krahets) 程式碼審閱:@hpstory Release 1.2.0 2024‑12‑06 序 兩年前,我在力扣上分享了“劍指 Offer”系列題解,受到了許多讀者的鼓勵與支持。在與讀者交流期間,我 最常被問到的一個問題是“如何入門演算法”。漸漸地,我對這個問題產生了濃厚的興趣。 兩眼一抹黑地刷題似乎是最受歡迎的方法,簡單、直接 等。 2. Q & A Q:尾遞迴的空間複雜度是 ?(1) 嗎? 理論上,尾遞迴函式的空間複雜度可以最佳化至 ?(1) 。不過絕大多數程式語言(例如 Java、Python、C++、 Go、C# 等)不支持自動最佳化尾遞迴,因此通常認為空間複雜度是 ?(?) 。 Q:函式和方法這兩個術語的區別是什麼? 函式(function)可以被獨立執行,所有參數都以顯式傳遞。方法(method)與一個物件關聯,被隱式傳遞給 語言是程序式程式設計語言,沒有物件導向的概念,所以只有函式。但我們可以透過建立結構體 (struct)來模擬物件導向程式設計,與結構體相關聯的函式就相當於其他程式語言中的方法。 ‧ Java 和 C# 是物件導向的程式語言,程式碼塊(方法)通常作為某個類別的一部分。靜態方法的行為類 似於函式,因為它被繫結在類別上,不能訪問特定的例項變數。 ‧ C++ 和 Python 既支持程序式程式設計(0 码力 | 379 页 | 18.79 MB | 10 月前3
Some Things C++ Does Rightto remind us of some of those things that make C++ beautiful, fun and efficient 21 I’ll be using C# for comparisons, but it’s only because I have to use it often these days… …and because it has a to remind us of some of those things that make C++ beautiful, fun and efficient 22 I’ll be using C# for comparisons, but it’s only because I have to use it often these days… …and because it has a it makes me miss C++ quite a lot! This is not a « C++ is better than C# » talk; it’s a « C++ does some things right » talk. C# is a fine language for what it aims to do, and has many strengths. The0 码力 | 228 页 | 2.47 MB | 6 月前3
MuPDF 1.24.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 7.2 The Python and C# MuPDF APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 7.3 Installing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 7.7 Building the C++, Python and C# MuPDF APIs from source . . . . . . . . . . . . . . . . . . . . . . 213 7.8 Windows-specifics . . . . . . . 221 7.10 Extra functions in C++, Python and C# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 7.11 Python/C# bindings details . . . . . . . . . . . . . . . . . . .0 码力 | 249 页 | 830.15 KB | 8 月前3
MuPDF 1.23.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 7.2 The Python and C# MuPDF APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 7.3 Installing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 7.7 Building the C++, Python and C# MuPDF APIs from source . . . . . . . . . . . . . . . . . . . . . . 213 7.8 Windows-specifics . . . . . . . 220 7.10 Extra functions in C++, Python and C# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 7.11 Python/C# bindings details . . . . . . . . . . . . . . . . . . .0 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.22.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 5.2 The Python and C# MuPDF APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 5.3 Installing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 5.7 Building the C++, Python and C# MuPDF APIs from source . . . . . . . . . . . . . . . . . . . . . . 151 5.8 Windows-specifics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 5.10 Python/C# bindings details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1590 码力 | 175 页 | 698.87 KB | 8 月前3
MuPDF 1.25.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 8.3 The Python and C# MuPDF APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 8.4 Installing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 8.7 Building the C++, Python and C# MuPDF APIs from source . . . . . . . . . . . . . . . . . . . . . . 223 8.8 Windows-specifics . . . . . . . 231 8.10 Extra functions in C++, Python and C# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 8.11 Python/C# bindings details . . . . . . . . . . . . . . . . . . .0 码力 | 259 页 | 1.11 MB | 8 月前3
Learn Unity by Creating a 3D Multi-Level Platformer Gamemy best to leave no stone unturned! Tutorial requirements and project files No prior Unity or C# experience is required to follow along, although you should have familiarity with basic programming the Unity Editor, scenes, game objects and components ● Understanding game object core methods in C# scripts ● Working with object transforms both from the Inspector and from scripts ● Accessing user material into your coin and you’ll have your coin ready! Once we get into scripting, coins will have a C# script associated to them which will determine how they behave. Since we’ll have many coins, having0 码力 | 60 页 | 2.24 MB | 10 月前3
Unity for Human Beingsmost comfortable with writing in C#, however, I will update the course with JavaScript as soon as possible. What languages are supported by Unity3D? Unity3D supports C#, JavaScript (commonly called UnityScript) folder, highlighted Create, and selected C# Script/ JavaScript. You can select a script and it will show you what code has been written in the Inspector Pane. C# Code: JavaScript code: Zenva Academy After selecting the Scripts. Choose which script you want to use. In this case it will be the C# one. Remember the text we created inside of the canvas? Drag that Text component from the hierarchy0 码力 | 239 页 | 27.39 MB | 10 月前3
AR Game Development for Beginnersfunctions, conditionals, loops, and object-oriented programming. Learn how to build games with C# and Unity! You'll master popular genres including RPGs, idle games, Platformers, and FPS games the code controlling the placement indicator. In the Project panel, right click and select Create > C# Script. Call this PlacementIndicator. Let's attach the script to the object. Select the PlacementIndicator for your game here. Once you’ve done so, right-click > Create > C# Script and name it ARTapToPlaceObject. Double click on your new C# Script to open it. The first thing you’ll need to do is to import0 码力 | 78 页 | 3.31 MB | 10 月前3
共 100 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













