Last active
August 29, 2015 14:26
-
-
Save KirkSteffke/9ecd35d11b592e6d9df8 to your computer and use it in GitHub Desktop.
Base code for one of the CRM Science Lab Coat Challenges
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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