Hello 算法 1.2.0 繁体中文 C语言 版Hello 演算法 C 語言版 作者:靳宇棟(@krahets) 程式碼審閱:宮蘭景(@Gonglja) Release 1.2.0 2024‑12‑06 序 兩年前,我在力扣上分享了“劍指 Offer”系列題解,受到了許多讀者的鼓勵與支持。在與讀者交流期間,我 最常被問到的一個問題是“如何入門演算法”。漸漸地,我對這個問題產生了濃厚的興趣。 兩眼一抹黑地刷題似乎是最受歡迎的方法,簡 ng、xBLACKICEx、IsChristina、JoseHung、qualifier1024、QiLOL、 pengchzn、Guanngxu、L‑Super、WSL0809、Slone123c、lhxsm、yuan0221、what‑is‑me、theNefelibatas、 longranger2、cy‑by‑side、xiongsp、JeffersonHuang、Transmigra 記錄。需要注意的是,Python 中 range(a, b) 對應的區間是“左閉右開”的,對應的走訪範圍為 ?, ? + 1, … , ? − 1 : // === File: iteration.c === /* for 迴圈 */ int forLoop(int n) { int res = 0; // 迴圈求和 1, 2, ..., n-1, n for (int i = 1; i0 码力 | 392 页 | 18.83 MB | 10 月前3
Hello 算法 1.2.0 简体中文 C语言 版Hello 算法 C 语言版 作者:靳宇栋(@krahets) 代码审阅:宫兰景(@Gonglja) Release 1.2.0 2024‑12‑06 序 两年前,我在力扣上分享了“剑指 Offer”系列题解,受到了许多读者的鼓励和支持。在与读者交流期间,我 最常被问的一个问题是“如何入门算法”。逐渐地,我对这个问题产生了浓厚的兴趣。 两眼一抹黑地刷题似乎是最受欢迎的方法,简单、直接 ,那么本书可助你回顾与梳理算法知识体系,仓库源代码可 以当作“刷题工具库”或“算法字典”来使用。 若你是算法“大神”,我们期待收到你的宝贵建议,或者一起参与创作。 前置条件 你需要至少具备任一语言的编程基础,能够阅读和编写简单代码。 0.1.2 内容结构 本书的主要内容如图 0‑1 所示。 ‧ 复杂度分析:数据结构和算法的评价维度与方法。时间复杂度和空间复杂度的推算方法、常见类型、示 ng、xBLACKICEx、IsChristina、JoseHung、qualifier1024、QiLOL、 pengchzn、Guanngxu、L‑Super、WSL0809、Slone123c、lhxsm、yuan0221、what‑is‑me、theNefelibatas、 longranger2、cy‑by‑side、xiongsp、JeffersonHuang、Transmigra0 码力 | 392 页 | 18.52 MB | 10 月前3
This is C++fast safeThis isUndefined Behavior!This isErroneous behavior for uninitialized reads P2795R5 (C++26) - Thomas Köppeint a; // not zero initializedThis isint a{void}; // hypothetical syntaxint a{void}; object, but its runtime value is not fully formedThis isThis isUndefined Behavior!Is C++ safe?Modern C++: move semantics rvalue reference syntaxThis isWidget::Widget( std::list&& member functions to “fake” something when moved From */ ~~~~ };Summary ✦What is C++? ✦Uncompromised performance. ✦Achieved by: living with UB, accepting a safety trade-off 0 码力 | 67 页 | 8.25 MB | 6 月前3
C++ Memory Model: from C++11 to C++23Memory Model C++11 – C++23About Me: alex.dathskovsky@speedata.io www.linkedin.com/in/alexdathskovsky https://www.cppnext.comAlex Dathskovsky | alex.dathskovsky@speedata.io | www.linkedin.com/in/a Dathskovsky | alex.dathskovsky@speedata.io | www.linkedin.com/in/alexdathskovsky From F. Yazdanpanah, C. Alvarez-Martinez, D. Jimenez-Gonzalez and Y. Etsion, "Hybrid Dataflow/von-Neumann Architectures semanticscholar.org/paper/RISC-V-Reward:-Building-Out-of-Order-Processo rs-in-Zekany-Tan/f7f6d27f334604c3c85f0b8d21d2a9b4df22a983Alex Dathskovsky | alex.dathskovsky@speedata.io | www.linkedin.com/in/alexdathskovsky0 码力 | 112 页 | 5.17 MB | 6 月前3
Contracts for C++Timur Doumler CppCon 18 September 2024 Contracts for C++ The Swan, The Pike, and The Crab – Fable by Ivan Krylov, 18143 Copyright (c) Timur Doumler | @timur_audio | https://timur (w: w.index() == i); // postcondition assertion Proposal: add contract assertions to C++4 Copyright (c) Timur Doumler | @timur_audio | https://timur.audio Widget getWidget (index i) == i); // postcondition assertion Proposal: add contract assertions to C++ Function contract assertions5 Copyright (c) Timur Doumler | @timur_audio | https://timur.audio Widget getWidget0 码力 | 181 页 | 4.44 MB | 6 月前3
Irksome C++Irksome C++ Copyright © 2022-2024 by Walter E. Brown. All rights reserved. 1 ACCELERATED EFFECTIVE INEFFECTIVE IRKSOME C++ Walter E. Brown, Ph.D. < webrown.cpp @ gmail.com > Edi$on: 2024-09-19 cs); M.S., Ph.D. (computer science). • Professional programmer for over 60 years, programming in C++ since 1982. • Experienced in industry, academia, consul,ng, and research: � Founded a Computer Science lectured interna?onally. � Re?red from the Scien?fic Compu?ng Division at Fermilab, with specialty in C++ programming and in-house consul?ng. • Not dead! ☺ — s,ll doing training & consul,ng. (Email me!)0 码力 | 15 页 | 3.03 MB | 6 月前3
COMPOSABLE C++COMPOSABLE C++ COMPOSABLE C++ BEN DEANE / BEN DEANE / CPPCON 2021 CPPCON 2021 @ben_deane @ben_deaneIN THIS TALK IN THIS TALK 1. Composability de�ned 2. Composable types 3. Objects and patterns 4 request A B C t f f f t tCASE STUDY: LOGGING CASE STUDY: LOGGING From "Easy to Use, Hard to Misuse: Declarative Style in C++" (CppCon 2018) From "Easy to Use, Hard to Misuse: Declarative Style in C++" (CppCon };"FUNCTIONAL PROGRAMMING" "FUNCTIONAL PROGRAMMING" Functional programming in C++? Polarising? Functional programming in C++? Polarising? Higher order functions that take functions as arguments and return0 码力 | 124 页 | 8.28 MB | 6 月前3
Exceptional C++Victor Ciura Principal Engineer CppCon 2021 October 25th Exceptional C++2021 Victor Ciura | @ciura_victor - Exceptional C++ X Abstract When writing code we usually focus our attention on the Ciura | @ciura_victor - Exceptional C++ 3 About me Advanced Installer Clang Power Tools @ciura_victor2021 Victor Ciura | @ciura_victor - Exceptional C++ 4 Online presentation Q & A Use the Exceptional C++ 5 Exceptional C++ When writing code we usually focus our attention on the happy paths - that’s where the interesting stuff happens2021 Victor Ciura | @ciura_victor - Exceptional C++ 60 码力 | 113 页 | 24.39 MB | 6 月前3
C++ in the CloudC++ in the Cloud One NIF at a Time with Elixir Sakshi Verma | Senior Software Engineerhttps://www.linkedin.com/in/sakverma Functional, concurrent language built for scalability. Ideal for managing Here comes the NIFshttps://www.linkedin.com/in/sakverma Native Implemented Functions (NIFs) Call C/C++ from Elixir Compiles to a shared library Loaded into Erlang VM at startuphttps://www.linkedin NIF Code: A Closer Lookhttps://www.linkedin.com/in/sakverma #include#include c_api.h> ERL_NIF_TERM xgboost_build_info(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) { char 0 码力 | 14 页 | 609.86 KB | 6 月前3
Concurrency Patterns in C0 码力 | 20 页 | 1.35 MB | 6 月前3
共 597 条
- 1
- 2
- 3
- 4
- 5
- 6
- 60













