Python
Python copied to clipboard
All Algorithms implemented in Python
### Describe your change: Implemented the Leonardo numbers sequence algorithm. * [x] Added type hinting * [x] Added doctests with positive, negative, and float cases * [x] Verified tests pass...
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? * [...
This project/file contains a solution to the Merge Intervals problem, a common coding interview problem. Problem Statement: Given a collection of intervals, merge all overlapping intervals and return a list...
### Describe your change: This pull request adds a complete implementation of the Gauss–Jordan elimination algorithm for solving systems of linear equations of the form Ax= b . The function...
class BankAccount: def __init__(self,account_number,balance): self.__account_number = account_number self.balance = balance def check_balance(self): print("your account number is : ",self.__account_number) print("your available balance is :" ,self.balance) b = BankAccount(281207,27000) b.check_balance()
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...
### Describe your change: **Added a file named "transpose_of_matrix" in matrix directory. ** i have described my steps in detail in code as best i can, this program computes the...
name = input("enter your name: ") year_of_birth = int(input("enter your year_of_birth:")) from datetime import date current_year = date.today().year age = current_year-year_of_birth print("/n hello",name) if age>=60: print("you are senior citizen") else:...
#Python
class showroom: print( "car dealer:Heartly welcome to our showroom.please take your seat \n what can i help you" ) print("customer: i want buy BMW car show me") print("car dealer:see this...
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...