---
title: "Himanshu Kumar (@himanshureveal) | Hashnode"
description: "Full Stack Developer. Read the latest articles by Himanshu Kumar on Hashnode."
url: "https://hashnode.com/@himanshureveal"
---

@himanshureveal

# Himanshu Kumar

@himanshureveal · India · Joined November 2024

Full Stack Developer

### [Monotonic Stack Template](https://himanshukumardatastructurealgorithm.hashnode.dev/monotonic-stack-template?utm_source=hashnode&utm_medium=feed)

Master monotonic stack problems with these 6 essential Java templates. Learn patterns for next/previous greater and smaller elements, complete with clean co

6 min read · [himanshukumardatastructurealgorithm.hashnode.dev](https://himanshukumardatastructurealgorithm.hashnode.dev/monotonic-stack-template?utm_source=hashnode&utm_medium=feed)

[Aug 13, 2025](https://hashnode.com/posts/monotonic-stack-template/689cc9a0fb0fae55fbd91be6)

### [Binary Search on Value—A Universal Template](https://himanshukumardatastructurealgorithm.hashnode.dev/binary-search-on-valuea-universal-template?utm_source=hashnode&utm_medium=feed)

Unlock the power of binary search beyond arrays. Learn the "binary search on value" technique to efficiently find values satisfying monotonic conditions. In

4 min read · [himanshukumardatastructurealgorithm.hashnode.dev](https://himanshukumardatastructurealgorithm.hashnode.dev/binary-search-on-valuea-universal-template?utm_source=hashnode&utm_medium=feed)

[Jul 20, 2025](https://hashnode.com/posts/binary-search-on-valuea-universal-template/687d1e7148670a1c70a4b4c0)

### [🚀 Master the Backtracking Algorithm with a Reusable Java Template](https://himanshukumardatastructurealgorithm.hashnode.dev/master-the-backtracking-algorithm-with-a-reusable-java-template?utm_source=hashnode&utm_medium=feed)

Use a Java backtracking template for solving recursive problems like permutations, combinations, and subsets. Ideal for coding interviews

2 min read · [himanshukumardatastructurealgorithm.hashnode.dev](https://himanshukumardatastructurealgorithm.hashnode.dev/master-the-backtracking-algorithm-with-a-reusable-java-template?utm_source=hashnode&utm_medium=feed)

[Jun 22, 2025](https://hashnode.com/posts/master-the-backtracking-algorithm-with-a-reusable-java-template/6857d2c06a96de609a7638ab)

### [Sliding Window Cheatsheet Template](https://himanshukumardatastructurealgorithm.hashnode.dev/sliding-window-cheatsheet-template?utm_source=hashnode&utm_medium=feed)

Template 1: Sliding Window (Shrinkable) Key Idea Start with an initial window \[i, j\] and expand it by incrementing j. Whenever the window becomes invalid, shrink it by incrementing i until it is valid again. Keep track of the maximum size of the v...

5 min read · [himanshukumardatastructurealgorithm.hashnode.dev](https://himanshukumardatastructurealgorithm.hashnode.dev/sliding-window-cheatsheet-template?utm_source=hashnode&utm_medium=feed)

[Mar 3, 2025](https://hashnode.com/posts/sliding-window-cheatsheet-template/67c535f1741ad57458f3ece9)

### [Two Pointer Problems Pattern](https://himanshukumardatastructurealgorithm.hashnode.dev/two-pointer-problems-pattern?utm_source=hashnode&utm_medium=feed)

1\. Opposite Direction (Two-pointer from Ends) ✅ Use When: You need to find pairs in a sorted array. You need to check if a string/array is a palindrome. You are finding an optimal solution between two boundaries (like maximum area, min/max sum). ...

4 min read · [himanshukumardatastructurealgorithm.hashnode.dev](https://himanshukumardatastructurealgorithm.hashnode.dev/two-pointer-problems-pattern?utm_source=hashnode&utm_medium=feed)

[Feb 23, 2025](https://hashnode.com/posts/two-pointer-problems-pattern/67baa2a5664f7bcb2d5ca1d6)
