Top "Array-algorithms" questions

Array Algorithms are defined as functional algorithms where each step of the algorithm results in a function being applied to an array, producing an array result

Can I find the max/min value in an unsorted Array in sub linear time?

Is it possible? If not, given an array of size n, how do I know if its better to just …

arrays algorithm array-algorithms
Sorting Coordinate Points c++

in an application I measure a lot of 2d coordinates (x,y) of a pattern. This pattern consists of a …

c++ algorithm data-structures array-algorithms
Given an array of integers, find the first missing positive integer in linear time and constant space

In other words, find the lowest positive integer that does not exist in the array. The array can contain duplicates …

arrays algorithm sorting array-algorithms
`[]': no implicit conversion of String into Integer (TypeError)

I seem to be getting a type error in the following code: def can_cast(hand, *spell_cost) colored_mana_…

ruby array-algorithms
Finding Minimum Key and Predecessor in B-Tree

Explain how to find the minimum key stored in a B-tree and how to find the predecessor of a given …

algorithm b-tree array-algorithms