Skip to content

Instantly share code, notes, and snippets.

View vivan-snapretail's full-sized avatar

vivan-snapretail

View GitHub Profile
@vivan-snapretail
vivan-snapretail / main.go
Created May 10, 2019 15:11
coderbyte alphabet soup
package main
import "fmt"
import "sort"
type runeSorter []rune
func AlphabetSoup(str string) string {
// code goes here
@vivan-snapretail
vivan-snapretail / main.go
Created March 29, 2019 15:50
longest word in go
package main
import "fmt"
func LongestWord(sen string) string {
// code goes here
// Note: feel free to modify the return type of this function
// fmt.Println("Length: ", len(sen))
1 E 39 816 3: 347DAC6EE8EEEA4652C7476D0F97BEE5 5: 3AEEEEE1367614F3061D165A5FE3CAC3
2 9 92 200 3: AE2E85DD75D63E916A525DF95E999EA0 5: 83501E9109999965AF11270EF8D61A4F
3 9 110 200 3: 7AF7FA13B999D68BBCE565971DDBAE27 5: 83501E9109999965AF11270EF8D61A4F
4 E 184 816 3: 02164648EEE4FD760CDAB7E343EFFD74 5: 3AEEEEE1367614F3061D165A5FE3CAC3
5 4 291 1261 3: D7C86A1C1AF63C851FE876E44427DA83 5: EDD652BE33204A7A544444D3C722FC01
6 3 314 792 3: B76A587A333A5DE4FBD566B426E1254C 5: D3037333338C0E36482FACEF46A5D375
7 4 343 1261 3: D3C939A6E3739444983E1961FAD091D8 5: EDD652BE33204A7A544444D3C722FC01
8 4 385 1261 3: D847A4440F2A4423B79FE9BDC1CDE659 5: EDD652BE33204A7A544444D3C722FC01
9 3 459 792 3: 77B05E16607A333BAE2DEE537CE16B9A 5: D3037333338C0E36482FACEF46A5D375
10 3 461 792 3: D2C1333BC7B740A6A
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person