Month: July 2020

1480. Running Sum of 1d Array | LeetCode | Python | Solution

Problem link Given an array of integers, We have to return the running sum of that array. Suppose, we have an array of integers like [1, 2, 3]. As per the problem, the result of this array will be [1, 3, 6]. We define a running sum of an array as arr[i] = sum(arr[0]â€¦arr[i]). In […]

1295. Find Numbers with Even Number of Digits | LeetCode | Python | Solution

Here is the problem link to see the problem details. The problem description is very concise and easy to understand. Given an array of integers, we have to return how many of them contain an even number of digits. Example of an even number of digits:1234 = even (here are four digits and four is […]

876. Middle of the Linked List | LeetCode | Python | Solution

Here is the problem link. See the problem explanation first and try to understand the problem. It’s an easy linked list problem. We have to return the middle node from a linked list. We don’t have to check the emptiness of the given linked list. We will receive only a non-empty linked list. If there […]

595. Big Countries | Database | LeetCode | Solution

This problem is not about programming related. It’s about the database. Here is the link to the problem. There is a table called the world. It contains some information about countries around the world. These are name, continent, area, population, etc. To solve this problem, we have to write a SQL solution to output big […]