Paypal SDE Interview Question 2023 April | DFS & Memoization | On-campus

PayPal · Question · Posted Jun 2026

Question 1: Longest Increasing Path in a Matrix Problem Statement Given an m x n integers matrix, return the length of the longest strictly increasing path in the matrix. From each cell, you can either move in four directions: left, right, up, or down. You may NOT move diagonally or move outside the boundary (i.e., wrap-around is not allowed). Constraints m == matrix.length n == matrix[i].length 1 <= m, n <= 200 0 <= matrix[i][j] <= 231 - 1 Example ...

The full answer & interview discussion are available to premium members.

Log in Create a free account