title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Java lang.Integer.toBinaryString() method | 05 Dec, 2018
The java.lang.Integer.toBinaryString() method returns a string representation of the integer argument as an unsigned integer in base 2. It accepts an argument in Int data-type and returns the corresponding binary string.
Syntax:
public static String toBinaryString(int num)
Parameter : The function accepts... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n05 Dec, 2018"
},
{
"code": null,
"e": 274,
"s": 53,
"text": "The java.lang.Integer.toBinaryString() method returns a string representation of the integer argument as an unsigned integer in base 2. It accepts an argument in Int data-typ... |
Smallest Pair Sum in an array | 11 Aug, 2021
Given an array of distinct integers arr[], the task is to find a pair which has the minimum sum and print the sum.Examples:
Input: arr[] = {1, 2, 3} Output: 3 The pair (1, 2) will have the minimum sum pair i.e. 1 + 2 = 3Input: arr[] = {3, 5, 6, 2} Output: 5
Approach:
Find the minimum element from t... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 179,
"s": 53,
"text": "Given an array of distinct integers arr[], the task is to find a pair which has the minimum sum and print the sum.Examples: "
},
{
"code": null,
"e": 315,
"s... |
Express a number as sum of consecutive numbers | 04 Oct, 2021
Given a number N, write a function to express N as sum of two or more consecutive positive numbers. If there is no solution, output -1. If there are multiple solution, then print one of them.Examples:
Input : N = 10
Output : 4 + 3 + 2 + 1
Input : N = 8
Output : -1
Input : N = 24
Output : 9 + 8 + 7
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Oct, 2021"
},
{
"code": null,
"e": 255,
"s": 52,
"text": "Given a number N, write a function to express N as sum of two or more consecutive positive numbers. If there is no solution, output -1. If there are multiple solution, then p... |
Overfitting, underfitting, and the bias-variance tradeoff | by Steve Klosterman | Towards Data Science | Overfitting, underfitting, and the bias-variance tradeoff are foundational concepts in machine learning. A model is overfit if performance on the training data, used to fit the model, is substantially better than performance on a test set, held out from the model training process. For example, the prediction error of t... | [
{
"code": null,
"e": 791,
"s": 172,
"text": "Overfitting, underfitting, and the bias-variance tradeoff are foundational concepts in machine learning. A model is overfit if performance on the training data, used to fit the model, is substantially better than performance on a test set, held out from t... |
A Simple Starter Guide to Build a Neural Network | by Jeff Hu | Towards Data Science | You will be able to program and build a vanilla Feedforward Neural Network (FNN) starting today via PyTorch. Here is the python jupyter codebase for the FNN: https://github.com/yhuag/neural-network-lab
This guide serves as a basic hands-on work to lead you through building a neural network from scratch. Most of the mat... | [
{
"code": null,
"e": 374,
"s": 172,
"text": "You will be able to program and build a vanilla Feedforward Neural Network (FNN) starting today via PyTorch. Here is the python jupyter codebase for the FNN: https://github.com/yhuag/neural-network-lab"
},
{
"code": null,
"e": 594,
"s": 37... |
Helping Kids Play With Artificial Intelligence | by Jason Boog | Towards Data Science | Every day, our kids are swept through the world by algorithms.
YouTube algorithms decide what videos they watch, GPS algorithms map what route they take to school, Spotify algorithms select what songs they hear, and personal assistants like Siri and Alexa advise them — all of it driven by artificial intelligence.
Kids ... | [
{
"code": null,
"e": 235,
"s": 172,
"text": "Every day, our kids are swept through the world by algorithms."
},
{
"code": null,
"e": 487,
"s": 235,
"text": "YouTube algorithms decide what videos they watch, GPS algorithms map what route they take to school, Spotify algorithms sel... |
Tryit Editor v3.7 | Tryit: Template 1 - using grid | [] |
Spatial Filtering and its Types - GeeksforGeeks | 06 Dec, 2019
Spatial Filtering technique is used directly on pixels of an image. Mask is usually considered to be added in size so that it has specific center pixel. This mask is moved on the image such that the center of the mask traverses all image pixels.
Classification on the basis of linearity:There are two types:... | [
{
"code": null,
"e": 24552,
"s": 24524,
"text": "\n06 Dec, 2019"
},
{
"code": null,
"e": 24798,
"s": 24552,
"text": "Spatial Filtering technique is used directly on pixels of an image. Mask is usually considered to be added in size so that it has specific center pixel. This mask ... |
Build your own deep learning image classification model in Keras | by Edward Jones | Towards Data Science | Image classification is a field of artificial intelligence that is gaining in popularity in the latest years. It has various applications: self-driving cars, face recognition, augmented reality,... .
In this article, you will learn how to build a deep learning image classification model that is able to detect which obj... | [
{
"code": null,
"e": 372,
"s": 172,
"text": "Image classification is a field of artificial intelligence that is gaining in popularity in the latest years. It has various applications: self-driving cars, face recognition, augmented reality,... ."
},
{
"code": null,
"e": 534,
"s": 372,... |
Splitting Arrays in NumPy - GeeksforGeeks | 10 May, 2020
Array splitting can be vertical, horizontal, or depth-wise. We can use functions hsplit(), vsplit() and dsplit() respectively for the same . We can split arrays into arrays of the same shape by indicating the position after which the split should occur.
Horizontal splitting: The ‘hsplit()’ function splits ... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 24155,
"s": 23901,
"text": "Array splitting can be vertical, horizontal, or depth-wise. We can use functions hsplit(), vsplit() and dsplit() respectively for the same . We can split arrays in... |
Share Price Forecasting Using Facebook Prophet - GeeksforGeeks | 30 Aug, 2021
Time series forecast can be used in a wide verity of applications such as Budget Forecasting, Stock Market Analysis, etc. But as useful it is also challenging to forecast the correct projections, Thus can’t be easily automated because of the underlying assumptions and factors. The analysts who produced acc... | [
{
"code": null,
"e": 24639,
"s": 24611,
"text": "\n30 Aug, 2021"
},
{
"code": null,
"e": 25165,
"s": 24639,
"text": "Time series forecast can be used in a wide verity of applications such as Budget Forecasting, Stock Market Analysis, etc. But as useful it is also challenging to f... |
How to move button in the same line with Checkbox and Textbox using JavaScript ? - GeeksforGeeks | 16 Jul, 2020
The style “display” property in HTML DOM is used to set elements to “display” property. To set the button in the same line with other elements of the web page is done using the inline property.
Syntax:
It returns the “display” property.object.style.display
object.style.display
It sets the “display” propert... | [
{
"code": null,
"e": 26083,
"s": 26055,
"text": "\n16 Jul, 2020"
},
{
"code": null,
"e": 26277,
"s": 26083,
"text": "The style “display” property in HTML DOM is used to set elements to “display” property. To set the button in the same line with other elements of the web page is d... |
LocalDate compareTo() method in Java - GeeksforGeeks | 28 Nov, 2018
The compareTo() method of LocalDate class in Java method compares this date to another date.
Syntax:
public int compareTo(ChronoLocalDate other)
Parameter: This method accepts a parameter other which specifies the other date to compare to and it is not specifically null.
Return Value: It returns the compa... | [
{
"code": null,
"e": 25559,
"s": 25531,
"text": "\n28 Nov, 2018"
},
{
"code": null,
"e": 25652,
"s": 25559,
"text": "The compareTo() method of LocalDate class in Java method compares this date to another date."
},
{
"code": null,
"e": 25660,
"s": 25652,
"text"... |
HTML <hgroup> Tag - GeeksforGeeks | 17 Mar, 2022
The <hgroup> tag in HTML stands for heading group and is used to group the heading elements. The <hgroup> tag in HTML is used to wrap one or more heading elements from <h1> to <h6>, such as the headings and sub-headings. The <hgroup> tag requires the starting tag as well as ending tag.
Note: <hgroup> is de... | [
{
"code": null,
"e": 24325,
"s": 24297,
"text": "\n17 Mar, 2022"
},
{
"code": null,
"e": 24612,
"s": 24325,
"text": "The <hgroup> tag in HTML stands for heading group and is used to group the heading elements. The <hgroup> tag in HTML is used to wrap one or more heading elements ... |
ML | Bagging classifier - GeeksforGeeks | 20 May, 2019
A Bagging classifier is an ensemble meta-estimator that fits base classifiers each on random subsets of the original dataset and then aggregate their individual predictions (either by voting or by averaging) to form a final prediction. Such a meta-estimator can typically be used as a way to reduce the vari... | [
{
"code": null,
"e": 25481,
"s": 25453,
"text": "\n20 May, 2019"
},
{
"code": null,
"e": 26349,
"s": 25481,
"text": "A Bagging classifier is an ensemble meta-estimator that fits base classifiers each on random subsets of the original dataset and then aggregate their individual pr... |
Find length of longest Fibonacci like subsequence - GeeksforGeeks | 05 Apr, 2022
Given a strictly increasing array A of positive integers where,
. The task is to find the length of the longest Fibonacci-like subsequence of A. If such subsequence does not exist, return 0.
Examples:
Input: A = [1, 3, 7, 11, 12, 14, 18] Output: 3 Explanation: The longest subsequence that is Fibonacci-l... | [
{
"code": null,
"e": 26117,
"s": 26089,
"text": "\n05 Apr, 2022"
},
{
"code": null,
"e": 26182,
"s": 26117,
"text": "Given a strictly increasing array A of positive integers where, "
},
{
"code": null,
"e": 26311,
"s": 26184,
"text": ". The task is to find the... |
Longest substring where all the characters appear at least K times | Set 3 - GeeksforGeeks | 02 May, 2022
Given a string str and an integer K, the task is to find the length of the longest substring S such that every character in S appears at least K times.
Examples:
Input: str = “aabbba”, K = 3Output: 6Explanation: In substring “aabbba”, each character repeats at least k times and its length is 6.
Input: str ... | [
{
"code": null,
"e": 26401,
"s": 26373,
"text": "\n02 May, 2022"
},
{
"code": null,
"e": 26553,
"s": 26401,
"text": "Given a string str and an integer K, the task is to find the length of the longest substring S such that every character in S appears at least K times."
},
{
... |
Find all missing numbers from a given sorted array - GeeksforGeeks | 08 Feb, 2022
Given a sorted array arr[] of N integers, The task is to find the multiple missing elements in the array between the ranges [arr[0], arr[N-1]].
Examples:
Input: arr[] = {6, 7, 10, 11, 13}Output: 8 9 12 Explanation: The elements of the array are present in the range of the maximum and minimum array element ... | [
{
"code": null,
"e": 26067,
"s": 26039,
"text": "\n08 Feb, 2022"
},
{
"code": null,
"e": 26211,
"s": 26067,
"text": "Given a sorted array arr[] of N integers, The task is to find the multiple missing elements in the array between the ranges [arr[0], arr[N-1]]."
},
{
"code... |
Adding Text to Plots in R programming - text() and mtext () Function - GeeksforGeeks | 07 Dec, 2021
Text is defined as a way to describe data related to graphical representation. They work as labels to any pictorial or graphical representation. In this article, we will learn to add a text to a plot in R Programming Language by using the text() and mtext() functions.
text () Function in R Programming Lang... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n07 Dec, 2021"
},
{
"code": null,
"e": 26756,
"s": 26487,
"text": "Text is defined as a way to describe data related to graphical representation. They work as labels to any pictorial or graphical representation. In this article, w... |
Find unique elements in linked list - GeeksforGeeks | 25 Jun, 2021
Given a linked list. We need to find unique elements in the linked list i.e, those elements which are not repeated in the linked list or those elements whose frequency is 1. If No such elements are present in list so Print ” No Unique Elements”.Examples:
Input : 1 -> 4 -> 4 -> 2 -> 3 -> 5 -> 3 -> 4 -> 5
... | [
{
"code": null,
"e": 26441,
"s": 26413,
"text": "\n25 Jun, 2021"
},
{
"code": null,
"e": 26698,
"s": 26441,
"text": "Given a linked list. We need to find unique elements in the linked list i.e, those elements which are not repeated in the linked list or those elements whose frequ... |
How to Delete a Firebase User from Android App? - GeeksforGeeks | 12 Mar, 2021
We have seen in many of the apps that if have the choice to delete the user or can say your account permanently. Here we are going to see how we can implement that in our app and can delete our account permanently from the firebase authentication. Here while writing our code we will remove the user but bef... | [
{
"code": null,
"e": 26405,
"s": 26377,
"text": "\n12 Mar, 2021"
},
{
"code": null,
"e": 26755,
"s": 26405,
"text": "We have seen in many of the apps that if have the choice to delete the user or can say your account permanently. Here we are going to see how we can implement that... |
ISRO | ISRO CS 2018 | Question 76 - GeeksforGeeks | 04 Jul, 2018
Let us assume that transaction T1 has arrived before transaction T2. Consider the schedule
S=r1(A); r2(B) ; w2(A); w1(B)
Which of the following is true?(A) Allowed under basic timestamp protocol.(B) Not allowed under basic timestamp protocols because T1 is rolled back(C) Not allowed under basic timestamp ... | [
{
"code": null,
"e": 25729,
"s": 25701,
"text": "\n04 Jul, 2018"
},
{
"code": null,
"e": 25820,
"s": 25729,
"text": "Let us assume that transaction T1 has arrived before transaction T2. Consider the schedule"
},
{
"code": null,
"e": 25851,
"s": 25820,
"text": ... |
Program to check if matrix is lower triangular - GeeksforGeeks | 26 Apr, 2021
Given a square matrix and the task is to check the matrix is in lower triangular form or not. A square matrix is called lower triangular if all the entries above the main diagonal are zero.
Examples:
Input : mat[4][4] = {{1, 0, 0, 0},
{1, 4, 0, 0},
{4, 6, 2, 0}... | [
{
"code": null,
"e": 26408,
"s": 26380,
"text": "\n26 Apr, 2021"
},
{
"code": null,
"e": 26600,
"s": 26408,
"text": "Given a square matrix and the task is to check the matrix is in lower triangular form or not. A square matrix is called lower triangular if all the entries above t... |
JavaScript parseFloat() Function - GeeksforGeeks | 09 Dec, 2021
Below is the example of the parseFloat() function.
Example:javascriptjavascript<script> var v2 = parseFloat("3.14"); document.write('Using parseFloat("3.14") = ' + v2 + "<br>");</script>
javascript
<script> var v2 = parseFloat("3.14"); document.write('Using parseFloat("3.14") = ' + ... | [
{
"code": null,
"e": 25475,
"s": 25447,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 25526,
"s": 25475,
"text": "Below is the example of the parseFloat() function."
},
{
"code": null,
"e": 25674,
"s": 25526,
"text": "Example:javascriptjavascript<script> ... |
How to animate jQuery addClass/removeClass functions ? - GeeksforGeeks | 21 May, 2021
In this article, we will learn to animate using jQuery addClass() and removeClass() functions.
We are going to use jQuery and jQuery UI. jQuery UI (User Interface) is free and open-source software that is built on top of the core powerful jQuery library. If you want to use jQuery UI, you must include jQue... | [
{
"code": null,
"e": 26978,
"s": 26950,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 27073,
"s": 26978,
"text": "In this article, we will learn to animate using jQuery addClass() and removeClass() functions."
},
{
"code": null,
"e": 27376,
"s": 27073,
"tex... |
Check if a given array can represent Preorder Traversal of Binary Search Tree - GeeksforGeeks | 20 Jan, 2022
Given an array of numbers, return true if given array can represent preorder traversal of a Binary Search Tree, else return false. Expected time complexity is O(n).
Examples:
Input: pre[] = {2, 4, 3}
Output: true
Given array can represent preorder traversal
of below tree
2
\
4
/
3
... | [
{
"code": null,
"e": 26549,
"s": 26521,
"text": "\n20 Jan, 2022"
},
{
"code": null,
"e": 26714,
"s": 26549,
"text": "Given an array of numbers, return true if given array can represent preorder traversal of a Binary Search Tree, else return false. Expected time complexity is O(n)... |
Difference between AI and Soft Computing - GeeksforGeeks | 25 Mar, 2020
Artificial Intelligence:AI manages more comprehensive issues of automating a system. This computerization should be possible by utilizing any field such as image processing, cognitive science, neural systems, machine learning etc. AI manages the making of machines, frameworks and different gadgets savvy by... | [
{
"code": null,
"e": 26167,
"s": 26139,
"text": "\n25 Mar, 2020"
},
{
"code": null,
"e": 26541,
"s": 26167,
"text": "Artificial Intelligence:AI manages more comprehensive issues of automating a system. This computerization should be possible by utilizing any field such as image p... |
Animated modal using react, framer-motion & styled-components - GeeksforGeeks | 12 Mar, 2021
In this article, we are going to learn how to create an animated modal using react, framer-motion & styled-components.
Prerequisites:
Knowledge of JavaScript (ES6).Arrow function (ES6)Ternary operatordocument.body.styleKnowledge of HTML/CSS.Basic knowledge of ReactJS.React useState
Knowledge of JavaScript ... | [
{
"code": null,
"e": 26071,
"s": 26043,
"text": "\n12 Mar, 2021"
},
{
"code": null,
"e": 26190,
"s": 26071,
"text": "In this article, we are going to learn how to create an animated modal using react, framer-motion & styled-components."
},
{
"code": null,
"e": 26205,
... |
Python - Extract selective keys' values Including Nested Keys - GeeksforGeeks | 04 Jan, 2022
Sometimes, while working with Python dictionaries, we can have a problem in which we need to extract selective keys’ values. This problem has been solved earlier, but sometimes, we can have multiple nestings and certain keys may be present in inner records. This problem caters all the nestings for extracti... | [
{
"code": null,
"e": 25837,
"s": 25809,
"text": "\n04 Jan, 2022"
},
{
"code": null,
"e": 26225,
"s": 25837,
"text": "Sometimes, while working with Python dictionaries, we can have a problem in which we need to extract selective keys’ values. This problem has been solved earlier, ... |
JQuery | Set the value of an input text field - GeeksforGeeks | 03 Aug, 2021
There is a Input Element, the task is to set its value using JQuery. Here are a few examples discussed.To understand example first few methods to know.JQuery val() method:This method return/set the value attribute of selected elements.If we use this method to return value, it will return the value of the F... | [
{
"code": null,
"e": 26602,
"s": 26574,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 27053,
"s": 26602,
"text": "There is a Input Element, the task is to set its value using JQuery. Here are a few examples discussed.To understand example first few methods to know.JQuery val()... |
insmod command in Linux with examples - GeeksforGeeks | 22 May, 2019
insmod command in Linux systems is used to insert modules into the kernel. Linux is an Operating System which allows the user to load kernel modules on run time to extend the kernel functionalities. LKMs(Loadable Kernel Modules) are usually used to add support for new hardware (as device drivers) and/or fi... | [
{
"code": null,
"e": 26061,
"s": 26033,
"text": "\n22 May, 2019"
},
{
"code": null,
"e": 26539,
"s": 26061,
"text": "insmod command in Linux systems is used to insert modules into the kernel. Linux is an Operating System which allows the user to load kernel modules on run time to... |
How to set title for action bar in android? | This example demonstrates How to set title for action bar in 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... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "This example demonstrates How to set title for action bar in android."
},
{
"code": null,
"e": 1261,
"s": 1132,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to creat... |
Measure execution time of small Python code snippets (timeit) | The Timer class and other convenience functions in timeit module of Python's standard library are designed to provide a mechanism to measure time taken by small bits of Python code to execute. The module has a command line interface and the functions can be called from within program as well.
Easiest way to measure tim... | [
{
"code": null,
"e": 1356,
"s": 1062,
"text": "The Timer class and other convenience functions in timeit module of Python's standard library are designed to provide a mechanism to measure time taken by small bits of Python code to execute. The module has a command line interface and the functions ca... |
A Practitioner’s Guide To Interrupted Time Series | by Leihua Ye, PhD | Towards Data Science | In the world of causal inference, Randomized Controlled Trials, RCTs, are considered the gold standard as it rules out any covariate differences before the intervention. However, running a RCT isn’t an option for multiple reasons (e.g., too expensive, invalid assumptions, too long, not ethical, etc.).
Under these circu... | [
{
"code": null,
"e": 350,
"s": 47,
"text": "In the world of causal inference, Randomized Controlled Trials, RCTs, are considered the gold standard as it rules out any covariate differences before the intervention. However, running a RCT isn’t an option for multiple reasons (e.g., too expensive, inva... |
Python String isspace() Method - GeeksforGeeks | 12 Aug, 2021
Python String isspace() is a built-in method used for string handling. The isspace() method returns “True” if all characters in the string are whitespace characters, Otherwise, It returns “False”. This function is used to check if the argument contains all whitespace characters such as:
‘ ‘ – Space
‘\t’ – ... | [
{
"code": null,
"e": 23432,
"s": 23404,
"text": "\n12 Aug, 2021"
},
{
"code": null,
"e": 23720,
"s": 23432,
"text": "Python String isspace() is a built-in method used for string handling. The isspace() method returns “True” if all characters in the string are whitespace character... |
XAML - Debugging | If you are familiar with debugging in any procedural language (such as C#, C/C++ etc.) and you know the usage of break and are expecting the same kind of debugging in XAML, then you will be surprised to know that it is not possible yet to debug an XAML code like the way you used to debug any other procedural language c... | [
{
"code": null,
"e": 2301,
"s": 1923,
"text": "If you are familiar with debugging in any procedural language (such as C#, C/C++ etc.) and you know the usage of break and are expecting the same kind of debugging in XAML, then you will be surprised to know that it is not possible yet to debug an XAML ... |
Execute INSERT if table is empty in MySQL? | You can execute insert if table is empty with the help of subquery. For that, work on not exists condition with subquery.
The below syntax will work only when your table is empty. If your table is not empty then it will not insert the record. The syntax is as follows:
INSERT INTO yourTableName(yourColumnName)
SELECT ‘a... | [
{
"code": null,
"e": 1184,
"s": 1062,
"text": "You can execute insert if table is empty with the help of subquery. For that, work on not exists condition with subquery."
},
{
"code": null,
"e": 1331,
"s": 1184,
"text": "The below syntax will work only when your table is empty. If... |
Amazon Interview Experience for SDE-1 FTE (On-Campus) - GeeksforGeeks | 22 Feb, 2022
Amazon visited our campus for SDE-1 FTE hiring. There were a total of 4 rounds (1 Coding Test+3 Technical Interviews)
Round 1 (Coding Test): This round had 4 sections, debugging, coding, Workstyle Assessment, and aptitude. Debugging and aptitude were easy and didn’t even require any preparation. You just n... | [
{
"code": null,
"e": 25351,
"s": 25323,
"text": "\n22 Feb, 2022"
},
{
"code": null,
"e": 25469,
"s": 25351,
"text": "Amazon visited our campus for SDE-1 FTE hiring. There were a total of 4 rounds (1 Coding Test+3 Technical Interviews)"
},
{
"code": null,
"e": 25705,
... |
Design finite automata from regular expressions - GeeksforGeeks | 05 Jul, 2021
Prerequisite – Finite automata, Regular expressions, grammar, and language.
In this article, we will see some popular regular expressions and how we can convert them to finite automata (NFA and DFA). Let’s discuss it one by one.
Overview :Let a and b are input symbols and r is the regular expression. Now ... | [
{
"code": null,
"e": 24272,
"s": 24244,
"text": "\n05 Jul, 2021"
},
{
"code": null,
"e": 24349,
"s": 24272,
"text": "Prerequisite – Finite automata, Regular expressions, grammar, and language."
},
{
"code": null,
"e": 24502,
"s": 24349,
"text": "In this artic... |
OpenCV - Reading an Image as Grayscale | The following program demonstrates how to read a colored image as grayscale and display it using JavaFX window. In here, we have read the image by passing the flag IMREAD_GRAYSCALE along with the String holding the path of a colored image.
import java.awt.image.BufferedImage;
import org.opencv.core.Core;
import org.op... | [
{
"code": null,
"e": 3244,
"s": 3004,
"text": "The following program demonstrates how to read a colored image as grayscale and display it using JavaFX window. In here, we have read the image by passing the flag IMREAD_GRAYSCALE along with the String holding the path of a colored image."
},
{
... |
Print all possible words from phone digits in C++ | In this problem, we are given a number and we have to print all words that can be formed by pressing those words in an old fashioned mobile keyboard.
We are quite familiar with the QWERTY keyboard style that we use today. But before the invention of QWERTY keypad phones were fitted with keypads with 12 buttons and each... | [
{
"code": null,
"e": 1212,
"s": 1062,
"text": "In this problem, we are given a number and we have to print all words that can be formed by pressing those words in an old fashioned mobile keyboard."
},
{
"code": null,
"e": 1542,
"s": 1212,
"text": "We are quite familiar with the Q... |
Recreating Gapminder Animation in 2 lines of Python with Plotly Express | by AbdulMajedRaja RS | Towards Data Science | Disclaimer: A new moduleplotly_express is used, Gapminder Animation not coded from scratch using 2 lines
It’s one of the iconic moments of Data Visualization when Hans Rosling presented the famous Gapminder Animation in his TED talk which is one of the most viewed TED talks ever. Since then, It’s been like a benchmark ... | [
{
"code": null,
"e": 277,
"s": 172,
"text": "Disclaimer: A new moduleplotly_express is used, Gapminder Animation not coded from scratch using 2 lines"
},
{
"code": null,
"e": 661,
"s": 277,
"text": "It’s one of the iconic moments of Data Visualization when Hans Rosling presented ... |
MySQL - ROLLBACK TO SAVEPOINT Statement | The SAVEPOINT statement is used to set a save point for the transaction with the specified name. If a save point with the given name already exists the old one will be deleted.
The ROLLBACK TO SAVEPOINT statement is similar to ROLLBACK except it undoes all the changes done by the current transaction to the last named s... | [
{
"code": null,
"e": 2510,
"s": 2333,
"text": "The SAVEPOINT statement is used to set a save point for the transaction with the specified name. If a save point with the given name already exists the old one will be deleted."
},
{
"code": null,
"e": 2753,
"s": 2510,
"text": "The R... |
How to Recover Deleted Files Using Foremost in Linux? - GeeksforGeeks | 17 Nov, 2020
Foremost is a digital forensic application that is used to recover lost or deleted files. Foremost can recover the files for hard disk, memory card, pen drive, and another mode of memory devices easily. It can also work on the image files that are being generated by any other Application. It is a free comm... | [
{
"code": null,
"e": 24350,
"s": 24322,
"text": "\n17 Nov, 2020"
},
{
"code": null,
"e": 25201,
"s": 24350,
"text": "Foremost is a digital forensic application that is used to recover lost or deleted files. Foremost can recover the files for hard disk, memory card, pen drive, and... |
RatingBar in Kotlin - GeeksforGeeks | 02 Feb, 2022
Android RatingBar is a user interface widget which is used to get the rating from the customers or users. It is an extension of SeekBar and ProgressBar that shows star ratings and it allow users to give the rating by clicking on the stars.
In RatingBar, we can set the step size using android:stepSize and i... | [
{
"code": null,
"e": 23947,
"s": 23919,
"text": "\n02 Feb, 2022"
},
{
"code": null,
"e": 24187,
"s": 23947,
"text": "Android RatingBar is a user interface widget which is used to get the rating from the customers or users. It is an extension of SeekBar and ProgressBar that shows ... |
How to compare string and number in Python? | Objects of different types except numbers are ordered by their type names; objects of the same types that don’t support proper comparison are ordered by their address. When you order two strings or two numeric types the ordering is done in the expected way (lexicographic ordering for string, numeric ordering for intege... | [
{
"code": null,
"e": 1387,
"s": 1062,
"text": "Objects of different types except numbers are ordered by their type names; objects of the same types that don’t support proper comparison are ordered by their address. When you order two strings or two numeric types the ordering is done in the expected ... |
D3.js - Working Example | Let us perform an animated bar chart in this chapter. For this example, we take the data.csv file used in the previous chapter of the population records as dataset and generate an animated bar chart.
To do this, we need to perform the following steps −
Step 1 − Apply styles − Apply CSS styles using the coding given bel... | [
{
"code": null,
"e": 2330,
"s": 2130,
"text": "Let us perform an animated bar chart in this chapter. For this example, we take the data.csv file used in the previous chapter of the population records as dataset and generate an animated bar chart."
},
{
"code": null,
"e": 2383,
"s": 2... |
3 Tools to Track and Visualize the Execution of your Python Code | by Khuyen Tran | Towards Data Science | Have you ever seen an error output like below:
2 divided by 1 is equal to 2.0.Traceback (most recent call last): File "loguru_example.py", line 17, in <module> divide_numbers(num_list) File "loguru_example.py", line 11, in divide_numbers res = division(num1, num2) File "loguru_example.py", line 5, in division ... | [
{
"code": null,
"e": 219,
"s": 172,
"text": "Have you ever seen an error output like below:"
},
{
"code": null,
"e": 547,
"s": 219,
"text": "2 divided by 1 is equal to 2.0.Traceback (most recent call last): File \"loguru_example.py\", line 17, in <module> divide_numbers(num_l... |
Basic Linear Programming in Python with PuLP | by Rahul Banerjee | Towards Data Science | A basic Linear Programming problem is where we are given multiple equations. The value of one of the equations has to be maximized or minimized while the other equations are constraints. In high school, we used to plot the equations on a graph, shade the feasible region and find the value of the equation to be maximize... | [
{
"code": null,
"e": 651,
"s": 172,
"text": "A basic Linear Programming problem is where we are given multiple equations. The value of one of the equations has to be maximized or minimized while the other equations are constraints. In high school, we used to plot the equations on a graph, shade the ... |
Explain the sorting techniques in C language | What are the different sorting techniques in C Language? Explain any one sorting technique with an example.
C language provides five sorting techniques, which are as follows −
Bubble sort (or) Exchange Sort.
Selection sort.
Insertion sort (or) Linear sort.
Quick sort (or) Partition exchange sort.
Merge Sort (or) Extern... | [
{
"code": null,
"e": 1170,
"s": 1062,
"text": "What are the different sorting techniques in C Language? Explain any one sorting technique with an example."
},
{
"code": null,
"e": 1238,
"s": 1170,
"text": "C language provides five sorting techniques, which are as follows −"
},
... |
Apache Presto - Quick Guide | Data analytics is the process of analyzing raw data to gather relevant information for better decision making. It is primarily used in many organizations to make business decisions. Well, big data analytics involves a large amount of data and this process is quite complex, hence companies use different strategies.
For ... | [
{
"code": null,
"e": 2322,
"s": 2006,
"text": "Data analytics is the process of analyzing raw data to gather relevant information for better decision making. It is primarily used in many organizations to make business decisions. Well, big data analytics involves a large amount of data and this proce... |
FuzzyWuzzy: How to Measure String Distance on Python | by Luciano Strika | Towards Data Science | Python’s FuzzyWuzzy library is used for measuring the similarity between two strings. Here’s how you can start using it too.
Sometimes, we need to see whether two strings are the same. When comparing an entered password’s hash to the one stored in your login database, ‘similarity’ just won’t cut it.
Other times, howeve... | [
{
"code": null,
"e": 297,
"s": 172,
"text": "Python’s FuzzyWuzzy library is used for measuring the similarity between two strings. Here’s how you can start using it too."
},
{
"code": null,
"e": 473,
"s": 297,
"text": "Sometimes, we need to see whether two strings are the same. W... |
Set the speed of the hover effect with CSS | To set the speed of the hover, use the transition-duration property. To set the hover, use the :hover selector.
You can try to run the following code to speed the hover effect −
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
.btn {
background-color: yellow;
color: black;
... | [
{
"code": null,
"e": 1174,
"s": 1062,
"text": "To set the speed of the hover, use the transition-duration property. To set the hover, use the :hover selector."
},
{
"code": null,
"e": 1240,
"s": 1174,
"text": "You can try to run the following code to speed the hover effect −"
}... |
Print all internal nodes of a Binary tree - GeeksforGeeks | 28 Jun, 2021
Given a Binary tree, the task is to print all the internal nodes in a tree. An internal node is a node which carries at least one child or in other words, an internal node is not a leaf node. Here we intend to print all such internal nodes in level order. Consider the following Binary Tree:
Input:
Outpu... | [
{
"code": null,
"e": 24663,
"s": 24635,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24956,
"s": 24663,
"text": "Given a Binary tree, the task is to print all the internal nodes in a tree. An internal node is a node which carries at least one child or in other words, an inter... |
Data Backup and Restoration in Cassandra - GeeksforGeeks | 23 Dec, 2019
In this article, we will discuss how we can Backup and Restore our data and also discuss how many ways we can restore our data in Cassandra. We can restore our data by using a snapshot and by using sstableloader utility and by using a nodetool refresh.
Let’s discuss one by one.
First, we are going to creat... | [
{
"code": null,
"e": 23689,
"s": 23661,
"text": "\n23 Dec, 2019"
},
{
"code": null,
"e": 23942,
"s": 23689,
"text": "In this article, we will discuss how we can Backup and Restore our data and also discuss how many ways we can restore our data in Cassandra. We can restore our dat... |
Image based Steganography using Python? | Steganography is a technique of hiding information behind the scene. It’s is not like cryptography which focuses on encrypting data(through different algorithms like SHA1, MD5 etc), steganography focuses more on hiding the data (data can be a file, image, message or video) within another file, image, message or video t... | [
{
"code": null,
"e": 1406,
"s": 1062,
"text": "Steganography is a technique of hiding information behind the scene. It’s is not like cryptography which focuses on encrypting data(through different algorithms like SHA1, MD5 etc), steganography focuses more on hiding the data (data can be a file, imag... |
Flutter - Deployment | This chapter explains how to deploy Flutter application in both Android and iOS platforms.
Change the application name using android:label entry in android manifest file. Android app manifest file, AndroidManifest.xml is located in <app dir>/android/app/src/main. It contains entire details about an android application.... | [
{
"code": null,
"e": 2309,
"s": 2218,
"text": "This chapter explains how to deploy Flutter application in both Android and iOS platforms."
},
{
"code": null,
"e": 2598,
"s": 2309,
"text": "Change the application name using android:label entry in android manifest file. Android app... |
C# Linq Sum() Method | Find the sum of elements using the Linq Sum() method.
Here’s our list with integer elements.
List<int> list = new List<int> { 99, 34, 77, 75, 87, 35, 88};
Now find the sum using the Sum() method.
list.AsQueryable().Sum();
The following is an example to find the sum of elements of a list with integer elements.
Live Dem... | [
{
"code": null,
"e": 1116,
"s": 1062,
"text": "Find the sum of elements using the Linq Sum() method."
},
{
"code": null,
"e": 1155,
"s": 1116,
"text": "Here’s our list with integer elements."
},
{
"code": null,
"e": 1217,
"s": 1155,
"text": "List<int> list = n... |
Keyboard shortcuts with Tkinter in Python 3 | Tkinter window contains many inbuilt functionalities and features which can be taken and used for various application development. There might be cases when we have to run a particular part of the application with the help of some key or function. It can be achieved by binding a particular key with the callback that co... | [
{
"code": null,
"e": 1545,
"s": 1062,
"text": "Tkinter window contains many inbuilt functionalities and features which can be taken and used for various application development. There might be cases when we have to run a particular part of the application with the help of some key or function. It ca... |
MySQL Error ERROR 1099 (HY000): Table was locked with a READ lock and can't be updated | To get rid of LOCK TABLES query, you need to use UNLOCK TABLES.
Let us create a table −
mysql> create table demo6
−> (
−> country_name varchar(100
−> )
−> );
Query OK, 0 rows affected (1.51 sec)
Insert some records into the table with the help of insert command −
mysql> insert into demo6 values('US');
Query OK, 1 row a... | [
{
"code": null,
"e": 1126,
"s": 1062,
"text": "To get rid of LOCK TABLES query, you need to use UNLOCK TABLES."
},
{
"code": null,
"e": 1150,
"s": 1126,
"text": "Let us create a table −"
},
{
"code": null,
"e": 1257,
"s": 1150,
"text": "mysql> create table dem... |
Python PIL | Image.frombuffer() method | 07 Aug, 2019
PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to represent a PIL image. The module also provides a number of factory functions, including functions to load images from files, and to... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Aug, 2019"
},
{
"code": null,
"e": 355,
"s": 28,
"text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to ... |
Generic Trees(N-array Trees) | 28 Sep, 2020
Generic trees are a collection of nodes where each node is a data structure that consists of records and a list of references to its children(duplicate references are not allowed). Unlike the linked list, each node stores the address of multiple nodes. Every node stores address of its children and the very... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Sep, 2020"
},
{
"code": null,
"e": 433,
"s": 54,
"text": "Generic trees are a collection of nodes where each node is a data structure that consists of records and a list of references to its children(duplicate references are not all... |
host command in Linux with examples | 21 May, 2019
host command in Linux system is used for DNS (Domain Name System) lookup operations. In simple words, this command is used to find the IP address of a particular domain name or if you want to find out the domain name of a particular IP address the host command becomes handy. You can also find more specific... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 May, 2019"
},
{
"code": null,
"e": 448,
"s": 53,
"text": "host command in Linux system is used for DNS (Domain Name System) lookup operations. In simple words, this command is used to find the IP address of a particular domain name ... |
Python | Union of two or more Lists | 21 Nov, 2018
Union of a list means, we must take all the elements from list A and list B (there can be more than two lists) and put them inside a single new list. There are various orders in which we can combine the lists. For e.g., we can maintain the repetition and order or remove the repeated elements in the final l... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Nov, 2018"
},
{
"code": null,
"e": 384,
"s": 53,
"text": "Union of a list means, we must take all the elements from list A and list B (there can be more than two lists) and put them inside a single new list. There are various orders... |
VLOOKUP On Multiple Criteria Columns Using Helper Method & CHOOSE Function | 09 Sep, 2021
In this article, we will see how we can combine multiple values, and use them as lookup criteria for searching specific value(s) in the excel dataset. For this purpose, we will use the VLOOKUP formula, the most basic formula to perform a lookup for value(s) on excel. We will see a modified form of VLOOKUP ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Sep, 2021"
},
{
"code": null,
"e": 378,
"s": 28,
"text": "In this article, we will see how we can combine multiple values, and use them as lookup criteria for searching specific value(s) in the excel dataset. For this purpose, we wil... |
Paper Cut into Minimum Number of Squares | 22 Jun, 2022
Given a paper of size, A x B. Task is to cut the paper into squares of any size. Find the minimum number of squares that can be cut from the paper. Examples:
Input : 13 x 29
Output : 9
Explanation :
2 (squares of size 13x13) +
4 (squares of size 3x3) +
3 (squares of size 1x1)=9
Input : 4 x 5
Output... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 214,
"s": 54,
"text": "Given a paper of size, A x B. Task is to cut the paper into squares of any size. Find the minimum number of squares that can be cut from the paper. Examples: "
},
{
... |
LocalDate of() method in Java with Examples | 21 May, 2020
The of(int, int, int) method of LocalDate class in Java is used to create an instance of LocalDate from the input year, month and day of the month. In this method, all the three parameters are passed in the form of integer.Syntax:public static LocalDate of(int year,
int month,
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 May, 2020"
},
{
"code": null,
"e": 3612,
"s": 28,
"text": "The of(int, int, int) method of LocalDate class in Java is used to create an instance of LocalDate from the input year, month and day of the month. In this method, all the th... |
Template Specialization in C++ | 12 Jun, 2022
Template in C++is a feature. We write code once and use it for any data type including user defined data types. For example, sort() can be written and used to sort any data type items. A class stack can be created that can be used as a stack of any data type. What if we want a different code for a particul... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n12 Jun, 2022"
},
{
"code": null,
"e": 810,
"s": 52,
"text": "Template in C++is a feature. We write code once and use it for any data type including user defined data types. For example, sort() can be written and used to sort any data t... |
Reducing Execution time in Python using List Comprehensions | 10 Jul, 2020
Prerequisites: Comprehensions in Python
Most of the competitive programmers who code in Python often face difficulty in executing the programs within the given time limit. List Comprehensions help us in reducing the execution time of a program where you are required to create a list based on any mathematic... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 94,
"s": 54,
"text": "Prerequisites: Comprehensions in Python"
},
{
"code": null,
"e": 434,
"s": 94,
"text": "Most of the competitive programmers who code in Python often face d... |
Check input character is alphabet, digit or special character | 19 Apr, 2021
All characters whether alphabet, digit or special character have ASCII value. Input character from the user will determine if it’s Alphabet, Number or Special character.ASCII value ranges-
For capital alphabets 65 – 90
For small alphabets 97 – 122
For digits 48 – 57
Examples :
Input : 8
Output : Digit
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Apr, 2021"
},
{
"code": null,
"e": 243,
"s": 52,
"text": "All characters whether alphabet, digit or special character have ASCII value. Input character from the user will determine if it’s Alphabet, Number or Special character.ASCII... |
Currency getInstance() Method in Java with Examples | 09 Jul, 2021
The getInstance() Method of Currency class in Java is used to retrieve the instance of this currency for a given currency code.Syntax:
CURRENCY.getInstance(String currency_code)
Parameters: This method accepts one parameter currency_code which is the currency of a particular currency.Return Value: This m... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Jul, 2021"
},
{
"code": null,
"e": 165,
"s": 28,
"text": "The getInstance() Method of Currency class in Java is used to retrieve the instance of this currency for a given currency code.Syntax: "
},
{
"code": null,
"e": 2... |
Generating API Keys For Using Any Google APIs | 15 Mar, 2022
Like most software giants, Google provides its enthusiastic developers community with its APIs, SDKs and Services. These APIs from Google are hosted on their cloud platform, popularly known as Google Cloud Platform (GCP). Software such as Google Maps, YouTube, Gmail, etc., use the same APIs and now are ava... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Mar, 2022"
},
{
"code": null,
"e": 513,
"s": 28,
"text": "Like most software giants, Google provides its enthusiastic developers community with its APIs, SDKs and Services. These APIs from Google are hosted on their cloud platform, p... |
Java Program to Generate Calendar of Any Year Without calendar.get() Function | 19 Aug, 2021
Java program for generating the calendar of any desired year and month let us first go through an illustration before landing upon logic and procedural part.
Illustration:
Say the user wants to get the calendar of April 2011. Then, he is required to enter the year along with the month as integers and the o... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n19 Aug, 2021"
},
{
"code": null,
"e": 212,
"s": 54,
"text": "Java program for generating the calendar of any desired year and month let us first go through an illustration before landing upon logic and procedural part."
},
{
"c... |
Profile Application using Python Flask and MySQL | 26 May, 2022
Project Title: Profile Application using Python Flask and MySQL
Type of Application (Category): Web application.
Introduction: A framework is a code library that makes a developer’s life easier when building web applications by providing reusable code for common operations. There are a number of frameworks... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 May, 2022"
},
{
"code": null,
"e": 92,
"s": 28,
"text": "Project Title: Profile Application using Python Flask and MySQL"
},
{
"code": null,
"e": 141,
"s": 92,
"text": "Type of Application (Category): Web applicat... |
BufferedInputStream read() method in Java with Examples | 05 Jun, 2020
read() method of BufferedInputStream class in Java is used to read the next byte of data from the input stream. When this read() method is called on the input stream then this read() method reads one character of the input stream at a time.Syntax:public int read()
Overrides:It overrides read() method of Fi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 4072,
"s": 28,
"text": "read() method of BufferedInputStream class in Java is used to read the next byte of data from the input stream. When this read() method is called on the input stream then thi... |
Java Program to Convert Octal to Binary | 25 Aug, 2021
Given an Octal number as input, the task is to convert that number into its Binary equivalent number.
Example:
Input: Octal Number = 513
Output: Binary equivalent value is: 101001011
Explanation :
Binary equivalent value of 5: 101
Binary equivalent value of 1: 001
Binary equivalent value of 3: 011
Octal... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 154,
"s": 52,
"text": "Given an Octal number as input, the task is to convert that number into its Binary equivalent number."
},
{
"code": null,
"e": 163,
"s": 154,
"text": "Exa... |
How to make a Animated Table using HTML and CSS ? | 26 May, 2021
Table is an arrangement of data in rows and columns, or possibly in a more complex structure. Tables are widely used in communication, research, and data analysis.
In this article, we are going to create a Table with animation over its columns. We are going to implement it using HTML and CSS.
Approach: ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 218,
"s": 53,
"text": " Table is an arrangement of data in rows and columns, or possibly in a more complex structure. Tables are widely used in communication, research, and data analysis."
},
{... |
What does the cascading portion of CSS means ? | 08 Oct, 2021
CSS simplifies the task of maintaining a web document by separating its style information, which includes font size, font color, line width, and background color. This separation allows you to apply the same style rules to multiple web pages. CSS allows you to apply a style multiple times on a single web p... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 581,
"s": 28,
"text": "CSS simplifies the task of maintaining a web document by separating its style information, which includes font size, font color, line width, and background color. This separat... |
MySQL | ISNULL( ) Function | 19 Nov, 2019
The MySQL ISNULL() function is used for checking whether an expression is NULL or not. This function returns 1 if the expression passed is NULL, else it returns 0.
The ISNULL() function accepts the expression as a parameter and returns an integer a value 0 or 1 depending on the parameter passed.
Syntax:
IS... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n19 Nov, 2019"
},
{
"code": null,
"e": 217,
"s": 53,
"text": "The MySQL ISNULL() function is used for checking whether an expression is NULL or not. This function returns 1 if the expression passed is NULL, else it returns 0."
},
{
... |
Data Structures in Pandas | 18 Oct, 2021
Pandas is an open-source library that uses for working with relational or labeled data both easily and intuitively. It provides various data structures and operations for manipulating numerical data and time series. It offers a tool for cleaning and processes your data. It is the most popular Python librar... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 461,
"s": 52,
"text": "Pandas is an open-source library that uses for working with relational or labeled data both easily and intuitively. It provides various data structures and operations for man... |
Program to print all the non-reachable nodes | Using BFS | 06 May, 2022
Given an undirected graph and a set of vertices, we have to print all the non-reachable nodes from the given head node using a breadth-first search.
For example:
Consider below undirected graph with two disconnected components:
In this graph, if we consider 0 as a head node, then the node 0, 1 and 2 ar... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 May, 2022"
},
{
"code": null,
"e": 201,
"s": 52,
"text": "Given an undirected graph and a set of vertices, we have to print all the non-reachable nodes from the given head node using a breadth-first search."
},
{
"code": nul... |
C# | Multidimensional Indexers | 21 Dec, 2021
The multi-dimensional indexer is almost similar to multidimensional arrays. For the efficient content-based retrieval of data, multidimensional indexers are used. To create multi-dimensional indexer you have to pass at least two parameters in the argument list of indexer declaration. To access a single ele... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Dec, 2021"
},
{
"code": null,
"e": 550,
"s": 54,
"text": "The multi-dimensional indexer is almost similar to multidimensional arrays. For the efficient content-based retrieval of data, multidimensional indexers are used. To create m... |
Java Program to Count Number of Vowels in a String | 11 Mar, 2022
In java, the string is a sequence of characters and char is a single digit used to store variables. The char uses 2 bytes in java. In java, BufferedReader and InputStreamReader are used to read the input given by the user from the keyboard. Then readLine() is used for reading a line. The java.io package in... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n11 Mar, 2022"
},
{
"code": null,
"e": 450,
"s": 53,
"text": "In java, the string is a sequence of characters and char is a single digit used to store variables. The char uses 2 bytes in java. In java, BufferedReader and InputStreamRead... |
How to write Multi-Line Strings in PHP ? | 21 May, 2021
Multi-Line Strings can be written in PHP using the following ways.
Using escape sequences: We can use the \n escape sequences to declare multiple lines in a string.PHP Code:PHPPHP<?php //declaring multiple lines using the new line escape sequence $var="Geeks\nFor\nGeeks"; echo $var;?>Output:Geek... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 95,
"s": 28,
"text": "Multi-Line Strings can be written in PHP using the following ways."
},
{
"code": null,
"e": 1524,
"s": 95,
"text": "Using escape sequences: We can use the \... |
Introduction to Brython | 19 Aug, 2020
We all know that Python serves excellent as a server side language, it can be also used as a client-side language. We can use Brython on client-side instead of Javascript.
Brython stands for Browser’s Python. It is an implementation of Python3 running in the browser. It is believed that Brython’s goal is ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 225,
"s": 52,
"text": "We all know that Python serves excellent as a server side language, it can be also used as a client-side language. We can use Brython on client-side instead of Javascript. "
... |
Oracle Database Connection in Python | Python can connect to oracle using a python package called cx_Oracle. Oracle is one of the famous and widely used database and python’s data processing features are leverages well using this connectivity. In this article we will see how we can connect to oracle database and query the DB.
We can use the below command to... | [
{
"code": null,
"e": 1351,
"s": 1062,
"text": "Python can connect to oracle using a python package called cx_Oracle. Oracle is one of the famous and widely used database and python’s data processing features are leverages well using this connectivity. In this article we will see how we can connect t... |
JavaScript Functions | A JavaScript function is a block of code designed to perform a
particular task.
A JavaScript function is executed when
"something" invokes it (calls it).
A JavaScript function is defined with the function keyword,
followed by a name, followed by parentheses ().
Function names can contain letters, digits, underscores... | [
{
"code": null,
"e": 81,
"s": 0,
"text": "A JavaScript function is a block of code designed to perform a \nparticular task."
},
{
"code": null,
"e": 156,
"s": 81,
"text": "A JavaScript function is executed when \n\"something\" invokes it (calls it)."
},
{
"code": null,
... |
AvatarGAN — Generate Cartoon Images using GAN | by Aakash Jhawar | Towards Data Science | Most of us have created our own customized bitmoji and used them across different social media apps. Those bitmoji are personalized for a particular user. But have you ever wondered how to generate bitmoji that doesn't belong to any human face? Well, let's explore how GANs do the job for us.
Generative Adversarial Netw... | [
{
"code": null,
"e": 465,
"s": 172,
"text": "Most of us have created our own customized bitmoji and used them across different social media apps. Those bitmoji are personalized for a particular user. But have you ever wondered how to generate bitmoji that doesn't belong to any human face? Well, let'... |
C Program To Check whether Matrix is Skew Symmetric or not - GeeksforGeeks | 29 Nov, 2020
A Skew Symmetric Matrix or Anti-Symmetric Matrix is a square matrix whose transpose is negative to that of the original matrix. If the entry in the ith row and jth column of a matrix is a[i][j], i.e. if A = (a[i][j]) then the skew symmetric condition is -A = -a[j][i].Examples :
Input : matrix: 0 5 ... | [
{
"code": null,
"e": 24530,
"s": 24502,
"text": "\n29 Nov, 2020"
},
{
"code": null,
"e": 24811,
"s": 24530,
"text": "A Skew Symmetric Matrix or Anti-Symmetric Matrix is a square matrix whose transpose is negative to that of the original matrix. If the entry in the ith row and jth... |
Count number of even and odd elements in an array in C++ | In this tutorial, we will be discussing a program to find the number of even and odd elements in an array.
For this we will be provided with an array. Our task is to calculate the number of even and odd elements in the given array.
Live Demo
#include<iostream>
using namespace std;
void CountingEvenOdd(int arr[], int a... | [
{
"code": null,
"e": 1169,
"s": 1062,
"text": "In this tutorial, we will be discussing a program to find the number of even and odd elements in an array."
},
{
"code": null,
"e": 1294,
"s": 1169,
"text": "For this we will be provided with an array. Our task is to calculate the nu... |
Tryit Editor v3.7 | Tryit: HTML euro symbol | [] |
How to Convert Bytes to String in Python ? - GeeksforGeeks | 11 Dec, 2020
Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data. Since everything is an object in Python programming, data types are actually classes and variables are instance (object) of these classes.
We ... | [
{
"code": null,
"e": 23925,
"s": 23897,
"text": "\n11 Dec, 2020"
},
{
"code": null,
"e": 24229,
"s": 23925,
"text": "Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data... |
Neural Network Plays Flappy Bird. Currently, I am an IT student in... | by Woojae Kim | Towards Data Science | Currently, I am an IT student in college. This semester, I had a really interesting course which I choose my own topic to study, and create my own project. So I decided to learn and work on something very interesting and unique. While I was exploring various topic, I found a video tutorial about Neural Network, and I w... | [
{
"code": null,
"e": 536,
"s": 171,
"text": "Currently, I am an IT student in college. This semester, I had a really interesting course which I choose my own topic to study, and create my own project. So I decided to learn and work on something very interesting and unique. While I was exploring vari... |
Python | Pandas dataframe.swapaxes() - GeeksforGeeks | 23 Nov, 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.
Pandas dataframe.swapaxes() function interchange axes and swap values axes appropriately. The... | [
{
"code": null,
"e": 24870,
"s": 24842,
"text": "\n23 Nov, 2018"
},
{
"code": null,
"e": 25084,
"s": 24870,
"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 a... |
jQuery toggleClass() with Examples | The toggleClass() method in jQuery is used to toggle between adding or removing one or more classes from selected elements.
The syntax is as follows −
$(selector).toggleClass(classname,func(index,currentclass),switch)
Above, class name specifies one or more class names to add or remove, whereas func is a function that ... | [
{
"code": null,
"e": 1186,
"s": 1062,
"text": "The toggleClass() method in jQuery is used to toggle between adding or removing one or more classes from selected elements."
},
{
"code": null,
"e": 1213,
"s": 1186,
"text": "The syntax is as follows −"
},
{
"code": null,
... |
Comparing Timestamp in Python – Pandas | To compare timestamps, we can use index operator i.e. the square brackets. At first, import the required library −
import pandas as pd
Create a DataFrame with 3 columns −
dataFrame = pd.DataFrame(
{
"Car": ["Audi", "Lexus", "Tesla", "Mercedes", "BMW"],
"Date_of_Purchase": [
pd.Timestamp("2021-0... | [
{
"code": null,
"e": 1177,
"s": 1062,
"text": "To compare timestamps, we can use index operator i.e. the square brackets. At first, import the required library −"
},
{
"code": null,
"e": 1197,
"s": 1177,
"text": "import pandas as pd"
},
{
"code": null,
"e": 1233,
... |
Simple Linear Regression in Python | by Tarun Gupta | Towards Data Science | Simple Linear Regression is a statistical method to find relationship between two continuous variables. Out of the two variables present, one is independent variable and the other is dependent variable. Statistical relationship is not accurate in determining relationship between two variables. For example, relationship... | [
{
"code": null,
"e": 519,
"s": 171,
"text": "Simple Linear Regression is a statistical method to find relationship between two continuous variables. Out of the two variables present, one is independent variable and the other is dependent variable. Statistical relationship is not accurate in determin... |
Faulty calculator using Python - GeeksforGeeks | 01 Jul, 2021
A faulty calculator is simply a calculator which operates simple tasks, but in some cases (set by the programmer) it gives the wrong output. You all must be wondering why do we need a faulty calculator? This type of calculator is not needed unless you want to prank someone or prove them wrong in case of so... | [
{
"code": null,
"e": 24317,
"s": 24289,
"text": "\n01 Jul, 2021"
},
{
"code": null,
"e": 24642,
"s": 24317,
"text": "A faulty calculator is simply a calculator which operates simple tasks, but in some cases (set by the programmer) it gives the wrong output. You all must be wonder... |
How to read all excel files under a directory as a Pandas DataFrame ? - GeeksforGeeks | 21 Apr, 2021
In this article, we will see how to read all Excel files in a folder into single Pandas dataframe. The task can be performed by first finding all excel files in a particular folder using glob() method and then reading the file by using pandas.read_excel() method and then displaying the content.
Import nece... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 24588,
"s": 24292,
"text": "In this article, we will see how to read all Excel files in a folder into single Pandas dataframe. The task can be performed by first finding all excel files in a ... |
Primality Test | Set 3 (Miller–Rabin) - GeeksforGeeks | 07 Apr, 2022
Given a number n, check if it is prime or not. We have introduced and discussed School and Fermat methods for primality testing.Primality Test | Set 1 (Introduction and School Method) Primality Test | Set 2 (Fermat Method)In this post, the Miller-Rabin method is discussed. This method is a probabilistic me... | [
{
"code": null,
"e": 24772,
"s": 24744,
"text": "\n07 Apr, 2022"
},
{
"code": null,
"e": 25152,
"s": 24772,
"text": "Given a number n, check if it is prime or not. We have introduced and discussed School and Fermat methods for primality testing.Primality Test | Set 1 (Introductio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.