CᴏᴅɪɴɢNᴇʀᴅ 💸🐾
Open in Telegram
༗ हरे कृष्णा ༗ "Lost in my own cosmos 💫 | Coding Need Patience 🥀🐾" ❝Face the failure, Until the Failure fails to face you.❞ — Dreamer » ChikuX69.netlify.app « DM ? " @ChikuXBot " : 404;
Show more376
Subscribers
No data24 hours
-57 days
-48430 days
Posts Archive
Day 57👾:
Given an integer arrayarr[]and a numberk. Find the count of distinct elements in every window of sizekin the array.
Day 56👾:
Given an arrayarr[]containing only non-negative integers, your task is to find a continuous subarray (a contiguous sequence of elements) whose sum equals a specified value target. You need to return the 1-based indices of the leftmost and rightmost elements of this subarray. You need to find the first subarray whose sum is equal to the target. Note: If no such array is possible then,return [-1].
Day 55👾:
Given an integer array arr[]. Find the number of triangles that can be formed with three different array elements as lengths of three sides of the triangle.
A triangle with three given sides is only possible if sum of any two sides is always greater than the third side.Day 54👾:
You are given an integer target and an arrayarr[]. You have to find number of pairs inarr[]which sums up to target. It is given that the elements of thearr[]are in sorted order. Note: pairs should have elements of distinct indexes.
Day 53👾:
Given an arrayarr[]and a number target, find a pair of elements(a, b)inarr[], wherea<=bwhose sum is closest to target. Note: Return the pair in sorted order and if there are multiple such pairs return the pair with maximum absolute difference. If no such pair exists return an empty array.
Day 52👾:
Given an arrayarr[]and an integer target. You have to find the number of pairs in the array whose sum is strictly less than thetarget.
Day 51👾:
Given a sorted arrayarr[]and a target value, the task is to count triplets(i, j, k)of valid indices, such thatarr[i] + arr[j] + arr[k] = targetandi < j < k.
Day 50👾:
Given an array of integersarr[]and a numberk, count the number of subarrays havingXORof their elements ask.
Day 49👾:
Given an unsorted array of integers, find the number of continuous subarrays having sum exactly equal to a given number k.
Day 48👾:
Given an array of strings, return all groups of strings that are anagrams. The strings in each group must be arranged in the order of their appearance in the original array. Refer to the sample case for clarification.
Day 47👾:
Given an array arr[] of non-negative integers. Find the length of the longest sub-sequence such that elements in the subsequence are consecutive integers, the consecutive numbers can be in any order.Day 46👾:
Given two arraysa[]andb[], the task is to find the number of elements in the union between these two arrays. The Union of the two arrays can be defined as the set containing distinct elements from both arrays. If there are repetitions, then only one element occurrence should be there in the union. Note: Elements ofa[]andb[]are not necessarily distinct.
Day 45👾:
Given two integer arraysa[]andb[], you have to find the intersection of the two arrays. Intersection of two arrays is said to be elements that are common in both arrays. The intersection should not have duplicate elements and the result should contain items in any order. Note: The driver code will sort the resulting array in increasing order before printing.
Day 44👾:
Given an arrayarr[], find all possible tripletsi, j, kin thearr[]whose sum of elements is equals to zero. Returned triplet should also be internally sorted i.e.i<j<k.
Day 43👾:
Given an arrayarr[]and an integer target. You have to find numbers of pairs in arrayarr[]which sums up to given target.
Day 42👾:
Given an array arr[] of positive integers and another integer target. Determine if there exists two distinct indices such that the sum of there elements is equals to target.Day 41👾:
You are given a 2D matrixmat[][]of sizen×m. The task is to modify the matrix such that ifmat[i][j]is0, all the elements in thei-throw andj-thcolumn are set to0and do it in constant space complexity.
Day 40👾:
Given a strictly sorted 2D matrixmat[][]of sizen x mandanumberx. Find whether the numberxis present in the matrix or not. Note: In a strictly sorted matrix, each row is sorted in strictly increasing order, and the first element of the ith row(i!=0)is greater than the last element of the(i-1)throw.
Day 39👾:
Given a row-wise sorted 2D matrixmat[][]of sizen x m and an integer x, find whether elementxis present in the matrix. Note: In arow-wisesorted matrix, each row is sorted in itself, i.e. for anyi,jwithin bounds,mat[i][j] <= mat[i][j+1].
Day 38👾:
Given a 2D integer matrixmat[][]of sizen x m, where every row and column is sorted in increasing order and a numberx, the task is to find whether elementxis present in thematrix.
