×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Premium
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
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
241
Answers
Python Program to Count Inversions in an array
Python
Server Side Programming
Programming
Pavitra
Published on 20-Dec-2019 11:46:53
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a list, we need to count the inversion required and display it.Inversion count is obtained by counting how many steps are needed for the array to be sorted.Now let’s observe ...
Read More
Python Program for Triangular Matchstick Number
Python
Server Side Programming
Programming
Pavitra
Published on 20-Dec-2019 11:44:17
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a number X which represents the floor of a matchstick pyramid, we need to display the total number of matchstick required to form a pyramid of matchsticks with x floors.Now ...
Read More
Python Program for Tower of Hanoi
Pavitra
Published on 20-Dec-2019 11:31:36
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given n disks and a series of rods, we need to transfer all the disks to the final rod under the given constraints−We can move only one disk at a time.Only the ...
Read More
Python Program for Subset Sum Problem
Python
Server Side Programming
Programming
Pavitra
Published on 20-Dec-2019 11:26:45
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a set of non-negative integers in an array, and a value sum, we need to determine if there exists a subset of the given set with a sum equal to ...
Read More
Python Program for Stooge Sort
Python
Server Side Programming
Programming
Pavitra
Published on 20-Dec-2019 11:22:50
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 stooge sort.Algorithm1. Check if value at index 0 is greater than value at last index, then swap them. 2. sort the initial ...
Read More
Python Program for Sieve of Eratosthenes
Python
Server Side Programming
Programming
Pavitra
Published on 20-Dec-2019 11:20:49
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a number n, we need to print all primes smaller than or equal to n. Constraint: n is a small number.Now let’s observe the solution in the implementation below −Exampledef ...
Read More
Python Program for Recursive Insertion Sort
Python
Server Side Programming
Programming
Pavitra
Published on 20-Dec-2019 11:18:01
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 recursive insertion sort.Insertion sort works on creating a parallel array in which we manually insert the elements in the specified ...
Read More
Python Program for QuickSort
Python
Server Side Programming
Programming
Pavitra
Published on 20-Dec-2019 11:15:15
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 quicksortHere we first partition the array and sort the separate partition to get the sorted array.Now let’s observe the solution ...
Read More
Python Program for Odd-Even Sort / Brick Sort
Python
Server Side Programming
Programming
Pavitra
Published on 20-Dec-2019 11:11:34
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
Python Program for Number of stopping station problem
Python
Server Side Programming
Programming
Pavitra
Published on 20-Dec-2019 11:08:38
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
Previous
1
...
3
4
5
6
7
8
9
...
25
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout