Posts

2026

Gas Station

This document presents the solution to the problem [134. Gas Station - Leetcode](https://leetcode.com/problems/gas-stati...

Product of Array Except Self

This document presents the solution to the problem [238. Product of Array Except Self - Leetcode](https://leetcode.com/p...

H-Index

This document presents the solution to the problem [274. H-Index - Leetcode](https://leetcode.com/problems/h-index/descr...

Jump Game II

This document presents the solution to the problem [45. Jump Game - Leetcode](https://leetcode.com/problems/jump-game-ii...

Ripgrep & grep Command Notes

This doc contains a few transformed grep commands which I frequently use. 1. Search inside a directory, with file name...

2025

Jump Game

This document presents the solution to the problem [55. Jump Game - Leetcode](https://leetcode.com/problems/jump-game/de...

Rotate Array Solution

This document presents the solution to the problem [189. Rotate Array - Leetcode](https://leetcode.com/problems/rotate-a...

Majority Element Solution

This document presents the solution to the problem [169. Majority Element - Leetcode](https://leetcode.com/problems/majo...

Remove Duplicates from Sorted Array II

This document presents the solution to the problem [80. Remove Duplicates from Sorted Array II - Leetcode](https://leetc...

Remove Element Solution

This document presents the solution to the problem [27 - Remove Element - Leetcode](https://leetcode.com/problems/remove...

Merge Sorted Array Solution

This document presents the solution to the problem [88 - Merge Sorted Array - Leetcode](https://leetcode.com/problems/me...

2021

Using Vault with LDAP Login/Auth and Policy Authorization

This document presents the configuration steps for LDAP based authentication for Hashicorp Vault. It assumes that the LD...

Hashicorp Vault Installation, Userpass, KV Secrets and Policy Authorization

This document presents the installation steps for Hashicorp Vault and then proceeds with an example scenario involving ...

OpenLDAP Installation and Tutorial on Ubuntu

The document presents the installation steps for OpenLDAP in an Ubuntu server and some practical examples of LDAP comm...

2020

Minimum Score Triangulation of Polygon

This article presents the solution to the problem [1039. Minimum Score Triangulation of Polygon- Leetcode](https://leetc...

Longest Happy String

This document presents the solution to the problem [1405. Longest Happy String](https://leetcode.com/problems/longest-ha...

All Elements in Two Binary Search Trees

In this article we'll be solving the problem: [All Elements in Two Binary Search Trees](https://leetcode.com/problems/al...

Construct Binary Search Tree From Preorder Traversal

In this article we'll be solving the problem: [Construct Binary Search Tree from Preorder Traversal](https://leetcode.co...

Maximum Binary Tree

In this article we'll be solving the problem: [Maximum Binary Tree](https://leetcode.com/problems/maximum-binary-tree/)....

Sum of Nodes With Even Valued Grandparent

In this article we'll be solving the problem: [Sum of Nodes with Even-Valued Grandparent](https://leetcode.com/problems/...

Deepest Leaves Sum

In this article we'll be solving the problem: [Deepest Leaves Sum](https://leetcode.com/problems/deepest-leaves-sum/). ...

Symmetric Tree or Mirror Tree

In this article we'll be solving the problem: [Symmetric Tree](https://leetcode.com/problems/symmetric-tree/). Just like...

Diameter of Binary Tree

In this article we'll be solving the problem: [Diameter of Binary Tree](https://leetcode.com/problems/diameter-of-binary...

Binary Tree Paths Solution

In this article, we'll be solving the problem: [Binary Tree Paths](https://leetcode.com/problems/binary-tree-paths/). Th...

Cousins in Binary Tree

In this article we'll be solving the problem: [Cousins in Binary Tree](https://leetcode.com/problems/cousins-in-binary-t...

Sum of Left Leaves

In this article we'll be solving the problem: [Sum of Left Leaves](https://leetcode.com/problems/sum-of-left-leaves/). ...

Same Tree or Equal Tree

In this article we'll be solving the problem: [Same Tree](https://leetcode.com/problems/same-tree/). Just like the probl...

Minimum Absolute Difference in BST

In this article we'll be solving the problem: [Minimum Absolute Difference in BST](https://leetcode.com/problems/minimum...

Construct String From Binary Tree

In this article, we'll be solving the problem: [Construct String from Binary Tree](https://leetcode.com/problems/constru...

Two Sum IV - Input is a BST Solution

In this article, we'll be solving the problem: [Two Sum IV - Input is a BST](https://leetcode.com/problems/two-sum-iv-in...

Convert BST to Greater Tree

In this article, we'll be solving the problem: [Convert BST to Greater Tree](https://leetcode.com/problems/convert-bst-t...

Convert Sorted Array to Binary Search Tree

In this article, we'll be solving the problem: [Convert Sorted Array to Binary Search Tree](https://leetcode.com/problem...

Average of Levels in Binary Tree

In this article, we'll be solving the problem: [Average of Levels in Binary Tree](https://leetcode.com/problems/average-...

Leaf Similar Trees

In this article, we'll be solving the problem: [Leaf Similar Trees ](https://leetcode.com/problems/leaf-similar-trees/)....

Sum of Root to Leaf Binary Numbers

In this article, we'll be solving the problem: [Sum of Root To Leaf Binary Numbers](https://leetcode.com/problems/sum-of...

Univalued Binary Tree

In this article we'll be solving the problem: [Univalued Binary Tree](https://leetcode.com/problems/univalued-binary-tre...

Maximum Depth of N Ary Tree

In this article we'll be solving the problem: [Maximum Depth of N-ary Tree](https://leetcode.com/problems/maximum-depth-...

Increasing Order Search Tree

In this article we'll be solving the problem: [Increasing Order Search Tree](https://leetcode.com/problems/increasing-or...

Merge Two Binary Trees

In this article we'll be solving the problem: [Merge Two Binary Trees](https://leetcode.com/problems/merge-two-binary-tr...

Range Sum of BST

In this article we'll be solving the problem: [Range Sum of BST](https://leetcode.com/problems/range-sum-of-bst/). We'll...

Integer Break

This document presents the solution to the problem [343. Integer Break](https://leetcode.com/problems/integer-break/). W...

Longest Arithmetic Sequence

This document presents the solution to the problem [1027. Longest Arithmetic Sequence](https://leetcode.com/problems/lon...

Longest Zig Zag Path in a Binary Tree

This document presents the solution to the problem [1372. Longest ZigZag Path in a Binary Tree - Leetcode](https://leetc...

Minimum Path Sum Solution

This document presents the solution to the problem [64. Minimum Path Sum - Leetcode](https://leetcode.com/problems/minim...

InfluxDB Out of Memory Solution

The solution to the issue, InfluxDB Out of Memory, can be solved in multiple folds sequentially. This article presents t...

Arithemtic Slices

This document presents the solution to the problem [413 - Arithmetic Slices - Leetcode](https://leetcode.com/problems/ar...

Count Submatrices With All Ones

This document presents the solution to the problem [1504 - Count Submatrices With All Ones - Leetcode](https://leetcode....

Center align code to reduce Distraction In Idea, Goland, Pycharm

In this article, I'll show you how to use distraction free mode by changing the code alignment in IntelliJ IDEA, GoLand ...

Filling Bookcase Shelves

This document presents the solution to the problem [Filling Bookcase Shelves - Leetcode](https://leetcode.com/problems/f...

Minimum Cost for Tickets Solution

This document presents the solution to the problem [Minimum Cost For Tickets - Leetcode](https://leetcode.com/problems/m...

Airplane Seat Assignment Probability

This document presents the solution to the problem [Airplane Seat Assignment Probability - Leetcode](https://leetcode.co...

Proxy Design Pattern With Real World Example In Java

In this tutorial we'll be learning about the **Proxy Design Pattern**. We'll be creating one Hibernate like very simple ...

State Design Pattern With Real World Example In Java

In this tutorial we'll be learning **State Design Pattern**. We'll be creating a very simple Document Manager while lea...

Composite Design Pattern With Real World Example In Java

In this tutorial we'll be learning **Component Design Pattern**. We'll be creating a very simple HTML viewer or parser w...

Simple CI/CD using Github Action Workflows from Scratch

**Now, you can create your CI/CD pipelines for your Github repositories using Github Workflows.** However, there were s...

Template Method Design Pattern With Real World Example

In this tutorial we'll be looking into the **Template Design Pattern**. We'll try to create a Report Generator that will...

Adapter Design Pattern With Real World Example In Java

In this section we'll be learning about the object oriented programming(OOP)'s **Adapter Patter** or **Adapter Design P...

Command Design Pattern With Real World Example In Java

In this section we'll look into **Command Design Pattern**. While learning the Command design pattern we'll try to impl...

Singleton Design Pattern With Real World Example In Java

This document presents a simple tutorial for the **Singleton Design Pattern**. We'll start by creating a Config Manager ...

2019

Factory Method Design Pattern With Real World Example

From this tutorial we will look into Factory Method Design Pattern. This tutorial expects that you've already gone thr...

Simple Factory Pattern With Real World Example In Java

In this chapter we will look into the Simple Factory Pattern(or an Idiom?). To learn about the Simple Factory Pattern, w...

Decorator Pattern With Real World Example In Java

In this tutorial we'll look into the **Decorator Design Pattern**. We'll see the benefits of Decorator Design Pattern by...

Observer Pattern With Real World Example In Java

In this tutorial we'll be looking into **Observer Design Pattern**. We will learn about the Observer Design Pattern by ...

Strategy Pattern With Real World Example In Java

In this tutorial we'll be learning about the **Strategy Design Pattern**. We'll be creating some classes for Ducks using...