Skip to content

Instantly share code, notes, and snippets.

View wtask's full-sized avatar
🏠
Working from home

Mike Mikhailov wtask

🏠
Working from home
  • Tver, Russia
View GitHub Profile
@wtask
wtask / balance.go
Last active January 24, 2019 20:45
Check brackets balanced
package brackets
type (
// B - bracketing type; [0] - open, [1] - close.
B [2]rune
)
// Round - return round bracketing type
func Round() B {
return B{'(', ')'}