Card image cap
C++ Program to find the factors of a number.

In this program we take an input n for which we will find the factors. Factors of a number n are those numbers which can completely divide the given number n.

Card image cap
C++ Program for Matrix Subtraction of same order

This C++ Program will show  the  subtraction of two matrices having same order. First program will initializes the matrices, subtracts each corresponding element of the two matrices and puts the value in the third matrix.

Card image cap
C++ program to add the two matrices

C++ Program to add the matrices is given below. Here we will first define the size of the input matrices and then will add the both matrices using 'add' method and will store their result in the third matrix

Card image cap
Implementation of Kadane Algorithm in Python

Implementation of kadane algorithm is very important. This has been asked many times in the interview of tech giants such as Amazon, Morgan Stanley, Microsoft, Payu etc..

Card image cap
C++ Program to find the square root of Number in log(n)

The idea is simple. We will use binary search to find the square root of the number. If the given number is not a perfect square then we will simply take the floor value of the root of the number.

Card image cap
Simple Java Program to explain constructors in Java

We know that all objects that are created must be given initial values. We can do this by two approaches. The first approach uses the dot operator to access the instance variables and then assigns value to them individually. But it can be a tedious approach to initialize all the variables of all the objects individually.

Card image cap
Datatypes in JavaScript

The most fundamental characteristic of any programming language is the data types it supports..Basically data types refers to the types of values which can be represented and manipulated in that programming language.

Card image cap
PHP Program to reverse an array | array_reverse()

array_reverse() is an inbuilt function of PHP used to reverse the array including the nested arrays. It returns the reversed array. But in the case of associative arrays of if you don't want to change the keys of the array, $key_preserve=true can be passed as a parameter to the array_reverse() function.

Card image cap
First Program in PHP

PHP files can contain text, HTML, CSS, JavaScript, and PHP code. And you must need a server to execute a PHP file and the result of the script will be returned to the browser as plain html.