Sort by

recency

|

43 Discussions

|

  • + 0 comments

    For the Meeting Point challenge: With N≤1000, brute-force O(N²) works—pick each house as meeting point, sum Manhattan distances (|dx|+|dy|) to all houses, output the minimum sum.

    Python solution:

    import sys
    
    input = sys.stdin.read
    data = input().split()
    
    N = int(data[0])
    points = []
    index = 1
    for i in range(N):
        x = int(data[index])
        y = int(data[index + 1])
        points.append((x, y))
        index += 2
    
    min_dist = float('inf')
    for px, py in points:
        total = sum(abs(px - qx) + abs(py - qy) for qx, qy in points)
        if total < min_dist:
            min_dist = total
    
    print(min_dist)
    

    Sample input (4 houses: (0,1) (2,5) (3,1) (4,0)) outputs 10. Handles large coords with int. TLE? Optimize sorting for medians but eval at points only.

  • + 0 comments

    Looking for a fast, reliable, and affordable way to dub your videos into multiple languages? Dubbing AI is the perfect solution for creators, educators, and businesses aiming to reach audiences worldwide. Using advanced AI voice cloning, precise translations, and realistic lip-syncing, it transforms your original video into over 150+ languages while keeping your tone, style, and emotion perfectly intact.

    Whether you’re a YouTuber wanting to connect with global fans, a teacher sharing lessons across borders, or a brand expanding its international presence — Dubbing AI helps you do it all without hiring studios, translators, or voice actors. The result? Smooth, professional-quality dubbed videos that look and sound completely natural. It’s time to make your content truly global — effortlessly and affordably with Dubbing AI.

  • + 0 comments

    Boost your outdoor space with a modern pool enclosure from Covers in Play. Our innovative designs keep your pool clean, secure, and ready to use in any season. Enjoy reduced maintenance costs, improved energy efficiency, and year-round comfort, all while increasing your home’s value.

    Experience smart living with Covers in Play lnc, call us today at 347-778-2483 or visit https://www.coversinplay.com/ .

  • + 0 comments

    Boost your outdoor efficiency with a modern pool enclosure that keeps your pool clean, secure, and ready for use in any season. It saves time, lowers maintenance costs, and enhances your home’s value effortlessly. Experience innovation and comfort with Covers in Play USA — call us today at 📞 347-778-2483.

  • + 0 comments

    If you’re planning a shower remodel in Phoenix, Arizona, consider working with expert home organizers in Phoenix to make the most of your new space. After your remodel, our professional organizers can help you design smart storage solutions, declutter your bathroom essentials, and create a clean, functional layout that keeps your shower area organized and stress-free every day.