Company: Capital One SDE IIT KGP

Difficulty: medium

Problem Statement

Maximum Word Break Count Problem Description You are given a string S along with a dictionary of valid words. Break S into as many substrings as possible such that every one of those substrings is a valid word found in the dictionary. Return the largest number of substrings that such a split can produce.

More Capital One SDE IIT KGP OA questionsInterview experiences