insidcode
ProblemsDuelLeaderboardStats
Sign In
  1. Home
  2. Problems
  3. Find the length of the longest word in a sentence without using split() or built-in array methods.

Find the length of the longest word in a sentence without using split() or built-in array methods.

Difficulty: Hard

Phase: 6 · Mixed Logical Challenges

XP Reward: 30 XP

Topics: Mixed Logical Challenges, Hard

Supported Languages: Python, JavaScript, C, C++, Java

Problem Description

Given a sentence, find the length of the longest word without using built-in split methods. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).

Constraints

  • -10^9 <= N <= 10^9

Examples

Example 1

Input: Master algorithmic logic easily

Output: 11

Explanation: Sample execution for input Master algorithmic logic easily