×
Past week
  • Any time
  • Past hour
  • Past 24 hours
  • Past week
  • Past month
  • Past year
All results
7 days ago · 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
12 hours 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
5 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
5 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
5 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
5 days ago · Example: To demonstrate adding a number to every element in an array using the JavaScript built-in method array.map() method. JavaScript.
17 hours ago · The “BSearch” function performs a binary search on a sorted array to find the element “x”. It iteratively checks the middle element and adjusts the search range ...
Missing: url | Show results with:url
6 days ago · Includes the current element in the subset. Recursively calls itself with the updated subset and the next index. Excludes the current element from the subset ...
Missing: url | Show results with:url
5 days ago · To find the kth smallest element using binary search on the answer, we start by defining a search range based on the minimum and maximum values in the input ...
Missing: url | Show results with:url
5 days ago · Using JavaScript isArray() method. isArray() method checks whether the passed variable is an Array object or not. Syntax: Array.isArray(variableName).