Pergunta de entrevista da empresa Storable

What is the time-complexity of your code?

Respostas da entrevista

Sigiloso

28 de jun. de 2019

An algorithm is said to run in constant time if it requires the same amount of time regardless of the input size. Examples: array: accessing any element fixed-size stack: push and pop methods fixed-size queue: enqueue and dequeue methods

Sigiloso

28 de jun. de 2019

the time complexity of an algorithm quantifies the amount of time taken by an algorithm to run as a function of the length of the string representing the input.