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

 

tmhscs@gmail.com welcomeback > welcomeback_stacks_riffleShuffle
prev  |  next  |  chance

welcomeback_stacks_riffleShuffle--Given two Stacks of Integers, riffle shuffle them together into a new stack.


welcomeback_stacks_riffleShuffle([], []) → []
welcomeback_stacks_riffleShuffle([1, 2, 3, 4], []) → [4, 3, 2, 1]
welcomeback_stacks_riffleShuffle([], [1, 2, 3, 4]) → [4, 3, 2, 1]

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

public Stack<Integer> welcomeback_stacks_riffleShuffle(List<Integer> list1, List<Integer> list2){ }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy