c - finding an index i such that a[i] = i -


संभव डुप्लिकेट:

आपको पूर्णांक की एक सरणी वाली सरणी और सरणी की लंबाई के साथ दिया जाता है। अब आपको एक इंडेक्स i को ढूंढना होगा जैसे कि a (i) = i । यदि मैं सूचकांक दिया जाता है तो मैं ओ (लॉगन) में ऐसा करने में सक्षम हूं, लेकिन यदि सूचकांक i का उल्लेख नहीं किया गया है तो इसके बारे में क्या?

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -