Find All Pairs in Array whose Sum is Equal to given number Using Java

Find All Pairs In Array Whose Sum Is Equal To Given Number in java

In this tutorial, we will learn to write Java Program to find all pairs of integers in an array whose sum is equal to a given number. There are multiple ways to solve this problem in Java and We will in this article. For Example Output It means the sum of (2,10) and (4,8) give … Read more

Java Program to find GCD of two Numbers using Recursion

Find GCD Of Two Numbers Using Recursion in java

GCD or Greatest Common Divisor, is a very important mathematical concept. It is used to find the largest positive integer that divides each number without leaving a remainder. Here in this post, we will learn how to write Java Program to find the GCD of two numbers using recursion in Java. For Example: We have … Read more

Python Program to Separate Characters in a Given String

python program to Separate Characters In A Given String

In this Python programming tutorial, we will be learning to write Python programs to separate the character in a given string. String manipulation is an important aspect of programming. In Python, strings are a sequence of characters and are immutable. Immutable means we cannot modify it once created. In some scenarios, we might be required … Read more

Perform left rotation by two positions in Array Using Python

Perform Left Rotation On Array Elements By Two in java

In this programming tutorial, we will learn to write a Python program to perform a left rotation of array elements by two positions. For Example: Suppose we have an array arr = [1, 2, 3, 4, 5], So after two rotation array will become arr = [3, 4, 5, 1, 2] There are multiple ways … Read more

Python Program to Delete Element at Given Index in Array

python program to Delete Element At Given Index In Array

In this tutorial you will learn to write Python Program to Delete an element at Given index in Array. There are various approach to write this program. In this tutorial we will see some approaches like using slicing, using pop() and using del in Python. For Examples: Let’s consider the following array: arr = [1, … Read more

Python Program to Delete element at End of Array

In this tutorial we will learn writing Python Program to Delete element at End of Array. Arrays are mostly used data structures in programming language. We can store multiple data/elements in it that have same data type. Suppose we have an array arr = [1, 2, 3, 4, 5]. After deletion the last element from … Read more