Maximal Square and Longest Increasing Subsequence

Quick Overview

Implement two independent analyses: the largest all-ones square in a binary matrix and the length of a strictly increasing subsequence. Account for empty inputs, area-versus-side-length semantics, duplicate values, very large sequences, complexity comparisons, reduced auxiliary space, and witness reconstruction.

Maximal Square and Longest Increasing Subsequence

Company: Salesforce

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Implement two independent analyses: the largest all-ones square in a binary matrix and the length of a strictly increasing subsequence. Account for empty inputs, area-versus-side-length semantics, duplicate values, very large sequences, complexity comparisons, reduced auxiliary space, and witness reconstruction.

|Home/Coding & Algorithms/Salesforce
Salesforce logo
Salesforce
Jul 9, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
7
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...