How can I learn concepts that I don't even know exist?

Is it through trying to solve problems and searching for the solution or should I try to learn all the concepts and keep searching?

Before contest

Codeforces Round 955 (Div. 2, with prizes from NEAR!)

34:02:49

Register now »

Codeforces Round 955 (Div. 2, with prizes from NEAR!)

34:02:49

Register now »

*has extra registration

# | User | Rating |
---|---|---|

1 | tourist | 3845 |

2 | jiangly | 3707 |

3 | Benq | 3630 |

4 | orzdevinwang | 3573 |

5 | Geothermal | 3569 |

5 | cnnfls_csy | 3569 |

7 | jqdai0815 | 3532 |

8 | ecnerwala | 3501 |

9 | gyh20 | 3447 |

10 | Rebelz | 3409 |

# | User | Contrib. |
---|---|---|

1 | maomao90 | 171 |

2 | adamant | 163 |

3 | awoo | 162 |

4 | nor | 153 |

5 | maroonrk | 152 |

6 | -is-this-fft- | 151 |

7 | TheScrasse | 150 |

8 | atcoder_official | 145 |

8 | Petr | 145 |

10 | pajenegod | 144 |

How can I learn concepts that I don't even know exist?

Is it through trying to solve problems and searching for the solution or should I try to learn all the concepts and keep searching?

↑

↓

Codeforces (c) Copyright 2010-2024 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jun/24/2024 07:32:12 (j1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|

Auto comment: topic has been updated by Namika (previous revision, new revision, compare).When you try to solve some problem and fail, it may be because you don't know particular algorithm or data structure. You can see that in the editorial it says that this algorithm is needed to solve it. So you should look up what does that algo/datastruct do and think in which problems it can be useful.

You cannot learn all the concepts. This process never ends.

The general idea is to solve problems. If you're stuck on a problem, read the editorial. Probably, the problem wanted an algorithm that you didn't know. You can study it and solve more problems on the same topic for practice.

For example, when I was solving the problem 230B - T-primes, I found out about Sieve of Eratosthenes in the editorial. Then I studied number theory (Sieve, GCD and Modular Arithmetic).

Watch this video

The same thing happened to me with the same problem

bfs

Auto comment: topic has been updated by Namika (previous revision, new revision, compare).Here You will find some resources... https://mirror.codeforces.com/blog/entry/122788

thanks alot