Problem A: Pascal Pyramid
Pascal’s triangle giving binomial coefficients is well known. In this triangle, elements in each row can be obtained by adding two adjacent elements in the previous row. The pyramid of numbers we construct in this…
(simulates a dice).
randint()
randint() is an inbuilt function of the random module in Python3. The random module gives access to various useful functions and…
For Basics on File operations please do read our previous blog:
The stack is a linear data structure that follows a particular order in which the…
Problem A
GREEDY HOSTEL OWNER
You know that summers are at peak this year and every day is hot and due to this everyone is using coolers and ACs and a lot of electricity is consumed by the people. You are living in…
Problem Description
The program takes a string and checks whether a string is a palindrome or not using recursion.
Src: http://www.palantir.com/2011/10/how-to-rock-a-systems-design-interview/
https://hackernoon.com/design-to-shine-how-to-ace-your-next-system-design-interview-2282bbf45c40
“Recursion is a process in which a problem is defined in terms of itself”.
The problem is solved by repetitively breaking it into a smaller problem which is similar in…
These were the top 10 stories published by Guvi in 2019. You can also dive into monthly archives for 2019 by using the calendar at the top of this page.