Tips for solving leetcode codings interview problems
If input array is sorted then
- Binary search
- Two pointers
If asked for all permutations/subsets then
- Backtracking
If given a tree then
- DFS
- BFS
If given a graph then
- DFS
- BFS
If given a linked list then
- Two pointers
If recursion is banned then
- Stack
If must solve in-place then
- Swap corresponding values
- Store one or more different values in the same pointer
If asked for maximum/minimum subarray/subset/options then
- Dynamic programming
If asked for top/least K items then
- Heap
If asked for common strings then
- Map
- Trie
Else
- Map/Set for O(1) time & O(n) space
- Sort input for O(nlogn) time and O(1) space
If input array is sorted then
- Binary search
- Two pointers
If asked for all permutations/subsets then
- Backtracking
If given a tree then
- DFS
- BFS
If given a graph then
- DFS
- BFS
If given a linked list then
- Two pointers
If recursion is banned then
- Stack
If must solve in-place then
- Swap corresponding values
- Store one or more different values in the same pointer
If asked for maximum/minimum subarray/subset/options then
- Dynamic programming
If asked for top/least K items then
- Heap
If asked for common strings then
- Map
- Trie
Else
- Map/Set for O(1) time & O(n) space
- Sort input for O(nlogn) time and O(1) space
👍4
Free Programming and Data Analytics Resources 👇👇
✅ Data science and Data Analytics Free Courses by Google
https://developers.google.com/edu/python/introduction
https://grow.google/intl/en_in/data-analytics-course/?tab=get-started-in-the-field
https://cloud.google.com/data-science?hl=en
https://developers.google.com/machine-learning/crash-course
https://t.iss.one/datasciencefun/1371
🔍 Free Data Analytics Courses by Microsoft
1. Get started with microsoft dataanalytics
https://learn.microsoft.com/en-us/training/paths/data-analytics-microsoft/
2. Introduction to version control with git
https://learn.microsoft.com/en-us/training/paths/intro-to-vc-git/
3. Microsoft azure ai fundamentals
https://learn.microsoft.com/en-us/training/paths/get-started-with-artificial-intelligence-on-azure/
🤖 Free AI Courses by Microsoft
1. Fundamentals of AI by Microsoft
https://learn.microsoft.com/en-us/training/paths/get-started-with-artificial-intelligence-on-azure/
2. Introduction to AI with python by Harvard.
https://pll.harvard.edu/course/cs50s-introduction-artificial-intelligence-python
📚 Useful Resources for the Programmers
Data Analyst Roadmap
https://t.iss.one/sqlspecialist/94
Free C course from Microsoft
https://docs.microsoft.com/en-us/cpp/c-language/?view=msvc-170&viewFallbackFrom=vs-2019
Interactive React Native Resources
https://fullstackopen.com/en/part10
Python for Data Science and ML
https://t.iss.one/datasciencefree/68
Ethical Hacking Bootcamp
https://t.iss.one/ethicalhackingtoday/3
Unity Documentation
https://docs.unity3d.com/Manual/index.html
Advanced Javascript concepts
https://t.iss.one/Programming_experts/72
Oops in Java
https://nptel.ac.in/courses/106105224
Intro to Version control with Git
https://docs.microsoft.com/en-us/learn/modules/intro-to-git/0-introduction
Python Data Structure and Algorithms
https://t.iss.one/programming_guide/76
Free PowerBI course by Microsoft
https://docs.microsoft.com/en-us/users/microsoftpowerplatform-5978/collections/k8xidwwnzk1em
Data Structures Interview Preparation
https://t.iss.one/crackingthecodinginterview/309?single
🍻 Free Programming Courses by Microsoft
❯ JavaScript
https://learn.microsoft.com/training/paths/web-development-101/
❯ TypeScript
https://learn.microsoft.com/training/paths/build-javascript-applications-typescript/
❯ C#
https://learn.microsoft.com/users/dotnet/collections/yz26f8y64n7k07
Join @free4unow_backup for more free resources.
ENJOY LEARNING 👍👍
✅ Data science and Data Analytics Free Courses by Google
https://developers.google.com/edu/python/introduction
https://grow.google/intl/en_in/data-analytics-course/?tab=get-started-in-the-field
https://cloud.google.com/data-science?hl=en
https://developers.google.com/machine-learning/crash-course
https://t.iss.one/datasciencefun/1371
🔍 Free Data Analytics Courses by Microsoft
1. Get started with microsoft dataanalytics
https://learn.microsoft.com/en-us/training/paths/data-analytics-microsoft/
2. Introduction to version control with git
https://learn.microsoft.com/en-us/training/paths/intro-to-vc-git/
3. Microsoft azure ai fundamentals
https://learn.microsoft.com/en-us/training/paths/get-started-with-artificial-intelligence-on-azure/
🤖 Free AI Courses by Microsoft
1. Fundamentals of AI by Microsoft
https://learn.microsoft.com/en-us/training/paths/get-started-with-artificial-intelligence-on-azure/
2. Introduction to AI with python by Harvard.
https://pll.harvard.edu/course/cs50s-introduction-artificial-intelligence-python
📚 Useful Resources for the Programmers
Data Analyst Roadmap
https://t.iss.one/sqlspecialist/94
Free C course from Microsoft
https://docs.microsoft.com/en-us/cpp/c-language/?view=msvc-170&viewFallbackFrom=vs-2019
Interactive React Native Resources
https://fullstackopen.com/en/part10
Python for Data Science and ML
https://t.iss.one/datasciencefree/68
Ethical Hacking Bootcamp
https://t.iss.one/ethicalhackingtoday/3
Unity Documentation
https://docs.unity3d.com/Manual/index.html
Advanced Javascript concepts
https://t.iss.one/Programming_experts/72
Oops in Java
https://nptel.ac.in/courses/106105224
Intro to Version control with Git
https://docs.microsoft.com/en-us/learn/modules/intro-to-git/0-introduction
Python Data Structure and Algorithms
https://t.iss.one/programming_guide/76
Free PowerBI course by Microsoft
https://docs.microsoft.com/en-us/users/microsoftpowerplatform-5978/collections/k8xidwwnzk1em
Data Structures Interview Preparation
https://t.iss.one/crackingthecodinginterview/309?single
🍻 Free Programming Courses by Microsoft
❯ JavaScript
https://learn.microsoft.com/training/paths/web-development-101/
❯ TypeScript
https://learn.microsoft.com/training/paths/build-javascript-applications-typescript/
❯ C#
https://learn.microsoft.com/users/dotnet/collections/yz26f8y64n7k07
Join @free4unow_backup for more free resources.
ENJOY LEARNING 👍👍
👍5❤2
Ansible From Beginner to Pro.pdf
5.2 MB
Ansible
Michael Heap, 2016
Michael Heap, 2016
Advanced Concepts in Operating Systems (Indian Edition).pdf
331.2 MB
Advanced Concepts in Operating Systems
Mukesh Singhal, 2008 (scanned)
Mukesh Singhal, 2008 (scanned)
👍4
The Data Science skill no one talks about...
Every aspiring data scientist I talk to thinks their job starts when someone else gives them:
1. a dataset, and
2. a clearly defined metric to optimize for, e.g. accuracy
But it doesn’t.
It starts with a business problem you need to understand, frame, and solve. This is the key data science skill that separates senior from junior professionals.
Let’s go through an example.
Example
Imagine you are a data scientist at Uber. And your product lead tells you:
We say that a user churns when she decides to stop using Uber.
But why?
There are different reasons why a user would stop using Uber. For example:
1. “Lyft is offering better prices for that geo” (pricing problem)
2. “Car waiting times are too long” (supply problem)
3. “The Android version of the app is very slow” (client-app performance problem)
You build this list ↑ by asking the right questions to the rest of the team. You need to understand the user’s experience using the app, from HER point of view.
Typically there is no single reason behind churn, but a combination of a few of these. The question is: which one should you focus on?
This is when you pull out your great data science skills and EXPLORE THE DATA 🔎.
You explore the data to understand how plausible each of the above explanations is. The output from this analysis is a single hypothesis you should consider further. Depending on the hypothesis, you will solve the data science problem differently.
For example…
Scenario 1: “Lyft Is Offering Better Prices” (Pricing Problem)
One solution would be to detect/predict the segment of users who are likely to churn (possibly using an ML Model) and send personalized discounts via push notifications. To test your solution works, you will need to run an A/B test, so you will split a percentage of Uber users into 2 groups:
The A group. No user in this group will receive any discount.
The B group. Users from this group that the model thinks are likely to churn, will receive a price discount in their next trip.
You could add more groups (e.g. C, D, E…) to test different pricing points.
1. Translating business problems into data science problems is the key data science skill that separates a senior from a junior data scientist.
2. Ask the right questions, list possible solutions, and explore the data to narrow down the list to one.
3. Solve this one data science problem
Every aspiring data scientist I talk to thinks their job starts when someone else gives them:
1. a dataset, and
2. a clearly defined metric to optimize for, e.g. accuracy
But it doesn’t.
It starts with a business problem you need to understand, frame, and solve. This is the key data science skill that separates senior from junior professionals.
Let’s go through an example.
Example
Imagine you are a data scientist at Uber. And your product lead tells you:
👩💼: “We want to decrease user churn by 5% this quarter”
We say that a user churns when she decides to stop using Uber.
But why?
There are different reasons why a user would stop using Uber. For example:
1. “Lyft is offering better prices for that geo” (pricing problem)
2. “Car waiting times are too long” (supply problem)
3. “The Android version of the app is very slow” (client-app performance problem)
You build this list ↑ by asking the right questions to the rest of the team. You need to understand the user’s experience using the app, from HER point of view.
Typically there is no single reason behind churn, but a combination of a few of these. The question is: which one should you focus on?
This is when you pull out your great data science skills and EXPLORE THE DATA 🔎.
You explore the data to understand how plausible each of the above explanations is. The output from this analysis is a single hypothesis you should consider further. Depending on the hypothesis, you will solve the data science problem differently.
For example…
Scenario 1: “Lyft Is Offering Better Prices” (Pricing Problem)
One solution would be to detect/predict the segment of users who are likely to churn (possibly using an ML Model) and send personalized discounts via push notifications. To test your solution works, you will need to run an A/B test, so you will split a percentage of Uber users into 2 groups:
The A group. No user in this group will receive any discount.
The B group. Users from this group that the model thinks are likely to churn, will receive a price discount in their next trip.
You could add more groups (e.g. C, D, E…) to test different pricing points.
In a nutshell
1. Translating business problems into data science problems is the key data science skill that separates a senior from a junior data scientist.
2. Ask the right questions, list possible solutions, and explore the data to narrow down the list to one.
3. Solve this one data science problem
👍7❤2🥰1
FREE FREE FREE
10 Books on Data Science & Data Analysis will be posted on this channel daily basis
Book 1. Python for Data Analysis
Publisher: O'Reilly
wesmckinney.com/book/
Give it a like if you want me to continue ❤️
10 Books on Data Science & Data Analysis will be posted on this channel daily basis
Book 1. Python for Data Analysis
Publisher: O'Reilly
wesmckinney.com/book/
Give it a like if you want me to continue ❤️
👍24❤13
❤9👍1
Coding & Data Science Resources
2. Fundamentals of Data Visualization Publisher: O'Reilly clauswilke.com/dataviz/ Like for more ❤️
Telegram
Coding & Data Science Resources
FREE FREE FREE
10 Books on Data Science & Data Analysis will be posted on this channel daily basis
Book 1. Python for Data Analysis
Publisher: O'Reilly
wesmckinney.com/book/
Give it a like if you want me to continue ❤️
10 Books on Data Science & Data Analysis will be posted on this channel daily basis
Book 1. Python for Data Analysis
Publisher: O'Reilly
wesmckinney.com/book/
Give it a like if you want me to continue ❤️
👍5