Apuntes
Sin título
Contenido del apunte (1)
Página 1
Algorithms using Python
ALgorithm:
It is a way or (list of instructions) that is used to solve a programming problem in easy and efficient way.
In other words we can say that it is step-by-step solution of a program.It make easy to write a program in efficient way.
Ex:
write an algorithm to add n numbers?
Ans:
step 1:
function addNumbers(n)
result <---- 0
for i in range(n)
result+=i
return result
Información
- Descripción
- Apunte sobre Sin título, creado por Basant Lal el 06/06/2019.
- Creado por
- Basant Lal · jun 2019
- Actualizado
- 6 jun 2019
- Visitas
- 0
- Valoración