title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Sum of all palindromic numbers lying in the range [L, R] for Q queries - GeeksforGeeks | 29 Nov, 2021
Given Q queries in the form of 2D array arr[][] whose every row consists of two numbers L and R which denotes the range [L, R], the task is to find the sum of all Palindrome Numbers lying in range [L, R].
Input: Q = 2, arr[][] = { {10, 13}, {12, 21} } Output: 11 0 Explanation: From 10 to 13 only 11 is the... | [
{
"code": null,
"e": 26041,
"s": 26013,
"text": "\n29 Nov, 2021"
},
{
"code": null,
"e": 26247,
"s": 26041,
"text": "Given Q queries in the form of 2D array arr[][] whose every row consists of two numbers L and R which denotes the range [L, R], the task is to find the sum of all ... |
KeyStore getCertificate() method in Java with Examples - GeeksforGeeks | 16 Jul, 2021
The getCertificate() method of java.security.KeyStore class is used to provide the certificate for the requested alias. .Syntax:
public final Certificate
getCertificate(String alias)
throws KeyStoreException
Parameter: This method accepts the name of the alias as a parameter whose certificate is to b... | [
{
"code": null,
"e": 26287,
"s": 26259,
"text": "\n16 Jul, 2021"
},
{
"code": null,
"e": 26418,
"s": 26287,
"text": "The getCertificate() method of java.security.KeyStore class is used to provide the certificate for the requested alias. .Syntax: "
},
{
"code": null,
... |
systemctl in Unix - GeeksforGeeks | 10 Jul, 2020
systemctl is used to examine and control the state of “systemd” system and service manager.
systemd is system and service manager for Unix like operating systems(most of the distributions, not all). As the system boots up, the first process created, i.e. init process with PID = 1, is systemd system that in... | [
{
"code": null,
"e": 25675,
"s": 25647,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 25767,
"s": 25675,
"text": "systemctl is used to examine and control the state of “systemd” system and service manager."
},
{
"code": null,
"e": 26014,
"s": 25767,
"text":... |
Preventing Escape Sequence Interpretation in Python | 04 Dec, 2021
Escape Sequence is a combination of characters (usually prefixed with an escape character), that has a non-literal character interpretation. Such that, the characters sequences which are considered as an escape sequence have a meaning other than the literal characters contained therein. Most Programming la... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Dec, 2021"
},
{
"code": null,
"e": 656,
"s": 28,
"text": "Escape Sequence is a combination of characters (usually prefixed with an escape character), that has a non-literal character interpretation. Such that, the characters sequence... |
Login and Registration Project Using Flask and MySQL | 26 May, 2022
Project Title: Login and registration Project using Flask framework and MySQL Workbench.
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 a... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 May, 2022"
},
{
"code": null,
"e": 143,
"s": 54,
"text": "Project Title: Login and registration Project using Flask framework and MySQL Workbench."
},
{
"code": null,
"e": 192,
"s": 143,
"text": "Type of Applicat... |
How to find all files in a directory with extension .txt in Python? | You can use the os.listdir method to get all directories and files in a directory. Then filter the list to get only the files and check their extensions as well.
>>> import os
>>> file_list = [f for f in os.listdir('.') if os.path.isfile(os.path.join('.', f)) and f.endswith('.txt')]
>>> print file_list
['LICENSE.txt', ... | [
{
"code": null,
"e": 1349,
"s": 1187,
"text": "You can use the os.listdir method to get all directories and files in a directory. Then filter the list to get only the files and check their extensions as well."
},
{
"code": null,
"e": 1533,
"s": 1349,
"text": ">>> import os\n>>> f... |
Matplotlib.axis.Axis.set_ticklabels() function in Python | 08 Jun, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack.
The Axis.set_ticklabels() function in axis module of matplotlib library is used to set... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jun, 2020"
},
{
"code": null,
"e": 249,
"s": 28,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and u... |
Python Program to Delete Specific Line from File | 26 Sep, 2021
In this article, we are going to see how to delete the specific lines from a file using Python
Throughout this program, as an example, we will use a text file named months.txt on which various deletion operations would be performed.
In this method, the text file is read line by line using readlines(). If a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Sep, 2021"
},
{
"code": null,
"e": 123,
"s": 28,
"text": "In this article, we are going to see how to delete the specific lines from a file using Python"
},
{
"code": null,
"e": 261,
"s": 123,
"text": "Throughout ... |
Teradata - Macros | Macro is a set of SQL statements which are stored and executed by calling the Macro name. The definition of Macros is stored in Data Dictionary. Users only need EXEC privilege to execute the Macro. Users don't need separate privileges on the database objects used inside the Macro. Macro statements are executed as a sin... | [
{
"code": null,
"e": 3300,
"s": 2764,
"text": "Macro is a set of SQL statements which are stored and executed by calling the Macro name. The definition of Macros is stored in Data Dictionary. Users only need EXEC privilege to execute the Macro. Users don't need separate privileges on the database ob... |
Returning Multiple values in Java | 13 Sep, 2018
Java doesn’t support multi-value returns. We can use following solutions to return multiple values.
If all returned elements are of same type
We can return an array in Java. Below is a Java program to demonstrate the same.
// A Java program to demonstrate that a method// can return multiple values of sam... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Sep, 2018"
},
{
"code": null,
"e": 152,
"s": 52,
"text": "Java doesn’t support multi-value returns. We can use following solutions to return multiple values."
},
{
"code": null,
"e": 196,
"s": 154,
"text": "If al... |
Find number of Employees Under every Manager | 29 Jun, 2022
Given a dictionary that contains mapping of employee and his manager as a number of (employee, manager) pairs like below.
{ "A", "C" },
{ "B", "C" },
{ "C", "F" },
{ "D", "E" },
{ "E", "F" },
{ "F", "F" }
In this example C is manager of A,
C is also manager of B, F is manager
of C and so on.
Write a f... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Jun, 2022"
},
{
"code": null,
"e": 175,
"s": 52,
"text": "Given a dictionary that contains mapping of employee and his manager as a number of (employee, manager) pairs like below. "
},
{
"code": null,
"e": 350,
"s": ... |
std::hash class in C++ STL | 24 Oct, 2021
The hash class is default constructible, which means that one can construct this object without any arguments or initialization values. It is used to get the hash value of the argument that is being passed to it. If the argument doesn’t change, the value doesn’t change either.Syntax:
template <class T> s... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Oct, 2021"
},
{
"code": null,
"e": 339,
"s": 52,
"text": "The hash class is default constructible, which means that one can construct this object without any arguments or initialization values. It is used to get the hash value of th... |
Python String Interpolation | 08 Aug, 2021
String Interpolation is the process of substituting values of variables into placeholders in a string. Let’s consider an example to understand it better, suppose you want to change the value of the string every time you print the string like you want to print “hello <name> welcome to geeksforgeeks” where t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Aug, 2021"
},
{
"code": null,
"e": 545,
"s": 28,
"text": "String Interpolation is the process of substituting values of variables into placeholders in a string. Let’s consider an example to understand it better, suppose you want to c... |
MATLAB - The break Statement | The break statement terminates execution of for or while loop. Statements in the loop that appear after the break statement are not executed.
In nested loops, break exits only from the loop in which it occurs. Control passes to the statement following the end of that loop.
Create a script file and type the following co... | [
{
"code": null,
"e": 2417,
"s": 2275,
"text": "The break statement terminates execution of for or while loop. Statements in the loop that appear after the break statement are not executed."
},
{
"code": null,
"e": 2549,
"s": 2417,
"text": "In nested loops, break exits only from t... |
Private Methods in Python | 26 Nov, 2019
Prerequisites –
Python classes and objects
Encapsulation
Underscore in Python
Encapsulation is one of the fundamental concepts in object-oriented programming (OOP). It describes the idea of wrapping data and the methods that work on data within one unit. This puts restrictions on accessing variables and me... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Nov, 2019"
},
{
"code": null,
"e": 68,
"s": 52,
"text": "Prerequisites –"
},
{
"code": null,
"e": 95,
"s": 68,
"text": "Python classes and objects"
},
{
"code": null,
"e": 109,
"s": 95,
"text"... |
Seaborn Kdeplot – A Comprehensive Guide | 25 Nov, 2020
Kernel Density Estimate (KDE) Plot and Kdeplot allows us to estimate the probability density function of the continuous or non-parametric from our data set curve in one or more dimensions it means we can create plot a single graph for multiple samples which helps in more efficient data visualization.
In or... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Nov, 2020"
},
{
"code": null,
"e": 330,
"s": 28,
"text": "Kernel Density Estimate (KDE) Plot and Kdeplot allows us to estimate the probability density function of the continuous or non-parametric from our data set curve in one or mor... |
Loop Unrolling | 19 Feb, 2018
Loop unrolling is a loop transformation technique that helps to optimize the execution time of a program. We basically remove or reduce iterations. Loop unrolling increases the program’s speed by eliminating loop control instruction and loop test instructions.
Program 1:
// This program does not uses loop ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n19 Feb, 2018"
},
{
"code": null,
"e": 314,
"s": 53,
"text": "Loop unrolling is a loop transformation technique that helps to optimize the execution time of a program. We basically remove or reduce iterations. Loop unrolling increases t... |
What is connection pooling in C# and how to achieve it? | These are used to import namespaces (or create aliases for namespaces or types).
These go at the top of the file, before any declarations.
using System;
using System.IO;
using WinForms = global::System.Windows.Forms;
using WinButton = WinForms::Button;
The using statement ensures that Dispose() is called even if an exc... | [
{
"code": null,
"e": 1268,
"s": 1187,
"text": "These are used to import namespaces (or create aliases for namespaces or types)."
},
{
"code": null,
"e": 1326,
"s": 1268,
"text": "These go at the top of the file, before any declarations."
},
{
"code": null,
"e": 1440,
... |
Convert an Object to List in R Programming – as.list() Function | 27 Oct, 2021
as.list() function in R Programming Language is used to convert an object to a list. These objects can be Vectors, Matrices, Factors, and dataframes.
Syntax: as.list(object)
Parameters:
object: Vector, Matrix, factor, or data frame
R
# R program to convert object to list # Creating vectorx < - c(1, 2, 3,... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Oct, 2021"
},
{
"code": null,
"e": 178,
"s": 28,
"text": "as.list() function in R Programming Language is used to convert an object to a list. These objects can be Vectors, Matrices, Factors, and dataframes."
},
{
"code": nul... |
Output of C Program | Set 29 | 04 Jul, 2021
Question 1 How many times main() will get called?
C
main(){ printf("\n main Called Again"); main();}
Answer : Infinite loop Description : There is no condition in the main() to stop the recursive calling of the main() hence it will be called infinite no of times.
Question 2 Guess the output of the f... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Jul, 2021"
},
{
"code": null,
"e": 104,
"s": 52,
"text": "Question 1 How many times main() will get called? "
},
{
"code": null,
"e": 106,
"s": 104,
"text": "C"
},
{
"code": "main(){ printf(\"\\n main ... |
Circle and Lattice Points | 20 Jun, 2022
Given a circle of radius r in 2-D with origin or (0, 0) as center. The task is to find the total lattice points on circumference. Lattice Points are points with coordinates as integers in 2-D space.Example:
Input : r = 5.
Output : 12
Below are lattice points on a circle with
radius 5 and origin as (0, 0... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 263,
"s": 54,
"text": "Given a circle of radius r in 2-D with origin or (0, 0) as center. The task is to find the total lattice points on circumference. Lattice Points are points with coordinates a... |
Partial Functions in Scala | 29 Mar, 2019
Introduction:When a function is not able to produce a return for every single variable input data given to it then that function is termed as Partial function. It can determine an output for a subset of some practicable inputs only. It can only be applied partially to the stated inputs.Some important point... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Mar, 2019"
},
{
"code": null,
"e": 338,
"s": 28,
"text": "Introduction:When a function is not able to produce a return for every single variable input data given to it then that function is termed as Partial function. It can determin... |
Hide axis values but keep axis tick labels in matplotlib | To hide the axis value but to keep the axis tick labels, we can perform the following steps −
Plot a line using the plot( ) method.
Plot a line using the plot( ) method.
Set X and Y labels using x label and y label methods.
Set X and Y labels using x label and y label methods.
Using plt.gca(), get the current axis, cre... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "To hide the axis value but to keep the axis tick labels, we can perform the following steps −"
},
{
"code": null,
"e": 1194,
"s": 1156,
"text": "Plot a line using the plot( ) method."
},
{
"code": null,
"e": 1232,
"s"... |
GATE | GATE-CS-2016 (Set 1) | Question 46 - GeeksforGeeks | 28 Jun, 2021
What will be the output of the following pseudo-code when parameters are passed by reference and dynamic scoping is assumed?
a=3;
void n(x) {x = x * a; print(x);}
void m(y) {a = 1; a = y - a; n(a); print(a);}
void main() {m(a);}
(A) 6, 2(B) 6, 6(C) 4, 2(D) 4, 4Answer: (D)Explanation:
a = 3;
void main()
... | [
{
"code": null,
"e": 25721,
"s": 25693,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25846,
"s": 25721,
"text": "What will be the output of the following pseudo-code when parameters are passed by reference and dynamic scoping is assumed?"
},
{
"code": null,
"e": 2... |
matplotlib.pyplot.angle_spectrum() in Python - GeeksforGeeks | 12 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.
The angle_spectrum() function in pyplot module of matplotlib library is used to plot the angle spectrum. General... | [
{
"code": null,
"e": 26173,
"s": 26145,
"text": "\n12 Apr, 2020"
},
{
"code": null,
"e": 26368,
"s": 26173,
"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 pr... |
Railway Station | TCS CodeVita 2020 - GeeksforGeeks | 07 Apr, 2022
Given an integer N, representing the number of stations lying between the source and the destination. There are three trains available from every station and their stoppage patterns are as follows:
Train 1: Stops at every station
Train 2: Stops at every alternate station
Train 3: Stops at every third stati... | [
{
"code": null,
"e": 26617,
"s": 26589,
"text": "\n07 Apr, 2022"
},
{
"code": null,
"e": 26815,
"s": 26617,
"text": "Given an integer N, representing the number of stations lying between the source and the destination. There are three trains available from every station and their... |
4 Methods for Changing the Column Order of a Pandas Data Frame | by Soner Yıldırım | Towards Data Science | Pandas is one of the most popular tools in the data science ecosystem. It is a Python library for data analysis and manipulation.
Pandas provides numerous functions and methods to handle tabular data efficiently. You can easily clean, manipulate, or process data stored in a data frame.
A Pandas data frame consists of l... | [
{
"code": null,
"e": 301,
"s": 171,
"text": "Pandas is one of the most popular tools in the data science ecosystem. It is a Python library for data analysis and manipulation."
},
{
"code": null,
"e": 458,
"s": 301,
"text": "Pandas provides numerous functions and methods to handle... |
HBase - Disabling a Table | To delete a table or change its settings, you need to first disable the table using the disable command. You can re-enable it using the enable command.
Given below is the syntax to disable a table:
disable ‘emp’
Given below is an example that shows how to disable a table.
hbase(main):025:0> disable 'emp'
0 row(s) in 1... | [
{
"code": null,
"e": 2189,
"s": 2037,
"text": "To delete a table or change its settings, you need to first disable the table using the disable command. You can re-enable it using the enable command."
},
{
"code": null,
"e": 2235,
"s": 2189,
"text": "Given below is the syntax to d... |
Requests - Handling Sessions | To maintain the data between requests you need sessions. So, if the same host is called again and again, you can reuse the TCP connection which in turn will improve the performance. Let us now see, how to maintain cookies across requests made using sessions.
import requests
req = requests.Session()
cookies = dict(test=... | [
{
"code": null,
"e": 2447,
"s": 2188,
"text": "To maintain the data between requests you need sessions. So, if the same host is called again and again, you can reuse the TCP connection which in turn will improve the performance. Let us now see, how to maintain cookies across requests made using sess... |
Pandas has superpowers in reading Excel files | by Carsten Sandtner | Towards Data Science | Most companies have financial departments which produce Excel files with key figures and tables paired with complex auxiliary calculations and diagrams. It seems like they love complex files with a bunch of sheets and a cover page showing a summary of the numbers from the following sheets. These files are relatively go... | [
{
"code": null,
"e": 897,
"s": 172,
"text": "Most companies have financial departments which produce Excel files with key figures and tables paired with complex auxiliary calculations and diagrams. It seems like they love complex files with a bunch of sheets and a cover page showing a summary of the... |
Computer Organization | Performance of Computer - GeeksforGeeks | 27 Jul, 2018
Computer performance is the amount of work accomplished by a computer system. The word performance in computer performance means “How well is the computer doing the work it is supposed to do?”. It basically depends on response time, throughput and execution time of a computer system.
Response time is the t... | [
{
"code": null,
"e": 28819,
"s": 28791,
"text": "\n27 Jul, 2018"
},
{
"code": null,
"e": 29104,
"s": 28819,
"text": "Computer performance is the amount of work accomplished by a computer system. The word performance in computer performance means “How well is the computer doing th... |
AngularJS | Routing - GeeksforGeeks | 16 Jan, 2020
Routing in AngularJS is used when the user wants to navigate to different pages in an application but still wants it to be a single page application. AngularJS routes enable the user to create different URLs for different content in an application. The ngRoute module helps in accessing different pages of a... | [
{
"code": null,
"e": 29652,
"s": 29624,
"text": "\n16 Jan, 2020"
},
{
"code": null,
"e": 30015,
"s": 29652,
"text": "Routing in AngularJS is used when the user wants to navigate to different pages in an application but still wants it to be a single page application. AngularJS rou... |
How to plot a density map in Python Matplotlib? | To plot a density map in Python, we can take the following steps −
Create side, x, y, and z using numpy. Numpy linspace helps to create data between two points based on a third number.
Create side, x, y, and z using numpy. Numpy linspace helps to create data between two points based on a third number.
Return coordinate... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "To plot a density map in Python, we can take the following steps −"
},
{
"code": null,
"e": 1247,
"s": 1129,
"text": "Create side, x, y, and z using numpy. Numpy linspace helps to create data between two points based on a third numbe... |
Tryit Editor v3.6 - Show Sass | $myFont: Helvetica, sans-serif;
$myColor: red;
$myFontSize: 18px;
$myWidth: 680px;
body {
font-family: $myFont;
font-size: $myFontSize;
color: $myColor;
}
#container {
width: $myWidth;
}
body {
font-family: Helvetica, sans-serif;
font-size: 18px;
color: red;
}
#container {
width: 680px;
border: 1p... | [
{
"code": null,
"e": 198,
"s": 0,
"text": "\n$myFont: Helvetica, sans-serif;\n$myColor: red;\n$myFontSize: 18px;\n$myWidth: 680px;\n\nbody {\n font-family: $myFont;\n font-size: $myFontSize;\n color: $myColor;\n}\n\n#container {\n width: $myWidth;\n}"
},
{
"code": null,
"e": 338,
... |
Python Web Scraping - Dealing with Text | In the previous chapter, we have seen how to deal with videos and images that we obtain as a part of web scraping content. In this chapter we are going to deal with text analysis by using Python library and will learn about this in detail.
You can perform text analysis in by using Python library called Natural Language... | [
{
"code": null,
"e": 2152,
"s": 1912,
"text": "In the previous chapter, we have seen how to deal with videos and images that we obtain as a part of web scraping content. In this chapter we are going to deal with text analysis by using Python library and will learn about this in detail."
},
{
... |
How can I set a Border for an ImageView in Android? | This example demonstrates how do I can I set a border for an ImageView 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"?>
<Rela... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "This example demonstrates how do I can I set a border for an ImageView in android."
},
{
"code": null,
"e": 1273,
"s": 1145,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required det... |
Acronym words - GeeksforGeeks | 02 Jun, 2021
Given N strings consisting of lowercase letters of the English alphabet. The task is to find how many strings out of these N strings are an acronym for other N – 1 strings. For a subset of strings, we can choose to order them in any way and then concatenate the first letter of each of them. For example, cs... | [
{
"code": null,
"e": 24437,
"s": 24409,
"text": "\n02 Jun, 2021"
},
{
"code": null,
"e": 24899,
"s": 24437,
"text": "Given N strings consisting of lowercase letters of the English alphabet. The task is to find how many strings out of these N strings are an acronym for other N – 1... |
Python - Flask Login Form Example - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, we are going to build a sim... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Online Python Formatter | Editable Python Code
1234567891011121314151617#!/usr/bin/pythonimport reline = "Cats are smarter than dogs";matchObj = re.match( r'dogs', line, re.M|re.I)if matchObj: print "match --> matchObj.group() : ", matchObj.group()else: print "No match!!"searchObj = re.search( r'dogs', line, re.M|re.I)if searchObj: ... | [
{
"code": null,
"e": 21,
"s": 0,
"text": "Editable Python Code"
},
{
"code": null,
"e": 417,
"s": 21,
"text": "1234567891011121314151617#!/usr/bin/pythonimport reline = \"Cats are smarter than dogs\";matchObj = re.match( r'dogs', line, re.M|re.I)if matchObj: print \"matc... |
method overloading and type promotion in Java | Method overloading helps to create multiple methods with the same name to do similar action on a different type of parameters.
We can use type promotion in case variables are of similar type. Type promotion automatically promotes the lower range value to higher range value. For example, byte variable can be assigned to... | [
{
"code": null,
"e": 1189,
"s": 1062,
"text": "Method overloading helps to create multiple methods with the same name to do similar action on a different type of parameters."
},
{
"code": null,
"e": 1570,
"s": 1189,
"text": "We can use type promotion in case variables are of simi... |
Your First Step to use Docker on a Non-Linux OS | by Kefei Mo | Towards Data Science | When you read this article, you probably already heard of Docker and decided to give it a try. You probably also have gone to the docker website and ready to choose a Docker engine for your development machine.
If you are a Linux user, congratulations, you can click “Docker for Linux” to install Docker on your Linux ma... | [
{
"code": null,
"e": 383,
"s": 172,
"text": "When you read this article, you probably already heard of Docker and decided to give it a try. You probably also have gone to the docker website and ready to choose a Docker engine for your development machine."
},
{
"code": null,
"e": 499,
... |
C++ Program Recursive Insertion Sort | Insertion Sort is one of the sorting algorithms used to sort data by inserting elements like a deck of cards. All the elements are arranged from left to right then considering the first one as already sorted, insert rest to the sorted list on the left. Each element is compared with each element in
the left list until i... | [
{
"code": null,
"e": 1421,
"s": 1062,
"text": "Insertion Sort is one of the sorting algorithms used to sort data by inserting elements like a deck of cards. All the elements are arranged from left to right then considering the first one as already sorted, insert rest to the sorted list on the left. ... |
Geometric and Poisson Random Variables with Python | Towards Data Science | In a series of weekly articles, I will be covering some important topics of statistics with a twist.
The goal is to use Python to help us get intuition on complex concepts, empirically test theoretical proofs, or build algorithms from scratch. In this series, you will find articles covering topics such as random variab... | [
{
"code": null,
"e": 272,
"s": 171,
"text": "In a series of weekly articles, I will be covering some important topics of statistics with a twist."
},
{
"code": null,
"e": 572,
"s": 272,
"text": "The goal is to use Python to help us get intuition on complex concepts, empirically t... |
Diabetes Prediction Application using Streamlit | by Himanshu Sharma | Towards Data Science | Streamlit is an open-source Python library which is blazingly fast that makes it easy to build beautiful custom web-apps for machine learning and data science. It is an awesome tool that allows you to create highly interactive dashboards just with some knowledge of python.
Creating applications using streamlit creates ... | [
{
"code": null,
"e": 446,
"s": 172,
"text": "Streamlit is an open-source Python library which is blazingly fast that makes it easy to build beautiful custom web-apps for machine learning and data science. It is an awesome tool that allows you to create highly interactive dashboards just with some kn... |
C - memset function | C - Programming HOME
C - Basic Introduction
C - Program Structure
C - Reserved Keywords
C - Basic Datatypes
C - Variable Types
C - Storage Classes
C - Using Constants
C - Operator Types
C - Control Statements
C - Input and Output
C - Pointing to Data
C - Using Functions
C - Play with Strings
C - Structured Datatypes
C ... | [
{
"code": null,
"e": 1475,
"s": 1454,
"text": "C - Programming HOME"
},
{
"code": null,
"e": 1498,
"s": 1475,
"text": "C - Basic Introduction"
},
{
"code": null,
"e": 1520,
"s": 1498,
"text": "C - Program Structure"
},
{
"code": null,
"e": 1542,
... |
XAML - Markup Extensions | In XAML applications, markup extensions are a method/technique to gain a value that is neither a specific XAML object nor a primitive type. Markup extensions can be defined by opening and closing curly braces and inside that curly braces, the scope of the markup extension is defined.
Data binding and static resources a... | [
{
"code": null,
"e": 2208,
"s": 1923,
"text": "In XAML applications, markup extensions are a method/technique to gain a value that is neither a specific XAML object nor a primitive type. Markup extensions can be defined by opening and closing curly braces and inside that curly braces, the scope of t... |
K-Means Clustering Algorithm Implementation | by Karan Kharecha | Towards Data Science | When it comes to popularity among clustering algorithms, k-means is the one. The approach behind this simple algorithm is just about some iterations and updating clusters as per distance measures that are computed repeatedly. k is the number of clusters that are to be formed. This content represents the implementation ... | [
{
"code": null,
"e": 562,
"s": 172,
"text": "When it comes to popularity among clustering algorithms, k-means is the one. The approach behind this simple algorithm is just about some iterations and updating clusters as per distance measures that are computed repeatedly. k is the number of clusters t... |
C# | Boolean.TryParse() Method - GeeksforGeeks | 20 Apr, 2019
This method is used to convert the specified string representation of a logical value to its Boolean equivalent. It returns a value that indicates whether the conversion succeeded or failed.
Syntax:
public static bool TryParse (string value, out bool result);
Parameters:
value: It is a string containing th... | [
{
"code": null,
"e": 24528,
"s": 24500,
"text": "\n20 Apr, 2019"
},
{
"code": null,
"e": 24719,
"s": 24528,
"text": "This method is used to convert the specified string representation of a logical value to its Boolean equivalent. It returns a value that indicates whether the conv... |
IDE | GeeksforGeeks | A computer science portal for geeks | Please enter your email address or userHandle.
12345678910111213141516171819202122232425262728def DNF(input, length, Swaps=0): high = length - 1 p = 0 i = 0 while i <= high: if input[i] == 1: if input[i]==input[p]: p+=1 ... | [
{
"code": null,
"e": 164,
"s": 117,
"text": "Please enter your email address or userHandle."
},
{
"code": null,
"e": 1641,
"s": 164,
"text": "12345678910111213141516171819202122232425262728def DNF(input, length, Swaps=0): high = length - 1 p = 0 i = 0 ... |
Get the first element in an array and return using MongoDB Aggregate? | Use unwindoperatorwithproject for to get the first element in an array. Let us create a collection with documents. Following is the query
>db.getFirstElementInArrayDemo.insertOne({"StudentName":"John","StudentSubject":["MongoDB","Python","MySQL"]});
{
"acknowledged" : true,
"insertedId" : ObjectId("5c9c41292d6669... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "Use unwindoperatorwithproject for to get the first element in an array. Let us create a collection with documents. Following is the query"
},
{
"code": null,
"e": 1764,
"s": 1200,
"text": ">db.getFirstElementInArrayDemo.insertOne({\"... |
Java Generics - No Instance | A type parameter cannot be used to instantiate its object inside a method.
public static <T> void add(Box<T> box) {
//compiler error
//Cannot instantiate the type T
//T item = new T();
//box.add(item);
}
To achieve such functionality, use reflection.
public static <T> void add(Box<T> box, Class<T> clazz) ... | [
{
"code": null,
"e": 2715,
"s": 2640,
"text": "A type parameter cannot be used to instantiate its object inside a method."
},
{
"code": null,
"e": 2858,
"s": 2715,
"text": "public static <T> void add(Box<T> box) {\n //compiler error\n //Cannot instantiate the type T\n //T i... |
How to Create A Weather Chatbot. A React-based Weather Chatbot... | by Ng Wai Foong | Towards Data Science | By reading this piece, you will learn to create and deploy your own weather chatbot. At the end of this tutorial, you should have a basic chatbot that can respond appropriately in regards to the current weather, temperature and humidity when being asked by the users.
There are 4 sections in this tutorial:
Weather APIRa... | [
{
"code": null,
"e": 440,
"s": 172,
"text": "By reading this piece, you will learn to create and deploy your own weather chatbot. At the end of this tutorial, you should have a basic chatbot that can respond appropriately in regards to the current weather, temperature and humidity when being asked b... |
What is __init__.py in Python? | The __init__.py files are required to make Python treat the directories as containing packages; this is done to prevent directories with a common name, such as string, from unintentionally hiding valid modules that occur later on the module search path. In the simplest case, __init__.py can just be an empty file, but i... | [
{
"code": null,
"e": 1502,
"s": 1062,
"text": "The __init__.py files are required to make Python treat the directories as containing packages; this is done to prevent directories with a common name, such as string, from unintentionally hiding valid modules that occur later on the module search path.... |
Converting a proper fraction to mixed fraction - JavaScript | A proper fraction is the one that exists in the p/q form (both p and q being natural numbers)
Suppose we divide the numerator of a fraction (say a) with its denominator (say b), to get quotient q and remainder r.
The mixed fraction form for fraction (a/b) will be −
qrb
And it is pronounced as "q wholes and r by b”.
We ... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "A proper fraction is the one that exists in the p/q form (both p and q being natural numbers)"
},
{
"code": null,
"e": 1275,
"s": 1156,
"text": "Suppose we divide the numerator of a fraction (say a) with its denominator (say b), to g... |
A Full Stack Machine Learning Project | by Natassha Selvaraj | Towards Data Science | When I was a kid, I used to be obsessed with Harry Potter (the books, not the movie). I was a huge fan of Hermione Granger, and was deeply intrigued by the character of Severus Snape.
So when I found an MBTI personality prediction dataset, I decided that there was no better way to use it than create a Harry Potter char... | [
{
"code": null,
"e": 356,
"s": 172,
"text": "When I was a kid, I used to be obsessed with Harry Potter (the books, not the movie). I was a huge fan of Hermione Granger, and was deeply intrigued by the character of Severus Snape."
},
{
"code": null,
"e": 516,
"s": 356,
"text": "So... |
Longest Common Substring | Practice | GeeksforGeeks | Given two strings. The task is to find the length of the longest common substring.
Example 1:
Input: S1 = "ABCDGH", S2 = "ACDGHR"
Output: 4
Explanation: The longest common substring
is "CDGH" which has length 4.
Example 2:
Input: S1 = "ABC", S2 "ACB"
Output: 1
Explanation: The longest common substrings
are "A", "B", ... | [
{
"code": null,
"e": 321,
"s": 238,
"text": "Given two strings. The task is to find the length of the longest common substring."
},
{
"code": null,
"e": 333,
"s": 321,
"text": "\nExample 1:"
},
{
"code": null,
"e": 452,
"s": 333,
"text": "Input: S1 = \"ABCDGH\... |
A Simple Explanation of the Bag-of-Words Model | by Victor Zhou | Towards Data Science | The bag-of-words (BOW) model is a representation that turns arbitrary text into fixed-length vectors by counting how many times each word appears. This process is often referred to as vectorization.
Let’s understand this with an example. Suppose we wanted to vectorize the following:
the cat sat
the cat sat in the hat
t... | [
{
"code": null,
"e": 371,
"s": 172,
"text": "The bag-of-words (BOW) model is a representation that turns arbitrary text into fixed-length vectors by counting how many times each word appears. This process is often referred to as vectorization."
},
{
"code": null,
"e": 456,
"s": 371,
... |
Python | Pandas Dataframe/Series.tail() method | 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.
Pandas tail() method is used to return bottom n (5 by default) rows of a data frame or series... | [
{
"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... |
Difference between JOIN and UNION in SQL | 19 Apr, 2022
JOIN: JOIN in SQL is used to combine data from many tables based on a matched condition between them. The data combined using JOIN statement results into new columns. Consider the two tables:
Boys
Girls
Example:
sql>
SELECT Boys.Name, Boys.Age, Girls.Address,
FROM Boys
INNER JOIN Girls
ON Boys.Rollno =... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n19 Apr, 2022"
},
{
"code": null,
"e": 245,
"s": 53,
"text": "JOIN: JOIN in SQL is used to combine data from many tables based on a matched condition between them. The data combined using JOIN statement results into new columns. Conside... |
Count minimum swap to make string palindrome | 13 Jul, 2022
Given a string s, the task is to find out the minimum no of adjacent swaps required to make string s palindrome. If it is not possible, then return -1.
Examples:
Input: aabcb Output: 3 Explanation: After 1st swap: abacb After 2nd swap: abcab After 3rd swap: abcba
Input: adbcdbad Output: -1
ApproachThe fol... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Jul, 2022"
},
{
"code": null,
"e": 206,
"s": 54,
"text": "Given a string s, the task is to find out the minimum no of adjacent swaps required to make string s palindrome. If it is not possible, then return -1."
},
{
"code": ... |
Python 3 - Loops | In general, statements are executed sequentially − The first statement in a function is executed first, followed by the second, and so on. There may be a situation when you need to execute a block of code several number of times.
Programming languages provide various control structures that allow more complicated execu... | [
{
"code": null,
"e": 2704,
"s": 2474,
"text": "In general, statements are executed sequentially − The first statement in a function is executed first, followed by the second, and so on. There may be a situation when you need to execute a block of code several number of times."
},
{
"code": n... |
std::slice (Valarray slice selector) | 05 Oct, 2017
Valarray slice selector : This class represents a valarray slice selector. It does not contain nor refers to any element – it only describes a selection of elements to be used as an index in valarray::operator[].
std::slice is the selector class that identifies a subset of std::valarray. An object of type ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Oct, 2017"
},
{
"code": null,
"e": 265,
"s": 52,
"text": "Valarray slice selector : This class represents a valarray slice selector. It does not contain nor refers to any element – it only describes a selection of elements to be use... |
Python | Background subtraction using OpenCV | 06 Jul, 2021
Background Subtraction has several use cases in everyday life, It is being used for object segmentation, security enhancement, pedestrian tracking, counting the number of visitors, number of vehicles in traffic etc. It is able to learn and identify the foreground mask.As the name suggests, it is able to su... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2021"
},
{
"code": null,
"e": 760,
"s": 52,
"text": "Background Subtraction has several use cases in everyday life, It is being used for object segmentation, security enhancement, pedestrian tracking, counting the number of vis... |
Perl | tr Operator | 11 Feb, 2022
The tr operator in Perl translates all characters of SearchList into the corresponding characters of ReplacementList.Here the SearchList is the given input characters which are to be converted into the corresponding characters given in the ReplacementList.
Syntax: tr/SearchList/ReplacementList/
Return:numb... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Feb, 2022"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "The tr operator in Perl translates all characters of SearchList into the corresponding characters of ReplacementList.Here the SearchList is the given input characters which ar... |
Prove that the square of an odd integer is always odd | 31 May, 2021
This article focuses on discussing in detail the proof of why the square of an odd integer is always an odd number.
Odd Number:A number is said to be odd if it is not divisible by 2, or if a number can be expressed in the form of (2k +1), for some integer k, then the number is called an odd number.
Square ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 144,
"s": 28,
"text": "This article focuses on discussing in detail the proof of why the square of an odd integer is always an odd number."
},
{
"code": null,
"e": 328,
"s": 144,
... |
Python | Pandas Dataframe.describe() method | 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.
Pandas describe() is used to view some basic statistical details like percentile, mean, std e... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Oct, 2018"
},
{
"code": null,
"e": 266,
"s": 52,
"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 im... |
Session Hijacking | 14 Jun, 2022
What is Session Hijacking?TCP session hijacking is a security attack on a user session over a protected network. The most common method of session hijacking is called IP spoofing, when an attacker uses source-routed IP packets to insert commands into an active communication between two nodes on a network a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Jun, 2022"
},
{
"code": null,
"e": 498,
"s": 28,
"text": "What is Session Hijacking?TCP session hijacking is a security attack on a user session over a protected network. The most common method of session hijacking is called IP spoof... |
Weak RSA decryption with Chinese-remainder theorem | 24 Jan, 2018
Prerequisite : RSA Algorithm
Why RSA decryption is slow ?RSA decryption is slower than encryption because while doing decryption, private key parameter ” d ” is necessarily large. Moreover the parameters – ” p and q ” are two very large Prime Numbers.
Given integers c, e, p and q, find m such that c = pow(... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jan, 2018"
},
{
"code": null,
"e": 57,
"s": 28,
"text": "Prerequisite : RSA Algorithm"
},
{
"code": null,
"e": 280,
"s": 57,
"text": "Why RSA decryption is slow ?RSA decryption is slower than encryption because wh... |
PL/SQL - Basic Loop Statement | Basic loop structure encloses sequence of statements in between the LOOP and END LOOP statements. With each iteration, the sequence of statements is executed and then control resumes at the top of the loop.
The syntax of a basic loop in PL/SQL programming language is −
LOOP
Sequence of statements;
END LOOP;
Here... | [
{
"code": null,
"e": 2406,
"s": 2199,
"text": "Basic loop structure encloses sequence of statements in between the LOOP and END LOOP statements. With each iteration, the sequence of statements is executed and then control resumes at the top of the loop."
},
{
"code": null,
"e": 2469,
... |
Find XOR of two number without using XOR operator | 25 May, 2022
Given two integers, find XOR of them without using the XOR operator, i.e., without using ^ in C/C++.
Examples :
Input: x = 1, y = 2
Output: 3
Input: x = 3, y = 5
Output: 6
A Simple Solution is to traverse all bits one by one. For every pair of bits, check if both are the same, set the corresponding bi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 May, 2022"
},
{
"code": null,
"e": 153,
"s": 52,
"text": "Given two integers, find XOR of them without using the XOR operator, i.e., without using ^ in C/C++."
},
{
"code": null,
"e": 166,
"s": 153,
"text": "Exam... |
Minimum swaps to make two arrays consisting unique elements identical | 06 Jul, 2022
Given two arrays that have the same values but in a different order and having no duplicate elements in it, we need to make a second array the same as a first array using the minimum number of swaps.
Examples:
Input : arrA[] = {3, 6, 4, 8}, arrB[] = {4, 6, 8, 3}Output : 2Explaination: we can m... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 253,
"s": 52,
"text": "Given two arrays that have the same values but in a different order and having no duplicate elements in it, we need to make a second array the same as a first array using the... |
Double parseDouble() method in Java with examples | 26 Oct, 2018
The parseDouble() method of Java Double class is a built in method in Java that returns a new double initialized to the value represented by the specified String, as done by the valueOf method of class Double.
Syntax:
public static double parseDouble(String s)
Parameters: It accepts a single mandatory para... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 Oct, 2018"
},
{
"code": null,
"e": 263,
"s": 53,
"text": "The parseDouble() method of Java Double class is a built in method in Java that returns a new double initialized to the value represented by the specified String, as done by ... |
Send a notification when the Android app is closed | This example demonstrate about How to Send a notification when the Android app is closed
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 = "ut... | [
{
"code": null,
"e": 1276,
"s": 1187,
"text": "This example demonstrate about How to Send a notification when the Android app is closed"
},
{
"code": null,
"e": 1405,
"s": 1276,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requir... |
Understanding Python Pickling with example | 13 Nov, 2018
Prerequisite: Pickle Module
Python pickle module is used for serializing and de-serializing a Python object structure. Any object in Python can be pickled so that it can be saved on disk. What pickle does is that it “serializes” the object first before writing it to file. Pickling is a way to convert a pyt... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Nov, 2018"
},
{
"code": null,
"e": 82,
"s": 54,
"text": "Prerequisite: Pickle Module"
},
{
"code": null,
"e": 546,
"s": 82,
"text": "Python pickle module is used for serializing and de-serializing a Python object... |
How to Setup GSON For Java Application? | 30 Aug, 2021
GSON is Google’s JSON parser. It is used to parse JSON files and generate JSON files. It has multiple APIs which serialize Java objects to JSON and deserializes JSON files to Java objects. To use GSON in your java application, we first need to install it. To do this, we can either add GSON jar dependency i... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Aug, 2021"
},
{
"code": null,
"e": 425,
"s": 28,
"text": "GSON is Google’s JSON parser. It is used to parse JSON files and generate JSON files. It has multiple APIs which serialize Java objects to JSON and deserializes JSON files to ... |
Java.util.Collections.disjoint() Method in java with Examples | 07 Dec, 2018
java.util.Collections.disjoint() method is present in java.util.Collections class. It is used to check whether two specified collections are disjoint or not. More formally, two collections are disjoint if they have no elements in common.
Syntax:
public static boolean disjoint(Collection<?> c1, Collection<?... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Dec, 2018"
},
{
"code": null,
"e": 290,
"s": 52,
"text": "java.util.Collections.disjoint() method is present in java.util.Collections class. It is used to check whether two specified collections are disjoint or not. More formally, t... |
How To Facet a Scatter Plot with Altair? - GeeksforGeeks | 03 Jan, 2021
In this article, we will learn how to Facet a Scatter Plot with Altair. Let’s recall some concepts :
Altair is a statistical visualization library in Python. It is declarative in nature and is based on Vega and Vega-Lite visualization grammars. It is fast becoming the first choice of people looking for a q... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n03 Jan, 2021"
},
{
"code": null,
"e": 25638,
"s": 25537,
"text": "In this article, we will learn how to Facet a Scatter Plot with Altair. Let’s recall some concepts :"
},
{
"code": null,
"e": 26026,
"s": 25638,
... |
Python PostgreSQL - Delete Data - GeeksforGeeks | 23 Aug, 2021
In this article, we are going to see how to delete data in tables from PostgreSQL using pyscopg2 module in Python. In PostgreSQL, DELETE TABLE is used to delete the data in the existing table from the database. It removes table definition and all associated data, indexes, rules, triggers, and constraints f... | [
{
"code": null,
"e": 25581,
"s": 25553,
"text": "\n23 Aug, 2021"
},
{
"code": null,
"e": 25966,
"s": 25581,
"text": "In this article, we are going to see how to delete data in tables from PostgreSQL using pyscopg2 module in Python. In PostgreSQL, DELETE TABLE is used to delete th... |
Clausal Form in Deductive Databases - GeeksforGeeks | 01 Sep, 2021
In clausal form, the formula is made up of a number of clauses, where each clause is composed of a number of literals connected by OR logical connectives only.
A formula can have the following quantifiers:
Universal quantifier – It can be understood as – “For all x, P(x) holds”, meaning P(x) is true for ev... | [
{
"code": null,
"e": 25549,
"s": 25521,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 25709,
"s": 25549,
"text": "In clausal form, the formula is made up of a number of clauses, where each clause is composed of a number of literals connected by OR logical connectives only."
... |
Histogram in R using ggplot2 - GeeksforGeeks | 25 Feb, 2021
ggplot2 is an R Package that is dedicated to Data visualization. ggplot2 Package Improve the quality and the beauty (aesthetics ) of the graph. By Using ggplot2 we can make almost every kind of graph In RStudio
A histogram is an approximate representation of the distribution of numerical data. In a histog... | [
{
"code": null,
"e": 26511,
"s": 26483,
"text": "\n25 Feb, 2021"
},
{
"code": null,
"e": 26723,
"s": 26511,
"text": "ggplot2 is an R Package that is dedicated to Data visualization. ggplot2 Package Improve the quality and the beauty (aesthetics ) of the graph. By Using ggplot2 w... |
std::min in C++ - GeeksforGeeks | 20 Feb, 2022
std::min is defined in the header file <algorithm> and is used to find out the smallest of the number passed to it. It returns the first of them, if there are more than one. It can be used in following 3 manners:
It compares the two numbers passed in its arguments and returns the smaller of the two, and ... | [
{
"code": null,
"e": 25669,
"s": 25641,
"text": "\n20 Feb, 2022"
},
{
"code": null,
"e": 25884,
"s": 25669,
"text": "std::min is defined in the header file <algorithm> and is used to find out the smallest of the number passed to it. It returns the first of them, if there are more... |
Length of the Diagonal of the Octagon - GeeksforGeeks | 17 Mar, 2021
Given here is a regular octagon of side length a, the task is to find the length of it’s diagonal.Examples:
Input: a = 4
Output: 10.4525
Input: a = 5
Output: 13.0656
Approach: From the diagram it is clear that,
AB^2 + BC^2 = AC^2 here, in triangle AED, b^2 + b^2 = a^2 or, b=a/√2(Please refer) So, A... | [
{
"code": null,
"e": 26291,
"s": 26263,
"text": "\n17 Mar, 2021"
},
{
"code": null,
"e": 26401,
"s": 26291,
"text": "Given here is a regular octagon of side length a, the task is to find the length of it’s diagonal.Examples: "
},
{
"code": null,
"e": 26460,
"s": ... |
How to build a simple music player app using Android Studio - GeeksforGeeks | 22 May, 2020
This is a very simple app suitable for beginners to learn the concepts. The following pre-requisites is good enough before starting.
Android fundamentals for beginners
Install and Set up Android Studio
First android app project
How to Run your first Android app
The following things you will learn in this a... | [
{
"code": null,
"e": 26051,
"s": 26023,
"text": "\n22 May, 2020"
},
{
"code": null,
"e": 26184,
"s": 26051,
"text": "This is a very simple app suitable for beginners to learn the concepts. The following pre-requisites is good enough before starting."
},
{
"code": null,
... |
Print all Unique Strings present in a given Array - GeeksforGeeks | 24 Jun, 2021
Given an array of strings arr[], the task is to print all unique strings that are present in the given array.
Examples:
Input: arr[] = { “geeks”, “geek”, “ab”, “geek” “code”, “karega” } Output: geeks ab code karega Explanation: The frequency of the string “geeks” is 1. The frequency of the string “geek” is... | [
{
"code": null,
"e": 25707,
"s": 25679,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 25817,
"s": 25707,
"text": "Given an array of strings arr[], the task is to print all unique strings that are present in the given array."
},
{
"code": null,
"e": 25827,
"s": ... |
Ambiguity in Context free Grammar and Context free Languages - GeeksforGeeks | 23 Feb, 2022
Prerequisite – Pushdown Automata and Context Free Languages .
Suppose we have a context free grammar G with production rules: S->aSb|bSa|SS|Ɛ
Left most derivation (LMD) and Derivation Tree: Leftmost derivation of a string from starting symbol S is done by replacing leftmost non-terminal symbol by RHS of... | [
{
"code": null,
"e": 31081,
"s": 31053,
"text": "\n23 Feb, 2022"
},
{
"code": null,
"e": 31144,
"s": 31081,
"text": "Prerequisite – Pushdown Automata and Context Free Languages . "
},
{
"code": null,
"e": 31226,
"s": 31144,
"text": "Suppose we have a context f... |
Java Program to Convert String to Object - GeeksforGeeks | 27 Nov, 2020
In-built Object class is the parent class of all the classes i.e each class is internally a child class of the Object class. So we can directly assign a string to an object.
Basically, there are two methods to convert String to Object. Below is the conversion of string to object using both of the methods.
... | [
{
"code": null,
"e": 25237,
"s": 25209,
"text": "\n27 Nov, 2020"
},
{
"code": null,
"e": 25411,
"s": 25237,
"text": "In-built Object class is the parent class of all the classes i.e each class is internally a child class of the Object class. So we can directly assign a string to ... |
How to get the Shared folder permissions with PowerShell? | To get the shared folder permissions using PowerShell, we can use the Get-SmbShare cmdlet.
For example, we have a shared folder name DSC and we need to retrieve its permissions, we can use the below command.
Get-SmbShare -Name DSC
Name ScopeName Path Description
---- --------- ---- -----------
DSC * E:\DSC
It d... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "To get the shared folder permissions using PowerShell, we can use the Get-SmbShare cmdlet."
},
{
"code": null,
"e": 1270,
"s": 1153,
"text": "For example, we have a shared folder name DSC and we need to retrieve its permissions, we c... |
How to set the range for boxplot in base R? | By default, R considers the vector or the data frame column values. But if we want to set the range for boxplot in base R, we can use ylim argument within the boxplot function. For example, if we have a vector called x that contains values starting from 21 to 50 and we want to have the range in the boxplot starting fro... | [
{
"code": null,
"e": 1421,
"s": 1062,
"text": "By default, R considers the vector or the data frame column values. But if we want to set the range for boxplot in base R, we can use ylim argument within the boxplot function. For example, if we have a vector called x that contains values starting from... |
Feature Importance with Neural Network | by Marco Cerliani | Towards Data Science | One of the best challenges in Machine Learning tends to let the model speak themself. It not also is important to develop a strong solution with great predicting power, but also in a lot of business applications is interesting to know how the model provides these results: which variables are engaged the most, the prese... | [
{
"code": null,
"e": 561,
"s": 172,
"text": "One of the best challenges in Machine Learning tends to let the model speak themself. It not also is important to develop a strong solution with great predicting power, but also in a lot of business applications is interesting to know how the model provid... |
4 different approaches for Time Series Analysis | by Angelica Lo Duca | Towards Data Science | In this tutorial I illustrate how to analyse a time series, using the following 4 different approaches:
Manual setting of model parameters and multi-step forecasting
Manual setting of model parameters and single-step-forecasting
Automatic setting of model parameters and multi-step forecasting
Decomposition.
The first t... | [
{
"code": null,
"e": 275,
"s": 171,
"text": "In this tutorial I illustrate how to analyse a time series, using the following 4 different approaches:"
},
{
"code": null,
"e": 337,
"s": 275,
"text": "Manual setting of model parameters and multi-step forecasting"
},
{
"code"... |
Text Preprocessing for Data Scientists | by Dhilip Subramanian | Towards Data Science | Text preprocessing is an important task and critical step in text analysis and Natural language processing (NLP). It transforms the text into a form that is predictable and analyzable so that machine learning algorithms can perform better. This is an handy text preprocessing guide and it is a continuation of my previou... | [
{
"code": null,
"e": 570,
"s": 172,
"text": "Text preprocessing is an important task and critical step in text analysis and Natural language processing (NLP). It transforms the text into a form that is predictable and analyzable so that machine learning algorithms can perform better. This is an hand... |
Creating an interactive map in Python using Bokeh and pandas | by Craig Dickson | Towards Data Science | This article can be seen as an extension of my earlier piece dealing with avocado pricing data (what can I say, I love avocados!) which you can find here. I recommend checking it out!
As Data Analysts / Data Scientists / other manipulators of data, we often find ourselves using visualisations to effectively communicate... | [
{
"code": null,
"e": 356,
"s": 172,
"text": "This article can be seen as an extension of my earlier piece dealing with avocado pricing data (what can I say, I love avocados!) which you can find here. I recommend checking it out!"
},
{
"code": null,
"e": 701,
"s": 356,
"text": "As... |
How to Parse HTML pages to fetch HTML tables with Python? | You need to extract the HTML tables from a web page.
The internet, and the World Wide Web (WWW), is the most prominent source of information today. There is so much information out there, it is just very hard to choose the content from so many options. Most of that information is retrievable through HTTP.
But we can al... | [
{
"code": null,
"e": 1115,
"s": 1062,
"text": "You need to extract the HTML tables from a web page."
},
{
"code": null,
"e": 1369,
"s": 1115,
"text": "The internet, and the World Wide Web (WWW), is the most prominent source of information today. There is so much information out t... |
Bye-bye MobileNet. Hello EfficientNet! | by Vardan Agarwal | Towards Data Science | How to run complex deep learning models on mobiles and edge devices with a limitation of processing power and memory with good speed? Create a model with a backbone of MobileNetV2, convert it to Tensorflow Lite, and you are done. Now it is challenged by EfficientNet Lite. Read on to learn about the need for EfficientNe... | [
{
"code": null,
"e": 723,
"s": 171,
"text": "How to run complex deep learning models on mobiles and edge devices with a limitation of processing power and memory with good speed? Create a model with a backbone of MobileNetV2, convert it to Tensorflow Lite, and you are done. Now it is challenged by E... |
Pascal - Date and Time | Most of the softwares you write need implementing some form of date functions returning current date and time. Dates are so much part of everyday life that it becomes easy to work with them without thinking. Pascal also provides powerful tools for date arithmetic that makes manipulating dates easy. However, the actual ... | [
{
"code": null,
"e": 2479,
"s": 2083,
"text": "Most of the softwares you write need implementing some form of date functions returning current date and time. Dates are so much part of everyday life that it becomes easy to work with them without thinking. Pascal also provides powerful tools for date ... |
Program to Convert Hexadecimal Number to Binary | 05 Jul, 2022
Given a Hexadecimal number as an input, the task is to convert that number to a Binary number.Examples:
Input: Hexadecimal = 1AC5
Output: Binary = 0001101011000101
Explanation:
Equivalent binary value of 1: 0001
Equivalent binary value of A: 1010
Equivalent binary value of C: 1100
Equivalen... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Jul, 2022"
},
{
"code": null,
"e": 132,
"s": 28,
"text": "Given a Hexadecimal number as an input, the task is to convert that number to a Binary number.Examples:"
},
{
"code": null,
"e": 422,
"s": 132,
"text": "In... |
Dangers of Artificial Intelligence | 21 Nov, 2019
Before even starting to talk about Artificial Intelligence we have to know what is Intelligence? Well, Intelligence gets created in an object when it can recall its experiences and also use those experiences to function in the present time. But this is a somewhat philosophical definition. When it comes to ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Nov, 2019"
},
{
"code": null,
"e": 478,
"s": 54,
"text": "Before even starting to talk about Artificial Intelligence we have to know what is Intelligence? Well, Intelligence gets created in an object when it can recall its experienc... |
Scan and Read Data from a File in R Programming – scan() Function | 30 Jun, 2020
scan() function in R Language is used to scan and read data. It is usually used to read data into vector or list or from file in R Language.
Syntax:scan(“data.txt”, what = “character”)
Parameter:data.txt: Text file to be scanned
Returns: Scanned output
Example 1: Scanning of Text
# R Program to scan a file... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jun, 2020"
},
{
"code": null,
"e": 169,
"s": 28,
"text": "scan() function in R Language is used to scan and read data. It is usually used to read data into vector or list or from file in R Language."
},
{
"code": null,
"e... |
Loops in Rust | 03 Mar, 2021
A loop is a programming structure that repeats a sequence of instructions until a specific condition is satisfied. Similar to other programming languages, Rust also has two types of loops:
Indefinite Loop: While loop and Loop
Definite Loops: For loop
Let’s explore them in detail.
A simple way of explaining... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Mar, 2021"
},
{
"code": null,
"e": 217,
"s": 28,
"text": "A loop is a programming structure that repeats a sequence of instructions until a specific condition is satisfied. Similar to other programming languages, Rust also has two ty... |
Types of padding in convolution layer | 15 Jan, 2019
Let’s discuss padding and its types in convolution layers. In convolution layer we have kernels and to make the final filter more informative we use padding in image matrix or any kind of input array. We have three types of padding that are as follows.
Padding Full :Let’s assume a kernel as a sliding windo... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Jan, 2019"
},
{
"code": null,
"e": 307,
"s": 54,
"text": "Let’s discuss padding and its types in convolution layers. In convolution layer we have kernels and to make the final filter more informative we use padding in image matrix o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.