Greedy Algorithms
- Minimum time to finish all jobs with given constraints
- Job Sequencing Problem | Set 2 (Using Disjoint Set)
- Minimum sum of two numbers formed from digits of an array
- Find Smallest number with given number of digits and digits sum
- Connect n ropes with minimum cost
- Minimum number of Platforms required for a railway/bus station
- Minimum sum of absolute difference of pairs of two arrays
- Maximize sum of consecutive differences in a circular array
- Paper cut into minimum number of squares
- Minimize sum of product of two arrays with permutation allowed
- Lexicographically smallest array after at-most K consecutive swaps
- Rearrange characters in a string such that no two adjacent are same
- Maximum height pyramid from the given array of objects
- Minimum cost for acquiring all coins with k extra coins allowed with every coin
- Maximum sum possible equal to sum of three stacks
- Maximize array sum after k-negations | Set 1
- Maximize array sum after k-negations | Set 2
- Rearrange a string so that all same characters become d distance away
- Minimum Cost to cut a board into squares
- Minimize cash flow among friends
- Minimum edges to reverse to make path from a source to a destination
- Minimize the maximum difference between the heights of towers
- Top 20 Greedy Algorithms Interview Questions
- ‘Practice Problems’ on Greedy Algorithms
- ‘Quiz’ on Greedy Algorithms
- Ask a Question on ‘Greedy Algorithms’
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
Given a list of input tasks to run, and the cooldown interval, output the minimum number of time slots required to run them.
Given a list of input tasks to run, and the cooldown interval, output the minimum number of time slots required to run them.
// Tasks: 1, 1, 2, 1, 2
// Recovery interval (cooldown): 2
// Output: 8 (order is 1 _ _ 1 2 _ 1 2 )
Whats the time and space complexity ? What's the ideal case of space complexity ?
- ttemp3103 December 31, 2017 in United States |
Facebook
https://www.youtube.com/watch?v=R6Skj4bT1HE&feature=youtu.be
It is very great full content for growth of knowledge .This blog help us to grow our career .Thankyou for writing the blog. I really like this site. For its genuine and new content.
ReplyDeleteThank you !
ReplyDelete