Linked list Deletion in Python: At beginning, End, Given location

Linked list Deletion in Python: At beginning, End, Given location

In this tutorial, we are going to learn the python program to create a singly linked list and delete a node at the beginning, at the end, and at the given location of the singly linked list. Problem Statement Our program will delete an element at the beginning, at the end, and at the given … Read more

Python program to insert a node in linked list

python program to Insert A Node In Linked List

In this tutorial, we are going to learn the python program to create a singly linked list and add a node at the beginning, at the end, and at the given location of the singly linked list. Problem Statement Our program will add an element at the beginning, at the end, and at the given … Read more

Python Program To Calculate The Factorial

Factorial Program in Python

Description                    In this tutorial, we are going to learn a python program to find the factorial of the number given as input from the user. Problem Statement                    For any numbers that are input by the user, we have to calculate the factorial of that numbers. For example What is Factorial of a number? … Read more

Even and Odd number Program in Java

even odd program in java

In this tutorial we will learn writing the program in Java to check whether a given number is even number or not. Before start writing Lets know What is Even and Odd number? A number is even if it is completely divisible by 2 with 0 remainder. And the number that does not completely divisible … Read more

Factorial Program In Java using loop and recursion

java factorial program

In this tutorial we will learn writing program in java to find the factorial of a number using for loop, while loop, functions and recursions. Before start writing the program Lets first know What is Factorial of a number? Factorial of a whole number ‘n’  is the product of that number with every whole number … Read more

C program to perform right rotation in array by 2 positions

C Program To Perform Right Rotation In Array By Two Positions

Performing right rotation in array means, our last element will become first element and shift each array elements towards right by one. Here we are going to perform right rotation by 2 times means we will shift each array element toward right two times. Our problem statement Suppose we have an array that has elements a={1,2,3,4,5}. … Read more

C Program to delete element from array at given index

C Program To Delete Element From Array At Given Index

In this tutorial, we are going to learn to write C Program to delete element from an array at the given index. To delete the element from the given index, we will iterate the array and to the given index. Now we will just shift each element towards the left one by one and decrease … Read more