Data Interview Qs - Print common characters using Python

InterviewQs

Print common characters using Python

Python String Manipulation

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

Given two strings, write code to print overlapping letters in alphabetical order.

For example:

    

#Given the following strings:

str1 = 'card'

str2 = 'shark'

#Your overlapping letters would be 'a' (1x) and 'r' (1x),

#and they just happen to be in alphabetical order already,

#so your code would return:

'ar'

If there is no overlap between the two strings, you can print 'no overlap'.

Solution will be written in Python for premium users.



 

Congratulations! You’ve accumulated 150 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

Calculating monthly revenue growth in SQL

Wednesday, June 16, 2021

SQL, Database Querying, Lag Function, InterviewQs Calculating monthly revenue growth in SQL SQL Database Querying Lag Function Forward this email to a friend or colleague and challenge them to solve it

Volume weighted price average (VWAP)

Monday, June 14, 2021

Data Analysis, Python, Pandas, Data Manipulation, Normalization, External Dataset, InterviewQs Volume weighted price average (VWAP) Data Analysis Python Pandas Data Manipulation Normalization External

Testing user conversion

Friday, June 11, 2021

Data Analysis, Python, Pandas, Statistics, T-test, External Dataset, InterviewQs Testing user conversion Data Analysis Python Pandas Statistics T-test External Dataset Forward this email to a friend or

Multiply array values, return the remainder

Wednesday, June 9, 2021

Python, Data Structures, Arrays, InterviewQs Multiply array values, return the remainder Python Data Structures Arrays Forward this email to a friend or colleague and challenge them to solve it.

Calculating monthly sales growth in SQL

Monday, June 7, 2021

SQL, Database Querying, Lag Function, Window Function, InterviewQs Calculating monthly sales growth in SQL SQL Database Querying Lag Function Window Function Forward this email to a friend or colleague

You Might Also Like

Noonification: HackerNoons Emoji Credibility Indicators are Live on GitHub and Figma!

Tuesday, April 16, 2024

Top Tech Content sent at Noon! How are you, @newsletterest1? 🪐 What's happening in tech this week: The Noonification by HackerNoon has got you covered with fresh content from our top 5 stories of

We’re LIVE! 🤖

Tuesday, April 16, 2024

We're up to this slide [IMAGE] ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Issue #49: Juno by Alex Staravoitau

Tuesday, April 16, 2024

Today, we're looking at Juno by Alex Staravoitau. Juno offers a comprehensive Python development environment for both iPad and iPhone, designed to meet all your coding needs. It features

Microsoft’s new $1.5B AI deal is more political than you think

Tuesday, April 16, 2024

Microsoft's investment in the UAE's G42 has broad geopolitical implications... View this email online in your browser By Alex Wilhelm Tuesday, April 16, 2024 Welcome to TechCrunch AM! This

GPT-4 tops chatbot leaderboard again

Tuesday, April 16, 2024

Slack alternatives; Best Samsung phone; Insta360's new camera ZDNET ZDNET Tech Today - US April 16, 2024 placeholder GPT-4 Turbo reclaims 'best AI model' crown from Anthropic's Claude 3

LW 129 - Checkout Branding and Extensions

Tuesday, April 16, 2024

Checkout Branding and Extensions Shopify Development news and articles I've been doing a deep dive on checkout extensions and branding recently and I've decided to include links to some keys

Invitation: AI Demo Day (3rd and final)

Tuesday, April 16, 2024

3 hours til last call ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

📢 .NET 8 Series Soon!

Tuesday, April 16, 2024

Starting from Next Week! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Samsung is, once again, shipping the most phones in the world

Tuesday, April 16, 2024

The Morning After It's Tuesday, April 16, 2024. Samsung reportedly shipped 60.1 million smartphone units worldwide in Q1, representing 20.8 percent of the global market share — and first place.

Intel and Lenovo BMCs Contain Unpatched Lighttpd Server Flaw

Tuesday, April 16, 2024

THN Daily Updates Newsletter cover Webinar -- The Future of Threat Hunting Is Powered by Generative AI From Data to Defense: Step Into the Next Era of Cybersecurity with CensysGPT Download Now