#array
Read more stories on Hashnode
Articles with this tag
Given a 0-indexed integer array nums, return true if it can be made strictly increasing after removing exactly one element, or false otherwise. If the...
You are given a 0-indexed 2D integer matrix grid of size n * n with values in the range [1, n<sup>2</sup>]. Each integer appears exactly once except a...
You are given two 0-indexed integer arrays nums1 and nums2 of sizes n and m, respectively. Consider calculating the following values: The number of...
You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells are connected...
You are given an integer array prices where prices[i] is the price of the i<sup>th</sup> item in a shop. There is a special discount for items in the...
Given an integer array nums and an integer k, return the number of pairs (i, j) where i < j such that |nums[i] - nums[j]| == k. The value of |x| is...