Python icon indicating copy to clipboard operation
Python copied to clipboard

All Algorithms implemented in Python

Results 1352 Python issues
Sort by recently updated
recently updated
newest added

### Checklist [x] I have read the contributing guidelines [x] I have added doctests [x] My code follows the project style [x] This algorithm is not a duplicate [x] All...

awaiting reviews

### Summary This PR adds a new bit manipulation algorithm `count_bits` that returns the number of set bits (1s) in a non-negative integer. ### Highlights - Pure Python bitwise implementation...

### Describe your change: Add InsightFace face detection and analysis example demonstrating: - Face detection using RetinaFace - Face embeddings using ArcFace (512-dimensional vectors) - Extraction of facial landmarks (2D/3D),...

tests are failing

This PR adds an implementation of the Longest Repeated Substring (LRS) algorithm in strings directory. - Time complexity: O(n) - Returns the longest substring that appear File added: - strings/longest_repeated_substring.py

tests are failing

Implement matrix multiplication function with validation. ### Describe your change: * [ ] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [...

is_failed = input("enter yes to continue: ") i = 0 while is_failed=="yes": if i%2!=0: i+=1 print(f"attempt{i}") continue if i > 100: break

This repository contains a concise overview of the Python os module, which provides essential functions to interact with the operating system. The os module helps Python programs perform system-level operations...

awaiting reviews

is_failed = True i = 1 while is_failed : if i%2!=0 : i=i+1 continue print(f"Try{i}") i=i+1 if i>100 : break print("i gave up")