Word Count
Feb 5, 2023 · 2 min read · Problem Description Given a string A. The string contains some words separated by spaces.Return the number of words in the given string. Problem Constraints 1 <= |A| <= 105Ai = { lowercase English letters or spaces} Input Format The first and only ar...
Join discussion