MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / BenchmarkIsBalanced

Function BenchmarkIsBalanced

other/nested/nestedbrackets_test.go:73–79  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

71}
72
73func BenchmarkIsBalanced(b *testing.B) {
74 input := "{[()]}"
75
76 for i := 0; i < b.N; i++ {
77 IsBalanced(input)
78 }
79}

Callers

nothing calls this directly

Calls 1

IsBalancedFunction · 0.85

Tested by

no test coverage detected