Forwarded from Computer Programming
Print the elements of a singly linked list in reverse order
Problem Statement Given a singly linked list, print its elements in reverse order. For example: Input : 1->2->3->4->NULL Output: Printing the linked list in reverse order: 4 3 2 1 Solution First of all, readers should be clear that this problem is not the same as reversing the linked list. In this problem, we just need to…
https://thecodingbot.com/print-the-elements-of-a-singly-linked-list-in-reverse-order/
Problem Statement Given a singly linked list, print its elements in reverse order. For example: Input : 1->2->3->4->NULL Output: Printing the linked list in reverse order: 4 3 2 1 Solution First of all, readers should be clear that this problem is not the same as reversing the linked list. In this problem, we just need to…
https://thecodingbot.com/print-the-elements-of-a-singly-linked-list-in-reverse-order/
The Coding Bot
Print the elements of a singly linked list in reverse order - The Coding Bot
Problem Statement Given a singly linked list, print its elements in reverse order. For example: Input : 1->2->3->4->NULLOutput: Printing the linked list in reverse order: 4 3 2 1 Solution First of all, readers should be clear that this problem is not the…
Forwarded from Computer Programming
One of the member requested tutorials on combinatorics. Here's list of resources on the same:
Basics of combinatorics:
1. https://www.topcoder.com/community/competitive-programming/tutorials/basics-of-combinatorics/
2.Maths for competitive programming:
https://www.topcoder.com/community/competitive-programming/tutorials/mathematics-for-topcoders/
3. Advanced tutorial(dp+combinatorics) :
https://codeforces.com/blog/entry/54154
Where to find problems on combinatorics?
1. https://a2oj.com/category?ID=90
2. https://codeforces.com/problemset?tags=combinatorics
3. https://www.codechef.com/tags/problems/combinatorics
Happy coding(thecodingbot.com, t.me/computerprogrammingcodingbot)
Basics of combinatorics:
1. https://www.topcoder.com/community/competitive-programming/tutorials/basics-of-combinatorics/
2.Maths for competitive programming:
https://www.topcoder.com/community/competitive-programming/tutorials/mathematics-for-topcoders/
3. Advanced tutorial(dp+combinatorics) :
https://codeforces.com/blog/entry/54154
Where to find problems on combinatorics?
1. https://a2oj.com/category?ID=90
2. https://codeforces.com/problemset?tags=combinatorics
3. https://www.codechef.com/tags/problems/combinatorics
Happy coding(thecodingbot.com, t.me/computerprogrammingcodingbot)
Count the number of nodes in a circular linked list
Problem Statement Given a circular linked list, you have to count the number of nodes in it. For example: A Circular linked list with a total of 6 nodes. Solution Well, there is only one…
https://thecodingbot.com/count-the-number-of-nodes-in-a-circular-linked-list/
Problem Statement Given a circular linked list, you have to count the number of nodes in it. For example: A Circular linked list with a total of 6 nodes. Solution Well, there is only one…
https://thecodingbot.com/count-the-number-of-nodes-in-a-circular-linked-list/
The Coding Bot
Count the number of nodes in a circular linked list - The Coding Bot
In this tutorial, we will see how we can count the number of nodes in a circular linked list, using iterative and recursive approaches...
I apologize for not being active for couple of days. Will be posting regularly from 3rd. Any ideas feedback write to: thecodingbot@gmail.com
Forwarded from Computer Programming
LeetCode – 175. Combine Two Tables
Problem Statement Table: Person +-------------+---------+ | Column Name | Type | +-------------+---------+ | PersonId | int | | FirstName | varchar | | LastName | varchar | +-------------+---------+ PersonId is the primary key column for this…
https://thecodingbot.com/leetcode-175-combine-two-tables/
Problem Statement Table: Person +-------------+---------+ | Column Name | Type | +-------------+---------+ | PersonId | int | | FirstName | varchar | | LastName | varchar | +-------------+---------+ PersonId is the primary key column for this…
https://thecodingbot.com/leetcode-175-combine-two-tables/
The Coding Bot
LeetCode - 175. Combine Two Tables - The Coding Bot
In this tutorial, we will see how we can solve leetcode - 175. combine two tables.
The blog and this channel has not been active for some time now. I have been going through some rough patches in my personal life and not really sure when will I be able to continue posting. All the members are welcome to stay as I am not going to delete the channel or blog but can't assure you when will I be able to make a comeback. You guys were amazing audience.
A good article on how to use Unsupervised Learning (K Means) + NLP https://medium.com/@lucasdesa/text-clustering-with-k-means-a039d84a941b
Medium
Text Clustering with K-Means
Clustering national anthems with unsupervised learning
What kind of post do you want to see more often?
Anonymous Poll
72%
Data Structures and Algorithms
32%
Machine Learning and Data science (Beginners)
17%
Machine Learning and Data science (Advanced)
35%
Easy programming problems for interview preparations
30%
Programming language problems
**SQL**
Question—> Write a SQL query to get the nth highest salary from the Employee table.
Problem statement link —> https://leetcode.com/problems/nth-highest-salary/
Detailed solution link —> https://thecodingbot.com/leetcode-177-nth-highest-salary/
Attempt the problem by yourself first :)
Question—> Write a SQL query to get the nth highest salary from the Employee table.
Problem statement link —> https://leetcode.com/problems/nth-highest-salary/
Detailed solution link —> https://thecodingbot.com/leetcode-177-nth-highest-salary/
Attempt the problem by yourself first :)
Different type of machine learning explained - https://thecodingbot.com/different-type-of-machine-learning-supervised-unsupervised-and-reinforcement-learning/
The Coding Bot
Different type of Machine Learning: Supervised, Unsupervised and Reinforcement Learning - The Coding Bot
In this tutorial, we'll learn about different types of machine learning: supervised, unsupervised and reinforcement learning with many examples
How to check the version of Pandas?
Table of Contents SolutionSolution 1 – GEt version number with __version__ attributeSolution 2 – Using pip Freeze + GrepSolution 3 – With PIP SHOW Solution There are several ways you check the version of pandas you are…
https://thecodingbot.com/how-to-check-the-version-of-pandas/
Table of Contents SolutionSolution 1 – GEt version number with __version__ attributeSolution 2 – Using pip Freeze + GrepSolution 3 – With PIP SHOW Solution There are several ways you check the version of pandas you are…
https://thecodingbot.com/how-to-check-the-version-of-pandas/
The Coding Bot
How to check the version of Pandas? - The Coding Bot
There are several ways you check the version of pandas you are running on your system. Some of the easiest are -
A telephonic level interview problem -
Given (x,y) coordinates of n houses, where should you build a road parallel to the x-axis to minimize the construction cost of building driveways?
https://thecodingbot.com/given-xy-coordinates-of-n-houses-where-should-you-build-a-road-parallel-to-the-x-axis-to-minimize-the-construction-cost-of-building-driveways/
Given (x,y) coordinates of n houses, where should you build a road parallel to the x-axis to minimize the construction cost of building driveways?
https://thecodingbot.com/given-xy-coordinates-of-n-houses-where-should-you-build-a-road-parallel-to-the-x-axis-to-minimize-the-construction-cost-of-building-driveways/
HugeDomains
TheCodingBot.com is for sale | HugeDomains
This domain is for sale! Fast and easy shopping. Trusted and secure since 2005.
An easy problem but great to understand the concept of recursion -
https://thecodingbot.com/sum-of-digits-of-a-number-using-recursion/
https://thecodingbot.com/sum-of-digits-of-a-number-using-recursion/
The Coding Bot
Sum of digits of a number using Recursion - The Coding Bot
In this article, we'll find the sum of digits of a number using recursion, we'll also discuss the time and space complexity of the algorithm.
Rearrange a linked list such that all even index nodes come after all odd index nodes
Table of Contents Problem StatementSolutionApproachHere are the steps in detailImplementation of the Above Approach Problem Statement Given a singly linked list, group all odd nodes together followed by all the even nodes. Please note here…
https://thecodingbot.com/rearrange-a-linked-list-such-that-all-even-index-nodes-come-after-all-odd-index-nodes/
Table of Contents Problem StatementSolutionApproachHere are the steps in detailImplementation of the Above Approach Problem Statement Given a singly linked list, group all odd nodes together followed by all the even nodes. Please note here…
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.
Get unique values from a Pandas column preserving the order of appearance
Introduction There are several ways to get the unique values from a column in a Pandas DataFrame, but in this tutorial, we will focus more on how we can keep the order of appearance(without rearranging…
https://thecodingbot.com/get-unique-values-from-a-pandas-column-preserving-the-order-of-appearance/
Introduction There are several ways to get the unique values from a column in a Pandas DataFrame, but in this tutorial, we will focus more on how we can keep the order of appearance(without rearranging…
https://thecodingbot.com/get-unique-values-from-a-pandas-column-preserving-the-order-of-appearance/
The Coding Bot
Get unique values from a Pandas column preserving the order of appearance - The Coding Bot
Introduction There are several ways to get the unique values from a column in a Pandas DataFrame, but in this tutorial, we will focus more on how we can keep the order of appearance(without rearranging those values ) as well along with finding the unique…
Remove duplicates from a Pandas DataFrame with two or more column in the subset criteria
Introduction There are some functions available to remove duplicates or identify duplicated rows in the dataframe in Pandas. One such function is df.duplicated() and the other function is df.drop_duplicates(). df.duplicated() not exactly removes duplicates from the dataframe but it…
https://thecodingbot.com/remove-duplicates-from-a-pandas-dataframe-with-two-or-more-column-in-the-subset-criteria/
Introduction There are some functions available to remove duplicates or identify duplicated rows in the dataframe in Pandas. One such function is df.duplicated() and the other function is df.drop_duplicates(). df.duplicated() not exactly removes duplicates from the dataframe but it…
https://thecodingbot.com/remove-duplicates-from-a-pandas-dataframe-with-two-or-more-column-in-the-subset-criteria/
The Coding Bot
Remove duplicates from a Pandas DataFrame considering two or more columns - The Coding Bot
In this tutorial, we will see how we can remove duplicates from a Pandas DataFrame with two or more column in the subset criteria...