larissalages / code_problems

Code Problems from Coding Challenge Websites. The goal is to help them to improve their code skills and also studying for coding interviews.
MIT License
55 stars 181 forks source link

Minimum Time to Make Rope Colorful.cpp #446

Closed Tushar-r12345 closed 2 years ago

Tushar-r12345 commented 2 years ago

Leetcode Problem : 1578. Minimum Time to Make Rope Colorful Problem Link : https://leetcode.com/problems/minimum-time-to-make-rope-colorful/

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

Description

Please describe your pull request.

:heart: Thank you!

Tushar-r12345 commented 2 years ago

Leet code Problem: 1578. Minimum Time to Make Rope Colorful Problem Link: https://leetcode.com/problems/minimum-time-to-make-rope-colorful/

Description: it's a Leet code problem which was asked in many companies interviews round and I have solved it using greedy approach and with minimum time and space complexity with proper understandable comments so that it is easy to understand to anybody.

Tushar-r12345 commented 2 years ago

Thank you @larissalages for accepting my PR. Can I submit one more PR as I have done many Leet code question, and I know which one are mostly asked in interviews and OAs and it will be really beneficial for others.