Category: Programming
-
Generate permutations in sorted order
Let’s talk about permutations. They’re an interesting topic in combinatorics and come up in programming puzzles from time to time. There is a relatively intuitive recursive algorithm for generating all permutations for a list of elements, which goes like this: Full code: https://pl.kotl.in/nK_VtUpvn This algorithm is succinct and elegant, but the permutations are generated in…
-
JavaScript notes
-
Ruby notes
Commonly used Official documentation (Ruby 3) Running Vim within IRB http://vimcasts.org/episodes/running-vim-within-irb/
-
Golang notes
Golang for web development Frameworks
-
Python notes
Official documentation (Python 3) Q & A Built-in functions math random statistics itertools Input/Output Date & time Parsing/Formatting Other Functional programming Data structures
-
Java notes
-
My C++ template for programming puzzles