Skip to content

Instantly share code, notes, and snippets.

@karimmakhloufi
Last active November 2, 2021 10:27
Show Gist options
  • Save karimmakhloufi/f14782c15663410bea8ff1b1daea3a6a to your computer and use it in GitHub Desktop.
Save karimmakhloufi/f14782c15663410bea8ff1b1daea3a6a to your computer and use it in GitHub Desktop.
/*
Create an algorithm to display all combinations of a given character set and length
Example:
Input:
character set: a, b, c
length: 2
Output: a, b, c, aa, ab, ac, ba, bb, bc, ca, cb, cc
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment