- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Pavitra has Published 176 Articles
![Pavitra](https://www.tutorialspoint.com/articles/images/user_icon.png)
Pavitra
198 Views
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given an array, we need to sort it using brick sort.Here we have two phases: Odd and Even Phase. In the odd phase, bubble sort is performed on odd indexed elements ... Read More
![Pavitra](https://www.tutorialspoint.com/articles/images/user_icon.png)
Pavitra
236 Views
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given that there are 13 intermediate stations between two places A and B. We need to find the number of ways in which a train can be stopped at 2 intermediate ... Read More
![Pavitra](https://www.tutorialspoint.com/articles/images/user_icon.png)
Pavitra
650 Views
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a cost matrix and a position (m, n), we need to find the cost of minimum cost path to reach (m, n) from (0, 0). Each cell represents a cost ... Read More
![Pavitra](https://www.tutorialspoint.com/articles/images/user_icon.png)
Pavitra
616 Views
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given an array, we need to sort it using the concept of merge sortHere we place the maximum element at the end. This is repeated until the array is sorted.Now let’s ... Read More
![Pavitra](https://www.tutorialspoint.com/articles/images/user_icon.png)
Pavitra
156 Views
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given N coins where we need to arrange them in form of a triangle, i.e. in the first row will have 1 coin, the second row will have 2 coins and ... Read More
![Pavitra](https://www.tutorialspoint.com/articles/images/user_icon.png)
Pavitra
438 Views
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given an array, we need to sort it using the concept of quick sort using iterative wayHere we first partition the array and sort the separate partition to get the sorted array.Now ... Read More
![Pavitra](https://www.tutorialspoint.com/articles/images/user_icon.png)
Pavitra
461 Views
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given an array, we need to sort it using the concept of merge sort by iteration.Here we place the maximum element at the end. This is repeated until the array is sorted.Now ... Read More
![Pavitra](https://www.tutorialspoint.com/articles/images/user_icon.png)
Pavitra
1K+ Views
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given an array, we need to sort it using the concept of heapsort.Here we place the maximum element at the end. This is repeated until the array is sorted.Now let’s observe the ... Read More
![Pavitra](https://www.tutorialspoint.com/articles/images/user_icon.png)
Pavitra
235 Views
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given an array, we need to sort it using gnome sort.Algorithm1. Firstly we traverse the array from left to right. 2. Now, if the current element is larger or equal to ... Read More
![Pavitra](https://www.tutorialspoint.com/articles/images/user_icon.png)
Pavitra
146 Views
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given two arrays, we need to find the closest pair from the two sorted arraysNow let’s observe the solution in the implementation below −Example Live Demo# sys module import sys # pair def ... Read More