๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.62K subscribers
5.59K photos
3 videos
95 files
10.2K links
๐ŸšฉMain Group - @SuperExams
๐Ÿ“Job Updates - @FresherEarth

๐Ÿ”ฐAuthentic Coding Solutions(with Outputs)
โš ๏ธDaily Job Updates
โš ๏ธHackathon Updates & Solutions

Buy ads: https://telega.io/c/cs_algo
Download Telegram
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Load Balancer โœ… PayPal
from heapq import *

def getServerIndex(n, arrival, burstTime):
    m = len(arrival)
    available_servers = list(range(1, n + 1))
    process = []
    heapify(available_servers)
    ans = [0] * m

    for a, i, b in sorted(zip(arrival, list(range(m)), burstTime)):
        while process and process[0][0] <= a:
            heappush(available_servers, heappop(process)[1])
        if available_servers:
            server = heappop(available_servers)
            ans[i] = server
            heappush(process, (a + b, server))
        else:
            ans[i] = -1

    return ans

Load Balancer โœ…
PayPal
๐Ÿ”ŠREMINDER: ONLY TEN MINUTES LEFT๐Ÿ”Š

Only ten minutes are remaining for you to join the webinar โ€œCurate Your Profile to Befitting Your Experience and Goalsโ€ hosted by Gurjeet Dahri, Director at Green Fields Education Society. An exciting quiz, an interactive doubt-solving session and abundant advice are waiting for you, join now!

Hereโ€™s the link:  https://meet.google.com/uhn-vvcb-iar