Programming Fundamentals

Programming fundamental is all about building the foundations and get you started with writing the first program.
It covers the basic terminologies and core concepts of programming.
It covers data types, conditionals, control statements, loops and what not!

Getting Started!

This category contains the basic getting started blogs on fundamental programming languages.

Conditionals and Loops

In computer programming, conditional loops also known as repeating control structures are a means for computer programmes to repeat one or more tasks based on conditions defined by the programmer or real-time by the actual program.
Conditional Statements determine which block of code to execute at runtime, using if or switch conditional statements. Loop Control Statements repeatedly execute a block of code, using for or while loops. These conditions are specified by a set of expressions like boolean expressions which are evaluated to a boolean value true or false.
This category contains all of the information you need to know about conditionals and loops.

For Each Loop

By Amarjeet Kumar

● Published At May 2022

In this article, you will go through the for each loop (also known as the for each loop), a control flow statement used to traverse entries in a collection.... Keep reading ..

Check If a Number is Not a Power of 2?

By Vivek Kumar Mehta

● Published At Feb 2022

In this blog, we will discuss different ways to check if a number is a power of 2 or not and compare their time complexities to determine the best-suited approach.
... Keep reading ..

Valid Sudoku

By Aditya Narayan Joardar

● Published At Nov 2021

This is part two of the Sudoku Solver article. In this article, we will discuss whether the given sudoku is valid or not.... Keep reading ..

Patterns

A repeated series or sequence is known as a pattern. To solve a problem related to a pattern, you just have to figure out its fashion of repeating through your observation. Pattern programs consist of numbers, alphabets or symbols in a particular form. These kinds of pattern programs can be solved easily using loop conditions. Solving these problems helps you in improving your logic of loops in computer science.
This category contains all the advanced concepts you need to know about Patterns.

Patterns - Advanced

Dealing with redundant code can be a nightmare for any programmer. To help programmers deal with this issue, the loops come into the picture. Loops allow us to repeat a process without writing the same code each time we want our program to perform a task.
A loop is a programming structure that repeatedly executes a sequence of instructions until a specific condition is met. There are various kinds of loops like the for loop, do-while loop, for-each loop, while loop, etc.
This category contains all of the advanced concepts you need to know about loops.

Arrays

An array is the most primitive and frequently used data structure in the field of computer science. It has become the inspiration for several data structures such as lists and strings.
An array is basically a collection of similar types of data items stored at contiguous memory locations. It helps us to store multiple items of the same data type together. They are also used to implement other data structures like Heaps, Stacks, Queues, etc.
This category contains all of the information you need to know about arrays.

Introduction

An array is a data structure that combines several variables of the same type into a single variable. Instead of having separate variable names for ea

Sorting Algorithms - Advanced

A sorting algorithm is used to arrange a given set of data into a specific order based on the comparison. Based on the comparisons, a new order of the

Application Based Problems

Data structures is a programmic way of storing data. Almost every application uses various types of data structures in one or the other way. Hence it

Single Number

By Yogesh Bhalerao

● Published At Oct 2021

In this blog, we’ll learn to find a single number from an array of elements where every element appears twice except one.... Keep reading ..

Sliding Window

By Ishita Chawla

● Published At Nov 2021

In this blog, we will be discussing the famous sliding window technique, how it is more efficient than the naive approach, and its time and space complexity.... Keep reading ..

Find the Number Occurring Odd Number of Times

By Pranav Gautam

● Published At Oct 2021

Different ways to find a number with odd frequency in a group of numbers with even frequencies.... Keep reading ..

Next Permutation

By Saksham Gupta

● Published At Oct 2021

In this blog, we'll be discussing different approaches for solving one of the classic interview problems, i.e., Next Permutation.... Keep reading ..

Multi-Dimensional Arrays

An array of arrays is a multi-dimensional array. The most commonly used type of array is a two-dimensional array. They're used to keep tabular data organised.
A multi-dimensional array is an array that has more than one dimension (size). The multi-dimensional array can be two-dimensional, three-dimensional, four-dimensional, or more dimensions.

Kth smallest element in a row-wise and column-wise sorted 2D array

By Akshat Chaturvedi

● Published At Oct 2021

In this blog post, we will learn various algorithms to find the Kth smallest element in a row-wise and column-wise sorted 2D array.... Keep reading ..

Count Square Submatrices with All Ones

By Alisha Chhabra

● Published At Nov 2021

This article revolves around the coding problem, which says Count Square Submatrices with all ones.
... Keep reading ..

Search in a 2-D Matrix which is sorted row-wise and column-wise.

By Vaibhav Agarwal

● Published At Feb 2022

In this article, we will discuss the problem of checking if the given number is present in the row-wise and column-wise sorted matrix... Keep reading ..

Size of all Connected Non-Empty Cell of Matrix

By Yogesh

● Published At Dec 2021

In this blog, we will solve the Matrix problem, in which we have to count the size of all connected Non-Empty cells.
... Keep reading ..

Minimum Number of Operations Required to Set All Elements of a Binary Matrix

By Saksham Gupta

● Published At Jan 2022

This blog will discuss how we can solve a classical problem of BFS and one of the most asked problems in interviews, i.e., Minimum number of operations required to set all elements of a binary matrix.
... Keep reading ..

Strings

Strings is one of the commonly used data types in all programs. It is technically defined as an array of characters which are enclosed within quotes in most of the languages. In some languages, it's a primitive data-type, and in others, it's defined as a complex data-type.

Common Problems

Strings is a vast topic in Data Structures and Algorithms and thus attracts a lot of problems asked in interviews. To make you efficient in solving su

Substrings

A substring is a contiguous sequence of characters in a string. Both empty
String and the full string are also substrings.
This category contains ev

String Matching

String Matching is finding one, several, or all occurrences of a defined pattern or string in a large text or sequence. In this section, you will deal

Count Valleys

By Firdausia Fatima

● Published At Dec 2021

In this blog, we'll discuss a fascinating problem, Count Valleys.... Keep reading ..

Compare Version Numbers

By Pranav Gautam

● Published At Nov 2021

String linear traversal to compare two version numbers given as strings.... Keep reading ..

Count and Say

By Firdausia Fatima

● Published At Dec 2021

In this blog, we will discuss recursive and iterative solutions to the problem Count and Say.... Keep reading ..

Longest word in dictionary

By Pranav Gautam

● Published At Nov 2021

Learn to find the longest word in a dictionary with all the prefixes present as words in the dictionary.
... Keep reading ..

Number Theory

Modular Arithmetic

By SHIKHAR SONI

● Published At Jan 2022

This article discusses and explains fundamental modular arithmetic operations.... Keep reading ..

Binary Exponentiation

By Shreya Deep

● Published At Jan 2022

This article discusses the binary exponentiation method.... Keep reading ..

GCD Euclidean Algorithm

By Gaurish Anand

● Published At Feb 2022

In this article, we will learn to calculate the GCD using the euclidean algorithm.... Keep reading ..

Extended Euclidean Algorithm

By SHIKHAR SONI

● Published At Jan 2022

In this article, we briefly discuss working and proof of Extended Euclidean Algorithm.... Keep reading ..

Modular Multiplicative Inverse

By SHIKHAR SONI

● Published At Jan 2022

In this article, we discuss the implementation of brute force and optimized approaches in detail to calculate the modular multiplicative inverse.... Keep reading ..

Introduction to Chinese Remainder Theorem

By GAZAL ARORA

● Published At Mar 2022

In this article, we will learn about the Chinese Remainder Theorem discovered by a Chinese mathematician Sun Zi. It is an important theorem, so read until the end to understand better.... Keep reading ..

Euler’s Totient Function

By Nishant Rana

● Published At Feb 2022

This blog will cover the theory and implementation part of Euler’s Totient function and discussion over its Time and Space complexity.
... Keep reading ..

Combinatorics

Combinatorics (BASICS)

By Malay Gain

● Published At Mar 2022

In this article, we will learn about the basic principles of combinatorics.... Keep reading ..

Pascal Triangle

By Soumya Agrawal

● Published At Mar 2022

This article will cover Pascal's triangle & combinatorics topic with a detailed explanation.... Keep reading ..

Miscellaneous

Explore some miscellaneous problems which make use of multiple concepts of programming and problem-solving, which in turn helps in gaining confidence while writing code. Try out these problems before looking out for solutions.

Addition of two numbers in C

By Teesha Goyal

● Published At Mar 2022

In this article, we discussed how to add two numbers in C.... Keep reading ..

How to Sort List in Java

By Sujal Modanwal

● Published At Mar 2022

In this article, we will learn how to sort a list in Java.... Keep reading ..

Converting Java String to Int

By Saksham Gupta

● Published At Mar 2022

This blog will discuss how we can convert a string to int in Java.
... Keep reading ..

Binary Search in Java

By Manvi Chaddha

● Published At Mar 2022

Binary Search in Java is an important topic from an interview perspective. This blog sheds light on it.
... Keep reading ..

Floyd's triangle in c

By Apoorv

● Published At Mar 2022

This article will discuss the theory of Floyd's triangle along with its implementation in C language.... Keep reading ..

String compare in C

By Jaglike Makkar

● Published At Mar 2022

In this article, we will learn different ways to do string compare in C/C++.... Keep reading ..

String Reverse in Python

By Ankit Kumar

● Published At Mar 2022

This article will discuss various ways of reversing a string in Python, and in the end, we will also discuss some of the FAQs.... Keep reading ..

Convert String To Int In Python

By PRASHANT SINGH

● Published At Mar 2022

This blog introduces the conversion of string to int in Python. And also covers the syntax and examples to use the in-built int() method to convert string to int in Python.... Keep reading ..

Java Program for QuickSort

By Amisha Purswani

● Published At Mar 2022

This article will discuss Quicksort and see its intuition, algorithm, and implementation in Java.... Keep reading ..

Trim in Java

By Shivani Kumari

● Published At Mar 2022

In this article, we will learn about the trim in Java and how to use it. We will also see some examples to understand this method's working properly.... Keep reading ..

How to Sort Strings in Java

By Gaurav Budhiraja

● Published At Mar 2022

This article briefs about the methods used for sorting strings in Java using the inbuilt and custom sort techniques.... Keep reading ..

Reverse Array in Java

By Tanay Kumar

● Published At Mar 2022

This blog will learn to reverse array in Java with different methods.... Keep reading ..

Char to Int in Java

By Muskan Gupta

● Published At Mar 2022

This blog covers the concept of conversion of char to int in java.
... Keep reading ..

Java Program to Add Two Numbers

By Gaurav Joshi

● Published At Mar 2022

This article will discuss the different ways we can add two numbers in java. The article also discusses the various forms of taking input from the user in java.... Keep reading ..

Fibonacci Series in Java

By Parth Jain

● Published At Mar 2022

This blog discusses the Fibonacci Series program in Java that displays the Fibonacci series for an input n.
... Keep reading ..

String Palindrome in Java

By Saksham Gupta

● Published At Mar 2022

This blog will discuss how to solve a problem - String Palindrome in Java and learn to write a 'string palindrome program in java'.
... Keep reading ..

Sort Array in Java

By Manvi Chaddha

● Published At Mar 2022

Sorting is an important topic from an interview perspective; this blog sheds light on how to sort Array in Java.
... Keep reading ..

String reverse in java

By Shreya Deep

● Published At Mar 2022

This article discusses the methods to reverse a string in Java.... Keep reading ..

Prime Number in Python

By Parth Jain

● Published At Mar 2022

This blog discusses what is Prime number in Python and how it can be found.
... Keep reading ..

Int to String Conversion in Java

By Shaurya Singhal

● Published At Mar 2022

This article will discuss all the possible ways to convert an int Data Type to the String Data type in Java. We will further look at examples to understand the implementation of int to String conversion in Java.
... Keep reading ..

Intersection of Two Arrays

By Saksham Gupta

● Published At Apr 2022

This blog will discuss how we can solve the problem ‘Intersection of two arrays’.... Keep reading ..

Print all subsequences of a string

By Manan Singhal

● Published At Apr 2022

In this article, we will discuss how to print all subsequences of a string.... Keep reading ..

Alien Dictionary

By Saksham Gupta

● Published At Apr 2022

This blog will discuss how we can solve the problem ‘Alien Dictionary’
... Keep reading ..

Palindrome number in C

By Sandeep kamila

● Published At Mar 2022

This blog will cover the approach to check the palindrome number in C language.
... Keep reading ..

## Top Problems related to Programming Fundamentals

MergeSort Linked List

Binary Search

Compress the String

Generate all parenthesis

Count Inversions

Longest Common Subsequence

Delete a Node from Linked List

Yogesh And Primes

Replace 0s

Anagram Pairs

Longest Common Prefix

Maximum Subarray Sum

Move Zeroes To End

Insert Interval

Product Of Array Except Self

Convert Given Number To Words

Best Time to Buy and Sell Stock II

Check If Given Numbers Are Coprime

Convert Min-Heap to Max-Heap

Palindromic Substrings

Check Integer Overflow