about | help | code help+videos | done | prefs |
Write a method that returns the difference in the number of characters (including spaces and special characters) in the names of the two countries that are passed in. Note that the countries could be in either order. Look at the test data for examples. olympicDifference("China", "") → 5 olympicDifference("", "Japan") → 5 olympicDifference("", "") → 0 ...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: 220
Copyright Nick Parlante 2017 - privacy