In other words, the function should not use an auxiliary array to do the work.
11 short programming problems to stretch your imagination and make sure you are staying on your toes.
(Starting with the simple ones, they get more fun as you move towards the end.)
🧵👇
In other words, the function should not use an auxiliary array to do the work.
Only one of the numbers will appear twice.
There could be more than one value duplicated. You should remove all of them leaving a single copy of the value.
If you want more content on software engineering, machine learning, and adjacent topics, give me a follow. I post threads like this every week. You can enjoy more of this content here: @svpino.
More from Santiago
You gotta think about this one carefully!
Imagine you go to the doctor and get tested for a rare disease (only 1 in 10,000 people get it.)
The test is 99% effective in detecting both sick and healthy people.
Your test comes back positive.
Are you really sick? Explain below 👇
The most complete answer from every reply so far is from Dr. Lena. Thanks for taking the time and going through
You can get the answer using Bayes' theorem, but let's try to come up with it in a different —maybe more intuitive— way.
👇
Here is what we know:
- Out of 10,000 people, 1 is sick
- Out of 100 sick people, 99 test positive
- Out of 100 healthy people, 99 test negative
Assuming 1 million people take the test (including you):
- 100 of them are sick
- 999,900 of them are healthy
👇
Let's now test both groups, starting with the 100 people sick:
▫️ 99 of them will be diagnosed (correctly) as sick (99%)
▫️ 1 of them is going to be diagnosed (incorrectly) as healthy (1%)
👇
Imagine you go to the doctor and get tested for a rare disease (only 1 in 10,000 people get it.)
The test is 99% effective in detecting both sick and healthy people.
Your test comes back positive.
Are you really sick? Explain below 👇
The most complete answer from every reply so far is from Dr. Lena. Thanks for taking the time and going through
Really doesn\u2019t fit well in a tweet. pic.twitter.com/xN0pAyniFS
— Dr. Lena Sugar \U0001f3f3\ufe0f\u200d\U0001f308\U0001f1ea\U0001f1fa\U0001f1ef\U0001f1f5 (@_jvs) February 18, 2021
You can get the answer using Bayes' theorem, but let's try to come up with it in a different —maybe more intuitive— way.
👇
Here is what we know:
- Out of 10,000 people, 1 is sick
- Out of 100 sick people, 99 test positive
- Out of 100 healthy people, 99 test negative
Assuming 1 million people take the test (including you):
- 100 of them are sick
- 999,900 of them are healthy
👇
Let's now test both groups, starting with the 100 people sick:
▫️ 99 of them will be diagnosed (correctly) as sick (99%)
▫️ 1 of them is going to be diagnosed (incorrectly) as healthy (1%)
👇
10 machine learning YouTube videos.
On libraries, algorithms, and tools.
(If you want to start with machine learning, having a comprehensive set of hands-on tutorials you can always refer to is fundamental.)
🧵👇
1⃣ Notebooks are a fantastic way to code, experiment, and communicate your results.
Take a look at @CoreyMSchafer's fantastic 30-minute tutorial on Jupyter Notebooks.
https://t.co/HqE9yt8TkB
2⃣ The Pandas library is the gold-standard to manipulate structured data.
Check out @joejamesusa's "Pandas Tutorial. Intro to DataFrames."
https://t.co/aOLh0dcGF5
3⃣ Data visualization is key for anyone practicing machine learning.
Check out @blondiebytes's "Learn Matplotlib in 6 minutes" tutorial.
https://t.co/QxjsODI1HB
4⃣ Another trendy data visualization library is Seaborn.
@NewThinkTank put together "Seaborn Tutorial 2020," which I highly recommend.
https://t.co/eAU5NBucbm
On libraries, algorithms, and tools.
(If you want to start with machine learning, having a comprehensive set of hands-on tutorials you can always refer to is fundamental.)
🧵👇
1⃣ Notebooks are a fantastic way to code, experiment, and communicate your results.
Take a look at @CoreyMSchafer's fantastic 30-minute tutorial on Jupyter Notebooks.
https://t.co/HqE9yt8TkB
2⃣ The Pandas library is the gold-standard to manipulate structured data.
Check out @joejamesusa's "Pandas Tutorial. Intro to DataFrames."
https://t.co/aOLh0dcGF5
3⃣ Data visualization is key for anyone practicing machine learning.
Check out @blondiebytes's "Learn Matplotlib in 6 minutes" tutorial.
https://t.co/QxjsODI1HB
4⃣ Another trendy data visualization library is Seaborn.
@NewThinkTank put together "Seaborn Tutorial 2020," which I highly recommend.
https://t.co/eAU5NBucbm
More from Tech
On Wednesday, The New York Times published a blockbuster report on the failures of Facebook’s management team during the past three years. It's.... not flattering, to say the least. Here are six follow-up questions that merit more investigation. 1/
1) During the past year, most of the anger at Facebook has been directed at Mark Zuckerberg. The question now is whether Sheryl Sandberg, the executive charged with solving Facebook’s hardest problems, has caused a few too many of her own. 2/ https://t.co/DTsc3g0hQf
2) One of the juiciest sentences in @nytimes’ piece involves a research group called Definers Public Affairs, which Facebook hired to look into the funding of the company’s opposition. What other tech company was paying Definers to smear Apple? 3/ https://t.co/DTsc3g0hQf
3) The leadership of the Democratic Party has, generally, supported Facebook over the years. But as public opinion turns against the company, prominent Democrats have started to turn, too. What will that relationship look like now? 4/
4) According to the @nytimes, Facebook worked to paint its critics as anti-Semitic, while simultaneously working to spread the idea that George Soros was supporting its critics—a classic tactic of anti-Semitic conspiracy theorists. What exactly were they trying to do there? 5/
1) During the past year, most of the anger at Facebook has been directed at Mark Zuckerberg. The question now is whether Sheryl Sandberg, the executive charged with solving Facebook’s hardest problems, has caused a few too many of her own. 2/ https://t.co/DTsc3g0hQf
2) One of the juiciest sentences in @nytimes’ piece involves a research group called Definers Public Affairs, which Facebook hired to look into the funding of the company’s opposition. What other tech company was paying Definers to smear Apple? 3/ https://t.co/DTsc3g0hQf
3) The leadership of the Democratic Party has, generally, supported Facebook over the years. But as public opinion turns against the company, prominent Democrats have started to turn, too. What will that relationship look like now? 4/
4) According to the @nytimes, Facebook worked to paint its critics as anti-Semitic, while simultaneously working to spread the idea that George Soros was supporting its critics—a classic tactic of anti-Semitic conspiracy theorists. What exactly were they trying to do there? 5/