๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.63K subscribers
5.6K 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
def NextSmallerNumber(a):
    if a is None:
        return None

    n = len(a)
    result = [-1] * n
    stack = []

    for i in range(n - 1, -1, -1):
        while stack and stack[-1] >= a[i]:
            stack.pop()

        if stack:
            result[i] = stack[-1]

        stack.append(a[i])

    return result


Python 3โœ…
๐Ÿ‘1
๐‚๐จ๐ฆ๐ฉ๐š๐ง๐ฒ ๐๐š๐ฆ๐ž: Groww, India

๐‘๐จ๐ฅ๐ž: SDE Intern - Frontend (Web)

๐๐š๐ญ๐œ๐ก ๐ž๐ฅ๐ข๐ ๐ข๐›๐ฅ๐ž: 2024 grads only

https://docs.google.com/forms/d/e/1FAIpQLSd359_g-D6_FphUgs7RW-g4shkMk4cha7xouuFjOsVqbahMfw/viewform