Menu
The code works on my machine :shrug:
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Two pointers Memes
Posts tagged with Two pointers
Every Single Leetcode Problem
Algorithms
Java
Programming
Python
C++
1 month ago
99.2M views
0 shares
You thought you were getting a nice easy array manipulation problem? Think again. Somehow, someway, the optimal solution always involves a sliding window algorithm. It's like the universe conspired to make sure that every coding interview requires you to remember that one technique you learned once and promptly forgot. Two pointers moving in sync? Check. O(n) time complexity? Check. Your sanity slowly slipping away as you try to figure out which pointer goes where? Double check. The sliding window is the duct tape of algorithm interviews - if brute force doesn't work, just slide a window across it and call it optimization. String problems? Sliding window. Subarray problems? Sliding window. Finding your will to live during technical interviews? Probably also sliding window.
Today's picks
Oh Boy
Debugging
195.5M views
8 days ago
NordVPN
Sponsored
VPN
EpicMugs There Are 10 Types Of People In This World, Those Who Understand Binary And Those Who Don't. Mug - 11 Oz Ceramic Coffee Mug Tea Cup - Best Funny And I
Affiliate
$14.95