# Blogs Hub

### by Sumit Chourasia | Dec 02, 2020 | Category :coding

#### Richest Customer Wealth - String - Easy - LeetCode

You are given an m x n integer grid accounts where accounts[i][j] is the amount of money the i​​​​​​​​​​​th​​​​ customer has in the j​​​​​​​​​​​th​​​​ bank. Return the wealth that the richest customer has. A customer's wealth is the amount of money they have in all their bank accounts. The

### by Sumit Chourasia | Dec 02, 2020 | Category :coding

#### Maximum Repeating Substring - String - Easy - LeetCode

For a string sequence, a string word is k-repeating if word concatenated k times is a substring of sequence. The word's maximum k-repeating value is the highest value k where word is k-repeating in sequence. If word is not a substring of sequence, word's maximum k-repeating value is 0. Giv

### by Sumit Chourasia | Nov 24, 2020 | Category :coding

#### Check If Two String Arrays are Equivalent - String - Easy - LeetCode

Given two string arrays word1 and word2, return true if the two arrays represent the same string, and false otherwise. A string is represented by an array if the array elements concatenated in order forms the string. &nbsp; Example 1: Input: word1 = ["ab", "c"], word2

### by Sumit Chourasia | Nov 16, 2020 | Category :coding

#### Design an Ordered Stream - Array - Easy - LeetCode

There are n (id, value) pairs, where id is an integer between 1 and n and value is a string. No two pairs have the same id. Design a stream that takes the n pairs in an arbitrary order, and returns the values over several calls in increasing order of their ids. Implement the Ordered

### by Sumit Chourasia | Nov 15, 2020 | Category :coding

#### Defuse the Bomb - Array - Easy - LeetCode

You have a bomb to defuse, and your time is running out! Your informer will provide you with a circular array code of length of n and a key k. To decrypt the code, you must replace every number. All the numbers are replaced simultaneously. If k &gt; 0, replace the ith number with th

### by Sumit Chourasia | Nov 08, 2020 | Category :coding

#### Get Maximum in Generated Array - Array - Easy - LeetCode

You are given an integer n. An array nums of length n + 1 is generated in the following way: nums[0] = 0<br />nums[1] = 1<br />nums[2 * i] = nums[i] when 2 &lt;= 2 * i &lt;= n<br />nums[2 * i + 1] = nums[i] + nums[i + 1] when 2 &lt;= 2 * i + 1 &lt;= n<br />Return the maximum integer in the

### by Sumit Chourasia | Nov 03, 2020 | Category :coding

#### Check Array Formation Through Concatenation - Array - Easy - LeetCode

You are given an array of distinct integers arr and an array of integer arrays pieces, where the integers in pieces are distinct. Your goal is to form arr by concatenating the arrays in pieces in any order. However, you are not allowed to reorder the integers in each array pieces[i]. Retur

### by Sumit Chourasia | Oct 31, 2020 | Category :coding

#### Slowest Key - Array - Easy - LeetCode

A newly designed keypad was tested, where a tester pressed a sequence of n keys, one at a time. You are given a string keysPressed of length n, where keysPressed[i] was the ith key pressed in the testing sequence, and a sorted list releaseTimes, where releaseTimes[i] was the time the ith k

### by Sumit Chourasia | Oct 24, 2020 | Category :coding

#### Two Strings - HashMap - Easy - HackerRank

Given two strings, determine if they share a common substring. A substring may be as small as one character. For example, the words "a", "and", "art" share the common substring . The words "be" and "cat" do not share a substring. Function Description Complete the function two

### by Sumit Chourasia | Oct 18, 2020 | Category :coding

#### Largest Substring Between Two Equal Characters - Array - Easy - LeetCode

Given a string s, return the length of the longest substring between two equal characters, excluding the two characters. If there is no such substring return -1. A substring is a contiguous sequence of characters within a string. &nbsp; Example 1: Input: s = "aa"<br />

### by Sumit Chourasia | Oct 18, 2020 | Category :coding

#### Mean of Array After Removing Some Elements - Array - Easy - LeetCode

1619. Mean of Array After Removing Some Elements<br />Easy 30 5 Add to List Share<br />Given an integer array arr, return the mean of the remaining integers after removing the smallest 5% and the largest 5% of the elements. Answers within 10-5 of the actual answ