challenges

Some problem solving programming challenges, i have solved. Not all are here, but started adding them slowly.

This project is maintained by chankruze

Flowing Words

If a sentence flows, the first letter of each word will be the same to the last letter of the previous word.

Task

Write a program that takes in a string that contains a sentence, checks if the first letter of each word is the same as the last letter of the previous word. If the condition is met, output true, if not, output false. Casing does not matter.

Input Format

A string containing a sentence of words.

Output Format

A string: true or false.

Sample Input

this string gets stuck

Sample Output

true

Explanation

Each word begins with the letter that the previous word ends with, therefore the output is true.

Solutions

Language Solution
C not available
CPP not available
C# not available
Python available
Java not available
Ruby not available
Swift not available