Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexander784/data-structures-and-algoritm
A Data structures and algorithm practice for Python
https://github.com/alexander784/data-structures-and-algoritm
classes-python functions-python
Last synced: 1 day ago
JSON representation
A Data structures and algorithm practice for Python
- Host: GitHub
- URL: https://github.com/alexander784/data-structures-and-algoritm
- Owner: alexander784
- Created: 2023-12-05T07:03:28.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-06T12:48:49.000Z (11 months ago)
- Last Synced: 2024-08-20T07:48:12.511Z (3 months ago)
- Topics: classes-python, functions-python
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Data Structures and Algorithms
This repo contains Python code implementing fundamental data structurs and algorithms, along with solutions to specific programming challenges.
## Stacks
Q1 :Balanced Expressions
mplement a function is_balanced(expression) that takes a string containing parentheses, curly braces, and square brackets and determines whether the expression is balanced
## Sequences(Lists/Tuples)
Q.2
Remove Duplicates
Write a function remove_duplicates(sequence) that takes a sequence (list or tuple) and returns a new sequence with duplicates removed while maintaining the original order of elements.
# Dictionaries
Q.3Word Frequency
Implement a function word_frequency(sentence) that takes a sentence and returns a dictionary containing the frequency of each word in the sentence. Ignore punctuation and consider words in a case-insensitive manner.
## Author:
Alexander Nyaga.