The Code Wars site allows users to practice coding in the language of their choice. I have included in this gist the pseudocode for three challenges that I completed. I have included a brief explination of the challenge, as well as the steps that I felt would be useful in solving the problems
- a number is passed as an argument; return an array including each number from 1 to the stated number.
- assign a value of an empty array to a variable to hold the solution
- create for loop to add 1 number to the array for each iteration (based on number provided in argument)
- set for loop to begin count at 1, rather than 0
- push count to array
- return array
- a string of 2 words will be passed through as an argument, return the first initials of those words in capitial letters
- change all letters to uppercase
- split string into array with each word as an element
- return the first index number of each element
- three numbers are passed as arguments, determine if the first is divisible by the other 2
- conditional statement requiring that x must be divisible by both the first and second # without any remainder (modulo)
- return true or false