# Tag Archives: loop

Given an integer n, create a square pattern of size n x n such that the edges of the pattern contain the numbers 1 to… Read More
Pyspark offers a very useful function, Window which is operated on a group of rows and returns a single value for every input row. Do… Read More
In this article, we are going to learn how to split a column with comma-separated values in a data frame in Pyspark using Python. This… Read More
Given an array arr[] which is of 3*N size, the task is to remove N elements and divide the whole array into two equal parts… Read More
Given a linked list, check if the linked list has loop or not. Below diagram shows a linked list with a loop.   The following are… Read More
Given a linked list, check if the linked list has loop or not. Below diagram shows a linked list with a loop.   Solution: Floyd’s Cycle-Finding… Read More
In this article, we will see how to print the multiplication table of any given number using PHP. To make the multiplication table, first, we… Read More
Pre-requisite: if-else This article focuses on discussing what happens when the print statement is used inside the if-else conditional statement. For example: Consider the below… Read More
Rahul and Ankit are the only two waiters in the Royal Restaurant. Today, the restaurant received N orders. The amount of tips may differ when… Read More
In this article, we will discuss the overview of TCL script and will cover the TCL script to find the sum of n natural numbers… Read More
In this article, we will know the syntax of the if-else statement in Tool Command Language. We will understand the TCL script to determine whether… Read More
In this, we will cover the overview of MySQL WHILE Loop and then will cover the algorithm of each example and then will see the… Read More
Given an array A[] consisting of positive integers, the task is to calculate the minimum possible deviation of the given arrayA[] after performing the following… Read More
Exit a Loop in C++: If the condition of an iteration statement (for, while, or do-while statement) is omitted, that loop will not terminate unless… Read More
Given a number N, the task is to print the star pattern in single loop. Examples:  Input: N = 9 Output: * * * *… Read More