Exercises/#53 Longest Increasing Subsequence
#53

Longest Increasing Subsequence

Medium🧩 Dynamic Programming
90 XP

Problem

Given an integer array nums, return the length of the longest strictly increasing subsequence.

Examples

Input: nums=[10,9,2,5,3,7,101,18]
Output: 4 ([2,3,7,101])

Input: nums=[0,1,0,3,2,3]
Output: 4
dynamic-programmingbinary-search
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

53 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features