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

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