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

 

konstans@stuy.edu apcs1 > check2dArrayList
prev  |  next  |  chance

Given an ArrayList of: ArrayList of Integers Count the number of ArrayLists of Integer that have a sum of all elements equal to 0. You may write a helper method if you like.


check2dArrayList([[], []]) → 2
check2dArrayList([[1], [5], []]) → 1
check2dArrayList([[-1, 1, 2, 3, -3, -2], [5, -1, -2, -2], []]) → 3

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

public int check2dArrayList(ArrayList<ArrayList<Integer>> a ){ }

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