Interactive Lab
A sandbox for creative frontend prototypes, low-level browser mechanics experiments, and tactile interaction design tests built by Raj Shah.
Pure CSS 3D Algorithmic Flip Cards
What this shows: GPU-accelerated preserve-3d rotations with zero JS animation libraries.
Two Pointers / Fast & Slow
Detecting cycles in linked lists or finding midpoints in O(1) extra auxiliary space.
while (fast != null && fast.next != null) {
slow = slow.next;
fast = fast.next.next;
if (slow == fast) return true;
}Sliding Window Maximum
Monotonic deque preserving decreasing order so the maximum is always at the front.
Deque<Integer> q = new ArrayDeque<>();
while (!q.isEmpty() && nums[q.peekLast()] <= val) {
q.pollLast();
}
q.offerLast(i);Binary Search On Answer
When the decision function f(x) is monotonic, search across the answer space [low, high].
while (low <= high) {
int mid = low + (high - low) / 2;
if (isValid(mid)) { ans = mid; high = mid - 1; }
else { low = mid + 1; }
}Tunnel Flap Memory Lifecycle Simulator
What this shows: Recycling 8 persistent DOM nodes eliminates garbage collection stutter.
Instead of calling document.createElement() and element.remove(), obstacles that pass the left boundary simply transform their X coordinate back to the right with randomized gap geometry.
Interactive Physics Perspective Card
What this shows: Real-time pointer vector calculations mapped to 3D matrix perspective.
Obsidian Lime Spatial Tile
Hover and move your pointer across this card to observe real-time angular displacement without layout thrashing.