2. Odd Occurrences
Здравейте! Някой може ли да помогне с тази задача:
2. Odd Occurrences
Write a function that extracts the elements of a sentence, if it appears an odd number of times (case-insensitive).
The input comes as a single string. The words will be separated by a single space.
Input |
Output |
'Java C# Php PHP Java PhP 3 C# 3 1 5 C#' |
c# php 1 5 |
'Cake IS SWEET is Soft CAKE sweet Food' |
soft food |
Това е моят неуспешен опит:
https://pastebin.com/P1dWX0kJ
Много благодаря!
Здравейте! Ето още едно решение :)
https://pastebin.com/gdNtG5Ck