• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
0

What is the time complexity of list()?

For example : What is the time complexity of: list('Sad") I'd say it's O(n) linear time but I don't have proof

python3algorithms
21st Oct 2021, 5:16 AM
Richard
Richard - avatar
1 Odpowiedź
0
Maybe these can help you- https://stackoverflow.com/questions/13884177/complexity-of-in-operator-in-JUMP_LINK__&&__python__&&__JUMP_LINK https://www.google.com/amp/s/www.geeksforgeeks.org/complexity-cheat-sheet-for-python-operations/amp/
23rd Oct 2021, 6:15 AM
Sagar Yadav
Sagar Yadav - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
How can one build an Ai app
3 Votes
Websites for frontend developers
1 Votes
Can someone explain how it works (im new)
0 Votes
AI Takeover
1 Votes
How to learn python
1 Votes
C course progress restart
2 Votes
I need a mentor in coding specifically AI
0 Votes
Error in the result
0 Votes
I need a help
0 Votes
Average of Two Numbers
0 Votes