Click here to see the problem details. The problem is simple. We have to find at least one duplicate in the given array. If we found any duplicate number, we will return True. Otherwise, we will return False. That’s the simple idea about the problem. And given array’s elements will be integers. Let’s see two […]

# Tag: Array

## Reverse String | LeetCode 344 | Python | Solution

Click here to see the problem. And read the description and try to understand the problem first. Reverse String is one of the most common problems in computer programming. And this time, the input string is given as an array of characters. We have to return the reverse version of the given array. See the […]

## Largest Number At Least Twice of Others | LeetCode 747 | Python | Solution

Click here to see the problem in LeetCode. And read the problem’s details. This one is a pretty simple problem. We will be given an integer array. We have to find the largest element’s index, which is must be at least twice as much as every other number in the array. If it’s not matched […]

## 35. Search Insert Position | LeetCode | Python | Solution

This one is a binary search-related problem. Click here to see the problem in LeetCode. We will be given a sorted array in ascending order. And a target value. So, what we have to do? We will have to return the index of the target value. If the target value is not in the given […]

## 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 […]

## Array | Data Structure

If you are familiar with at least one programing language, you already used array. It’s a linear and the most fundamental data structure of computer science. It’s comparatively easy to learn and very useful. In short, an array is a collection of elements. These elements can be any type of data type. Such as integer, […]