Skip to content

Instantly share code, notes, and snippets.

View kmphua's full-sized avatar

Kevin Phua kmphua

  • Singapore
View GitHub Profile
func convert(_ str: String) -> [(String, Int)] {
var result = [(String, Int)]()
var currentChar = ""
var currentCharCount = 0
for char in str {
if currentChar.isEmpty {
currentChar = String(char)
}
@kmphua
kmphua / keybase.md
Created September 10, 2019 00:09
Keybase proof

Keybase proof

I hereby claim:

  • I am kmphua on github.
  • I am kmphua (https://keybase.io/kmphua) on keybase.
  • I have a public key ASB0z6O94XmixWWA0-oBhJQ5J29oX0BYc9f7Me7qm9vAoQo

To claim this, I am signing this object: