Join Todd McLeod for an in-depth discussion in this video Calculating permutations with nested loops, part of Code Clinic: Go.
- So, in this video we are going to explore…how do we calculate permutations?…And here's my challenge for you.…Try writing an algorithm…to calculate the permutations of this set.…And if you just happen to be experimenting with Go,…and you don't have your Go environment up and running,…you can go to the golang playground.…And here is a place online…that you can totally just start writing Go code.…Now, it will automatically do your imports for you…when you click that and then hit Format.…And you can click this to share it.…
So, if you get stuck you could go to stack overflow.…Or you could go to the golang bridge forum,…and you can say, "Hey, help me out.…I'm trying to understand this."…This, however, will not do code completion for you.…So, you need to make sure you're syntax is spot on.…And then you could run your code right here.…And I'll show you the results.…Pretty cool.…So, I encourage you to try to figure out…all the permutations of this set.…Write a little program that'll do it.…We are now going to show you how I did it.…
Todd introduces challenges and then provides overviews of his solutions in Go. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Beginner
1. Problem 1—Exploring Lake Pend Oreille
2. Problem 2—Image Analysis
3. Problem 3—Eight Queens
4. Problem 4—Accessing Peripherals
5. Problem 5—Recursion and Directories
6. Problem 6—Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.