A collection of programming problems and their solutions in Python, designed for learning and interview preparation.
This repository contains solutions to common programming problems that frequently appear in:
- Technical interviews
- Coding challenges
- Algorithm and data structure practice
- Programming contests
- Python 3.7 or higher
- pip package manager
- Clone the repository:
git clone https://github.com/babosina/TestAssignment.git
cd TestAssignment- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies (if any):
pip install -r requirements.txtdef two_sum(nums: list[int], target: int) -> list[int]:
"""
Find two numbers in the array that add up to the target sum.
Args:
nums: List of integers
target: Target sum to find
Returns:
List containing indices of the two numbers
Example:
>>> two_sum([2, 7, 11, 15], 9)
[0, 1]
"""
# Implementation here
pass- LeetCode - Online platform for coding practice
- HackerRank - Programming challenges and tutorials
- GeeksforGeeks - Computer science portal
- Big O Cheat Sheet - Time and space complexity reference
Happy Coding! π
Remember: The goal is not just to solve problems, but to understand the underlying concepts and improve your problem-solving skills.