Skip to content

Instantly share code, notes, and snippets.

View elektroluse's full-sized avatar
🎯
Focusing

Oliver Høgseth Bråten elektroluse

🎯
Focusing
  • Oslo, Norway
  • 11:22 (UTC +02:00)
View GitHub Profile
@elektroluse
elektroluse / map-1.java
Last active October 24, 2016 22:38
Codingbat[Java] Map-1
// 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;
}
@elektroluse
elektroluse / arrays1.java
Last active July 13, 2016 11:01
My solutions to codingbat Array-1 exercises
//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;
@elektroluse
elektroluse / warmup1.java
Last active June 28, 2016 19:39
Codingbat [Java] Warmup-1 elektroluse
//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){