Skip to content

Instantly share code, notes, and snippets.

@KirkSteffke
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KirkSteffke/9ecd35d11b592e6d9df8 to your computer and use it in GitHub Desktop.
Save KirkSteffke/9ecd35d11b592e6d9df8 to your computer and use it in GitHub Desktop.
Base code for one of the CRM Science Lab Coat Challenges
/* LAB COAT CHALLENGE: What is the minimum amount of lines
needed in order to condense these strings, lists, and
sets into a single list of 10 strings? */
// Properties to begin with
string string1 = 'string1';
string string2 = 'string2';
list<string> list1 = new list<string>{'string3','string4'};
list<string> list2 = new list<string>{'string5','string6'};
set<string> set1 = new set<string>{'string7','string8'};
set<string> set2 = new set<string>{'string9','string10'};
/* Start here! Add whatever code you need to consolidate
those strings into a single list called mergedList */
list<string> mergedList...
/* Make sure you end up with 10 strings in the mergeList
collection so your answer is valid! */
system.assert(mergedList.size() == 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment