Git Product home page Git Product logo

Comments (4)

stevenhalim avatar stevenhalim commented on July 19, 2024

Noted, which cpp files got that? I remember using a few like this but it shouldn't be that many and can be fixed easily.

from cpbook-code.

stevenhalim avatar stevenhalim commented on July 19, 2024

I spotted SuffixArray _T
max_flow _V
so far
will fix them

the _x and _y for points (ch7) should be ok I guess

from cpbook-code.

howsiwei avatar howsiwei commented on July 19, 2024
$ rg -tcpp '\b_[A-Z]'
ch8/maxflow.cpp
68:  max_flow(int _V) : V(_V) {

ch2/ourown/segmenttree_ds.cpp
71:  SegmentTree(const vi &_A) : SegmentTree((int)_A.size()) {
72:    A = _A;
152://   SegmentTree(const vi &_A) : SegmentTree((int)_A.size()) {
153://     A = _A;

ch6/sa_lcp.cpp
71:  SuffixArray(const char* _T, const int _n) : T(_T), n(_n) {

ch9/SparseTable.cpp
13:  SparseTable(vi &_A) : A(_A) {                  // pre-processing routine
36:        SpT[i][j] = _A[x] <= _A[y] ? x : y;

ch9/mcmf.cpp
68:  min_cost_max_flow(int _V) : V(_V), total_cost(0) {

from cpbook-code.

stevenhalim avatar stevenhalim commented on July 19, 2024

Thanks, all fixed on my side and in the body text, will push these updates in a few minutes.

Apparently this _ thingy only appear in class construction when I have same variable name between internal variable and the parameter of the constructor ...

from cpbook-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.