Data Interview Qs - Finding greatest product pairs

InterviewQs

Finding greatest product pairs

Python Data Structures Arrays

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

Hi, 

Suppose you're given an array of n elements. Within this array, return the greatest value of a single element that is the product of two elements contained within the same array. If no such product exists, print N/A. Lastly, you can assume that the values within the array are positive integers.

For example:

    

Input: array = [2, 2, 4, 5, 9]

Output: 4 #(since 2 * 2 = 4)

Input: array = [1, 3, 4, 7, 10]

Output: 10 #(since 1 * 10 = 10)

Input: array = [3, 3, 4, 7, 10]

Output: N/A



 

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

Key phrases

Older messages

College interview results

Friday, November 12, 2021

SQL, Database Querying, InterviewQs College interview results SQL Database Querying Forward this email to a friend or colleague and challenge them to solve it. Hi, Suppose your team interviews

Counting capital letters

Wednesday, November 10, 2021

Python, String Manipulation, InterviewQs Counting capital letters Python String Manipulation Forward this email to a friend or colleague and challenge them to solve it. Hi, Using Python, write code

School mascots

Monday, November 8, 2021

Statistics, Probability Theory, Bayes' Theorem, Conditional Probability, InterviewQs School mascots Statistics Probability Theory Bayes' Theorem Conditional Probability Forward this email to a

Smallest, unrepresented integer

Friday, November 5, 2021

Python, Data Structures, Arrays, InterviewQs Smallest, unrepresented integer Python Data Structures Arrays Forward this email to a friend or colleague and challenge them to solve it. Hi, Given a sorted

eCommerce Margins

Wednesday, November 3, 2021

SQL, Database Querying, Rank Function, Window Function, InterviewQs eCommerce Margins SQL Database Querying Rank Function Window Function Forward this email to a friend or colleague and challenge them

Great observation

Monday, November 29, 2021

It may sound like the crypto space is having all the tongue-twisting fun lately with DAOs, web3, NFTs — but... Product Hunt Read in browser This newsletter is brought to you by Great observation It may

Celebrate Cyber Monday with a New Laptop

Monday, November 29, 2021

Did You Know?: Only four US states allow proxy marriages (a marriage where one party is not physically present)—Colorado, Kansas, Montana, and Texas. Among these, only Montana allows double-proxy

Daily Coding Problem: Problem #602 [Easy]

Monday, November 29, 2021

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Suppose you are given two lists of n points, one list p 1 , p 2 , ..., p n on

Cultivate. Optimize. Develop. Enhance.

Monday, November 29, 2021

This newsletter is sponsored by Front Range Systems.Every effective team leader wants to ensure their Cultivate. Optimize. Develop. Enhance. By Code Story • Issue #67 • View online This newsletter is

Eavesdropping Bugs in MediaTek Chips Affect 37% of All Smartphones and IoT Globally

Monday, November 29, 2021

The Hacker News Daily Updates Newsletter cover Improving Health Outcomes with AIoT Human motion digitization for connected remote clinical assessment Download Now Sponsored LATEST NEWS Nov 29, 2021 4

Noonification: Lessons Straight From the Amazon Playbook

Monday, November 29, 2021

Top Tech Content sent at Noon Free eBook: Understanding Terraform The Noonification: Your Daily Dose of Electrifying Tech Content at Noon, by HackerNoon Hey there, 🪐 What's happening in tech this

Becoming a better decision-maker

Monday, November 29, 2021

If you're responsible for making decisions, you're also responsible for explaining the thinking behind them. Hiten's Pick Being a Responsible Decision-Maker I'm with Ray Dalio—if you

Rolling back to Windows 10? Hurry!

Monday, November 29, 2021

Cyber Monday tech deals...This metaverse threat ZDNet Facebook Twitter LinkedIn ZDNet Tech Today November 29, 2021 placeholder Cloud computing has won. But we still don't know what that means READ

⚡️LAST DAY: 30% OFF⚡️

Monday, November 29, 2021

for the Premium subscription ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Cloud computing has won. But we still don't know what that means

Monday, November 29, 2021

Windows 11: Here's how to get Microsoft's free operating system update ZDNet Facebook Twitter LinkedIn ZDNet Insights November 29, 2021 Cloud computing has won. But we still don't know what