• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
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 Resposta
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

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Question
4 Votes
Hi guys I need some one to teach the String name how I can do it true because when I finish coding they give me NO OUTPUT
3 Votes
generic programming understanding memory ownership
0 Votes
overloading operators << >>
1 Votes
I dont now that how to do js
2 Votes
fully dynamic arrays
1 Votes
Default constructor and default assignment operator
0 Votes
Wishkit alternative for android
1 Votes
How to start in web dev?
0 Votes
Hi
0 Votes