NeetCode #503LC-1849MediumBacktracking
← Back to All Problems

#503 · #1849 · Splitting a String Into Descending Consecutive Values(将字符串拆分为递减的连续值)

📌 Problem Statement & Constraints

Given a string s of digits, return true if it can be split into two or more non-empty substrings whose integer values form a strictly decreasing sequence where each value is exactly 1 less than the previous. Constraints: 2 <= s.length <= 20.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!