title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Numbers in range [L, R] such that the count of their divisors is both even and prime | 06 May, 2021
Given a range [L, R], the task is to find the numbers from the range which have the count of their divisors as even as well as prime. Then, print the count of the numbers found. The values of L and R are less than 10^6 and L< R.Examples:
Input: L=3, R=9
Output: Count = 3
Explanation: The numbers are 3, 5... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 May, 2021"
},
{
"code": null,
"e": 268,
"s": 28,
"text": "Given a range [L, R], the task is to find the numbers from the range which have the count of their divisors as even as well as prime. Then, print the count of the numbers foun... |
Zoho Interview | Set 5 (On-Campus Drive) | 22 Jul, 2019
Round 1:Questions based on aptitude (10) and c program output (20)Time 2hr.
Round 2:5 problem given we have to solve at least 3Program 1:Help john to find new friends in social networkInput:3Mani 3 ram raj gunaRam 2 kumar KishoreMughil 3 praveen Naveen Ramesh
Output:Raj guna kumar Kishore praveen Naveen Ra... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Jul, 2019"
},
{
"code": null,
"e": 130,
"s": 54,
"text": "Round 1:Questions based on aptitude (10) and c program output (20)Time 2hr."
},
{
"code": null,
"e": 314,
"s": 130,
"text": "Round 2:5 problem given we ha... |
Circular Queue or Ring Buffer. Python and C Implementation. | by Brian Ward | Towards Data Science | There are many different implementations of the circular queue all of which may be better suited for specific applications. This blog post is to help understand how a circular queue works along with its uses and advantages.
A Queue is a simple data structure that implements the FIFO (First-In-First-Out) ordering. This ... | [
{
"code": null,
"e": 396,
"s": 172,
"text": "There are many different implementations of the circular queue all of which may be better suited for specific applications. This blog post is to help understand how a circular queue works along with its uses and advantages."
},
{
"code": null,
... |
Virtual environment: What, Why, How? | by Eric Li | Towards Data Science | Mac is pre-installed with python 2. More python environments can be installed on your Mac in different directories with different versions of python and different packages installed. It is important to be aware of which python you are working with.
You can check the python you are currently working with by typing the f... | [
{
"code": null,
"e": 421,
"s": 172,
"text": "Mac is pre-installed with python 2. More python environments can be installed on your Mac in different directories with different versions of python and different packages installed. It is important to be aware of which python you are working with."
},
... |
Program for Volume and Surface Area of Cube in C++ | Cube is a three-dimensional object with six faces of square shape which means it has sides of same length and breadth. Cube is the only regular hexahedron with following properties −
six faces
12 edges
8 vertices
Given below is the figure of cube
Given with the side, the task is to find the total surface area and volum... | [
{
"code": null,
"e": 1245,
"s": 1062,
"text": "Cube is a three-dimensional object with six faces of square shape which means it has sides of same length and breadth. Cube is the only regular hexahedron with following properties −"
},
{
"code": null,
"e": 1255,
"s": 1245,
"text": ... |
How to get first and last elements from ArrayList in Java? | The get() method of the ArrayList class accepts an integer representing the index value and, returns the element of the current ArrayList object at the specified index.
Therefore, if you pass 0 to this method you can get the first element of the current ArrayList and, if you pass list.size()-1 you can get the last elem... | [
{
"code": null,
"e": 1231,
"s": 1062,
"text": "The get() method of the ArrayList class accepts an integer representing the index value and, returns the element of the current ArrayList object at the specified index."
},
{
"code": null,
"e": 1387,
"s": 1231,
"text": "Therefore, if... |
Vaadin - User Interface Components | Vaadin is used to build rich user interface components in a webpage. In this chapter, you will learn about different user interface components that have been introduced by Vaadin in order to maintain a good quality web page. The first part of the chapter discusses the basic web components and their uses, while the seco... | [
{
"code": null,
"e": 2148,
"s": 1769,
"text": "Vaadin is used to build rich user interface components in a webpage. In this chapter, you will learn about different user interface components that have been introduced by Vaadin in order to maintain a good quality web page. The first part of the chapte... |
Safely Test and Apply Changes to Your Database: Getting Started with Alembic | by Mike Huls | Towards Data Science | If you are not working with migrations in your database you’re missing out. Database migrations establish the structure and history of changes of our database in code and provide us with the ability to safely apply and revert these changes to our database.
In this article we’ll take a look at a Alembic; a Python tool t... | [
{
"code": null,
"e": 428,
"s": 171,
"text": "If you are not working with migrations in your database you’re missing out. Database migrations establish the structure and history of changes of our database in code and provide us with the ability to safely apply and revert these changes to our database... |
Add perpendicular caps to error bars in Matplotlib - GeeksforGeeks | 26 Dec, 2020
Prerequisites: Matplotlib
The errorbar() function in pyplot module of matplotlib library is used to plot y versus x as lines and/or markers with attached errorbars. For our requirement we need to specifically focussing on capsize attribute of this function. Simply providing a value to it will produce our r... | [
{
"code": null,
"e": 23865,
"s": 23837,
"text": "\n26 Dec, 2020"
},
{
"code": null,
"e": 23891,
"s": 23865,
"text": "Prerequisites: Matplotlib"
},
{
"code": null,
"e": 24195,
"s": 23891,
"text": "The errorbar() function in pyplot module of matplotlib library i... |
Sum of Digit is Pallindrome or not | Practice | GeeksforGeeks | Given a number N.Find if the digit sum(or sum of digits) of N is a Palindrome number or not.
Note:A Palindrome number is a number which stays the same when reversed.Example- 121,131,7 etc.
Example 1:
Input:
N=56
Output:
1
Explanation:
The digit sum of 56 is 5+6=11.
Since, 11 is a palindrome number.Thus,
answer is 1.
Ex... | [
{
"code": null,
"e": 427,
"s": 238,
"text": "Given a number N.Find if the digit sum(or sum of digits) of N is a Palindrome number or not.\nNote:A Palindrome number is a number which stays the same when reversed.Example- 121,131,7 etc."
},
{
"code": null,
"e": 438,
"s": 427,
"text... |
How do I run two python loops concurrently? | You will need to use a multiprocessing library. You will need to spawn a new process and provide the code to it as an argument. For example,
from multiprocessing import Process
def loop_a():
for i in range(5):
print("a")
def loop_b():
for i in range(5):
print("b")
Process(target=loop_a).start()
Proc... | [
{
"code": null,
"e": 1203,
"s": 1062,
"text": "You will need to use a multiprocessing library. You will need to spawn a new process and provide the code to it as an argument. For example,"
},
{
"code": null,
"e": 1239,
"s": 1203,
"text": "from multiprocessing import Process"
},... |
Wait until page is loaded with Selenium WebDriver for Python. | We can wait until the page is loaded with Selenium webdriver. There is a synchronization concept in Selenium which describes implicit and explicit wait. To wait until the page is loaded we shall use the explicit wait concept.
The explicit wait is designed such that it is dependent on the expected condition for a partic... | [
{
"code": null,
"e": 1288,
"s": 1062,
"text": "We can wait until the page is loaded with Selenium webdriver. There is a synchronization concept in Selenium which describes implicit and explicit wait. To wait until the page is loaded we shall use the explicit wait concept."
},
{
"code": null,... |
Queue.Enqueue() Method in C# | 13 Apr, 2021
This method is used to add an object to the end of the Queue. This comes under the System.Collections namespace. The value can null and if the Count is less than the capacity of the internal array, this method is an O(1) operation. If the internal array needs to be reallocated to accommodate the new elemen... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Apr, 2021"
},
{
"code": null,
"e": 405,
"s": 28,
"text": "This method is used to add an object to the end of the Queue. This comes under the System.Collections namespace. The value can null and if the Count is less than the capacity ... |
How to Install Keras in Windows? | 21 Sep, 2021
Keras is a neural Network python library primarily used for image classification. In this article we will look into the process of installing Keras on a Windows machine.
The only thing that you need for installing Numpy on Windows are:
Python
PIP or Conda (depending upon user preference)
The Keras library... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Sep, 2021"
},
{
"code": null,
"e": 198,
"s": 28,
"text": "Keras is a neural Network python library primarily used for image classification. In this article we will look into the process of installing Keras on a Windows machine."
},... |
Shuffle array {a1, a2, .. an, b1, b2, .. bn} as {a1, b1, a2, b2, a3, b3, ......, an, bn} without using extra space | 13 Oct, 2020
Given an array of 2n elements in the following format { a1, a2, a3, a4, ....., an, b1, b2, b3, b4, ...., bn }. The task is shuffle the array to {a1, b1, a2, b2, a3, b3, ......, an, bn } without using extra space.Examples :
Input : arr[] = { 1, 2, 9, 15 }
Output : 1 9 2 15
Input : arr[] = { 1, 2, 3, 4, 5... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Oct, 2020"
},
{
"code": null,
"e": 276,
"s": 52,
"text": "Given an array of 2n elements in the following format { a1, a2, a3, a4, ....., an, b1, b2, b3, b4, ...., bn }. The task is shuffle the array to {a1, b1, a2, b2, a3, b3, ........ |
K-Nearest Neighbours | 13 Jul, 2022
K-Nearest Neighbours is one of the most basic yet essential classification algorithms in Machine Learning. It belongs to the supervised learning domain and finds intense application in pattern recognition, data mining and intrusion detection.It is widely disposable in real-life scenarios since it is non-pa... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Jul, 2022"
},
{
"code": null,
"e": 768,
"s": 54,
"text": "K-Nearest Neighbours is one of the most basic yet essential classification algorithms in Machine Learning. It belongs to the supervised learning domain and finds intense appl... |
Private Methods in Java 9 Interfaces | 26 Apr, 2018
Java 9 onwards, you can include private methods in interfaces. Before Java 9 it was not possible.
Interfaces till Java 7
In Java SE 7 or earlier versions, an interface can have only two things i.e. Constant variables and Abstract methods. These interface methods MUST be implemented by classes which choose ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 Apr, 2018"
},
{
"code": null,
"e": 152,
"s": 54,
"text": "Java 9 onwards, you can include private methods in interfaces. Before Java 9 it was not possible."
},
{
"code": null,
"e": 175,
"s": 152,
"text": "Interfa... |
Sort 1 to N by swapping adjacent elements | 09 Jun, 2022
Given an array, A of size N consisting of elements 1 to N. A boolean array B consisting of N-1 elements indicates that if B[i] is 1, then A[i] can be swapped with A[i+1]. Find out if A can be sorted by swapping elements.Examples:
Input : A[] = {1, 2, 5, 3, 4, 6}
B[] = {0, 1, 1, 1, 0}
Output : A c... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Jun, 2022"
},
{
"code": null,
"e": 284,
"s": 52,
"text": "Given an array, A of size N consisting of elements 1 to N. A boolean array B consisting of N-1 elements indicates that if B[i] is 1, then A[i] can be swapped with A[i+1]. Fin... |
Java Program to Compute the Sum of Numbers in a List Using For-Loop | 22 Dec, 2020
Given a list of numbers, write a Java program to find the sum of all the elements in the List using for loop. For performing the given task, complete List traversal is necessary which makes the Time Complexity of the complete program to O(n), where n is the length of the List.
Example:
Input : List = [1, 2... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Dec, 2020"
},
{
"code": null,
"e": 306,
"s": 28,
"text": "Given a list of numbers, write a Java program to find the sum of all the elements in the List using for loop. For performing the given task, complete List traversal is necessa... |
Java Program to Convert String to Boolean | 16 Apr, 2022
To convert String to boolean in Java, you can use Boolean.parseBoolean(string). But if you want to convert String to Boolean object then use the method Boolean.valueOf(string) method.
Boolean data type consists of only two values i.e true and false. If the string is true (ignoring case), the Boolean equiva... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Apr, 2022"
},
{
"code": null,
"e": 212,
"s": 28,
"text": "To convert String to boolean in Java, you can use Boolean.parseBoolean(string). But if you want to convert String to Boolean object then use the method Boolean.valueOf(string)... |
Python | Categorizing input Data in Lists | 10 Mar, 2022
Lists in Python are linear containers used for storing data of various Data Types. The ability to store a variety of data is what makes Lists a very unique and vital Data Structure in Python. Once created, lists can be modified further depending on one’s needs. Hence, they are ‘mutable.’Lists, when created... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Mar, 2022"
},
{
"code": null,
"e": 456,
"s": 54,
"text": "Lists in Python are linear containers used for storing data of various Data Types. The ability to store a variety of data is what makes Lists a very unique and vital Data Str... |
How to Drop Columns with NaN Values in Pandas DataFrame? | 24 Oct, 2020
Nan(Not a number) is a floating-point value which can’t be converted into other data type expect to float. In data analysis, Nan is the unnecessary value which must be removed in order to analyze the data set properly. In this article, we will discuss how to remove/drop columns having Nan values in the pan... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Oct, 2020"
},
{
"code": null,
"e": 439,
"s": 28,
"text": "Nan(Not a number) is a floating-point value which can’t be converted into other data type expect to float. In data analysis, Nan is the unnecessary value which must be removed... |
MongoDB – Multikey Indexes | 17 Feb, 2021
Indexes are special data structures that store some information related to the documents such that it becomes easy for MongoDB to find the right data file. They also store the value of a specific field or set of fields, ordered by the value of the field as specified in the index. MongoDB allows to index a ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Feb, 2021"
},
{
"code": null,
"e": 638,
"s": 28,
"text": "Indexes are special data structures that store some information related to the documents such that it becomes easy for MongoDB to find the right data file. They also store the... |
Measuring the Document Similarity in Python | 27 Feb, 2020
Document similarity, as the name suggests determines how similar are the two given documents. By “documents”, we mean a collection of strings. For example, an essay or a .txt file. Many organizations use this principle of document similarity to check plagiarism. It is also used by many exams conducting ins... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 Feb, 2020"
},
{
"code": null,
"e": 503,
"s": 54,
"text": "Document similarity, as the name suggests determines how similar are the two given documents. By “documents”, we mean a collection of strings. For example, an essay or a .txt... |
LocalDate minusYears() method in Java with Examples | 07 May, 2019
The minusYears() method of a LocalDate class is used to subtract the number of specified years from this LocalDate and return a copy of LocalDate.
This method subtracts the years field in the following steps:
Firstly, it subtracts the years from the year field in this LocalDate.
Check if the date after sub... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 May, 2019"
},
{
"code": null,
"e": 175,
"s": 28,
"text": "The minusYears() method of a LocalDate class is used to subtract the number of specified years from this LocalDate and return a copy of LocalDate."
},
{
"code": null,
... |
Fast Doubling method to find the Nth Fibonacci number | 23 Jun, 2022
Given an integer N, the task is to find the N-th Fibonacci numbers.Examples:
Input: N = 3 Output: 2 Explanation: F(1) = 1, F(2) = 1 F(3) = F(1) + F(2) = 2 Input: N = 6 Output: 8
Approach:
The Matrix Exponentiation Method is already discussed before. The Doubling Method can be seen as an improvement... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 131,
"s": 52,
"text": "Given an integer N, the task is to find the N-th Fibonacci numbers.Examples: "
},
{
"code": null,
"e": 234,
"s": 131,
"text": "Input: N = 3 Output: 2 Exp... |
Print all possible ways to write N as sum of two or more positive integers | 02 Feb, 2022
Given an integer N, the task is to print all the possible ways in which N can be written as the sum of two or more positive integers.Examples:
Input: N = 4 Output: 1 1 1 1 1 1 2 1 3 2 2 Input: N = 3 Output: 1 1 1 1 2
Approach: The idea is to use recursion to solve this problem. The idea is to conside... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n02 Feb, 2022"
},
{
"code": null,
"e": 199,
"s": 54,
"text": "Given an integer N, the task is to print all the possible ways in which N can be written as the sum of two or more positive integers.Examples: "
},
{
"code": null,
... |
Convert a Binary Tree to Threaded binary tree | Set 2 (Efficient) | 07 Jul, 2022
Idea of Threaded Binary Tree is to make inorder traversal faster and do it without stack and without recursion. In a simple threaded binary tree, the NULL right pointers are used to store inorder successor. Where-ever a right pointer is NULL, it is used to store inorder successor.
Chapters
descriptions off... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 336,
"s": 54,
"text": "Idea of Threaded Binary Tree is to make inorder traversal faster and do it without stack and without recursion. In a simple threaded binary tree, the NULL right pointers are ... |
SVG Path Element | 15 Jul, 2020
SVG stands for Scalable Vector Graphic. The SVG element path is used to define a path that starts from a position and ends to a particular position. SVG path can be used to create any basic shapes.
Syntax:
<path d="Shape of path using keyword like M, L, C etc."
pathLength="Length of path"
strok... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Jul, 2020"
},
{
"code": null,
"e": 226,
"s": 28,
"text": "SVG stands for Scalable Vector Graphic. The SVG element path is used to define a path that starts from a position and ends to a particular position. SVG path can be used to cr... |
Queries to check whether a given digit is present in the given Range in C++ | In this problem, we have given an array arr[] and some queries each consisting of three values, L and R, and val. Our task is to create a program to solve Queries to check whether a given digit is present in the given Range in C++.
To solve each query, we need to check if the given element val is present in the given R... | [
{
"code": null,
"e": 1419,
"s": 1187,
"text": "In this problem, we have given an array arr[] and some queries each consisting of three values, L and R, and val. Our task is to create a program to solve Queries to check whether a given digit is present in the given Range in C++."
},
{
"code":... |
How to convert CSV string file to a 2D array of objects using JavaScript ? | 11 Apr, 2022
A CSV is a comma-separated values file with a .csv extension, which allows data to be saved in a tabular format.
In this article, we will learn to convert the data of a CSV string to a 2D array of objects, where the first row of the string is the title row using JavaScript.
Given a comma-separated values ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Apr, 2022"
},
{
"code": null,
"e": 142,
"s": 28,
"text": "A CSV is a comma-separated values file with a .csv extension, which allows data to be saved in a tabular format. "
},
{
"code": null,
"e": 304,
"s": 142,
"... |
LocalDate getDayOfMonth() method in Java | 28 Nov, 2018
The getDayOfMonth() method of LocalDate class in Java gets the day-of-month field.
Syntax:
public int getDayOfMonth()
Parameter: This method does not accepts any parameter.
Return Value: The function returns the day of the month which is in range 1-31.
Below programs illustrate the getDayOfMonth() method ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Nov, 2018"
},
{
"code": null,
"e": 111,
"s": 28,
"text": "The getDayOfMonth() method of LocalDate class in Java gets the day-of-month field."
},
{
"code": null,
"e": 119,
"s": 111,
"text": "Syntax:"
},
{
"... |
Manchester Encoding in Computer Network | 30 Jun, 2022
Prerequisite – Difference between Unipolar, Polar and Bipolar Line Coding Schemes
Manchester encoding is a synchronous clock encoding technique used by the physical layer of the Open System Interconnection [OSI] to encode the clock and data of a synchronous bit stream. The idea of RZ and the idea of-L ar... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jun, 2022"
},
{
"code": null,
"e": 135,
"s": 52,
"text": "Prerequisite – Difference between Unipolar, Polar and Bipolar Line Coding Schemes "
},
{
"code": null,
"e": 384,
"s": 135,
"text": "Manchester encoding is... |
Construct MEX array from the given array | 13 Jan, 2022
Given an array arr[] having N distinct positive elements, the task is to generate another array B[] such that, for every ith index in the array, arr[], B[i] is the minimum positive number missing from arr[] excluding arr[i].
Examples:
Input: arr[] = {2, 1, 5, 3}Output: B[] = {2, 1, 4, 3} Explanation: After... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 279,
"s": 54,
"text": "Given an array arr[] having N distinct positive elements, the task is to generate another array B[] such that, for every ith index in the array, arr[], B[i] is the minimum po... |
How to create a seaborn correlation heatmap in Python? | 12 Nov, 2020
Seaborn is a Python library that is based on matplotlib and is used for data visualization. It provides a medium to present data in a statistical graph format as an informative and attractive medium to impart some information. A heatmap is one of the components supported by seaborn where variation in relat... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 Nov, 2020"
},
{
"code": null,
"e": 564,
"s": 54,
"text": "Seaborn is a Python library that is based on matplotlib and is used for data visualization. It provides a medium to present data in a statistical graph format as an informati... |
Python | Pandas Series.add() | 01 Oct, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Python Series.add() is used to add series or list like objects with same length to the caller... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Oct, 2018"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes imp... |
Type Assertions in Golang | 22 Jun, 2020
Type assertions in Golang provide access to the exact type of variable of an interface. If already the data type is present in the interface, then it will retrieve the actual data type value held by the interface. A type assertion takes an interface value and extracts from it a value of the specified expli... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 421,
"s": 28,
"text": "Type assertions in Golang provide access to the exact type of variable of an interface. If already the data type is present in the interface, then it will retrieve the actual ... |
Sierpinski triangle | 15 Nov, 2021
Sierpinski triangle is a fractal and attractive fixed set with the overall shape of an equilateral triangle. It subdivides recursively into smaller triangles.
Examples :
Input : n = 4
Output :
*
* *
* *
* * * *
Input : n = 8
Output :
*
* *
* *
* * * *
* ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 Nov, 2021"
},
{
"code": null,
"e": 213,
"s": 52,
"text": "Sierpinski triangle is a fractal and attractive fixed set with the overall shape of an equilateral triangle. It subdivides recursively into smaller triangles. "
},
{
... |
Python | Blackman in numpy | 22 Jul, 2021
Blackman window : It is a taper formed by using the first three terms of a summation of cosines. It was designed to have close to the minimal leakage possible. It is close to optimal, only slightly worse than a Kaiser window.
Parameters(numpy.blackman):
M : int Number of points in the output window.
I... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jul, 2021"
},
{
"code": null,
"e": 254,
"s": 28,
"text": "Blackman window : It is a taper formed by using the first three terms of a summation of cosines. It was designed to have close to the minimal leakage possible. It is close to ... |
How to Get Volume Mixer in Windows 10 ? | 08 Feb, 2021
Windows 10 was released in 2015 almost everyone liked the new interface. However, it removed the volume mixer shortcut which was available earlier. Using that one could easily adjust the volume for each application directly from the volume level control icon in the taskbar.
Windows 10 moved the volume mixe... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Feb, 2021"
},
{
"code": null,
"e": 329,
"s": 54,
"text": "Windows 10 was released in 2015 almost everyone liked the new interface. However, it removed the volume mixer shortcut which was available earlier. Using that one could easil... |
Matplotlib.pyplot.loglog() function in Python | 06 Jul, 2021
Prerequisites: Matplotlib
Matplotlib is a comprehensive library for creating interactive, static and animated visualizations in python. Using general-purpose GUI toolkits like wxPython, SciPy, Tkinter or SciPy, it provides an object-oriented API for embedding plots into applications. Matplotlib.pyplot is a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jul, 2021"
},
{
"code": null,
"e": 54,
"s": 28,
"text": "Prerequisites: Matplotlib"
},
{
"code": null,
"e": 400,
"s": 54,
"text": "Matplotlib is a comprehensive library for creating interactive, static and animate... |
ReactJS componentDidMount() Method | 20 Dec, 2020
The componentDidMount() method allows us to execute the React code when the component is already placed in the DOM (Document Object Model). This method is called during the Mounting phase of the React Life-cycle i.e after the component is rendered.
All the AJAX requests and the DOM or state updation should... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Dec, 2020"
},
{
"code": null,
"e": 277,
"s": 28,
"text": "The componentDidMount() method allows us to execute the React code when the component is already placed in the DOM (Document Object Model). This method is called during the Mo... |
Find subarray with given sum | Set 2 (Handles Negative Numbers) | 24 Jun, 2022
Given an unsorted array of integers, find a subarray that adds to a given number. If there is more than one subarray with the sum of the given number, print any of them.
Examples:
Input: arr[] = {1, 4, 20, 3, 10, 5}, sum = 33
Output: Sum found between indexes 2 and 4
Explanation: Sum of elements between ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 224,
"s": 54,
"text": "Given an unsorted array of integers, find a subarray that adds to a given number. If there is more than one subarray with the sum of the given number, print any of them."
}... |
Difference between Directive and Component in AngularJS | 16 Jun, 2020
Introduction:We will start this topic of finding the differences between Directive and Components, by getting a brief idea about these two terminologies, what they mean, and their behavioral characteristics towards building a crisp, and powerful AnglarJS code. Directives are introduced with the invention o... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n16 Jun, 2020"
},
{
"code": null,
"e": 905,
"s": 53,
"text": "Introduction:We will start this topic of finding the differences between Directive and Components, by getting a brief idea about these two terminologies, what they mean, and ... |
return statement vs exit() in main() | 28 May, 2017
In C++, what is the difference between exit(0) and return 0 ?
When exit(0) is used to exit from program, destructors for locally scoped non-static objects are not called. But destructors are called if return 0 is used.
Program 1 – – uses exit(0) to exit
#include<iostream>#include<stdio.h>#include<stdlib.h>... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 May, 2017"
},
{
"code": null,
"e": 116,
"s": 54,
"text": "In C++, what is the difference between exit(0) and return 0 ?"
},
{
"code": null,
"e": 273,
"s": 116,
"text": "When exit(0) is used to exit from program, ... |
Flutter – BottomSheet Class | 21 Jun, 2022
Bottom Sheet is one of the popular ways to show various options on the screen. This helps the user to switch to a new screen. You will see this bottom sheet in most of the app to add data or add some information such as address or ticket number. In this article, we are going to see how to implement the Bot... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 391,
"s": 54,
"text": "Bottom Sheet is one of the popular ways to show various options on the screen. This helps the user to switch to a new screen. You will see this bottom sheet in most of the ap... |
Odd Even Transposition Sort / Brick Sort using pthreads | 22 Dec, 2021
Odd-Even Transposition Sort is a parallel sorting algorithm. It is based on the Bubble Sort technique, which compares every 2 consecutive numbers in the array and swap them if first is greater than the second to get an ascending order array. It consists of 2 phases – the odd phase and even phase:
Odd phase... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Dec, 2021"
},
{
"code": null,
"e": 350,
"s": 52,
"text": "Odd-Even Transposition Sort is a parallel sorting algorithm. It is based on the Bubble Sort technique, which compares every 2 consecutive numbers in the array and swap them i... |
Google Internship Interview Experience | Off-Campus 2022 | 19 Oct, 2021
Applications for Google Summer Internship 2022 were open and I applied. I did not expect to hear back from them as my application was off-campus, without referrals, from a tier 3 college. But I did hear back from Google with an interview offer around 3 weeks later. We also had an interviews preparation ses... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 365,
"s": 52,
"text": "Applications for Google Summer Internship 2022 were open and I applied. I did not expect to hear back from them as my application was off-campus, without referrals, from a ti... |
JavaScript | Polyfilling & Transpiling | 09 Apr, 2018
Due to the rapid changes in version of JavaScript, the syntaxial forms and vocabulary are also updated in JavaScript, therefore it is seen that many of the JavaScript features are newer additions and may not necessarily be available in older browsers i.e. browsers running on older versions of JavaScript. A... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Apr, 2018"
},
{
"code": null,
"e": 876,
"s": 52,
"text": "Due to the rapid changes in version of JavaScript, the syntaxial forms and vocabulary are also updated in JavaScript, therefore it is seen that many of the JavaScript feature... |
SQL Statement to Remove Part of a String | 22 Oct, 2021
Here we will see SQL statements to remove part of the string.
We will use this method if we want to remove a part of the string whose position is known to us.
1. SUBSTRING(): This function is used to find a sub-string from the string from the given position. It takes three parameters:
String: It is a req... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Oct, 2021"
},
{
"code": null,
"e": 90,
"s": 28,
"text": "Here we will see SQL statements to remove part of the string."
},
{
"code": null,
"e": 187,
"s": 90,
"text": "We will use this method if we want to remove a... |
SQL Query to Add Email Validation Using Only One Query | 19 May, 2021
In this article let us see how can we check for the validation of mails in the student database using MSSQL as the database server. For example, if the email is like abcdedfABCDEF...0123456@gmail.com this is the valid form of an email if it is other than this then that is said to Invalid. So, now we will d... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 May, 2021"
},
{
"code": null,
"e": 379,
"s": 28,
"text": "In this article let us see how can we check for the validation of mails in the student database using MSSQL as the database server. For example, if the email is like abcdedfAB... |
JavaScript toLocaleString() function | The toLocaleString() method of JavaScript is used to convert a Date object to a string using locale settings.
The syntax is as follows −
Date.toLocaleString(locales, options)
Above, the locales parameter is the language specific format to be used −
ar-SA Arabic (Saudi Arabia)
bn-BD Bangla (Bangladesh)
bn-IN Bangla (Ind... | [
{
"code": null,
"e": 1297,
"s": 1187,
"text": "The toLocaleString() method of JavaScript is used to convert a Date object to a string using locale settings."
},
{
"code": null,
"e": 1324,
"s": 1297,
"text": "The syntax is as follows −"
},
{
"code": null,
"e": 1362,
... |
HTML acronym Tag | 24 Mar, 2022
The <acronym> tag in HTML is used to define the acronym. The <acronym> tag is used to spell out another word. It is used to give useful information to browsers, translation systems, and search-engines. This tag is not supported in HTML 5 otherwise use <abbr> Tag.
Syntax:
<acronym title=""> Short Form </ac... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Mar, 2022"
},
{
"code": null,
"e": 316,
"s": 52,
"text": "The <acronym> tag in HTML is used to define the acronym. The <acronym> tag is used to spell out another word. It is used to give useful information to browsers, translation s... |
How to schedule background tasks (jobs) in ASP.NET Core? | Background tasks, also called as jobs, are essentially services that aren’t meant to execute during a normal flow of the application, such as sending email confirmations or periodically cleaning up the database to purge the inactive accounts. These jobs are not meant to interact with the customers or process user input... | [
{
"code": null,
"e": 1610,
"s": 1187,
"text": "Background tasks, also called as jobs, are essentially services that aren’t meant to execute during a normal flow of the application, such as sending email confirmations or periodically cleaning up the database to purge the inactive accounts. These jobs... |
NumPy | Vector Multiplication | 05 May, 2020
Vector multiplication is of three types:
Scalar Product
Dot Product
Cross Product
Scalar Multiplication:Scalar multiplication can be represented by multiplying a scalar quantity by all the elements in the vector matrix.
Code: Python code explaining Scalar Multiplication
# importing libraries import... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 May, 2020"
},
{
"code": null,
"e": 69,
"s": 28,
"text": "Vector multiplication is of three types:"
},
{
"code": null,
"e": 84,
"s": 69,
"text": "Scalar Product"
},
{
"code": null,
"e": 96,
"s": 84,... |
Matplotlib.pyplot.xlim() in Python | 27 Apr, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, etc.#Sa... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 345,
"s": 28,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MAT... |
Check if the given array is mirror-inverse | 01 Apr, 2021
Given an array arr[], the task is to find whether the array is mirror inverse. Inverse of an array means if the array elements are swapped with their corresponding indices and the array is called mirror-inverse if it’s inverse is equal to itself. If array is mirror-inverse then print Yes else print No.Exam... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Apr, 2021"
},
{
"code": null,
"e": 367,
"s": 52,
"text": "Given an array arr[], the task is to find whether the array is mirror inverse. Inverse of an array means if the array elements are swapped with their corresponding indices an... |
with statement in Python | 15 Feb, 2019
with statement in Python is used in exception handling to make the code cleaner and much more readable. It simplifies the management of common resources like file streams. Observe the following code example on how the use of with statement makes code cleaner.
# file handling # 1) without using with statem... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Feb, 2019"
},
{
"code": null,
"e": 314,
"s": 54,
"text": "with statement in Python is used in exception handling to make the code cleaner and much more readable. It simplifies the management of common resources like file streams. Ob... |
How to pass argument to an Exception in Python? | 07 Oct, 2021
There might arise a situation where there is a need for additional information from an exception raised by Python. Python has two types of exceptions namely, Built-In Exceptions and User-Defined Exceptions.Why use Argument in Exceptions? Using arguments for Exceptions in Python is useful for the following ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 371,
"s": 54,
"text": "There might arise a situation where there is a need for additional information from an exception raised by Python. Python has two types of exceptions namely, Built-In Excepti... |
Multi-Character Literal in C/C++ | 08 Mar, 2021
Character literals for C and C++ are char, string, and their Unicode and Raw type. Also, there is a multi-character literal that contains more than one c-char. A single c-char literal has type char and a multi-character literal is conditionally-supported, has type int, and has an implementation-defined val... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Mar, 2021"
},
{
"code": null,
"e": 340,
"s": 28,
"text": "Character literals for C and C++ are char, string, and their Unicode and Raw type. Also, there is a multi-character literal that contains more than one c-char. A single c-char... |
Stack in Python | 08 Jul, 2022
A stack is a linear data structure that stores items in a Last-In/First-Out (LIFO) or First-In/Last-Out (FILO) manner. In stack, a new element is added at one end and an element is removed from that end only. The insert and delete operations are often called push and pop.
The functions associated with stac... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 325,
"s": 52,
"text": "A stack is a linear data structure that stores items in a Last-In/First-Out (LIFO) or First-In/Last-Out (FILO) manner. In stack, a new element is added at one end and an elem... |
Python – Extract values of Particular Key in Nested Values | 01 Aug, 2020
Given a dictionary with nested dictionaries as values, extract all the values with of particular key.
Input : test_dict = {‘Gfg’ : {“a” : 7, “b” : 9, “c” : 12}, ‘is’ : {“a” : 15, “b” : 19, “c” : 20}, ‘best’ :{“a” : 5, “b” : 10, “c” : 2}}, temp = “b”Output : [9, 10, 19]Explanation : All values of “b” key ar... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Aug, 2020"
},
{
"code": null,
"e": 130,
"s": 28,
"text": "Given a dictionary with nested dictionaries as values, extract all the values with of particular key."
},
{
"code": null,
"e": 348,
"s": 130,
"text": "Inpu... |
Python EasyGUI module – Introduction | 09 Jun, 2021
EasyGUI is a module for very simple, very easy GUI programming in Python. EasyGUI is different from other GUI generators in that EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by simple function calls. Unlike other complicated GUI’s EasyGUI is the simplest GUI till now.
Install usin... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n09 Jun, 2021"
},
{
"code": null,
"e": 349,
"s": 54,
"text": "EasyGUI is a module for very simple, very easy GUI programming in Python. EasyGUI is different from other GUI generators in that EasyGUI is NOT event-driven. Instead, all GUI... |
Object-Oriented Machine Learning Pipeline with mlflow for Pandas and Koalas DataFrames | by Yuefeng Zhang, PhD | Towards Data Science | In the article Python Data Preprocessing Using Pandas DataFrame, Spark DataFrame, and Koalas DataFrame, I used a public dataset to evaluate and compare the basic functionality of Pandas, Spark, and Koalas DataFrames in typical data preprocessing steps for machine learning. The main advantage of Koalas is that it suppor... | [
{
"code": null,
"e": 542,
"s": 172,
"text": "In the article Python Data Preprocessing Using Pandas DataFrame, Spark DataFrame, and Koalas DataFrame, I used a public dataset to evaluate and compare the basic functionality of Pandas, Spark, and Koalas DataFrames in typical data preprocessing steps for... |
How to get values from html input array using JavaScript ? - GeeksforGeeks | 30 Jul, 2021
This problem can be solved by using input tags having the same “name” attribute value that can group multiple values stored under one name which could later be accessed by using that name. To access all the values entered in input fields use the following method:
var input = document.getElementsByName('arr... | [
{
"code": null,
"e": 24691,
"s": 24663,
"text": "\n30 Jul, 2021"
},
{
"code": null,
"e": 24955,
"s": 24691,
"text": "This problem can be solved by using input tags having the same “name” attribute value that can group multiple values stored under one name which could later be acc... |
Transform a BST to greater sum tree - GeeksforGeeks | 22 Jun, 2021
Given a BST, transform it into a greater sum tree where each node contains sum of all nodes greater than that node.
We strongly recommend to minimize the browser and try this yourself first.Method 1 (Naïve): This method doesn’t require the tree to be a BST. Following are the steps. 1. Traverse node by nod... | [
{
"code": null,
"e": 24835,
"s": 24807,
"text": "\n22 Jun, 2021"
},
{
"code": null,
"e": 24951,
"s": 24835,
"text": "Given a BST, transform it into a greater sum tree where each node contains sum of all nodes greater than that node."
},
{
"code": null,
"e": 25419,
... |
GATE | GATE-CS-2015 (Set 2) | Question 47 - GeeksforGeeks | 27 Sep, 2021
The number of min-terms after minimizing the following Boolean expression is _________.
[D′ + AB′ + A′C + AC′D + A′C′D]′
(A) 1(B) 2(C) 3(D) 4Answer: (A)Explanation:
Given Boolean expression is:
[D′ + AB′ + A′C + AC′D + A′C′D]′
Step 1 : [D′ + AB′ + A′C + C′D ( A + A')]′
( taking C'D a... | [
{
"code": null,
"e": 24514,
"s": 24486,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 24602,
"s": 24514,
"text": "The number of min-terms after minimizing the following Boolean expression is _________."
},
{
"code": null,
"e": 24641,
"s": 24602,
"text": " ... |
How to use Remove, RemoveAt, RemoveRange methods in C# list collections? | To implement Remove() and RemoveAt() methods in C#, try the following code −
Firstly, set a list.
List<string> myList = new List<string>() {
"mammals",
"reptiles",
"amphibians",
"vertebrate"
};
Now, use Remove() method to remove an element.
myList.Remove("reptiles");
Now, use RemoveAt() method to remove an ... | [
{
"code": null,
"e": 1139,
"s": 1062,
"text": "To implement Remove() and RemoveAt() methods in C#, try the following code −"
},
{
"code": null,
"e": 1160,
"s": 1139,
"text": "Firstly, set a list."
},
{
"code": null,
"e": 1268,
"s": 1160,
"text": "List<string> ... |
PostgreSQL - DROP Database | In this chapter, we will discuss how to delete the database in PostgreSQL. There are two options to delete a database −
Using DROP DATABASE, an SQL command.
Using dropdb a command-line executable.
This command drops a database. It removes the catalog entries for the database and deletes the directory containing the dat... | [
{
"code": null,
"e": 2945,
"s": 2825,
"text": "In this chapter, we will discuss how to delete the database in PostgreSQL. There are two options to delete a database −"
},
{
"code": null,
"e": 2982,
"s": 2945,
"text": "Using DROP DATABASE, an SQL command."
},
{
"code": nul... |
Count-min sketch in Java with Examples - GeeksforGeeks | 27 Jun, 2021
The Count-min sketch is a probabilistic data structure. The Count-Min sketch is a simple technique to summarize large amounts of frequency data. Count-min sketch algorithm talks about keeping track of the count of things. i.e, How many times an element is present in the set. Finding the count of an item co... | [
{
"code": null,
"e": 24644,
"s": 24616,
"text": "\n27 Jun, 2021"
},
{
"code": null,
"e": 25194,
"s": 24644,
"text": "The Count-min sketch is a probabilistic data structure. The Count-Min sketch is a simple technique to summarize large amounts of frequency data. Count-min sketch a... |
Passing Information Using POST Method in Python | A generally more reliable method of passing information to a CGI program is the POST method. This packages the information in exactly the same way as GET methods, but instead of sending it as a text string after a ? in the URL it sends it as a separate message. This message comes into the CGI script in the form of the ... | [
{
"code": null,
"e": 1398,
"s": 1062,
"text": "A generally more reliable method of passing information to a CGI program is the POST method. This packages the information in exactly the same way as GET methods, but instead of sending it as a text string after a ? in the URL it sends it as a separate ... |
What are Closures in JavaScript? | Closures in JavaScript allow us to access outer function scope from inner function even after the outer function has executed and returned. This means that the inner function will always have access to the outer function variable.
Following is the code for closures in JavaScript −
Live Demo
<!DOCTYPE html>
<html lang=... | [
{
"code": null,
"e": 1293,
"s": 1062,
"text": "Closures in JavaScript allow us to access outer function scope from inner function even after the outer function has executed and returned. This means that the inner function will always have access to the outer function variable."
},
{
"code": ... |
How to remove a common suffix from column names in an R data frame? | To remove a common suffix from column names we can use gsub function. For example, if we have a data frame df that contains column defined as x1df, x2df, x3df, and x4df then we can remove df from all the column names by using the below command:
colnames(df)<-gsub("df","",colnames(df))
Consider the below data frame:
Liv... | [
{
"code": null,
"e": 1307,
"s": 1062,
"text": "To remove a common suffix from column names we can use gsub function. For example, if we have a data frame df that contains column defined as x1df, x2df, x3df, and x4df then we can remove df from all the column names by using the below command:"
},
... |
D3.js log.tickFormat() Function - GeeksforGeeks | 03 Sep, 2020
The log.tickFormat() function is used to format the ticks returned by log.ticks() function. This function is similar to pow.tickFormat(), the only difference is that this function is customized for the logarithmic scale. If there are too many ticks, the formatter may return the empty string for some ticks ... | [
{
"code": null,
"e": 26199,
"s": 26171,
"text": "\n03 Sep, 2020"
},
{
"code": null,
"e": 26556,
"s": 26199,
"text": "The log.tickFormat() function is used to format the ticks returned by log.ticks() function. This function is similar to pow.tickFormat(), the only difference is th... |
How does Query.prototype.explain() work in Mongoose? - GeeksforGeeks | 17 Mar, 2021
The Query.prototype.explain() function is used to set the explain option thereby making this query return detailed execution stats instead of the actual query result.
Syntax:
Query.prototype.explain()
Parameters: This function has one optional verbose parameter.Return Value: This function returns Query Obj... | [
{
"code": null,
"e": 24531,
"s": 24503,
"text": "\n17 Mar, 2021"
},
{
"code": null,
"e": 24698,
"s": 24531,
"text": "The Query.prototype.explain() function is used to set the explain option thereby making this query return detailed execution stats instead of the actual query resu... |
C++ Program to Implement Traveling Salesman Problem using Nearest Neighbour Algorithm | Here is a C++ Program to Implement Traveling Salesman Problem using Nearest Neighbour Algorithm.
Begin
Initialize c = 0, cost = 1000;
Initialize g[][].
function swap() is used to swap two values x and y.
function cal_sum() to calculate the cost which take array a[] and size of array as input.
Initialize ... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "Here is a C++ Program to Implement Traveling Salesman Problem using Nearest Neighbour Algorithm."
},
{
"code": null,
"e": 1716,
"s": 1159,
"text": "Begin\n Initialize c = 0, cost = 1000;\n Initialize g[][].\n function swap() is... |
Evaluation of Expression Tree in C++ | In this problem, we are given an expression tree that consist of binary operations like +, - , /, *. We need to do the evaluation of the expression tree and then return the result.
Expression Tree is a special type of binary tree in which each node either consist of an operator or operand which are distributed as−
Leaf... | [
{
"code": null,
"e": 1243,
"s": 1062,
"text": "In this problem, we are given an expression tree that consist of binary operations like +, - , /, *. We need to do the evaluation of the expression tree and then return the result."
},
{
"code": null,
"e": 1378,
"s": 1243,
"text": "E... |
VB.Net - ContextMenuStrip Control | The ContextMenuStrip control represents a shortcut menu that pops up over controls, usually when you right click them. They appear in context of some specific controls, so are called context menus. For example, Cut, Copy or Paste options.
This control associates the context menu with other menu items by setting that me... | [
{
"code": null,
"e": 2539,
"s": 2300,
"text": "The ContextMenuStrip control represents a shortcut menu that pops up over controls, usually when you right click them. They appear in context of some specific controls, so are called context menus. For example, Cut, Copy or Paste options."
},
{
... |
Android Progress Bar using ProgressDialog | Progress bars are used to show progress of a task. For example, when you are uploading or downloading something from the internet, it is better to show the progress of download/upload to the user.
In android there is a class called ProgressDialog that allows you to create progress bar. In order to do this, you need to ... | [
{
"code": null,
"e": 3804,
"s": 3607,
"text": "Progress bars are used to show progress of a task. For example, when you are uploading or downloading something from the internet, it is better to show the progress of download/upload to the user."
},
{
"code": null,
"e": 3979,
"s": 3804... |
Reinforcement Learning — Generalisation in Continuous State Space | by Jeremy Zhang | Towards Data Science | Till now I have introduced most basic ideas and algorithms of reinforcement learning with discrete state, action settings. Recall the examples we have been implemented so far, Grid World, Tic-Tac-Toe, Multi-Arm Bandits, Cliff Walking, Blackjack ... etc, most of which has a basic setting of a board or a grid in order to... | [
{
"code": null,
"e": 897,
"s": 172,
"text": "Till now I have introduced most basic ideas and algorithms of reinforcement learning with discrete state, action settings. Recall the examples we have been implemented so far, Grid World, Tic-Tac-Toe, Multi-Arm Bandits, Cliff Walking, Blackjack ... etc, m... |
3D passwords-Advanced Authentication Systems - GeeksforGeeks | 17 Dec, 2019
The increase in the usage of computer systems has given rise to many security concerns.One of the major security concern is authentication, which is the process of validating who you are to whom you claimed to be.
Current authentication systems suffer from various weaknesses. People usually use textual pas... | [
{
"code": null,
"e": 24119,
"s": 24091,
"text": "\n17 Dec, 2019"
},
{
"code": null,
"e": 24333,
"s": 24119,
"text": "The increase in the usage of computer systems has given rise to many security concerns.One of the major security concern is authentication, which is the process of... |
bokeh.plotting.figure.circle() function in Python | 17 Jun, 2020
Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with defaul... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2020"
},
{
"code": null,
"e": 362,
"s": 28,
"text": "Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, ht... |
Python – tensorflow.math.subtract() | 16 Jun, 2020
TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks.
subtract() is used to compute element wise (x-y).
Syntax: tensorflow.math.subtract(x, y, name)
Parameters:
x: It’s a tensor. Allowed dtypes are bfloat16, half, float32, float64... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Jun, 2020"
},
{
"code": null,
"e": 159,
"s": 28,
"text": "TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks."
},
{
"code": null,
"e": 209,
... |
How to check if an element is hidden in jQuery? | 28 Mar, 2019
To check if an element is hidden or not, jQuery :hidden selector can be used. .toggle() function is used to toggle the visibility of an element.
Syntax:
$(element).is(":hidden");
Example:
<!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8"> <title> Jquery Hidden element Checking <... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Mar, 2019"
},
{
"code": null,
"e": 173,
"s": 28,
"text": "To check if an element is hidden or not, jQuery :hidden selector can be used. .toggle() function is used to toggle the visibility of an element."
},
{
"code": null,
... |
Field get() method in Java with Examples | 26 Aug, 2019
The get() method of java.lang.reflect.Field used to get the value of the field object. If Field has a primitive type then the value of the field is automatically wrapped in an object. If the field is a static field, the argument of obj is ignored; it may be null Otherwise, the underlying field is an instan... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Aug, 2019"
},
{
"code": null,
"e": 665,
"s": 28,
"text": "The get() method of java.lang.reflect.Field used to get the value of the field object. If Field has a primitive type then the value of the field is automatically wrapped in an... |
HTML <b> Tag | 17 Mar, 2022
Example: This simple code example illustrates highlighting the text by making it as bold text in HTML.
HTML
<!DOCTYPE html><html><body> <h1>GeeksforGeeks</h1> <h3>HTML b tag</h3> <p> A <b>Computer Science portal</b> for geeks. It contains well written, well thought and well explain... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n17 Mar, 2022"
},
{
"code": null,
"e": 156,
"s": 53,
"text": "Example: This simple code example illustrates highlighting the text by making it as bold text in HTML."
},
{
"code": null,
"e": 161,
"s": 156,
"text": "HT... |
Python program for sum of consecutive numbers with overlapping in lists | 01 Oct, 2020
Given a List, perform summation of consecutive elements, by overlapping.
Input : test_list = [4, 7, 3, 2] Output : [11, 10, 5, 6] Explanation : 4 + 7 = 11, 7 + 3 = 10, 3 + 2 = 5, and 2 + 4 = 6.
Input : test_list = [4, 7, 3] Output : [11, 10, 7] Explanation : 4+7=11, 7+3=10, 3+4=7.
Method 1 : Using list ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 101,
"s": 28,
"text": "Given a List, perform summation of consecutive elements, by overlapping."
},
{
"code": null,
"e": 223,
"s": 101,
"text": "Input : test_list = [4, 7, 3, 2] ... |
Python | Introduction to Web development using Flask | 18 May, 2020
What is Flask?Flask is an API of Python that allows us to build up web-applications. It was developed by Armin Ronacher. Flask’s framework is more explicit than Django’s framework and is also easier to learn because it has less base code to implement a simple web-Application. A Web-Application Framework or... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 May, 2020"
},
{
"code": null,
"e": 634,
"s": 54,
"text": "What is Flask?Flask is an API of Python that allows us to build up web-applications. It was developed by Armin Ronacher. Flask’s framework is more explicit than Django’s fram... |
Thread functions in C/C++ | 23 Jun, 2020
In a Unix/Linux operating system, the C/C++ languages provide the POSIX thread(pthread) standard API(Application program Interface) for all thread related functions. It allows us to create multiple threads for concurrent process flow. It is most effective on multiprocessor or multi-core systems where threa... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2020"
},
{
"code": null,
"e": 569,
"s": 52,
"text": "In a Unix/Linux operating system, the C/C++ languages provide the POSIX thread(pthread) standard API(Application program Interface) for all thread related functions. It allow... |
Least Prime Factor | Practice | GeeksforGeeks | Given a number N, find least prime factors for all numbers from 1 to N. The least prime factor of an integer N is the smallest prime number that divides it.
Note : The least prime factor of all even numbers is 2. A prime number is its own least prime factor (as well as its own greatest prime factor).1 needs to be prin... | [
{
"code": null,
"e": 585,
"s": 238,
"text": "Given a number N, find least prime factors for all numbers from 1 to N. The least prime factor of an integer N is the smallest prime number that divides it.\nNote : The least prime factor of all even numbers is 2. A prime number is its own least prime fa... |
Python | sympy.eigenvals() method - GeeksforGeeks | 29 Jun, 2019
With the help of sympy.eigenvals() method, we can find the eigenvalues of a matrix by using sympy.eigenvals() method.
Syntax : sympy.eigenvals()Return : Return eigenvalues of a matrix.
Example #1 :In this example, we can see that by using sympy.eigenvals() method, we are able to find the eigenvalues of a m... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n29 Jun, 2019"
},
{
"code": null,
"e": 24019,
"s": 23901,
"text": "With the help of sympy.eigenvals() method, we can find the eigenvalues of a matrix by using sympy.eigenvals() method."
},
{
"code": null,
"e": 24086,
... |
Solve the MNIST Image Classification Problem | by Rakshit Raj | Towards Data Science | Solving the MNIST is a benchmark for machine learning models. It is also one of the first problems that you’ll encounter as you enter the realm of deep learning.
In this article, we will design a neural network that uses the Python library Keras to learn to classify handwritten digits of the MNIST dataset.
The crazy th... | [
{
"code": null,
"e": 333,
"s": 171,
"text": "Solving the MNIST is a benchmark for machine learning models. It is also one of the first problems that you’ll encounter as you enter the realm of deep learning."
},
{
"code": null,
"e": 479,
"s": 333,
"text": "In this article, we will... |
SLF4J - Parameterized logging | As discussed earlier in this tutorial SLF4J provides support for parameterized log messages.
You can use parameters in the messages and pass values to them later in the same statement.
As shown below, you need to use placeholders ({}) in the message (String) wherever you need and later you can pass value for place hold... | [
{
"code": null,
"e": 1878,
"s": 1785,
"text": "As discussed earlier in this tutorial SLF4J provides support for parameterized log messages."
},
{
"code": null,
"e": 1970,
"s": 1878,
"text": "You can use parameters in the messages and pass values to them later in the same statemen... |
How to Use WiFi Direct on Android? | This example demonstrate about How to Use WiFi Direct on Android
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version = "1.0" encoding = "utf-8"?>
<LinearLayout xmln... | [
{
"code": null,
"e": 1127,
"s": 1062,
"text": "This example demonstrate about How to Use WiFi Direct on Android"
},
{
"code": null,
"e": 1256,
"s": 1127,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a n... |
How to remove windows features using PowerShell? | To remove windows features, we can use command Remove-WindowsFeature command is used along with feature name.
Remove-WindowsFeature Search-Service -Verbose
VERBOSE: Uninstallation started...
VERBOSE: Continue with removal?
VERBOSE: Prerequisite processing started...
VERBOSE: Prerequisite processing succeeded.
Success R... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "To remove windows features, we can use command Remove-WindowsFeature command is used along with feature name."
},
{
"code": null,
"e": 1218,
"s": 1172,
"text": "Remove-WindowsFeature Search-Service -Verbose"
},
{
"code": null... |
Remove new line characters from rows in MySQL? | The Trim() function is used to remove new line characters from data rows in MySQL. Let us see an example. First, we will create a table. The CREATE command is used to create a table.
mysql> create table tblDemotrail
- > (
- > id int,
- > name varchar(100)
- > );
Query OK, 0 rows affected (0.57 sec)
Let us now insert so... | [
{
"code": null,
"e": 1245,
"s": 1062,
"text": "The Trim() function is used to remove new line characters from data rows in MySQL. Let us see an example. First, we will create a table. The CREATE command is used to create a table."
},
{
"code": null,
"e": 1362,
"s": 1245,
"text": ... |
C Program for Program for array rotation? | Write a C program to left rotate an array by n position. How to rotate left rotate an array n times in C programming. Logic to rotate an array to left by n position in C program.
Input: arr[]=1 2 3 4 5 6 7 8 9 10
N=3
Output: 4 5 6 7 8 9 10 1 2 3
Read elements in an array say arr.
Read elements in an array say arr.
Read... | [
{
"code": null,
"e": 1241,
"s": 1062,
"text": "Write a C program to left rotate an array by n position. How to rotate left rotate an array n times in C programming. Logic to rotate an array to left by n position in C program."
},
{
"code": null,
"e": 1308,
"s": 1241,
"text": "Inp... |
Python Program to Merge Two Lists and Sort it | When it is required to merge two lists and sort them, a method can be defined that sorts the list using ‘sort’ method.
Below is the demonstration of the same −
Live Demo
def merge_list(list_1, list_2):
merged_list = list_1 + list_2
merged_list.sort()
return(merged_list)
list_1 = [20, 18, 9, 51, 48, 31]
list_... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "When it is required to merge two lists and sort them, a method can be defined that sorts the list using ‘sort’ method."
},
{
"code": null,
"e": 1222,
"s": 1181,
"text": "Below is the demonstration of the same −"
},
{
"code": ... |
How to Use Pandas apply() inplace? - GeeksforGeeks | 28 Nov, 2021
In this article, we are going to see how to use Pandas apply() inplace in Python.
In Python, this function is equivalent to the map() function. It takes a function as an input and applies it to a DataFrame as a whole. If you’re dealing with data in the form of tables, you’ll need to choose which axis your ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 25619,
"s": 25537,
"text": "In this article, we are going to see how to use Pandas apply() inplace in Python."
},
{
"code": null,
"e": 25902,
"s": 25619,
"text": "In Pytho... |
How to create a transparent or blurred card using CSS ? - GeeksforGeeks | 29 Sep, 2021
In this article, we will create a transparent or blurred card using basic HTML and CSS properties. The blurred effect is also called the glass effect.
Approach:
In the body tag, create the layout of the card.
Define the classes to each of the components to use the CSS properties.
To apply the glass or blu... | [
{
"code": null,
"e": 26621,
"s": 26593,
"text": "\n29 Sep, 2021"
},
{
"code": null,
"e": 26772,
"s": 26621,
"text": "In this article, we will create a transparent or blurred card using basic HTML and CSS properties. The blurred effect is also called the glass effect."
},
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.