NKNIKHIL KUMAR REDDYinnikhilkumarreddy28.hashnode.dev·Aug 9, 2025 · 2 min readTrapping Rain Water — A Clean and Simple SolutionThe Trapping Rain Water problem is a popular coding challenge that’s common in interviews and competitive programming. It’s simple to describe but requires some careful thought to solve efficiently. Problem Statement LeetCode #42 — Trapping Rain Wa...00
NKNIKHIL KUMAR REDDYinnikhilkumarreddy28.hashnode.dev·Jul 19, 2025 · 5 min readAI‑Powered Product Requirement Reviews1. The Challenge of Traditional PRD Reviews Cross‑functional alignment on product requirements often means: Lengthy meetings or back‑and‑forth Slack threads Missed nuances when domain experts aren’t available Delayed timelines as feedback trickles...00
NKNIKHIL KUMAR REDDYinnikhilkumarreddy28.hashnode.dev·Jul 12, 2025 · 4 min readSafely Editing URL Parameters in PythonWhen building web applications or working with REST APIs, you’ll often need to construct or modify URLs by adding, updating, or removing query parameters. Doing this by string-manipulation is error-prone and can easily lead to improperly encoded URLs...00
NKNIKHIL KUMAR REDDYinnikhilkumarreddy28.hashnode.dev·Feb 4, 2023 · 1 min readPrint characters and their frequencies in the order of occurrenceGiven string str containing only lowercase characters. The problem is to print the characters along with their frequency in the order of their occurrence. import java.util.LinkedHashMap; import java.util.Map; import java.util.Scanner; public class P...00
NKNIKHIL KUMAR REDDYinnikhilkumarreddy28.hashnode.dev·Feb 2, 2023 · 1 min read73. Set Matrix ZeroesMedium Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0's. You must do it in place. Example 1: Input: matrix = [[1,1,1],[1,0,1],[1,1,1]] Output: [[1,0,1],[0,0,0],[1,0,1]] Example 2: Input: matrix = [[0,...00