Hello Guys,
I am a beginner in the Competitive Programming world and am using java, so can anyone help me so as to how to learn/master the language, what resources should be used any books, etc.
Thanks and regards, See you in the arena.
# | User | Rating |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
Hello Guys,
I am a beginner in the Competitive Programming world and am using java, so can anyone help me so as to how to learn/master the language, what resources should be used any books, etc.
Thanks and regards, See you in the arena.
Name |
---|
I am describing some things which I consider while solving problems with Java:
a). Use BufferedReader class or user defined FastReader class for fast I/O, instead of using Scanner class. You can see here for more info.
b). Prefer Java 8 over Java 11. Java 8 has slightly better throughput than Java 11. Still you can use anything, it won't affect your performance drastically.
c). Most importantly, master collection framework in Java. it helps you to use and manipulate data structures efficiently.
d). Use PrintWriter class for producing output in the console. It is much faster then the general System.out.print().
Thanks for the information.
Huu bro i also had seen fast scanner used by second thread can you explain this
It is just a custom template for fast I/O. It uses BufferedReader class but it is a bit different from defined BufferedReader class. All the functions for FastReader class are exactly same as normal Scanner input but because it uses BufferedReader class in it's implementation, it's execution is fast as compared to Scanner.
Thanks for that
Hey,
I have been using Java for quite a while, dont really know if I have mastered JCF.
Can you tell how to "master" it?
I suggest you just start off by learning the minimum required basics, and learning other things as and when needed. Because there are many optimizations in Java that you won't learn in any programming course but only by experiencing them yourselves.
Can give some instances of what you are saying.
Using ArrayDeque over Stack and Queue is one that comes to mind
you can read book CP3 or CP4 by stevan falix halim those are master peices with codes both in JAVA and CPP
SecondThread has excellent video about Java setup for competitive programming. link
lol
switch to C++, I used java for 2 years and C++ is a lot better
Hi, i am learning dsa in java from a course. After that i might try codeforces so was the switch tough, like how many days will it take to switch because sytnaxes are different and pointers,memory management etc. would be new. So could you guide how you sucessfully swithced
if you want, you can use my code:
why did u changed from java to c++
tips to get better at java
1.u dont,use c++ instead
But i know java
CF community has become so condescending these days, some person is new to CP and is asking for help/resources. Yet, I see 6 down-votes in this blog.
Yes, some people downvoting just for asking or for no reason
are you still alive brother