Coding

Suppose we have a list of strings (words). Write a function to return the strings that are anagrams of another string in the list.

Data Scientist

Uber

Stripe

Hootsuite

NerdWallet

InVision

Mapbox

Did you come across this question in an interview?

Your answer

Answers

Unlock Community Insights

Contribute your knowledge to access all answers

#Give&Take - Share to unlock

Try Free AI Interview

Google logo

Google

Product Manager

Prepare for success with realistic, role-specific interview simulations.

Product Strategy
Meta logo

Meta

Product Manager

Prepare for success with realistic, role-specific interview simulations.

Product Sense
Meta logo

Meta

Engineering Manager

Prepare for success with realistic, role-specific interview simulations.

System Design
Amazon logo

Amazon

Data Scientist

Prepare for success with realistic, role-specific interview simulations.

Behavioral
  • Suppose we have a list of strings (words). Write a function to return the strings that are anagrams of another string in the list.
  • How would you go about writing a function that can find words in a list that are anagrams of another word in that same list?
  • Suppose I have a list of words. Is it possible for you to write a function that can pinpoint which of those words are anagrams of other words in that list?
  • Do you have experience writing functions that can find anagrams in a list of words? If so, could you provide an example?
  • Can you explain to me how you would create a function that can identify which words in a list are anagrams of other words in that same list?
  • As a programmer, could you create a function that can detect which strings within a list are anagrams of each other?
  • How would you go about coding a function that can locate the anagrams within a list of words?
  • What would be your approach to creating a function that can recognize which strings within a list are anagrams of other strings in that same list?
  • Could you give me an example of how you would write a function that can accurately identify which words in a list are anagrams of other words in that same list?
  • Can you write a function that identifies which strings in a list are anagrams of each other?

Interview question asked to Data Scientists interviewing at Mapbox, AppDynamics, Virta and others: Suppose we have a list of strings (words). Write a function to return the strings that are anagrams of another string in the list..