All Stories

Connecting dbt mysql with PlanetScale database (Vitess) - A case study

When I first started playing around with dbt (data build tool), being a traditional MySQL developer, the first thing that came to my mind is Can we connect dbt with...

Java Programming Tips for interviews

Print all the elements in a queue. If the queue has objects then using System.out.println(queue) will print hashcodes. So instead you can use:

Template for Disjoint set - Union Find - Java

Disjoint Sets with Arrays. ```java class DSU { int[] parent; public DSU() { parent = new int[10001]; for (int i = 0; i <= 10000; ++i) parent[i] = i; }...

Coding Interview Questions - Pattern 3 - Dequeue Problems

Dequeue is a data structure similar to queue with one modification. Normal queue allows us to enqueue elements at the tail of the queue and deque elements from the head...

Coding Interview Questions - Pattern 1 - Tries (Prefix Trees)

One of the most frequently asked coding interview questions for FAANG companies [Facebook (FB), Amazon (AMZN), Apple (AAPL), Netflix (NFLX); and Alphabet (GOOG) (formerly known as Google).] include Tries. Trie...