π Day 39 of #geekstreak2024 π
Challenge: Search in a Row-Wise Sorted Matrix π
π Given a n x m matrix that is row-wise sorted and an integer x, check if x is present in the matrix.
#gfg160@geeksforgeeks
π Day 36 of #geekstreak2024 π
Challenge: Spirally Traversing a Matrix β°
π Given a matrix of size n x m, traverse it in spiral order and return the result as an array.
#geekstreak2024#gfg160@geeksforgeeks
π Day 35 of #geekstreak2024 π
Challenge: Kth Missing Positive Number in a Sorted Array βπ’
π Given a sorted array of distinct positive integers, find the k-th missing positive number from the sequence.
#gfg160@geeksforgeeks
π Day 33 of #geekstreak2024 π
Challenge: Aggressive Cows ππ
π Task: Given stall positions and k aggressive cows, maximize the minimum distance between any two cows when placed in the stalls.
#geekstreak2024#gfg160@geeksforgeeks
π Day 32 of #geekstreak2024 π
Challenge: K-th Element of Two Sorted Arrays π
π Task: Find the k-th smallest element in the combined sorted array formed from two sorted arrays a[] and b[].
#geekstreak2024#gfg160@geeksforgeeks
π Day 31 of #geekstreak2024 π
Challenge: Peak Element π
π Task: Locate a peak element index in an array where adjacent elements differ. A peak is greater than its neighbors. The solution will be correct if it identifies any valid peak index.
#gfg160@geeksforgeeks
π Day 30 of #geekstreak2024 π
Challenge: Search in Rotated Sorted Array π
π Task: Utilize binary search in a rotated sorted array to find the index of a target key efficiently. Return -1 if the key is not present.
#geekstreak2024#gfg160@geeksforgeeks
π Day 29 of #geekstreak2024 π
Challenge: Sorted and Rotated Minimum π
π Task: Identify the minimum element in a sorted and rotated array using binary search to maintain efficiency.
#geekstreak2024#gfg160@geeksforgeeks
π Day 28 of #geekstreak2024 π
Challenge: Number of Occurrences π
π Task: Find the count of a target number in a sorted array using efficient lower and upper bound techniques.
#geekstreak2024#gfg160@geeksforgeeks
π Day 27 of #geekstreak2024 π
Challenge: Merge Without Extra Space π
π Task: Merge two sorted arrays without using extra space. Adjust the arrays so one contains the smallest elements and the other the largest.
#geekstreak2024#gfg160@geeksforgeeks
οΏ½οΏ½ Day 26 of #geekstreak2024 π
Challenge: Non-overlapping Intervals π
π Task: Find the minimum number of intervals to remove from a list of intervals to ensure no overlaps remain.
#geekstreak2024 #gfg160
@geeksforgeeks
π Day 25 of #geekstreak2024 π
Challenge: Insert Interval π
π Task: Insert a new interval into a sorted array of non-overlapping intervals, ensuring the array remains sorted and non-overlapping.
#gfg160@geeksforgeeks
π Day 24 of #geekstreak2024 π
Challenge: Overlapping Intervals π
π Task: Given an array of intervals arr[][], your task is to merge all overlapping intervals.
#gfg160@geeksforgeeks
π Day 23 of #geekstreak2024 π
Challenge: Count Inversions π’
π Task: Given an array of integers, your task is to find the Inversion Count. An inversion is formed when two elements arr[i] and arr[j] satisfy arr[i] > arr[j] and i < j.
#gfg160@geeksforgeeks
π Day 22 of #geekstreak2024 π
Challenge: Find H-Index π
π Task: Determine the H-Index from a given array of citation counts. The H-Index represents the maximum number of papers with at least that many citations! π
#gfg160@geeksforgeeks
π Day 21 of #geekstreak2024 π
Challenge: Sort 0s, 1s, and 2s π’
π Task: Rearrange the elements of an array containing only 0s, 1s, and 2s into ascending order using an efficient sorting approach! π―
#gfg160@geeksforgeeks
π Day 20 of #geekstreak2024 π
Challenge: Strings Rotations of Each Other π
π Task: Verify if one string is a rotated version of another. By exploring rotations, uncover the connection between these string twins! π
#gfg160@geeksforgeeks
π Day 19 of #geekstreak2024 π
Challenge: Minimum Characters to Add at Front for Palindrome π§΅
π Task: Find the minimum characters required to prepend to the given string to transform it into a palindrome. Let the symmetry begin! π
#gfg160@geeksforgeeks