Language Used: Python

Merge Sort:

Merge Sort is a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves. The merge() function is used for merging two halves.

How it works?

First divide the list into the smallest unit, then compare…

Language Used: C

Concepts Involved:

For Loop


for (Statement; testExpression; updateStatement)
// statements


C if Statement:


if (test expression) 
  • If the test expression is evaluated to true, statements inside the body of if are executed.
  • If the test expression is evaluated to false, statements inside the body of if are not executed.

Language used: Python

Matrix Multiplication:

So what exactly is Matrix Multiplication?

This is basically how a matrix is multiplied.

  1. Order Matters: The order in which the two matrices are given as input affects or alters the output.
  2. Two matrices can be multiplied only when the number of columns of the first matrix…

Python Function:

Function is a group of related statements that perform a specific task.

Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable.

Furthermore, it avoids repetition and makes code reusable.

Syntax Of Function:

def function_name(parameters):"""docstring"""statement(s)

Problem Description:

The program…

Language Used: Python

Binary Search

Binary Search is basically used to find an item from a sorted list of items. It works by dividing the list into half repeatedly until it is narrowed down to just one.

It is time efficient, that is it’s run time is faster than that of the…

Here are 2 most easy ways to Check if the given year is Leap Year or not. The Source Code along with its Output and Explanation are given below:

Using if else Ladder

What is if else ladder?

In C if_else_if ladder is used to help the user to decide from among multiple options. If the conditions controlling the…

Technology at your door step…

-Sreemeenakshi V

Nowadays, Technology is ruling our world. Thanks to these technologies and inventions, we are able to live our lives at ease. So it is important to update ourselves with the current trending technologies and those that will soon make their way into these…

Sreemeenakshi V

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store