Printing complete star triangle in C++
Problem Statement Given the number of rows, form a complete triangle made up of stars(asterisks) “*”. For Example Input: 5 Output: Complete star triangle pattern in C++ Solution This is an easy problem which can be solved simply using nested loops. Let’s try to understand this problem with an example. Consider the input number of rows…
https://thecodingbot.com/printing-complete-star-triangle-in-c/
Problem Statement Given the number of rows, form a complete triangle made up of stars(asterisks) “*”. For Example Input: 5 Output: Complete star triangle pattern in C++ Solution This is an easy problem which can be solved simply using nested loops. Let’s try to understand this problem with an example. Consider the input number of rows…
https://thecodingbot.com/printing-complete-star-triangle-in-c/
The Coding Bot
Printing complete star triangle in C++ - The Coding Bot
In this tutorial, we'll learn how to print complete star triangle pattern in C++. We'll also discuss the time and space complexity of the algorithm.
Two ways to reverse a number in C++
Problem Statement Given an integer, the task is to find the reverse of it. It is sure that number as well as it’s reverse fits in the range of an integer. Example: Input: 3421 Output: 1243 Approach 1 – Constructing the reverse using the original number Step 1: Check if the number is negative or not.…
https://thecodingbot.com/two-ways-to-reverse-a-number-in-c/
Problem Statement Given an integer, the task is to find the reverse of it. It is sure that number as well as it’s reverse fits in the range of an integer. Example: Input: 3421 Output: 1243 Approach 1 – Constructing the reverse using the original number Step 1: Check if the number is negative or not.…
https://thecodingbot.com/two-ways-to-reverse-a-number-in-c/
The Coding Bot
Two ways to reverse a number in C++ - The Coding Bot
Problem Statement Given an integer, the task is to find the reverse of it. It is sure that number as well as its reverse fits in the range of an integer. Example: Input: 3421Output: 1243 Approach 1 – Constructing the reverse using the original number Step…
Python’s list reverse() function with examples
Overview In this tutorial, we will discuss Python list’s built-in method –reverse(). Talking about the built-in methods, they are the utility methods provided by the Python interpreter for our use; and they come along when you install Python in your environment. They provide us the implementation of many common operations like conversion of an integer…
https://thecodingbot.com/pythons-list-reverse-function-with-examples/
Overview In this tutorial, we will discuss Python list’s built-in method –reverse(). Talking about the built-in methods, they are the utility methods provided by the Python interpreter for our use; and they come along when you install Python in your environment. They provide us the implementation of many common operations like conversion of an integer…
https://thecodingbot.com/pythons-list-reverse-function-with-examples/
The Coding Bot
Python's list reverse() function with examples - The Coding Bot
In this tutorial, we will discuss Python list's built-in reverse() method with examples. We will also discuss the time and space complexity of the function.
Print inverted half star triangle pattern in C++
Problem Statement Given the number of rows, form an inverted half triangle pattern made up of stars(asterisks) “*”. For Example Input: 5 Output: Inverted half star triangle pattern in C++ Solution This is an easy problem which can be solved simply using nested loops. Let’s try to understand this problem with an example. Consider the input number…
https://thecodingbot.com/print-inverted-half-star-triangle-pattern-in-c/
Problem Statement Given the number of rows, form an inverted half triangle pattern made up of stars(asterisks) “*”. For Example Input: 5 Output: Inverted half star triangle pattern in C++ Solution This is an easy problem which can be solved simply using nested loops. Let’s try to understand this problem with an example. Consider the input number…
https://thecodingbot.com/print-inverted-half-star-triangle-pattern-in-c/
The Coding Bot
Print inverted half star triangle pattern in C++ - The Coding Bot
In this tutorial, we will learn how to make a inverted half triangle star pattern in C++. We'll also discuss the time and space complexity of the algorithm.
Best place to start Machine Learning and Kaggle Journey https://www.dataquest.io/blog/kaggle-fundamentals/
Dataquest
Kaggle Fundamentals: The Titanic Competition – Dataquest
Learn the fundamentals of Kaggle and how to succeed in the Kaggle Titanic competition with this free tutorial.
Computer Programming
Best place to start Machine Learning and Kaggle Journey https://www.dataquest.io/blog/kaggle-fundamentals/
Pretty easy guide to follow. Happy learning :)
Complete competitive programming syllabus https://discuss.codechef.com/t/competitive-programming-syllabus/10873
CodeChef Discuss
Competitive Programming Syllabus
I have been searching for study material for various topics for competitive coding and i found some sort of syllabus for top competitions i thought is worth sharing List of Topics for programming Competitions 1.Basic Geometry/Euclidean Geometry/Coordinate…
Python program to split a given list into Even and Odd list based on the parity of the numbers
Problem Statement Given a python list consisting of integers, based on their parity, separate them into even and odd list. For example: Input: list = [1,4,6,87] Output: even_list = [4,6] , odd_list = [1,87] The problem statement is pretty clear – we have a list of integers and we need to separate them into two…
https://thecodingbot.com/python-program-to-split-a-given-list-into-even-and-odd-list-based-on-the-parity-of-the-numbers/
Problem Statement Given a python list consisting of integers, based on their parity, separate them into even and odd list. For example: Input: list = [1,4,6,87] Output: even_list = [4,6] , odd_list = [1,87] The problem statement is pretty clear – we have a list of integers and we need to separate them into two…
https://thecodingbot.com/python-program-to-split-a-given-list-into-even-and-odd-list-based-on-the-parity-of-the-numbers/
The Coding Bot
Python program to split a given list into Even and Odd list based on the parity of the numbers - The Coding Bot
In this tutorial, we will see a python program to split a given list into two lists - Even and Odd based on the parity of the numbers.
Time and Space complexity analysis of Python’s list.reverse method
Overview In this article, we will explicitly focus on the Time and Space Complexity of Python List’s reverse() method. If you wish to read a complete detailed tutorial on the method then you can find it here. Before moving forward, let’s quickly recall what does the reverse() function do when applied to a list. list.reverse list.reverse() is…
https://thecodingbot.com/time-and-space-complexity-analysis-of-pythons-list-reverse-method/
Overview In this article, we will explicitly focus on the Time and Space Complexity of Python List’s reverse() method. If you wish to read a complete detailed tutorial on the method then you can find it here. Before moving forward, let’s quickly recall what does the reverse() function do when applied to a list. list.reverse list.reverse() is…
https://thecodingbot.com/time-and-space-complexity-analysis-of-pythons-list-reverse-method/
The Coding Bot
Time and Space complexity analysis of Python's list.reverse() method - The Coding Bot
In this tutorial, we'll discuss the time and space complexity of Python's built-in list.reverse() method.
Awesome Curated list of Machine Learning Resources : https://github.com/josephmisiti/awesome-machine-learning
GitHub
GitHub - josephmisiti/awesome-machine-learning: A curated list of awesome Machine Learning frameworks, libraries and software.
A curated list of awesome Machine Learning frameworks, libraries and software. - josephmisiti/awesome-machine-learning
Leetcode – 771. Jewels and Stones
Problem Statement You’re given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of the stones you have are also jewels. The letters in J are guaranteed distinct, and all…
https://thecodingbot.com/leetcode-771-jewels-and-stones/
Problem Statement You’re given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of the stones you have are also jewels. The letters in J are guaranteed distinct, and all…
https://thecodingbot.com/leetcode-771-jewels-and-stones/
The Coding Bot
Leetcode - 771. Jewels and Stones - The Coding Bot
In this tutorial, we will discuss the leetcode problem 771 - Jewels and Stones in great detail. We shall also discuss the time and space complexity of the algorithms.
How to print a statement in C/C++ without a semicolon(;) – Different methods
Problem Statement The task is to print a statement, say “Hello World“, without using a semicolon in C/C++. Solution To be honest, this isn’t a serious programming question, but, it is possible that you might face this question in an interview someday. It is a kind of puzzle problem. There are many different ways to…
https://thecodingbot.com/how-to-print-a-statement-in-c-c-without-a-semicolon-different-methods/
Problem Statement The task is to print a statement, say “Hello World“, without using a semicolon in C/C++. Solution To be honest, this isn’t a serious programming question, but, it is possible that you might face this question in an interview someday. It is a kind of puzzle problem. There are many different ways to…
https://thecodingbot.com/how-to-print-a-statement-in-c-c-without-a-semicolon-different-methods/
The Coding Bot
How to print a statement in C/C++ without a semicolon(;) - Different methods - The Coding Bot
In this tutorial, we will learn different ways to print a statement, say Hello World, in c/c++ without using semicolon.
Insert a Node at the beginning of a Linked List
Problem Statement Given a linked list(can be an empty list), add a node at the beginning of it. For example: Linked list before insertion = 4->3->5->NULL Input Integer = 51 Linked list after insertion = 51->4->3->5->NULL Linked list before insertion = 40->13->95->NULL Input Integer = 141 Linked list after insertion = 141->40->13->95->NULL Solution This is…
https://thecodingbot.com/insert-a-node-at-the-beginning-of-a-linked-list/
Problem Statement Given a linked list(can be an empty list), add a node at the beginning of it. For example: Linked list before insertion = 4->3->5->NULL Input Integer = 51 Linked list after insertion = 51->4->3->5->NULL Linked list before insertion = 40->13->95->NULL Input Integer = 141 Linked list after insertion = 141->40->13->95->NULL Solution This is…
https://thecodingbot.com/insert-a-node-at-the-beginning-of-a-linked-list/
The Coding Bot
Insert a Node at the beginning of a Linked List - The Coding Bot
Problem Statement: Given a linked list(can be an empty list), add a node at the beginning of it ...
Python ord() function and its application
In Python, ord() is a built-in function which returns an integer representing the Unicode point value of a character. Before discussing anything else, it is important to first know what the Unicode encoding is. Unicode Unicode is the encoding type or a standard which contains the character set of all the languages that exist, all…
https://thecodingbot.com/python-ord-function-and-its-application/
In Python, ord() is a built-in function which returns an integer representing the Unicode point value of a character. Before discussing anything else, it is important to first know what the Unicode encoding is. Unicode Unicode is the encoding type or a standard which contains the character set of all the languages that exist, all…
https://thecodingbot.com/python-ord-function-and-its-application/
The Coding Bot
Python ord() function and its application - The Coding Bot
In Python, ord() is a built-in function which returns an integer representing the Unicode point value of a character.
How to convert a string to Uppercase or Lowercase in C++
Problem Statement Given a string, you need to change the case of the string. If the question demands the conversion into uppercase, then change the case to uppercase, else convert the string into lowercase. Solution Approach 1 – Using the iteration In this approach, we will iterate the string and check the case of each…
https://thecodingbot.com/how-to-convert-a-string-to-uppercase-or-lowercase-in-c/
Problem Statement Given a string, you need to change the case of the string. If the question demands the conversion into uppercase, then change the case to uppercase, else convert the string into lowercase. Solution Approach 1 – Using the iteration In this approach, we will iterate the string and check the case of each…
https://thecodingbot.com/how-to-convert-a-string-to-uppercase-or-lowercase-in-c/
The Coding Bot
How to convert a string to Uppercase or Lowercase in C++ - The Coding Bot
Table of Contents Problem StatementSolution Approach 1 – Using the iterationFor Conversion to Lowercase Implementation of Approach 1 – Conversion to lowercaseFor Conversion to UppercaseImplementation of Approach 1 – Conversion to UppercaseApproach 2 – Using…
Python’s dictionary len() method
len() is a built-in function in python which returns the number of items in an object. It can be used with a sequence(list, tuple, string etc) or a collection (like dictionary, set etc). However, this tutorial shall only focus its use with a dictionary. For complete tutorial on built-in len(), visit: Python’s built-in len() method…
https://thecodingbot.com/pythons-len-on-a-dictionary/
len() is a built-in function in python which returns the number of items in an object. It can be used with a sequence(list, tuple, string etc) or a collection (like dictionary, set etc). However, this tutorial shall only focus its use with a dictionary. For complete tutorial on built-in len(), visit: Python’s built-in len() method…
https://thecodingbot.com/pythons-len-on-a-dictionary/
The Coding Bot
Python's dictionary len() method - The Coding Bot
In this article, we'll show you the use of python's len() function on a simple dictionary as well as on a nested dictionary.
Welcome to the official channel of thecodingbot.com. We mainly post about Technical Interviews Preparation, Machine Learning, Data Structures, Data Science, Algorithms, Big Data, Best practices, and other random stuff.
What will you get access to by joining this channel?
1️⃣ Quality Tutorials on different topics.
2️⃣ Best Curated resources.
3️⃣ Good open source projects link.
4️⃣ A bed time read which will help you to grow.
5️⃣ Occassionaly, some books (If they are open sourced).
6️⃣ Interview material for different companies.
We do have a schedule of posting over the week.
⏺ Monday - Machine Learning(Data Science, Libraries and Statistics)
⏺ Tuesday - Full Stack Developement(Django, Bootstrap, Node etc)
⏺ Wednesday - Data Structures( From basic to Advanced Data Structures)
⏺ Thursday - Algorithms
⏺ Friday - C and C++ ( Mostly about features, good articles, best practices and most used built-in functions of the language)
⏺ Saturday - Python ( Python features, good articles, best practices and most used built-in methods of the language)
⏺ Sunday - Miscellaneous Stuff ( Some good random post from internet related to computer science)
What we expect from you?
A simple help. Although, we write with all our heart, there are times we commit some mistakes too. Please help us to identify them so that we can correct it. If you find anything wrong/ incorrect/typo in any of our articles, then mail us to thecodingbot@gmail.com, or, leave your comment under the article.
Thanks you and I hope you achieve great heights.
What will you get access to by joining this channel?
1️⃣ Quality Tutorials on different topics.
2️⃣ Best Curated resources.
3️⃣ Good open source projects link.
4️⃣ A bed time read which will help you to grow.
5️⃣ Occassionaly, some books (If they are open sourced).
6️⃣ Interview material for different companies.
We do have a schedule of posting over the week.
⏺ Monday - Machine Learning(Data Science, Libraries and Statistics)
⏺ Tuesday - Full Stack Developement(Django, Bootstrap, Node etc)
⏺ Wednesday - Data Structures( From basic to Advanced Data Structures)
⏺ Thursday - Algorithms
⏺ Friday - C and C++ ( Mostly about features, good articles, best practices and most used built-in functions of the language)
⏺ Saturday - Python ( Python features, good articles, best practices and most used built-in methods of the language)
⏺ Sunday - Miscellaneous Stuff ( Some good random post from internet related to computer science)
What we expect from you?
A simple help. Although, we write with all our heart, there are times we commit some mistakes too. Please help us to identify them so that we can correct it. If you find anything wrong/ incorrect/typo in any of our articles, then mail us to thecodingbot@gmail.com, or, leave your comment under the article.
Thanks you and I hope you achieve great heights.
Computer Programming pinned «Welcome to the official channel of thecodingbot.com. We mainly post about Technical Interviews Preparation, Machine Learning, Data Structures, Data Science, Algorithms, Big Data, Best practices, and other random stuff. What will you get access to by joining…»