I_hate_Computer_science's blog

By I_hate_Computer_science, history, 3 months ago, In English

After 1 year I start to CP.I don't need algorithm book I need learning c++ like vector and how to use vector

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by I_hate_Computer_science (previous revision, new revision, compare).

»
3 months ago, # |
  Vote: I like it +4 Vote: I do not like it

Maybe this can help you: https://cses.fi/book/book.pdf

»
3 months ago, # |
  Vote: I like it +4 Vote: I do not like it

you might consider Competitive Programmer's Handbook -> pdf link

  • »
    »
    3 months ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    This book teaches algorithms,even I don't know how to use vector in c++

    • »
      »
      »
      3 months ago, # ^ |
      Rev. 3   Vote: I like it +3 Vote: I do not like it

      Actually, there is part in that book about Data Structures (Map, Set, Vector...). I was learning from there and for every DS I have lernt most usefull functions by just scrolling through GFG page about that particular DS and trying to solve problems using them to become more flexible with that DS.

    • »
      »
      »
      3 months ago, # ^ |
        Vote: I like it +3 Vote: I do not like it

      Did you check chapter 4?! There all ds including map ,set ,vector are described with their most frequent functions you will need.

      • »
        »
        »
        »
        3 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        for example i see top-rated user's code they are using something like (vector<vector >).That's why i need other book

»
3 months ago, # |
  Vote: I like it +12 Vote: I do not like it

There is no such thing as a book that teaches you how to use c++ in Cp. Follow a C++ beginner's tutorial on youtube to familiarize yourself with the syntax and then start solving problems on here, and every time you find yourself stuck on some syntax ask chatgpt "How to implement blah blah in c++" and it'll tell you, and eventually you'll know how to do everything on your own. Thats how I switched from python to c++.

  • »
    »
    3 months ago, # ^ |
      Vote: I like it +5 Vote: I do not like it

    I like how people started to consider ChatGPT because it's really very useful in the learning process.

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

You can see usaco it is well structured

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

check hackerrank, it has basic problems. Also this group might help: https://codeforces.com/group/isP4JMZTix/contest/392597

»
3 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it