---
title: "PRANAY JAISWAL (@pranay717) | Hashnode"
description: "Work for a Better Life | Learn. Build. Evolve. Read the latest articles by PRANAY JAISWAL on Hashnode."
url: "https://hashnode.com/@pranay717"
---

@pranay717

# PRANAY JAISWAL

@pranay717 · Ghaziabad,Uttar Pradesh,India · Joined May 2025

Work for a Better Life | Learn. Build. Evolve.

### [Everyone uses a HashSet for LeetCode 961. I found a way to use O(1) space by hacking Moore's Voting Algorithm. Here is the math behind it.](https://pranay180825.hashnode.dev/everyone-uses-a-hashset-for-leetcode-961-i-found-a-way-to-use-o1-space-by-hacking-moores-voting-algorithm-here-is-the-math-behind-it?utm_source=hashnode&utm_medium=feed)

LeetCode 961: N-Repeated Element in Size 2N Array is usually solved with a simple Hash Set (O(N) space) or randomized checks. But recently, I challenged myself to solve it deterministically using O(1) space. The result? A modified version of Moore’s ...

3 min read · [pranay180825.hashnode.dev](https://pranay180825.hashnode.dev/everyone-uses-a-hashset-for-leetcode-961-i-found-a-way-to-use-o1-space-by-hacking-moores-voting-algorithm-here-is-the-math-behind-it?utm_source=hashnode&utm_medium=feed)

[Jan 2](https://hashnode.com/posts/everyone-uses-a-hashset-for-leetcode-961-i-found-a-way-to-use-o1-space-by-hacking-moores-voting-algorithm-here-is-the-math-behind-it/69579b40f591e14a80762e07)

### [Mastering Priority System Design](https://pranay180825.hashnode.dev/mastering-priority-system-design?utm_source=hashnode&utm_medium=feed)

In the recent few days the daily leetcode questions were from the topic of Priority Queue where we were needed to arrange elements in a particular order it may time, rating or let's day price why not With decent practice of Priority Queue, I tried to...

2 min read · [pranay180825.hashnode.dev](https://pranay180825.hashnode.dev/mastering-priority-system-design?utm_source=hashnode&utm_medium=feed)

[Sep 19, 2025](https://hashnode.com/posts/mastering-priority-system-design/68cd00703db91dea29c81d23)

### [PRANAY's 1st September 2025](https://pranay180825.hashnode.dev/pranays-1st-september-2025?utm_source=hashnode&utm_medium=feed)

After a long and exhausting time at the college and at my club Innogeeks where I am now a coordinator, I decided to solve some question on leetcode and study some tropics which would improve my logical thinking and ability to solve questions Maximum ...

3 min read · [pranay180825.hashnode.dev](https://pranay180825.hashnode.dev/pranays-1st-september-2025?utm_source=hashnode&utm_medium=feed)

[Sep 2, 2025](https://hashnode.com/posts/pranays-1st-september-2025/68b691ee771519c8a4e187ef)

### [PRANAY's 18th August 2025](https://pranay180825.hashnode.dev/pranays-18th-august-2025?utm_source=hashnode&utm_medium=feed)

Today after a hectic day at college I solved the TLE ELIMINATOR CP-31 sheet which is a great resource for any one who want to have a taste of CP with Leetcode The fifth Question TLE CP-31 was Jagged Swaps—>My take on this was that it might be a good ...

2 min read · [pranay180825.hashnode.dev](https://pranay180825.hashnode.dev/pranays-18th-august-2025?utm_source=hashnode&utm_medium=feed)

[Aug 20, 2025](https://hashnode.com/posts/pranays-18th-august-2025/68a64359cf203cba1ebe6de4)
