No video

Competitive Programming Tip - How Templates Can Save Time (in C++)

  Рет қаралды 44,740

Rachit Jain

Rachit Jain

Күн бұрын

Пікірлер: 67
@RachitJain
@RachitJain 4 жыл бұрын
"A template cannot solve a Segment Tree problem if you are not skilled to use it - focus more on building skills" Check video description for access to code and other relevant info. Comment your favourite part about Competitive Programming templates below 😁
@lovleshbhatt7797
@lovleshbhatt7797 4 жыл бұрын
How can You handle infinite loops in Vscode, In sublime it hangs the pc if I try to run by mistake and it runs it in infinite loop
@nipunmittal19
@nipunmittal19 4 жыл бұрын
Kudos to the video. What tools have you used to show your demo? Apart from the vim are there any other tools or extensions of vim you use to make it quite interactive?
@ashishchoksi8501
@ashishchoksi8501 4 жыл бұрын
Brother I am expecting great editorial of Guessing game and ttuple this 2 question from codechef June long challenge plzz make video on both after contest 👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻 Who are agree like here ....
@vinaykirpalani5804
@vinaykirpalani5804 3 жыл бұрын
hello sir , sir i have a request , sir i have a suggestion , could you explain polynomial multiplication using fft in your upcoming videos thanks
@simpleman9889
@simpleman9889 4 жыл бұрын
Show Vim + tmux setup
@jayshree7574
@jayshree7574 4 жыл бұрын
I cannot thank u enough for that deb(sum), it is so helpful. adding it to my template now.
@surajnallam6953
@surajnallam6953 4 жыл бұрын
I miss the starting and ending video animations and background music😄. Anyways, the video was great and informative. Also, request you to make a video on your setup of VS Code for Competitive programming using C++. Thank you.
@pisumohanty8008
@pisumohanty8008 4 жыл бұрын
i have no words this type of lecture is not comparable really poor student get an unexpected result.thanku rachit bhai,thank to utube
@rohittuli8908
@rohittuli8908 4 жыл бұрын
Great video, really helpful. Please make a video in future on where to learn DS and algos from for CP and some selected topicwise questions or some learning resource you used. That would be very useful to us.
@hardik2680
@hardik2680 4 жыл бұрын
After watching this, i guess my code will look way clean! Thanks
@kunalmamgain
@kunalmamgain 4 жыл бұрын
Hey rachit, great video. A video suggestion for future, show us how to setup our vim for cp and general working with all the vimrc setup and stuff.
@garlapatisaisnehith1392
@garlapatisaisnehith1392 4 жыл бұрын
Hi Rachit, Can you please make a video on which extensions to use in vs code and how to switch easily and basically vs code setup for improving the fastness for competitive programming.I am new to Viscode and it's taking lot of time setting it up for smooth movement. Thanks!!
@Gold_fi
@Gold_fi 4 жыл бұрын
Thanks for this video. Pls can you kindly show us how to set up vim as a competitive programmer
@saraswati558
@saraswati558 4 жыл бұрын
Now I understand how the coders submit the solutions in such lees time. Thank you for this❤🙌
@mokshaGyanRam
@mokshaGyanRam 3 жыл бұрын
Rachit is intelligent and good person. Thanks for video
@KaziAmitHasan
@KaziAmitHasan 4 жыл бұрын
Thanks. But I think many people are not familiar with vim. It would be great if you have used vs code or sublime. After all making this easier to understand is the main purpose.
@daemona6970
@daemona6970 4 жыл бұрын
Hey rachit plz do a video on your vim setup....
@abhishekkumarsingh6090
@abhishekkumarsingh6090 4 жыл бұрын
make a video on vim for vscode
@anuragsrigyan677
@anuragsrigyan677 4 жыл бұрын
What is that ios_base::sync_with... and the next line stand(chrono..... in the main function?
@RachitJain
@RachitJain 4 жыл бұрын
ios_base one is for making cin really fast, so that you don't face unnecessary TLEs. srand is just seeding the generator with high precision clock - using a clock so its different for every run and hence save your code from getting hacked on Codeforces.
@b0606089
@b0606089 4 жыл бұрын
@@RachitJain i understand how srand works. But could not understand how it secures from hacking? How one can hack anyway?
@kartikdubey8666
@kartikdubey8666 4 жыл бұрын
Rachit is legend !!!
@skullcode8856
@skullcode8856 4 жыл бұрын
Please help how to set up vim for competitive programming
@abhishekvishwakarma9045
@abhishekvishwakarma9045 4 жыл бұрын
Nice video rachit 👍 I miss the ending song in this video
@devashishdeshpande9365
@devashishdeshpande9365 3 жыл бұрын
This helps a lot thanks 👍
@rajeshranjan8134
@rajeshranjan8134 4 жыл бұрын
Thanks Rachit for template 😍
@janchomath483
@janchomath483 4 жыл бұрын
xD Those ipgraph and dfs functions are the most unnecessary things to have in template.
@arshdeepkumar2586
@arshdeepkumar2586 4 жыл бұрын
Sir, Problem is C++ taught in colleges or on youtube is not meant for competitive programming, that's basic what they taught. So, we don't event know about a lot of functions like fast-input output etc. So, Please try to clarify them as well.
@Crypto_UPDATE_2
@Crypto_UPDATE_2 4 жыл бұрын
How to be aware about the latest updates and changes in C++ language ?
@ShivamSingh-vu8vq
@ShivamSingh-vu8vq 4 жыл бұрын
Thanks , all I wanna know is how to setup vim !
@aniketyadav7368
@aniketyadav7368 Жыл бұрын
the best part that i like it is deb(x)
@ramnareshprasad2573
@ramnareshprasad2573 4 жыл бұрын
Hi Rachit Jain. Your videos are great and informative too. Can you please explain why you chose C++ for competitive programming and not python or any other language ???
@RachitJain
@RachitJain 4 жыл бұрын
Search "best programming language for competitive programming", already covered this in a video.
@jayshree7574
@jayshree7574 4 жыл бұрын
how did you get that lightening symbol in your terminal? it looks really cool
@II-ii2um
@II-ii2um 2 жыл бұрын
search for "zsh/bash profile customize" on YT. All the best!
@adityashahare8674
@adityashahare8674 4 жыл бұрын
How do I check my c++ complier version?
@mursalinahmed3463
@mursalinahmed3463 4 жыл бұрын
Which IDE ar you using and how you use the powershelter or something like that, make a tutorial on it. Thank you.
@Desireanshu
@Desireanshu 4 жыл бұрын
it's vim editor
@bhanusharma658
@bhanusharma658 4 жыл бұрын
Is there any advantage to declare array globally?
@saideepesh6036
@saideepesh6036 4 жыл бұрын
It's been 3 weeks but still, the thumbnail hasn't changed yet which shows "Compeitive Programming".
@ironymous007
@ironymous007 4 жыл бұрын
What's the use of rng() function in yr template?
@amolmishra7891
@amolmishra7891 4 жыл бұрын
Any idea how to create a template and save it so that the next time you open your code, you can just click a button to fetch that template(on Sublime, Windows10)?
@manhar4127
@manhar4127 4 жыл бұрын
Use snippets in sublime
@deepanshugupta5299
@deepanshugupta5299 4 жыл бұрын
Typo* in thumbnail
@abhaypatil2000
@abhaypatil2000 4 жыл бұрын
Can u explain why you used typedef for vectors and pairs. I mean, even defines would do the work, so why typedef
@UNMEASURED100
@UNMEASURED100 2 жыл бұрын
Why use define when typedef works too?
@angiras07
@angiras07 4 жыл бұрын
Explain your vimrc instead
@b0606089
@b0606089 4 жыл бұрын
I never saw anyone using visual studio etc which has auto complete feature, in competitive prog. Is there a reason for using shell like ide?
@b0606089
@b0606089 4 жыл бұрын
By the way I bought algoexpert using your code. Your welcome!
@ioi935
@ioi935 4 жыл бұрын
You don't need template... look at tourist code..
@marufhasan1684
@marufhasan1684 3 жыл бұрын
Didn't get that Fo thing. Can anyone explain it?
@RachitJain
@RachitJain 3 жыл бұрын
Fo(i, 1, 100) and Fo(i, 100, 1) both will work - the asc or desc order is handled in the macro.
@marufhasan1684
@marufhasan1684 3 жыл бұрын
@@RachitJain Thanks for the reply
@karthik5369
@karthik5369 4 жыл бұрын
You legend
@muddhitbaid2831
@muddhitbaid2831 4 жыл бұрын
Can you suggest java template also?I'll be thankful to you!
@prakharshekharparthasarthi8313
@prakharshekharparthasarthi8313 4 жыл бұрын
You Should have explained template Line By Line, You explained only the stuff that most people know, and not explained the most lines whose meaning very few people knew
@mayanktomar9562
@mayanktomar9562 4 жыл бұрын
Sir please start c++ or java course in Hindi . It will help you to increase Ur subscriber base + Ur views also .
@jrakesh143
@jrakesh143 4 жыл бұрын
I think you shifted to python ?
@RachitJain
@RachitJain 4 жыл бұрын
I use Python for cool small projects/thoughts of my own.
@pewdipie4566
@pewdipie4566 4 жыл бұрын
yet another video lasting more than 10 mins ... you are behaving like a craving KZbinr for add revenue dude
@SR-er6hx
@SR-er6hx 3 жыл бұрын
This is not damn C++. You are using using namespace std and it's very bad. If I were your boss, I would fire you!!!!!!!!
@RachitJain
@RachitJain 3 жыл бұрын
This is not production code. It's for Competitive Programming. Ouch!
@SR-er6hx
@SR-er6hx 3 жыл бұрын
@@RachitJain Either way you should not be using it. It's a bad habit. It's like using type defs for C structs.
@SR-er6hx
@SR-er6hx 3 жыл бұрын
@@RachitJain Really, If you had used std:: it helps people to avoid context switching.
@Gold_fi
@Gold_fi 4 жыл бұрын
Thanks for this video. Pls can you kindly show us how to set up vim as a competitive programmer
@RachitJain
@RachitJain 4 жыл бұрын
I have recieved multiple request for this. Will definitely work on this.
C++ Tricks - Argument Packing,  Macros and Templates
12:31
Rachit Jain
Рет қаралды 61 М.
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 36 МЛН
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 1,7 МЛН
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 3,1 МЛН
UNO!
00:18
БРУНО
Рет қаралды 5 МЛН
2 Years Of Learning C | Prime Reacts
22:24
ThePrimeTime
Рет қаралды 274 М.
How C++ Works
20:21
The Cherno
Рет қаралды 1 МЛН
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 300 М.
How I use C++: a line-by-line code review
1:40:40
strager
Рет қаралды 258 М.
How to build templates in CP | Explaining my template
21:13
codemastercpp
Рет қаралды 6 М.
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 36 МЛН