|
Download benchmarks/Algorithms/discretize/problem.md from PV-SJTU/PV-Bench: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/discretize/problem.md
- Command line
-
hf download hf://datasets/PV-SJTU/PV-Bench/benchmarks/Algorithms/discretize/problem.md
-
curl -L -o problem.md https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/discretize/problem.md
534 Bytes
Coordinate Compression
Description
Replace each integer by its rank among the distinct input values while preserving equality and order.
Input
The verification-case input consists of an integer array src of length n and writable array dest_map.
Output
The function produces the number of distinct values and the sorted distinct-value map in dest_map.
Constraints
- All values and lengths fit in signed C
intranges.
Source
Classical algorithmic problem reconstructed from the verified C artifact.