Data Interview Qs - Picking a bike lock

InterviewQs

Picking a bike lock

Python Arrays Data Structures Algorithms

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

Hi, 

Suppose you left your bike outside a coffee shop while you were working, and someone accidentally put a lock on it. The lock consists of 3 separate tumblers, and for simplicity, each tumbler only has 3 distinct letters in it. The lock can be represented in the following array:

the_lock = ['ABC', 'FDG', 'WYQ']

You're thinking about trying to crack the lock (rather than calling for help or walking home) -- given this information write a function to return all possible combinations that can be made by the lock.

Solution will be written in Python for premium users.


 

You’ve accumulated 264 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

String subsequences

Monday, March 7, 2022

Python, Arrays, Data Structures, Algorithms, InterviewQs String subsequences Python Arrays Data Structures Algorithms Forward this email to a friend or colleague and challenge them to solve it. Hi,

Dollars in a box

Friday, March 4, 2022

Statistics, Probabliity Theory, Conditional Probability, InterviewQs Dollars in a box Statistics Probabliity Theory Conditional Probability Forward this email to a friend or colleague and challenge

Reaching out to past candidates

Wednesday, March 2, 2022

SQL, Database Querying, Window Function, Subquery, InterviewQs Reaching out to past candidates SQL Database Querying Window Function Subquery Forward this email to a friend or colleague and challenge

Tallying triangles

Monday, February 28, 2022

Python, Arrays, Data Structures, Algorithms, InterviewQs Tallying triangles Python Arrays Data Structures Algorithms Forward this email to a friend or colleague and challenge them to solve it. Hi,

Coins from a row - a game

Friday, February 25, 2022

Python, Arrays, Data Structures, Algorithms, InterviewQs Coins from a row - a game Python Arrays Data Structures Algorithms Forward this email to a friend or colleague and challenge them to solve it.

You Might Also Like

This Week's Daily Tip Roundup

Sunday, May 5, 2024

Missed some of this week's tips? No problem. We've compiled all of them here in one convenient place for you to enjoy. Happy learning! iPhoneLife Logo View In Browser Your Tip of the Day is

NativePHP now supports Windows! - №511

Sunday, May 5, 2024

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Maybe Two Big Research Breakthroughs or Maybe Nothing

Sunday, May 5, 2024

Multi-token prediction and a multi-layer perceptron alternative. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Dot Leap 2024-8: Paragraph + DGCM = decentralized newsletter?

Sunday, May 5, 2024

Thank you for taking the Dot Leap!We cover Polkadot, Kusama, Polkadot-SDK, and all related Web 3.0 projects! Want your content featured? X ... ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Card Buddy/Bread Book/Pocket Translator

Sunday, May 5, 2024

Recomendo - issue #409 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Kotlin Weekly #405

Sunday, May 5, 2024

ISSUE #405 5th of May 2024 Hello Kotliners! We're already in May and getting closer to KotlinConf. Any predictions for the keynote announcements? Check out our selection of links for the upcoming

📈 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