A curated collection of programming exercises designed to reinforce foundational concepts in Basic Programming, Object-Oriented Programming (OOP), and Data Structures & Algorithms (DSA). This repository serves as a practical resource for learners, educators, and interview preparation, offering hands-on challenges to sharpen problem-solving skills.
This repository aims to:
- Provide a structured review of core programming concepts.
- Encourage practical implementation of theoretical knowledge.
- Support self-assessment and interview preparation.
- Foster collaboration through open contributions.
Exercises to build foundational logic and syntax skills:
- Cypher: Implement a simple encryption/decryption algorithm.
- Guess the Number: A number-guessing game with user interaction.
- String Manipulation: Modify and analyze strings (e.g., name formatting).
- Count Zeros: Count the number of zeros in a given input.
Exercises to practice OOP principles (encapsulation, inheritance, polymorphism):
- Vending Machine: Simulate a vending machine with item selection, payment, and change return.
- ATM Simulator: Model an ATM with account management, withdrawals, and deposits.
Exercises to deepen understanding of DSA concepts:
- Stack & Queue: Implement and test stack/queue operations.
- Linked List: Find the middle, quarter, or specific elements in a linked list.
- 8 Balls Puzzle: Identify the heavier ball using a balance scale.
- Dijkstraโs Algorithm: Implement the shortest-path algorithm for a weighted graph.
- Google Gas Station: Solve the circular route problem for optimal fuel efficiency.
- Clone the Repository:
git clone https://github.com/your-username/programming-lab-review.git
- Navigate to Exercises: Choose a topic (Basic Programming, OOP, or DSA).
- Solve the Exercises: Implement your solutions in the provided templates.
- Test Your Code: Verify correctness with sample inputs.
- Contribute: Submit pull requests for improvements or additional exercises.
Contributions are welcome! To contribute:
- Fork the repository.
- Create a branch for your changes.
- Add or improve exercises (ensure clarity and correctness).
- Submit a pull request with a detailed description.
This repository is open-source and available under the MIT License.