Skip to content

karthikc08/TechMojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TechMojo

Sample Test for interview of TechMojo

Question: Find the top 10 trending hashtags in twitter. You can write a standalone java class(es) / interfaces as deemed to be fit. Assumptions & notes :

  1. A tweet is a text being input by tweeters.
  2. A main method in a java class to be implemented which takes the tweet as an input.
  3. You need to extract hashtag from a tweet text (Ex: sachin is hashtag in the tweet -> " Worlds best cricketer is #sachin")
  4. Maintain a data structure that keeps tracking of the count of each hashtag that is coming to your main method
  5. print the list of top 10 hashtags at the end of main method execution

Solution defined in the simple standalone Java code using Java 1.8 Used lambda expressions and hence need to use Java 8 or higher to execute

About

Sample Test for interview of TechMojo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages