Project Euler problem#15
#python program to find the lattice path of 20x20 grid
a=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
for j in range(1,21):
i=1
while i <21 :
a[i] = int(a[i-1])+int(a[i])
i+=1
print (a[20])
Search for a command to run...
#python program to find the lattice path of 20x20 grid
a=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
for j in range(1,21):
i=1
while i <21 :
a[i] = int(a[i-1])+int(a[i])
i+=1
print (a[20])
No comments yet. Be the first to comment.
CSRF stands for Cross Site Request Forgery. It means hackers sends request to a server by using hacked person's AUTH details. When an user logged into a website, browser will store the authentication related details such as authentication token in se...
Middleware is a software that acts as a bridge between two different applications or components. In web application it sits between client and back end server. In web frameworks like Express.js or Django, middleware functions intercept incoming HTTP ...
When I initially worked on a Django-React project, I encountered an error while making API calls from the React server to the Django server. I have spent so much of time to sort that error. So I have decided to share my understanding of CORS. CORS is...
The pseudo-classical pattern is known as the Constructor Prototype Pattern. It is a design pattern that emulates the inheritance properties of class-based OOPs concept. In this pattern to create an object which inherits from a parent object, a constr...
OLOO means Object Linked to Other Object. We are linking one object of Javascript to another object to access the properties defined in the parent object. By using Object linking, we can easily achieve the inheritance of Class-based object orientatio...