Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 543 Bytes

Ex_1_1_15.md

File metadata and controls

25 lines (15 loc) · 543 Bytes
title date draft tags categories
算法4 Java解答 1.1.15
2019-03-02 19:38:47 +0800
false
JAVA
技术
归档

1.1.15

问题:

Write a static method histogram() that takes an array a[] of int values and an integer M as arguments and returns an array of length M whose ith entry is the number of times the integer i appeared in the argument array. If the values in a[] are all between 0 and M–1, the sum of the values in the returned array should be equal to a.length.

分析:

参考: