Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ Data Operations ✨

Welcome to this file featuring three functions for different data structures:

🚀 Stacks

is_balanced

This function checks if a given expression with parentheses, curly braces, and square brackets is balanced.

Usage

  • is_balanced(expression1): Checks if the expression is balanced.
  • is_balanced(expression2): Verifies the balance of another expression.

🎯 Sequences (Lists/Tuples)

remove_duplicates

The remove_duplicates function eliminates duplicates from a sequence (list or tuple) while maintaining the original order.

Usage

  • remove_duplicates(input_sequence): Removes duplicates from the given sequence.

📚 Dictionaries

word_frequency

The word_frequency function calculates the frequency of each word in a sentence, ignoring punctuation and considering words in a case-insensitive manner.

Usage

  • word_frequency(sentence): Calculates word frequency in the provided sentence.

CODER: Elnathan

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages