CᴏᴅɪɴɢNᴇʀᴅ 💸🐾
99 subscribers
118 photos
3 videos
15 files
40 links
༗ हरे कृष्णा ༗
"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;
Download Telegram
Day 39👾:
Given a row-wise sorted 2D matrix mat[][] of size n x m and an integer x, find whether element x is present in the matrix.
Note: In a
row-wise sorted matrix, each row is sorted in itself, i.e. for any i, j within bounds, mat[i][j] <= mat[i][j+1].
👍21🔥1👏1🕊1
Day 40👾:
Given a strictly sorted 2D matrix mat[][] of size n x m and a number x. Find whether the number x is 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)th row.
2👍2🔥1💯1
Day 41👾:
You are given a 2D matrix mat[][] of size n×m. The task is to modify the matrix such that if mat[i][j] is 0, all the elements in the i-th row and j-th column are set to 0 and do it in constant space complexity.
🔥2👏2👍1🍾1
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.
👏3👍2🔥1
Day 43👾:
Given an array arr[] and an integer target. You have to find numbers of pairs in array arr[] which sums up to given target.
2🔥2👍1🥰1
Day 44👾:
Given an array arr[], find all possible triplets i, j, k in the arr[] whose sum of elements is equals to zero.
Returned triplet should also be internally sorted i.e.
i<j<k.
🔥2🎅2👍1👏1
Day 45👾:
Given two integer arrays a[] and b[], 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.
🔥31👍1👏1
Day 46👾:
Given two arrays a[] and b[], 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 of
a[] and b[] are not necessarily distinct.
🔥2👏21👍1
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.
🔥2👏21👍1🥰1
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.
🔥2🥰21👍1
Day 49👾:
Given an unsorted array of integers, find the number of continuous subarrays having sum exactly equal to a given number k.
2👍2🔥1👏1
Day 50👾:
Given an array of integers arr[] and a number k, count the number of subarrays having XOR of their elements as k.
🔥3👍21
Day 51👾:
Given a sorted array arr[] and a target value, the task is to count triplets (i, j, k) of valid indices, such that arr[i] + arr[j] + arr[k] = target and i < j < k.
👍2🔥2🥰1👏1
Day 52👾:
Given an array arr[] and an integer target. You have to find the number of pairs in the array whose sum is strictly less than the target.
🔥3👍2👏1
Day 53👾:
Given an array arr[] and a number target, find a pair of elements (a, b) in arr[], where a<=b whose 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.
🔥31👍1🕊1
Day 54👾:
You are given an integer target and an array arr[]. You have to find number of pairs in arr[] which sums up to target. It is given that the elements of the arr[] are in sorted order.
Note: pairs should have elements of distinct indexes.
👍2👏2🔥1🥰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.
👍2🥰2🔥1👏1
Day 56👾:
Given an array arr[] 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].
🔥3👍1🥰1👏1
Day 57👾:
Given an integer array arr[] and a number k. Find the count of distinct elements in every window of size k in the array.
2👏2👍1🔥1
Happy 75th Republic Day to All 🇮🇳❤️🪖
2🫡2🥰1💘1