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
###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 |
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
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
NewerOlder