about | help | code help+videos | done | prefs |
Write a method that accepts two integer parameters 'first' and 'last'. Build a string out of the numbers between 'first' and 'last' inclusive by counting from 'first' to 'last' then back down to 'first'. Each pair of numbers has exactly one space between them, with no other spaces in the string. In particular the string does not start or end with a space. Look at the test data for examples. feb5_2016_SLHL_makeSymmetry(4, 6) → "4 5 6 5 4" feb5_2016_SLHL_makeSymmetry(5, 5) → "5" feb5_2016_SLHL_makeSymmetry(23, 7) → "" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 330
Copyright Nick Parlante 2017 - privacy