Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
)
func main(){
format_phone_number([]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 0})
format_phone_number([]int{5, 1, 9, 5, 5, 5, 4, 4, 6, 8})
format_phone_number([]int{3, 4, 5, 5, 0, 1, 2, 5, 2, 7})
@in1yan
in1yan / virus.go
Created February 13, 2025 04:49
sloth bytes challenge
package main
import (
"fmt"
"strings"
)
func main() {
fmt.Println(remove_virus("PC Files: spotifysetup.exe, virus.exe, dog.jpg"))
fmt.Println(remove_virus("PC Files: antivirus.exe, cat.pdf, lethalmalware.exe, dangerousvirus.exe "))