This file contains hidden or 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
| // Codingbat Map-1 | |
| // Exercise 1: mapBully | |
| public Map<String, String> mapBully(Map<String, String> map) { | |
| if(!map.containsKey("a") || map.get("a").equals(null) ){ | |
| return map; | |
| } |
This file contains hidden or 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
| //elektroluse | |
| //Exercise 1: firstLast6 | |
| //http://codingbat.com/prob/p185685 | |
| public boolean firstLast6(int[] nums) { | |
| if (nums[0] == 6 || nums[nums.length-1] == 6 ){ | |
| return true; | |
This file contains hidden or 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
| //Codingbat [Java] Warmup-1 | |
| // My solutions to the Codingbat Java Warmup -1 exercises | |
| // Exercise 1 : SleepIn | |
| public boolean sleepIn(boolean weekday, boolean vacation) { | |
| if(!weekday || vacation){ |