Skip to main content

Posts

Showing posts from June, 2021

C++ Setup using VS Code and TDM-GCC Compiler (Windows)

You need to use this blog along with the YouTube Video present here for better understanding of the installation and the overall process.  YouTube Link -  https://youtu.be/l-4SH-QzbgI C++ Setup using VS Code and TDM-GCC Compiler (Windows) Using this setup we will be installing VS Code and TDM-GCC Compiler which is a good way to compile and run C++ programs in Windows. During my school days we used to execute programs in Turbo C++ compiler, which is now discontinued for good. The UI wasn't intiuitive at all for Turbo C++ software and it looked something like the one shown in the image below. But we do have great memories of programming in C++ using Turbo C++ Software in our school days. 😃 Turbo C++ (discontinued) UI Coming back, as for the Linux based systems (Ubuntu, Debian etc, I guess GCC already comes as part of the package. So Linux users can compile their C++ Programs from day 1 of their installations. 👍 To install GCC compiler on Mac OSX, you need to download and insta...

Getting Started with Problem Solving!

What to follow for solving CP and/or Data Structures Problems?  1. Type Code Fast! “Quickly as Possible” - This boils down to how much you have practiced problem-solving and how fast are you able to code up the solution! Just improve your typing speed and practice typing on a daily basis. This is going to help you a lot. It helped me a lot to be more productive by solving more and more problems if I am able to type things faster. Link to 10FastFingers - https://10fastfingers.com/ 2. Identify the type of the problems quickly This comes with practice and patience. As and when you start solving more and more problems, you would be able to identify properly which problem comes under what category. Which data structure would be suitable for what problems. Whether this problem belongs to Dynamic Programming or will the Greedy Algorithm work for this problem? Should I use Insertion Sort here or the Merge Sort algorithm. Should I use a Balanced Binary Search Tree here or should I use a ...