Chargebee Interview Questions

Chargebee Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(87)
SQL
(68)
Machine Learning
(60)
Probability
(31)
Product Sense & Metrics
(25)

Chargebee Interview Questions

Practice for the Chargebee interview with these recently asked interview questions.

QuestionTopicDifficulty
Data Structures & Algorithms
Medium

Write a Python function called group_anagrams that takes a list of strings as input and returns a list of lists, where each inner list contains a group of anagrams that were present in the input list.

An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, using all the original letters exactly once.

Note: Each of the inner lists should be ordered alphabetically and contain no duplicate values

Example:

Input:

words = ["eat", "tea", "tan", "ate", "nat", "bat"]

Output:

[  
  ["nat","tan"],
  ["ate","eat", "tea"],
  ["bat"]
]

Explanation:

In the example, the words “eat”, “tea”, and “ate” are anagrams of each other, as are the words “tan” and “nat”. The word “bat” does not have any anagrams in the input list, and therefore is listed on its own. The function then groups the anagrams together and returns a list of lists representing these groups.

Each of the lists representing a group of anagrams is sorted in alphabetical order.

Data Structures & Algorithms
Medium
ML Ops
Hard
Loading pricing options

View all Chargebee questions

Challenge

Check your skills...
How prepared are you for working at Chargebee?

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.