Akshima Sharmakeycomputereducation.hashnode.dev·Jul 29, 2024Row with max 1s — POTDRow with max 1s Given a boolean 2D array, consisting of only 1’s and 0’s, where each row is sorted. Return the 0-based index of the first row that has the most number of 1s. If no such row exists, return -1. Examples: Input: arr[][] = [[0, 1, 1, 1], ...DiscussPractice Questionsalgorithms

Mahek Gormahekgor.hashnode.dev·Jun 21, 2024GFG POTD - 21st June 2024 SolutionProblem Statement: You are given a string str containing two fractions a/b and c/d, compare them and return the greater. If they are equal, then return "equal". Note: The string str contains "a/b, c/d"(fractions are separated by comma(,) & space( ))....Discusscpp

Akshima Sharmakeycomputereducation.hashnode.dev·Jun 12, 2024Array Questions Part — 2(CPP)At least two greater elements At least two greater elements | Practice | GeeksforGeeks Given an array of N distinct elements, the task is to find all elements in array except two greatest elements in sorted… Given an array of N distinct elements, the...DiscussBasic Array Programs Solutions - Source Geeksforgeeks (using CPP)array

Riddhi Kakkadriddhikakkad.hashnode.dev·Jun 12, 2024💡Top 15 Websites Every Computer Engineer Should BookmarkAs a computer engineer, staying current with industry trends, continuously honing your skills, and networking with fellow professionals are essential aspects of your career development. To help you navigate through this dynamic field, here is a curat...Discuss·10 likes·41 readsStack Overflow

Akshima Sharmakeycomputereducation.hashnode.dev·May 27, 2024Array Questions - Part 1Value equal to index value Given an array Arr of N positive integers. Your task is to find the elements whose value is equal to that of its index value ( Consider 1-based indexing ). Note: There can be more than one element in the array which have th...DiscussBasic Array Programs Solutions - Source Geeksforgeeks (using CPP)C++

Bama Charan Chhandogibamacharan.hashnode.dev·Apr 9, 2024Introducing react-gfg: Fetch Your Geek for Geeks Profile Details with EaseIntroduction: As developers, we want to showcase our coding skills on our portfolio or other websites. There are several well-known online coding platforms like LeetCode and Geek for Geeks. Geek for Geeks is a popular platform where developers practi...Discuss·65 readsgfg-components

Akshima Sharmakeycomputereducation.hashnode.dev·Jan 17, 2024Array Questions(Program)Find minimum and maximum element in an array Given an array A of size N of integers. Your task is to find the minimum and maximum elements in the array. pair<long long, long long> getMinMax(long long arr[], int n) { pair <long, long> p1; p1.f...DiscussBasic Array Programs Solutions - Source Geeksforgeeks (using CPP)C++

Akshima Sharmakeycomputereducation.hashnode.dev·Jan 16, 2024Array Questions(Program)Basic Level Questions Binary Search Given a sorted array of size N and an integer K, find the position(0-based indexing) at which K is present in the array using binary search. Input: N = 5 arr[] = {1 2 3 4 5} K = 4 Output: 3 Explanation: 4 appears ...Discuss·40 readsBasic Array Programs Solutions - Source Geeksforgeeks (using CPP)array

Priyojit Singhanerdbash.hashnode.dev·Dec 30, 2023Kth smallest element - GeeksforGeeksThe problem says that you are given an array of n size. The array is not sorted and your task is to find the kth smallest element in the array. So you could have technically returned the element at arr[k-1] if the array was sorted, which means techn...Discuss·2 likesAlgorithmsJava

Sirisha Challagirisirishachallagiri.hashnode.dev·Dec 8, 2023Transform to PrimeGiven an array of n integers. Find the minimum positive number to be inserted in array, so that sum of all elements of array becomes prime. Example 1: Input: N=5 arr = {2, 4, 6, 8, 12} Output: 5 Explanation: The sum of the array is 32 ,we can add ...DiscussCode With Sirigeeksforgeeks