Tiger Analytics Coding Questions | Largest word in a given String | Coding Technologies

preview_player
Показать описание
In this Video we learn Tiger Analytics Coding questions
Finding the word with highest Characters

HSBC Coding Questions

Wipro Coding Questions

KPIT Coding Questions

Mindtree Coding Questions
Рекомендации по теме
Комментарии
Автор

def
list_of_string=string.split(" ")
def count(string):
return len(string)

return list_of_string[-1] without any loop

shindenikhil
Автор

what about this solution :

String longestWord = Stream.of(str.split(" ")).collect(Collectors.toMap(Function.identity(), ob -> ob.length()))
.entrySet().stream().sorted((o1, o2) -> o2.getValue() -

sourabhchougule
Автор

Python solution:

max('Finding the word with highest Characters'.split(), key=len)

manthanrathod
Автор

Thanks for the great initiative
Here is my solution in Python
result = sorted([i for i in input().split()], key=len)[-1]
print(result)

satyabrataroy
Автор

Is this the question for the technical test before the technical interview ? Or this is a technical interview question ?

asitnayak
Автор

txt=txt.split(' ')
txt1=[len(x) for x in txt if len(x)>0 ]
ind=txt1.index(max(txt1))
txt[ind]

priyojitaidiscovery
visit shbcf.ru