Write python code for heap sort.

Mahendra patil February 15, 2023
  Heap Sort: Here's an implementation of Heap Sort algorithm in Python: def heap_sort(arr): # Build max heap n = len(arr) fo...Read More

Write python code for Quick sort.

Mahendra patil February 15, 2023
 Quick Sort: Here's an implementation of Quick Sort algorithm in Python: def quick_sort(arr): if len(arr) <= 1: return ar...Read More

Write a python code for 8 queens problem

Mahendra patil February 15, 2023
8 Queens problem: The 8 queens problem is a classic problem in computer science and mathematics, which involves placing 8 chess queens on an...Read More

Stack

Mahendra patil August 24, 2022
Stack "Stack is a linear data structure in which insertion and deletion of an element takes place from only one end called as top of t...Read More

Applications of Stack

Mahendra patil August 11, 2022
1. Reverse a String Using Stack. Algorithm: 1. Create an empty stack 2. One by one push all characters of string to stack 3. One by one pop...Read More
ads
Powered by Blogger.