





Learn to Code and Code to Learn
Your Journey to Code Mastery
The first step is to download VS Code. After downloading VS Code, you also need to setup mingW, which will be used in compiling and linking the C++ code. If your system already has it, feel free to skip this step. After you finish setting up the configuration, we need to create a folder to store our…
Read More “Set up Visual Studio Code for C++ – CP and DSA” »
Sliding window technique is used to reduce the use of nested loops and replace it with a single loop, thereby reducing the time complexity. Hand written notes
Day 1 Highlights: Introduction and History: Dive into the fascinating history of the C programming language and understand its evolution. Structure of C Programs: Learn the fundamental structure that every C program follows. Discover the key components that make up a C program. Setting Up Your Environment: Get your hands dirty by setting up a…
VIDEO : YouTube link
You are given an integer array prices where prices[i] is the price of a given stock on the ith day. On each day, you may decide to buy and/or sell the stock. You can only hold at most one share of the stock at any time. However, you can buy it then immediately sell it on the same day. Find and return the maximum profit you can…