Welcome to my personal website. I use this space to share some of my thoughts and software that I write in my free time. Sometimes I also publish photos. If you want to get in touch please use LinkedIn or Mastodon.
Given two integers n and k, create all possible solutions with all numbers from [1,n] of k length.
This can be solved via recursion. An added complication is to remove duplicate paths ([1,2] == [2,1]). To avoid this, we can start the next number always from the number higher than the last highest number.
About the author
Friedrich Ewald is an experienced Software Engineer with a Master's degree in Computer Science. He started this website in late 2015, mostly as a digital business card. He is interested in Go, Python, Ruby, SQL- and NoSQL-databases, machine learning and AI and is experienced in building scalable, distributed systems and micro-services at multiple larger and smaller companies.