Skip to content

Instantly share code, notes, and snippets.

View aksioto's full-sized avatar
🎯
Go

Maksim Kotov aksioto

🎯
Go
View GitHub Profile
@aksioto
aksioto / benchmark_test.go
Created June 8, 2022 07:26
Finding Duplicates in a String in Golang
package main
import (
"testing"
)
func BenchmarkUniqueCharacters(b *testing.B) {
b.Run("Test 1", func(b *testing.B) {
for i := 0; i < b.N; i++ {
hasUniqueCharacters1("abcdefghijklmnopqrstuvwxyz")