big o - Is there any algorithm which take O(1) time? -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 4 जवाब

    मैं एल्गोरिथम के लिए देख रहा हूँ ओ (1) दोनों खोज और प्रविष्टि के लिए समय ले

    क्या कोई एल्गोरिथ्म उपलब्ध है? क्या यह संभव है?

    आप सैद्धांतिक रूप से एक ओ (1) डालें और एक हैश मैप के लिए खोज कर सकते हैं, मान लेना हैश सही है, और हैश की गणना करने का समय ओ (1) है।

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -