Hardik Pawar

Results 64 comments of Hardik Pawar

I have implemented the suggested changes @alxkm .

The **MinStackUsingSingleStack** algorithm is a widely known solution in data structures, frequently discussed in programming interviews and textbooks. It is not exclusive to LeetCode but is a classic problem in...

I have resolved the conflicts @alxkm .

Here are a list of resources that explain the Celebrity Finding algorithm using Stacks: - [Scaler - The Celebrity Problem](https://www.scaler.in/the-celebrity-problem/) - [Unraveling the Celebrity Problem: A Solution Using Stacks](https://blogs.brain-mentors.com/unraveling-the-celebrity-problem-a-solution-using-stacks/)

> Keep comments short to not slow down the reader. > > The ruff rules D can be quite useful. I have committed the suggested comment changes and marked the...

> Please remove the duplicate type hints in comments so the following command passes without errors. % `ruff check --select=D417 backtracking/coloring.py` I'm sorry for missing this! I have removed the...

I understand the concern about it being a LeetCode problem. However, I believe this implementation touches on a valid algorithm that has practical applications. Given its relevance and utility in...

@siriak The [Algorithms/Python repository](https://github.com/TheAlgorithms/Python/blob/master/data_structures/arrays/median_two_array.py) includes the "Median of Two Sorted Arrays" algorithm as part of its directory, indicating it is recognized as a valid algorithm beyond coding competitions.