Skip to content

siyametj/hacker_rank_problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 HackerRank Python Solutions 🚀

Python HackerRank License Profile

Welcome to my personal collection of HackerRank Python Challenge Solutions! 🧠⚡ Here, I upload clean, optimized, and well-structured Python codes for various competitive programming problems from HackerRank.


📌 Repository Overview 📂

Category / Problem Name 🧩 Source File 📁
Alphabet Rangoli alphabet_rangoli.py
Arithmetic Operators arithmetic_operators.py
Athlete Sort athlete_sort.py
Capitalize! capitalize.py
Collections.counter() collection_counter_function.py
Collections.namedtuple() collection_namedtuple_function.py
Company Logo company_logo.py
Compress the String! compress_the_string.py
Designer Door Mat designer_door_mat.py
DivMod div_moddiv.py
Find Angle MBC find_angle_mbc.py
Find a String find_a_string.py
Finding the Percentage finding_the_percentage.py
Find the Runner-Up Score! find_the_runner_up_score.py
Floor & Division floor_and_divison.py
ginortS ginortS.py
Introduction to Sets introduce_to_set.py
Iterables and Iterators iterables_and_iterators.py
Itertools.permutations() itertools_permutations_function.py
Itertools.product() itertools_product_function.py
Leap Year Problem leap_year_or_not.py
List Comprehensions list_comprehensions_problem.py
Matrix Script matrix_script.py
Maximize It! maximize_it.py
Merge the Tools! merge_the_tools.py
Mutate String mutate_string.py
Nested Lists / Loop nested_loop_problem.py
No Idea! Game no_idea_game.py
Piling Up! pilling_up.py
Polar Coordinates polar_coordinates.py
Power - Mod Power power_mod_power.py
Python Exam / Special python_exam/
Python Lists Challenge python_list_challenge.py
Set .add() set_add_function.py
String Formatting string_formatting.py
String Split & Join string_split_and_join.py
String Validators string_validators.py
sWAP cASE swap_case_challange.py
Symmetric Difference symmetric_diffrence.py
Text Wrap text_wrap.py
The Minion Game the_minion_game.py
Time Delta time_delta.py
Triangle Quest 1 & 2 triangle_quest.py / triangle_quest_2.py
Tuples Problem tuple_problem.py
Validating Credit Card Numbers validating_credit_card_number.py
Validating Postal Codes validating_postal_codes.py
Weird or Not Weird weired_or_not.py
What's Your Name? what_is_your_name.py
Word Order word_order.py

🛠️ How to Run 💻

Prerequisites

  • Python 3.x installed on your system
  • Git for cloning the repository

Step-by-Step Guide

  1. Clone this repository:

    git clone https://github.com/siyametj/hacker_rank_problem.git
  2. Navigate to the directory:

    cd hacker_rank_problem
  3. Run any Python file:

    python3 filename.py

    For example:

    python3 alphabet_rangoli.py
    python3 string_formatting.py
    python3 find_the_runner_up_score.py

📚 Problem Categories 🎯

This repository contains solutions across multiple Python topics:

  • Basic Python - Arithmetic, String Operations, Basic I/O
  • Data Structures - Lists, Tuples, Sets, Collections
  • String Manipulation - String Formatting, Split & Join, Validators
  • Itertools & Iterables - Permutations, Product, Combinations
  • Advanced Concepts - Comprehensions, Lambda Functions, Decorators
  • Math Problems - Geometry, Modulo, Power Operations
  • Problem Solving - Logic, Game Theory, Optimization

💡 Tips for Using This Repository 💡

  1. Learn by Understanding - Don't just copy-paste; read and understand the logic
  2. Test Before Submitting - Run the code locally before submitting to HackerRank
  3. Experiment - Try to modify the solutions and see how they work
  4. Compare Solutions - Check if there are alternative, more efficient approaches
  5. Comment Your Code - Add comments to understand what each line does

📖 How to Use These Solutions

Each Python file contains a complete solution to a HackerRank problem. You can:

  • 📥 Copy and understand the logic
  • 🔧 Modify and test locally before submitting
  • 🚀 Optimize further if you find better approaches
  • 📝 Reference for learning Python concepts

👨‍💻 About Me

Siyam - Competitive Programmer & Python Enthusiast

  • 🐙 GitHub: @siyametj
  • 💪 Passion: Solving algorithmic problems and writing clean code
  • 🖥️ Tech Stack: Python, Competitive Programming, Problem Solving
  • 🐧 OS: Debian Linux (Power User 🚀)

⭐ Show Your Support

If you find these solutions helpful and they contribute to your learning journey, please consider giving this repository a STAR ⭐! It helps others discover these resources and motivates me to continue adding more solutions.

If this helped you → ⭐ Star the repo! ⭐

📄 License

This project is licensed under the MIT License - feel free to use these solutions for educational purposes.


🤝 Contributing

Found a bug or have a better solution? Feel free to:

  • Open an Issue 🐛
  • Submit a Pull Request 🔀
  • Share suggestions 💬

📞 Connect With Me


Happy Coding! 🚀💻

Last Updated: 2026

About

Clean, optimized, and well-structured Python solutions for various HackerRank coding challenges

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages