×
Past month
  • Any time
  • Past hour
  • Past 24 hours
  • Past week
  • Past month
  • Past year
All results
May 23, 2024 · Given an array and an item, the task is to search whether the given item is present in the array or not. Below are the approaches to search an item in an ...
Missing: url | Show results with:url
May 29, 2024 · Given a sorted and rotated array arr[] of size N and a key, the task is to find the key in the array. Note: Find the element in O(logN) time and assume that ...
Missing: url | Show results with:url
May 22, 2024 · Searching : Finding the index of an element in an array. Applications of Array. Arrays are used in a wide variety of applications, including: Storing data for ...
Missing: url | Show results with:url
May 27, 2024 · array_key_exists($index, $array) checks if the specified index exists in the array. If the index exists, the function returns true; otherwise, it returns false.
6 days ago · Given an array arr of n elements that is first strictly increasing and then maybe strictly decreasing, find the maximum element in the array.
Missing: url | Show results with:url
6 days ago · Find the Missing Number ; Create a temp array temp[] of size n + 1 with all initial values as 0. ; Traverse the input array arr[], and do following for each arr[i].
Missing: url | Show results with:url
May 23, 2024 · We can traverse over an array and search for an element. ... find the elements efficiently by their indexes and can perform different operations using them.
Missing: url | Show results with:url
10 hours ago · The cumulative sum array is an array where each element is the sum of all previous elements in the original array up to the current index.
1 day ago · In order to remove an element from an array, we can use unset() function which removes the element from an array and then use array_values() function which ...
Missing: url | Show results with:url
6 days ago · The code searches for the first positive element in the `array`. The `find()` method iterates through the array, returning the first element greater than `0`.
Missing: url | Show results with:url