Skip to content

Instantly share code, notes, and snippets.

View ernestkamara's full-sized avatar

Saidu Ernest Kamara ernestkamara

View GitHub Profile
@ernestkamara
ernestkamara / Salone Hackathon 2019 Entry Questions Solutions
Last active March 9, 2021 17:11
Solution to Salone Hackathon 2019 Entry Questions
###1. FIND THE LONGEST WORD
["hello", "world", "hi", "bye"]
###Solution:
Given that there is only one longest word in the Array or the first longest word is a valid
```kotlin
fun findLongestWord(words: List<String>): String {
var longestWord = ""
words.onEach { word -> if(word.length > longestWord.length) longestWord = word }
return longestWord
@ernestkamara
ernestkamara / AdbCommands
Created June 26, 2018 08:42 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell