Today's topic is Automation with Python. You can do many cool stuffs like spamming your friend's inbox, wishing your friend, replying to the posts on facebook wall etc.
Here are some resources from where you can learn automation in Python.
Opensource github projects:
1. https://github.com/ShivajiReddy/WhatsApp-Using-Python (Easy)
2. https://github.com/umangahuja1/Youtube/tree/master/Whatsapp%20Automation
2. https://github.com/draguve/WhatsSpam (Easy)
3. https://github.com/shauryauppal/PyWhatsapp (Slightly advanced)
Youtube tutorial:
1. https://www.youtube.com/watch?v=5hr0IdVM7Qg
2. https://www.youtube.com/watch?v=98OewpG8-yw
Documentation of the libraries you are most likely going to use in above projects:
1. Requests: https://requests.readthedocs.io/en/master/
2. Selenium: https://selenium.dev/documentation/en/
Happy Coding (thecodingbot.com,t.me/thecodingbotdaily)
Here are some resources from where you can learn automation in Python.
Opensource github projects:
1. https://github.com/ShivajiReddy/WhatsApp-Using-Python (Easy)
2. https://github.com/umangahuja1/Youtube/tree/master/Whatsapp%20Automation
2. https://github.com/draguve/WhatsSpam (Easy)
3. https://github.com/shauryauppal/PyWhatsapp (Slightly advanced)
Youtube tutorial:
1. https://www.youtube.com/watch?v=5hr0IdVM7Qg
2. https://www.youtube.com/watch?v=98OewpG8-yw
Documentation of the libraries you are most likely going to use in above projects:
1. Requests: https://requests.readthedocs.io/en/master/
2. Selenium: https://selenium.dev/documentation/en/
Happy Coding (thecodingbot.com,t.me/thecodingbotdaily)
Printing the elements of a vector in reverse order
Problem Statement Given a vector, print its elements in reverse order. Note: We are not allowed to change the structure of the vector. For example: Input: {1,2,44,33} Output: {33,44,2,1} Input: {99,11,33,88} Output: {88,33,11,99} Solution In this tutorial, we will see different ways to print the vector in reverse order. Approach 1 – Backward looping The most obvious approach is to…
https://thecodingbot.com/printing-the-elements-of-a-vector-in-reverse-order/
Problem Statement Given a vector, print its elements in reverse order. Note: We are not allowed to change the structure of the vector. For example: Input: {1,2,44,33} Output: {33,44,2,1} Input: {99,11,33,88} Output: {88,33,11,99} Solution In this tutorial, we will see different ways to print the vector in reverse order. Approach 1 – Backward looping The most obvious approach is to…
https://thecodingbot.com/printing-the-elements-of-a-vector-in-reverse-order/
The Coding Bot
Printing the elements of a vector in reverse order - The Coding Bot
In this tutorial, we will learn how we can print the values of a vector in reverse order in C++
It's sunday and we talk about miscellaneous stuff today.
Today's topic is C++ best practices.
Here are the top resources for your learning:
Books:
1. Cpp best practices(https://lefticus.gitbooks.io/cpp-best-practices/)[Intermediate-Advanced],
2. C++ notes for professional, 600+ pages of tricks and tips for developer(https://books.goalkicker.com/CPlusPlusBook/)
Youtube:
1.Jason Turner (https://www.youtube.com/user/lefticus1)
2.CppCon (https://www.youtube.com/user/CppCon)
If you don't know c++ and want to start fresh:
1.C++ 10 hours course!!!: https://www.youtube.com/watch?v=_bYFu9mBnr4&list=PL_c9BZzLwBRJVJsIfe97ey45V4LP_HXiG (Tip: To find the contents, scroll down to comment section)
2.Freecodecamp 4 hour beginner tutorial: https://www.youtube.com/watch?v=vLnPwxZdW4Y
3.The newboston c++ playlist: https://www.youtube.com/watch?v=tvC1WCdV1XU&list=PLAE85DE8440AA6B83
4.The cherno's youtube playlist : https://www.youtube.com/watch?v=18c3MTX0PK0&list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb
Open source github projects:
1.VLC, built completely on c++ : https://github.com/videolan/vlc
2.Tenserflow, built using c++ : https://github.com/tensorflow/tensorflow
3.Electron framework for cross platform desktop application is built on the top of c++: https://github.com/electron/electron
Note: The open source projects are really advanced and it is not expected that an indivdual can implement one like them easily. Please just refer them for best coding practices and other learnings.
Happy coding(thecodingbot.com,t.me/thecodingbotdaily)
Today's topic is C++ best practices.
Here are the top resources for your learning:
Books:
1. Cpp best practices(https://lefticus.gitbooks.io/cpp-best-practices/)[Intermediate-Advanced],
2. C++ notes for professional, 600+ pages of tricks and tips for developer(https://books.goalkicker.com/CPlusPlusBook/)
Youtube:
1.Jason Turner (https://www.youtube.com/user/lefticus1)
2.CppCon (https://www.youtube.com/user/CppCon)
If you don't know c++ and want to start fresh:
1.C++ 10 hours course!!!: https://www.youtube.com/watch?v=_bYFu9mBnr4&list=PL_c9BZzLwBRJVJsIfe97ey45V4LP_HXiG (Tip: To find the contents, scroll down to comment section)
2.Freecodecamp 4 hour beginner tutorial: https://www.youtube.com/watch?v=vLnPwxZdW4Y
3.The newboston c++ playlist: https://www.youtube.com/watch?v=tvC1WCdV1XU&list=PLAE85DE8440AA6B83
4.The cherno's youtube playlist : https://www.youtube.com/watch?v=18c3MTX0PK0&list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb
Open source github projects:
1.VLC, built completely on c++ : https://github.com/videolan/vlc
2.Tenserflow, built using c++ : https://github.com/tensorflow/tensorflow
3.Electron framework for cross platform desktop application is built on the top of c++: https://github.com/electron/electron
Note: The open source projects are really advanced and it is not expected that an indivdual can implement one like them easily. Please just refer them for best coding practices and other learnings.
Happy coding(thecodingbot.com,t.me/thecodingbotdaily)
lefticus.gitbooks.io
Introduction · C++ Best Practices
Insert a node in a sorted linked list
Problem Statement Given a sorted linked list and a node, insert the node in the linked list such that the linked list still remain sorted. For Example Input: 2 -> 8 -> 12 -> 41 ->NULL, val = 30 Output: 2 -> 8 -> 12 -> 30 ->41 -> NULL. Solutions Approach 1: Iterative Approach…
https://thecodingbot.com/insert-a-node-in-a-sorted-linked-list/
Problem Statement Given a sorted linked list and a node, insert the node in the linked list such that the linked list still remain sorted. For Example Input: 2 -> 8 -> 12 -> 41 ->NULL, val = 30 Output: 2 -> 8 -> 12 -> 30 ->41 -> NULL. Solutions Approach 1: Iterative Approach…
https://thecodingbot.com/insert-a-node-in-a-sorted-linked-list/
The Coding Bot
Insert a node in a sorted linked list - The Coding Bot
Problem Statement: Given a sorted linked list and a node, insert the node in the linked list such that the linked list still remain sorted.
Today is Monday and we talk about machine learning.
Here are some good research papers/blogs that will help you to understand different parts of machine learning better:
Data Cleaning:
1. https://towardsdatascience.com/the-art-of-cleaning-your-data-b713dbd49726
2. https://www.dataquest.io/blog/machine-learning-preparing-data/
3. Missing data treatement: https://www.kaggle.com/rtatman/data-cleaning-challenge-handling-missing-values
4. Quick guide on how to clean data(beginners): https://www.analyticsvidhya.com/blog/2015/06/quick-guide-text-data-cleaning-python/
Algorithm selection:
1. Slightly advance: https://hackernoon.com/choosing-the-right-machine-learning-algorithm-68126944ce1f
2. Valueable Discussion on kaggle: https://www.kaggle.com/getting-started/26947
3. Cheatsheet from Microsoft: http://download.microsoft.com/download/A/6/1/A613E11E-8F9C-424A-B99D-65344785C288/microsoft-machine-learning-algorithm-cheat-sheet-v6.pdf
4. Pros and Cons for each ML Algorithm(helps us to decide better Algorithm for our dataset):https://elitedatascience.com/machine-learning-algorithms
Hyper Parameter tuning:
1. https://www.jeremyjordan.me/hyperparameter-tuning/
2. https://www.datacamp.com/community/tutorials/parameter-optimization-machine-learning-models
3. Pretty decent guide: https://www.kaggle.com/willkoehrsen/intro-to-model-tuning-grid-and-random-search
4. Optimizing Hyper parameters: https://www.kaggle.com/c/santander-customer-transaction-prediction/discussion/89320
Exploratory Data Analysis:
1. https://www.kaggle.com/anokas/exploratory-data-analysis-4
2. Follow all the kernels from this guy : https://www.kaggle.com/anokas
A guide for almost all ML problems, steps from start till end:
http://blog.kaggle.com/2016/07/21/approaching-almost-any-machine-learning-problem-abhishek-thakur/
Happy Machine Learning(thecodingbot.com, t.me/thecodingbotdaily)
Here are some good research papers/blogs that will help you to understand different parts of machine learning better:
Data Cleaning:
1. https://towardsdatascience.com/the-art-of-cleaning-your-data-b713dbd49726
2. https://www.dataquest.io/blog/machine-learning-preparing-data/
3. Missing data treatement: https://www.kaggle.com/rtatman/data-cleaning-challenge-handling-missing-values
4. Quick guide on how to clean data(beginners): https://www.analyticsvidhya.com/blog/2015/06/quick-guide-text-data-cleaning-python/
Algorithm selection:
1. Slightly advance: https://hackernoon.com/choosing-the-right-machine-learning-algorithm-68126944ce1f
2. Valueable Discussion on kaggle: https://www.kaggle.com/getting-started/26947
3. Cheatsheet from Microsoft: http://download.microsoft.com/download/A/6/1/A613E11E-8F9C-424A-B99D-65344785C288/microsoft-machine-learning-algorithm-cheat-sheet-v6.pdf
4. Pros and Cons for each ML Algorithm(helps us to decide better Algorithm for our dataset):https://elitedatascience.com/machine-learning-algorithms
Hyper Parameter tuning:
1. https://www.jeremyjordan.me/hyperparameter-tuning/
2. https://www.datacamp.com/community/tutorials/parameter-optimization-machine-learning-models
3. Pretty decent guide: https://www.kaggle.com/willkoehrsen/intro-to-model-tuning-grid-and-random-search
4. Optimizing Hyper parameters: https://www.kaggle.com/c/santander-customer-transaction-prediction/discussion/89320
Exploratory Data Analysis:
1. https://www.kaggle.com/anokas/exploratory-data-analysis-4
2. Follow all the kernels from this guy : https://www.kaggle.com/anokas
A guide for almost all ML problems, steps from start till end:
http://blog.kaggle.com/2016/07/21/approaching-almost-any-machine-learning-problem-abhishek-thakur/
Happy Machine Learning(thecodingbot.com, t.me/thecodingbotdaily)
Medium
The Art of Cleaning Your Data
Drop that bad data like Obama drops mics
Finding the majority element in an array
Problem Statement Given an array of size n, find the majority element. What is the majority element in an array? The majority element is the element that occurs more than half of the size of the array i.e the element should occur more than (⌊ N/2 ⌋) times. You may assume that the array is non-empty…
https://thecodingbot.com/finding-the-majority-element-in-an-array/
Problem Statement Given an array of size n, find the majority element. What is the majority element in an array? The majority element is the element that occurs more than half of the size of the array i.e the element should occur more than (⌊ N/2 ⌋) times. You may assume that the array is non-empty…
https://thecodingbot.com/finding-the-majority-element-in-an-array/
The Coding Bot
Finding the majority element in an array - The Coding Bot
In this aproach, we will discuss 4 different ways to find the majority element in the array using C++.
Leetcode – 169. Majority Element
Problem Statement Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty and the majority element always exist in the array. Example 1: Input: [3,2,3] Output: 3 Example 2: Input: [2,2,1,1,1,2,2] Output: 2 (you can solve the…
https://thecodingbot.com/leetcode-169-majority-element/
Problem Statement Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty and the majority element always exist in the array. Example 1: Input: [3,2,3] Output: 3 Example 2: Input: [2,2,1,1,1,2,2] Output: 2 (you can solve the…
https://thecodingbot.com/leetcode-169-majority-element/
The Coding Bot
Leetcode - 169. Majority Element - The Coding Bot
In this tutorial, we will discuss different approaches to solve leetcode 169 Majority Element in C++.
Computer Programming
django-admin-cookbook-latest.pdf
How to customize Django admin panel cookbook
LeetCode – 182. Duplicate Emails
Write a SQL query to find all duplicate emails in a table named Person. +----+---------+ | Id | Email | +----+---------+ | 1 | a@b.com | | 2 | c@d.com | | 3 | a@b.com | +----+---------+ For example, your query should return the following for the above table: +---------+ | Email | +---------+ | a@b.com…
https://thecodingbot.com/leetcode-182-duplicate-emails/
Write a SQL query to find all duplicate emails in a table named Person. +----+---------+ | Id | Email | +----+---------+ | 1 | a@b.com | | 2 | c@d.com | | 3 | a@b.com | +----+---------+ For example, your query should return the following for the above table: +---------+ | Email | +---------+ | a@b.com…
https://thecodingbot.com/leetcode-182-duplicate-emails/
The Coding Bot
LeetCode - 182. Duplicate Emails - The Coding Bot
In this tutorial, we will discuss different approaches to solve leetcode problem 182 duplicate emails
LeetCode – 595. Big Countries
Problem Statement There is a table World +-----------------+------------+------------+--------------+---------------+ | name | continent | area | population | gdp | +-----------------+------------+------------+--------------+---------------+ | Afghanistan | Asia | 652230 | 25500100 | 20343000 | | Albania | Europe | 28748 | 2831741 | 12960000 | | Algeria | Africa | 2381741 | 37100000 | 188681000 | | Andorra |…
https://thecodingbot.com/leetcode-595-big-countries/
Problem Statement There is a table World +-----------------+------------+------------+--------------+---------------+ | name | continent | area | population | gdp | +-----------------+------------+------------+--------------+---------------+ | Afghanistan | Asia | 652230 | 25500100 | 20343000 | | Albania | Europe | 28748 | 2831741 | 12960000 | | Algeria | Africa | 2381741 | 37100000 | 188681000 | | Andorra |…
https://thecodingbot.com/leetcode-595-big-countries/
The Coding Bot
LeetCode - 595. Big Countries - The Coding Bot
In this approach, we will see different solutions to solve leetcode 595 big countries.
LeetCode – 627. Swap Salary
Problem Statement Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., change all f values to m and vice versa) with a single update…
https://thecodingbot.com/leetcode-627-swap-salary/
Problem Statement Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., change all f values to m and vice versa) with a single update…
https://thecodingbot.com/leetcode-627-swap-salary/
The Coding Bot
LeetCode - 627. Swap Salary - The Coding Bot
In this tutorial, we will learn how to solve leetcode 627 swap salary using different approaches.
LeetCode – 620. Not Boring Movies
Problem Statement X city opened a new cinema, many people would like to go to this cinema. The cinema also gives out a poster indicating the movies’ ratings and descriptions. Please write a SQL query…
https://thecodingbot.com/leetcode-620-not-boring-movies/
Problem Statement X city opened a new cinema, many people would like to go to this cinema. The cinema also gives out a poster indicating the movies’ ratings and descriptions. Please write a SQL query…
https://thecodingbot.com/leetcode-620-not-boring-movies/
The Coding Bot
LeetCode - 620. Not Boring Movies - The Coding Bot
In this tutorial, we will learn different approaches to solve leetcode 620 - Not Boring Movies.
LeetCode – 197. Rising Temperature
Given a Weather table, write a SQL query to find all dates’ Ids with higher temperature compared to its previous (yesterday’s) dates. +---------+------------------+------------------+ | Id(INT) | RecordDate(DATE) | Temperature(INT) | +---------+------------------+------------------+ | 1 | 2015-01-01 | 10…
https://thecodingbot.com/leetcode-197-rising-temperature/
Given a Weather table, write a SQL query to find all dates’ Ids with higher temperature compared to its previous (yesterday’s) dates. +---------+------------------+------------------+ | Id(INT) | RecordDate(DATE) | Temperature(INT) | +---------+------------------+------------------+ | 1 | 2015-01-01 | 10…
https://thecodingbot.com/leetcode-197-rising-temperature/
The Coding Bot
LeetCode - 197. Rising Temperature - The Coding Bot
In this tutorial, we will discuss how to solve leetcode 197 rising temperature problem in great detail.
Computer Programming
LeetCode – 197. Rising Temperature Given a Weather table, write a SQL query to find all dates’ Ids with higher temperature compared to its previous (yesterday’s) dates. +---------+------------------+------------------+ | Id(INT) | RecordDate(DATE) | Temperature(INT)…
Similar problem asked in google, amazon. Try out yourself.
Today's topic is Design Patterns in C++
Design patterns : In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn't a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.
Here are resources:
Blogs:
1. https://www.bogotobogo.com/DesignPatterns/introduction.php
2. https://readthedocs.org/projects/cpp-design-patterns/downloads/pdf/latest/
3. https://caiorss.github.io/C-Cpp-Notes/cpp-design-patterns.html
Youtube:
1. cppcon 2019 modern C++ design pattern : https://www.youtube.com/watch?v=MdtYi0vvct0
2. https://www.youtube.com/watch?v=j9arNRRoPe8 (1 hour tutorial)
3. Playlist: https://www.youtube.com/watch?v=8tbxQ2IUtvE&list=PLiLpmqwkwkCsgR__zwKVB0s4bIYrF8vWu
Paid Courses:
1. https://www.pluralsight.com/paths/c-design-patterns
Books:
1. Modern C++ Design
2. Design Patterns: Elements of Reusable Object-Oriented Software
Design patterns : In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn't a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.
Here are resources:
Blogs:
1. https://www.bogotobogo.com/DesignPatterns/introduction.php
2. https://readthedocs.org/projects/cpp-design-patterns/downloads/pdf/latest/
3. https://caiorss.github.io/C-Cpp-Notes/cpp-design-patterns.html
Youtube:
1. cppcon 2019 modern C++ design pattern : https://www.youtube.com/watch?v=MdtYi0vvct0
2. https://www.youtube.com/watch?v=j9arNRRoPe8 (1 hour tutorial)
3. Playlist: https://www.youtube.com/watch?v=8tbxQ2IUtvE&list=PLiLpmqwkwkCsgR__zwKVB0s4bIYrF8vWu
Paid Courses:
1. https://www.pluralsight.com/paths/c-design-patterns
Books:
1. Modern C++ Design
2. Design Patterns: Elements of Reusable Object-Oriented Software
Rearrange a linked list such that all even index nodes come after all odd index nodes
Problem Statement Given a singly linked list, group all odd nodes together followed by all the even nodes. Please note here we are talking about the node number and not the value in the nodes.…
https://thecodingbot.com/rearrange-a-linked-list-such-that-all-even-index-nodes-come-after-all-odd-index-nodes/
Problem Statement Given a singly linked list, group all odd nodes together followed by all the even nodes. Please note here we are talking about the node number and not the value in the nodes.…
https://thecodingbot.com/rearrange-a-linked-list-such-that-all-even-index-nodes-come-after-all-odd-index-nodes/
The Coding Bot
Rearrange a linked list such that all even index nodes come after all odd index nodes - The Coding Bot
In this tutorial, we will see diffferent approached to rearrange a linked list such that all even index nodes come after all odd index nodes.
Today is Python day and topic for today is "Mutable and Immutable Objects in Python"
You might use Python daily, but do you really go into details to know what you are doing and most importantly why are you doing certain operation?
Mutable and Immutable objects are one of the most important topic in Python and you might be asked about them in any interview.
Complete tutorial: https://medium.com/@meghamohan/mutable-and-immutable-side-of-python-c2145cf72747
Or, Complete tutorial 2: https://hackernoon.com/python-objects-and-mutability-397f7de38bb5
Or, Complete tutorial 3: https://thecodingbot.com/pythons-built-in-id-with-examples/ (contains multiple examples supporting it)
You might use Python daily, but do you really go into details to know what you are doing and most importantly why are you doing certain operation?
Mutable and Immutable objects are one of the most important topic in Python and you might be asked about them in any interview.
Complete tutorial: https://medium.com/@meghamohan/mutable-and-immutable-side-of-python-c2145cf72747
Or, Complete tutorial 2: https://hackernoon.com/python-objects-and-mutability-397f7de38bb5
Or, Complete tutorial 3: https://thecodingbot.com/pythons-built-in-id-with-examples/ (contains multiple examples supporting it)
Medium
Mutable vs Immutable Objects in Python
Everything in Python is an object. And what every newcomer to Python should quickly learn is that all objects in Python can be either…
596. Classes More Than 5 Students
Problem Statement There is a table courses with columns: student and class Please list out all classes which have more than or equal to 5 students. For example, the table: +---------+------------+ | student | class | +---------+------------+ | A |…
https://thecodingbot.com/596-classes-more-than-5-students/
Problem Statement There is a table courses with columns: student and class Please list out all classes which have more than or equal to 5 students. For example, the table: +---------+------------+ | student | class | +---------+------------+ | A |…
https://thecodingbot.com/596-classes-more-than-5-students/
The Coding Bot
596. Classes More Than 5 Students - The Coding Bot
Table of Contents Problem StatementSolutionApproach 1 – Using the subqueryApproach 2 – Using the group by clause along with having Problem Statement There is a table courses with columns: student and class Please list out all classes which have more than…