DEV Community

Muhammad Ichsanul Fadhil
Muhammad Ichsanul Fadhil

Posted on

Free Platform to Evaluate and Improve Your Coding Skills

You’ve probably noticed how everything these days seems to revolve around tech, right? Coding isn’t just something only professional developers do anymore — it’s becoming a super useful skill for everyone. Whether you’re a student trying to learn something new, a freelancer building your own website, or just a curious person who loves tech, knowing how to code can seriously boost your game.

The cool part? You don’t need to spend a ton of money on fancy online courses or bootcamps to see how good you are. There are plenty of free tools out there that let you test and improve your programming skills. One of my favorites is budibadu.com i just found it today and i think they are is very cool because free haha 😄

💡 What Are Coding Challenges?

A coding challenge is an interactive exercise or problem designed to test your understanding of programming logic, syntax, and algorithms. These challenges often require you to write code to solve a specific task, such as sorting data, building a small program, or fixing a piece of buggy code.

Coding challenges simulate real-world scenarios — just like the ones developers face at work. They can range from simple problems for beginners (like reversing a string) to advanced algorithmic puzzles used in technical interviews at companies like Google or Microsoft.

For example as you can see for this problem Pier Ticket Window Time
you will see the problem explanation on left side then a box for like vscode on right side, as a developer you need to analyze the problem find the best solution and can make code that produce output that same like test case provided.

Here summary of that coding challenge.

Before a lantern parade, several ticket windows serve guests at different speeds — each window takes a fixed number of minutes to process one guest. All windows work simultaneously. The goal is to find the minimum time (in minutes) needed for all windows combined to serve a given number of guests.

You’re given:

  • An array rates, where each element represents how many minutes a specific window needs to serve one guest.
  • An integer guests, the total number of people waiting.

Our task:

Find the smallest integer t such that the total number of guests served by all windows within t minutes is at least equal to guests. Use binary search over time to efficiently find this minimum value.

Let's solve that problem with languange python.

Here the code template that given from platform, we just fill it with the code, no need to write entrypoint function on that answer just complete the existing function.

from typing import List

def pier_ticket_window_time(rates: List[int], guests: int) -> int:
    """
    Return the minimum minutes needed to serve all guests.
    """
    # If there are no guests, no time is needed
    if guests == 0:
        return 0

    # Define the search range
    left, right = 0, min(rates) * guests  # upper bound (fastest window serves all)

    # Binary search to find minimum time
    while left < right:
        mid = (left + right) // 2

        # Calculate total guests served in 'mid' minutes
        served = sum(mid // rate for rate in rates)

        # If enough guests are served, try shorter time
        if served >= guests:
            right = mid
        else:
            left = mid + 1

    return left
Enter fullscreen mode Exit fullscreen mode

Run that code on platform and you will get see this image, this meand you have solved one problem👌

Conclusion

And that’s it! Pretty fun, right? 😄 Coding challenges like this one are such a great way to sharpen your skills, you learn how to think logically, write clean code, and actually see your results. What I like from budibadu.com is all problem is free and the problems also unique.

I think that’s enough for today. I hope this little sharing helps you out! Thanks for reading, and see you again in my next post

Top comments (0)