This is the algorithm of the night…

Photo by Roman Mager on Unsplash

Tell us about something you learned this week.

const user.name = 'Brian'
const user.online = true
const greet = () => console.log(`Hello ${user.name}, you are online!`)
if (user.online) {
greet()
}
// Hello Brian, you are online!
user.online && greet()// Hello Brian, you are online!

What are the pros and cons of immutability? How can you achieve immutability in your own code?

What are Divide and Conquer algorithms? Describe how they work. Can you give any common examples of the types of problems where this approach might be used?

How do insertion sort, heap sort, quick sort, and merge sort work? What are the key advantages of insertion sort, quick sort, heap sort and merge sort? Discuss best, average, and worst-case time and memory complexity.

Explain the difference between mutable and immutable objects.

What are the three laws of algorithm recursion? Describe them in your own words and what they mean to you.