Skip to content
javabypankaj
HomeLibraryPopularCommunity
17
Coding Problems: DSA
19 topics · 492 questions
1Beginner: I/O, Arithmetic, Loops0/30302Arrays0/1091093Strings0/61614Linked List0/24245Stack & Queue0/20206HashMap & HashSet Problems0/17177Two Pointers0/10108Sliding Window0/779Binary Search0/141410Sorting & Searching0/222211Recursion & Backtracking0/232312Dynamic Programming0/313113Trees & BST0/252514Graphs0/232315Greedy0/121216Math & Bit Manipulation0/6617Matrix0/418Pattern Printing0/2219Miscellaneous Coding0/5252
1Beginner: I/O, Arithmetic, Loops302Arrays1093Strings614Linked List245Stack & Queue206HashMap & HashSet Problems177Two Pointers108Sliding Window79Binary Search1410Sorting & Searching2211Recursion & Backtracking2312Dynamic Programming3113Trees & BST2514Graphs2315Greedy1216Math & Bit Manipulation617Matrix418Pattern Printing219Miscellaneous Coding52
19 topics492 Qs0%
01Core Java17002OOP3203Collections6704Exception Handling2805Concurrency & Multithreading12706Java Streams, Lambda & Functional Programming32807Spring & Spring Boot2608Transactions3209JPA & Hibernate6910Microservices19411Kafka & Messaging9112DevOps, CI/CD & Tooling13313Database & SQL14114REST API & Web4015Design Patterns & LLD5716Advanced Java7117Coding Problems: DSA49218AWS & Cloud4119Data Engineering19420QA, Testing & SDET4121System Design3522Security2023Behavioral / HR: STAR Method37
19Topics
492Questions
0%Complete
17 of 19 topics
Topics
1Beginner: I/O, Arithmetic, Loops0/30302Arrays0/1091093Strings0/61614Linked List0/24245Stack & Queue0/20206HashMap & HashSet Problems0/17177Two Pointers0/10108Sliding Window0/779Binary Search0/141410Sorting & Searching0/222211Recursion & Backtracking0/232312Dynamic Programming0/313113Trees & BST0/252514Graphs0/232315Greedy0/121216Math & Bit Manipulation0/66
17Matrix0/44
18Pattern Printing0/2219Miscellaneous Coding0/5252

Matrix

Coding Problems: DSA·Topic 17 of 19·4 questions
Q1Unique Paths: count grid paths moving right or down

dp[i][j] = paths from above + paths from the left; edges are all 1.

Read Answer
Q2Set Matrix Zeroes: using the first row and column as in-place markers

Use the first row and first column as your zero-marker notepad so you need only constant extra memory.

Read Answer
Q3Unique Paths (Count Grid Routes Moving Only Right or Down)

Ways to a cell equal ways from above plus ways from the left.

Read Answer
Q4Rotate a LinkedList (Rotate Right by K Places)

Make it a ring, reduce k by length, cut at length - k % length, and the node after the cut is the new head.

Read Answer
Previous · Topic 16Math & Bit Manipulation6 questionsNext · Topic 18Pattern Printing2 questions
javabypankaj© 2026 javabypankaj
PrivacyTerms
HomeSearchLibrary