RK and his minimalized LIS
CodeChefOpen on judge ↗
RK was a newbie in competitive programming. He started learning some algorithms and solving some standard problems. He came across the problem of finding the longest increasing subsequence of the array of numbers.The Longest Increasing Subsequence (LIS) problem is to find the length of the longest subsequence of a given sequence such that all elements of the subsequence are sorted in increasing or
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start