๐ Bengaluru developers built https://t.co/7aQOP0iRcD, an AI-powered interview preparation platform connecting job seekers with opportunities across 700+ companies in just 10 days!
๐ฎ๐ณ India's AI startup ecosystem is growing fast!
#SkillmeetAI#AI#Startups#Bengaluru#TechNews
โฑ๏ธ Time & Space Complexity
โฑ๏ธ T.C : O(n log n)
โ Sliding window + TreeSet insert/remove & rebalancing
๐ซ S.C : O(n)
โ Two TreeSets to manage window elements
โฑ๏ธ Time & Space Complexity
โ T.C : O(n) Each number is processed in constant time (bit shifts are bounded by 32 bits).
โ S.C : O(1) (excluding output array)