id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

setInfinity


Given an integer for the size and an intteger for the start node create an arraylist of integers whose values are maximal excpet the entry at the index of th start, which should be sero.


setInfinity(1, 0) → [0]
setInfinity(2, 0) → [0, 2147483647]
setInfinity(3, 1) → [2147483647, 0, 2147483647]

...Save, Compile, Run (ctrl-enter)

ArrayList<Integer> setInfinity(int n, int start){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy