- Denisse's Newsletter
- Posts
- Did you really learn the pattern? Let's put it to a test
Did you really learn the pattern? Let's put it to a test
Welcome back brave human being,
Yesterday we learned the pattern of Two-Pointers. Now that we have learned the two-pointer pattern, let’s put it to a test.
Now, let’s put it to the test.
Problem:
Given a sorted array, return an array of the squares of each number sorted.
How can you do it in O(N)?
Can you think about the naive approach? How could the two-pointer technique make this go faster?
Need motivation to be consistent?
Start your log with this problem and when the challenge is done send it to me! You’ll be in for a treat.
I’ll send the solution on Monday with an editorial,
Keep up the great work,
Denisse
Job Application Hack!
Download the Chrome extension Simplify and add your CV to it. This will allow you to reduce the Job application time to 3 seconds.
Reply