---
title: "Anurag Srivastava (@Javenture) | Hashnode"
description: "Java and DSA: The Perfect Blend for Problem Solving. Read the latest articles by Anurag Srivastava on Hashnode."
url: "https://hashnode.com/@Javenture"
---

@Javenture

# Anurag Srivastava

@Javenture · Joined October 2024

Java and DSA: The Perfect Blend for Problem Solving

### [Decoding Pascal's Triangle: A Step-by-Step Java Guide](https://javenture.hashnode.dev/decoding-pascals-triangle-a-step-by-step-java-guide?utm_source=hashnode&utm_medium=feed)

Pascal's Triangle, a visual representation of binomial coefficients, is a cornerstone of combinatorics and probability. In this blog post, we'll dissect a Java implementation that generates Pascal's Triangle, calculates specific values, and retrieves...

4 min read · [javenture.hashnode.dev](https://javenture.hashnode.dev/decoding-pascals-triangle-a-step-by-step-java-guide?utm_source=hashnode&utm_medium=feed)

[Mar 13, 2025](https://hashnode.com/posts/decoding-pascals-triangle-a-step-by-step-java-guide/67d26193ab184589e2fcb7d5)

### [Counting Subarrays with Sum Equal to K: A Prefix Sum Approach in Java](https://javenture.hashnode.dev/counting-subarrays-with-sum-equal-to-k-a-prefix-sum-approach-in-java?utm_source=hashnode&utm_medium=feed)

Finding subarrays with a specific sum is a classic problem in computer science. In this blog post, we'll explore an efficient solution using the concept of prefix sums and a HashMap in Java. Understanding the Problem Given an array of integers num an...

4 min read · [javenture.hashnode.dev](https://javenture.hashnode.dev/counting-subarrays-with-sum-equal-to-k-a-prefix-sum-approach-in-java?utm_source=hashnode&utm_medium=feed)

[Mar 12, 2025](https://hashnode.com/posts/counting-subarrays-with-sum-equal-to-k-a-prefix-sum-approach-in-java/67d11401be5dae25a8d13f9e)

### [Spiral Traversal of a matrix](https://javenture.hashnode.dev/spiral-traversal-of-a-matrix?utm_source=hashnode&utm_medium=feed)

Unraveling the Spiral: Traversing a Matrix Step-by-Step in Java Matrix traversal is a fundamental concept in computer science, and one intriguing pattern is the spiral traversal. In this blog post, we'll dive deep into how to traverse a 2D matrix in ...

4 min read · [javenture.hashnode.dev](https://javenture.hashnode.dev/spiral-traversal-of-a-matrix?utm_source=hashnode&utm_medium=feed)

[Mar 11, 2025](https://hashnode.com/posts/spiral-traversal-of-a-matrix/67cfc63bd8ce8c0e2d4d77e8)

### [Rotating a Matrix by 90 Degrees: A Java Implementation](https://javenture.hashnode.dev/rotating-a-matrix-by-90-degrees-a-java-implementation?utm_source=hashnode&utm_medium=feed)

Rotating a matrix by 90 degrees is a common problem encountered in image processing, game development, and other areas of computer science. In this blog post, we'll explore a Java implementation that efficiently rotates a square matrix by 90 degrees ...

3 min read · [javenture.hashnode.dev](https://javenture.hashnode.dev/rotating-a-matrix-by-90-degrees-a-java-implementation?utm_source=hashnode&utm_medium=feed)

[Mar 6, 2025](https://hashnode.com/posts/rotating-a-matrix-by-90-degrees-a-java-implementation/67c91a9af32fb539d40a78e2)

### [Finding the Next Lexicographical Permutation in Java](https://javenture.hashnode.dev/finding-the-next-lexicographical-permutation-in-java?utm_source=hashnode&utm_medium=feed)

Generating permutations of a sequence in lexicographical order is a common algorithmic task. In this blog post, we'll explore how to find the next lexicographically greater permutation of an array using Java. Understanding Lexicographical Order Lexic...

3 min read · [javenture.hashnode.dev](https://javenture.hashnode.dev/finding-the-next-lexicographical-permutation-in-java?utm_source=hashnode&utm_medium=feed)

[Mar 4, 2025](https://hashnode.com/posts/finding-the-next-lexicographical-permutation-in-java/67c657fa89fd000ca38a7499)
