Big-O और Data Structures: coding interview की तैयारी
Big-O notation शुरू से सीखिए और जानिए कि मुख्य data structures, searching और sorting में कितना time और memory लगता है। Coding interviews और computer science की पढ़ाई के लिए, simple loops से hash maps, trees और graphs तक।
Big-O समय नहीं, बढ़त का ढंग बताता है: O(n) में काम input के साथ क़दम मिलाकर बढ़ता है, O(n²) में उसके वर्ग के साथ। Curves दिखाते हैं कि input बड़ा होने पर ये ढंग कितने अलग तरीक़े से चढ़ते हैं। सख़्ती से कहें तो Big-O उस बढ़त की ऊपरी सीमा बताता है। O का मतलब Ordnung है, German में “order”: यह notation Paul Bachmann (1894) से आया और Edmund Landau ने इसे फैलाया।