Skip to content

242617/other

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

other

Messing around with Golang.

tasks

  • Linked list implementation
  • Leetcode challenges

generator

Generates words combinations. Available charsets:

  • generator.C_09: all digits ([0-9])
  • generator.C_AZ: capital letters ([A-Z])
  • generator.C_az: letters ([a-z])

Import

import "github.com/242617/other/generator"

Usage

ch := generator.New(4, generator.C_az|generator.C_09)
for word := range ch {
    fmt.Println(word)
}

Will generate

0000
0001
0002
...
zzzy
zzzz

About

Algorithms, experiments, utils.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published