MCPcopy Create free account
hub / github.com/aylei/leetcode-rust / Solution

Class Solution

src/solution/s0164_maximum_gap.rs:31–31  ·  view source on GitHub ↗

* [164] Maximum Gap * * Given an unsorted array, find the maximum difference between the successive elements in its sorted form. * * Return 0 if the array contains less than 2 elements. * * Example 1: * * * Input: [3,6,9,1] * Output: 3 * Explanation: The sorted form of the array is [1,3,6,9], either * (3,6) or (6,9) has the maximum difference 3. * * Example 2: * * * I

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected