Create a Divide and Conquer Function in JavaScript

InstructorTyler Clark

Share this video with your friends

Send Tweet

Divide and conquer (or D&C) can take some time to comprehend. It is composed by using recursive functions to create a base case and to divide or decrease a problem until it becomes the base case. Let’s create a D&C function to accomplish a task with JavaScript

Pramod Jingade
~ 4 years ago

Thank you, this is by far the simplest explanation to D&C. makes it easy to comprehend.

Duraimurugan Rajendran
~ 4 years ago

How do you rate the time complexity and space complexity with the recursion. Can you explain a bit more on the performance aspect as well?