Skip to content
Snippets Groups Projects
Commit e9dde65f authored by Goik Martin's avatar Goik Martin
Browse files

Comment supplement

parent 201025a7
No related branches found
No related tags found
No related merge requests found
......@@ -113,8 +113,9 @@ public class _3_Range {
*/
static public int[]
createRangeWithExclusions(final int rangeStartInclusive, final int rangeEndInclusive, final int[] excludedValues) {
// 2 5 [1,2,3,4,5] [2,10]
if (rangeStartInclusive <= rangeEndInclusive) {
final int[] tmpResult = new int[rangeEndInclusive - rangeStartInclusive + 1];
final int[] tmpResult = new int[rangeEndInclusive - rangeStartInclusive + 1]; // [1,3,4,5,0]
int resultValueCount = 0;
for (int i = rangeStartInclusive; i <= rangeEndInclusive; i++) {
// if (!contains(excludedValues, i)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment