LeetCode 1: Two Sum Optimized Solution (O(n) Hash Map)

Welcome to Episode 7 of our 50-Day Competitive Programming Challenge! In our previous episode, we tackled the legendary Two Sum problem using the “Brute Force” method with nested loops. While Brute Force is a great baseline to show an interviewer, its O(n^2) time complexity is too slow for massive datasets. Today, we are going to … Read more

LeetCode 1: Two Sum Solution & Explanation (Brute Force Approach)

Welcome to Episode 6 of our Competitive Programming for Beginners Challenge! Today, we are taking on the undisputed king of coding interviews, a true rite of passage for every programmer: LeetCode Number 1: Two Sum. When you step into a technical interview, your interviewer wants to see how your brain works. The best way to … Read more

Codeforces 50A: Domino Piling Solution & 1-Line Math Trick (C++)

Welcome to Episode 4 of our Competitive Programming for Beginners Challenge! Today, we are looking at a problem that perfectly illustrates why you should always stop and think about the math before you start typing code. We are solving Domino Piling (Codeforces 50A). At first glance, this looks like a complex spatial puzzle requiring 2D … Read more

C++ Operators and Types | Operator Precedence in C++

C++ Operators and Types

In this tutorial we will study and understand the concept of C++ Operators and Types. An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C++ is rich in built-in operators and provides the following types of operators: Arithmetic operators in C++ as the name suggests are used to perform arithmetic/mathematical operations in the program. Following are the different arithmetic … Read more

C++ Variables and Datatypes

In this tutorial we will understand the concept of C++ Variables and Datatypes. Variables Identifiers (name that we assign to a variable or any entity in general) Data Types in C++ In C++ Programming Data types can be categorized broadly in 3 types – 1. Primitive / Built-in Data Types These contain the basic inbuilt data … Read more

C++ First Hello World Program with Explanation

hello world program in c++

In this programming tutorials, we will see our very first Hello World Program in C++ and understand line by line what it means in a very simple and overview level. Now lets try to understand this code line by line – So thats it for this tutorial guys, I have a YouTube video tutorial for … Read more

Introduction to Computer Programming & C++ Programming

In this tutorial, we will study and understand what is a computer programming language and also take an introduction about C++ programming language. What is Computer Programming in general ? Types of Programming Languages – 1. Machine language – 2. Assembly Language – 3. High Level Language – C++ Programming Language First Hello World Program … Read more