about | help | code help+videos | done | prefs |
Give a recursive algorithm that takes as input a string s, removes the blank characters and reverses the string. For example, on input "Hello There", the algorithm should return "erehTolleH". Your algorithm should not use an iterative loop. reverseAndRemoveBlanksRecursive("Hello There") → "erehTolleH" reverseAndRemoveBlanksRecursive("HelloDolly") → "ylloDolleH" reverseAndRemoveBlanksRecursive("Ducks are cool") → "looceraskcuD" ...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: 300
Copyright Nick Parlante 2017 - privacy