Skip to content

This repository contains various Python programs covering different algorithms and data structures. These programs serve as a reference for learning and practicing Python programming.

Notifications You must be signed in to change notification settings

sreedevi-ps/Python-programs

Repository files navigation

Python Programs Repository

This repository contains various Python programs covering different algorithms and data structures. These programs serve as a reference for learning and practicing Python programming.

📂 List of Programs

  • 123pattern.py- Generates a numeric pattern.
  • armstrong_range.py - Finds Armstrong numbers within a given range.
  • binary_split_reverse.py - Splits a binary number and reverses it.
  • bst.py - Implements a Binary Search Tree (BST).
  • bst_recur.py - Recursive operations on a Binary Search Tree.
  • count.py - Counts occurrences of elements in a list.
  • demo.py - A basic Python script for testing.
  • dupli_arr.py - Finds duplicate elements in an array.
  • factorial.py- Calculates the factorial of a number.
  • fibo.py - Generates the Fibonacci sequence.
  • graph_bfs.py - Implements Breadth-First Search (BFS) on a graph.
  • graph_dfs.py - Implements Depth-First Search (DFS) on a graph.
  • height.py - Computes the height of a binary tree.
  • in_t.py - Inorder traversal of a binary tree.
  • jumping.py- Implements a jumping number algorithm.
  • largesst_3.py - Finds the three largest numbers in a list.
  • level_t.py - Level order traversal of a binary tree.
  • max_min_arr.py - Finds the maximum and minimum elements in an array.
  • max_subarr.py - Finds the maximum sum subarray using Kadane’s algorithm.
  • post_t.py - Postorder traversal of a binary tree.
  • pre_t.py - Preorder traversal of a binary tree.
  • prime.py - Checks if a number is prime.

How to Run

  1. Clone the repository:
    git clone https://github.com/sreedevi-ps/Python-programs.git
    cd Python-programs
  2. Run any script using Python:
    python3 filename.py

📌 Requirements

  • Python 3.x installed
  • Basic understanding of Python programming

🤝 Contributing Feel free to fork this repository and contribute by adding more programs or improving existing ones. Create a pull request with your changes!

📜 License This repository is open-source and available under the MIT License.

Happy Coding! 🎯

About

This repository contains various Python programs covering different algorithms and data structures. These programs serve as a reference for learning and practicing Python programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages