Data Interview Qs - Words from keyboard rows

InterviewQs

Words from keyboard rows

Python Arrays Data Structures Algorithms

Forward this email to a friend or colleague and challenge them to solve it.

Hi, 

Suppose you’re given a list of words. Using this list, return only the words that can be typed by using letters of the alphabet on a single row of a standard American “qwerty” keyboard (as shown below):

For example:

 input = ['Hello', 'Had', 'Rope', 'Smile']
    
output = ['Had', 'Rope']

Some additional notes:

  • You can use a character in the keyboard more than once
  • The input string will only contain letters of the alphabet

Solution will be written in Python for premium users.


 

You’ve accumulated 271 questions since joining our email list. Create a premium account to access detailed solutions to each problem (including this one) + our new Case studies.


Was this email forwarded to you? You can join our list here to receive questions

How did you like today's question?

15411 Boischatel, Montreal, QC, H9H1Y7, Canada
Don't want to get these emails anymore? We'll forgive you if you unsubscribe

Older messages

Selecting eggs from the grocery store

Wednesday, March 23, 2022

Statistics, Probability Theory, Bayes' Theorem, Conditional Probability, InterviewQs Selecting eggs from the grocery store Statistics Probability Theory Bayes' Theorem Conditional Probability

Flagging increasing stock prices in SQL

Monday, March 21, 2022

SQL, Database Querying, Window Function, Subquery, InterviewQs Flagging increasing stock prices in SQL SQL Database Querying Window Function Subquery Forward this email to a friend or colleague and

Large numbers in a raffle

Friday, March 18, 2022

Statistics, Probability Theory, Binomial, InterviewQs Large numbers in a raffle Statistics Probability Theory Binomial Forward this email to a friend or colleague and challenge them to solve it. Hi,

Happiness score correlation

Wednesday, March 16, 2022

Python, Arrays, Data Structures, Statistics, InterviewQs Happiness score correlation Python Arrays Data Structures Statistics Forward this email to a friend or colleague and challenge them to solve it.

Maximum revenue from a given ID

Monday, March 14, 2022

SQL, Database Querying, InterviewQs Maximum revenue from a given ID SQL Database Querying Forward this email to a friend or colleague and challenge them to solve it. Hi, Suppose you're given the

You Might Also Like

📈 Why Is My Ping So High While Gaming? — How to Keep Your Android From Overheating

Saturday, May 4, 2024

Also: Using ChatGPT to Craft a Resume, and More! How-To Geek Logo May 4, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your inbox by

JSK Daily for May 4, 2024

Saturday, May 4, 2024

JSK Daily for May 4, 2024 View this email in your browser A community curated daily e-mail of JavaScript news The Power of React's Virtual DOM: A Comprehensive Explanation Modern JavaScript

Daily Coding Problem: Problem #1431 [Medium]

Saturday, May 4, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by MongoDB. Given a list of elements, find the majority element, which appears more than

Ranked | The World's Top Media Franchises by All-Time Revenue 📊

Saturday, May 4, 2024

From Pokémon to Star Wars, some media franchises are globally recognizable. How do media franchises compare in terms of all-time revenue? View Online | Subscribe Presented by Voronoi: The App Where

Noonification: Read Code Like a Hacker With the SAST

Saturday, May 4, 2024

Top Tech Content sent at Noon! Get Algolia: AI Search that understands How are you, @newsletterest1? 🪐 What's happening in tech today, May 4, 2024? The HackerNoon Newsletter brings the HackerNoon

Weekend Reading — May the fourth

Saturday, May 4, 2024

This week we setup our new Minecraft server, play Spacewar, avoid burnout, wonder about Facebook AI spam, lose our passkeys, and claim stairs on the way back home. 😎 Labnotes (by Assaf Arkin) Weekend

Google lays off workers

Saturday, May 4, 2024

Plus: Tesla cans its Supercharger team and UnitedHealthcare reveals security lapses View this email online in your browser By Kyle Wiggers Saturday, May 4, 2024 Image Credits: Tomohiro Ohsumi / Getty

When It Rains, It Pours ☔

Saturday, May 4, 2024

Why the umbrella's design can't be beat. Here's a version for your browser. Hunting for the end of the long tail • May 04, 2024 Hey there, Ernie here with a refreshed piece about umbrellas

🐍 New Python tutorials on Real Python

Saturday, May 4, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Python's unittest: Writing Unit Tests for

Microsoft Outlook Flaw Exploited by Russia's APT28 to Hack Czech, German Entities

Saturday, May 4, 2024

THN Daily Updates Newsletter cover Webinar -- Data Security is Different at the Petabyte Scale Discover the secrets to securing fast-moving, massive data sets with insights from industry titans