title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Length of the longest substring without repeating characters - GeeksforGeeks | 13 Apr, 2022
Given a string str, find the length of the longest substring without repeating characters.
For “ABDEFGABEF”, the longest substring are “BDEFGA” and “DEFGAB”, with length 6.
For “BBBB” the longest substring is “B”, with length 1.
For “GEEKSFORGEEKS”, there are two longest substrings shown in the below diag... | [
{
"code": null,
"e": 24831,
"s": 24803,
"text": "\n13 Apr, 2022"
},
{
"code": null,
"e": 24923,
"s": 24831,
"text": "Given a string str, find the length of the longest substring without repeating characters. "
},
{
"code": null,
"e": 25005,
"s": 24923,
"text":... |
Java abstract Keyword | ❮ Java Keywords
An abstract method belongs to an abstract class, and it does not have a body.
The body is provided by the subclass:
// Code from filename: Main.java
// abstract classabstract class Main {
public String fname = "John";
public int age = 24;
public abstract void study(); // abstract method
}
// Su... | [
{
"code": null,
"e": 18,
"s": 0,
"text": "\n❮ Java Keywords\n"
},
{
"code": null,
"e": 135,
"s": 18,
"text": "An abstract method belongs to an abstract class, and it does not have a body. \nThe body is provided by the subclass:"
},
{
"code": null,
"e": 1017,
"s": ... |
Regression Plots with Pandas and Numpy | by Alan Jones | Towards Data Science | I like the plotting facilities that come with Pandas. Yes, there are many other plotting libraries such as Seaborn, Bokeh and Plotly but for most purposes, I am very happy with the simplicity of Pandas plotting.
But there is one thing missing that I would like and that is the ability to plot a regression line over a co... | [
{
"code": null,
"e": 384,
"s": 172,
"text": "I like the plotting facilities that come with Pandas. Yes, there are many other plotting libraries such as Seaborn, Bokeh and Plotly but for most purposes, I am very happy with the simplicity of Pandas plotting."
},
{
"code": null,
"e": 520,
... |
Define the number of columns in CSS Grid Layout | Use the grid-template-columns property to define the number of columns in CSS Grid Layout.
You can try to run the following code to set a number of columns. Here, 3 column grid is set:
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
.container {
display: grid;
background-color:... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "Use the grid-template-columns property to define the number of columns in CSS Grid Layout."
},
{
"code": null,
"e": 1247,
"s": 1153,
"text": "You can try to run the following code to set a number of columns. Here, 3 column grid is se... |
How Japanese Tokenizers Work. A deep dive into Japanese tokenization... | by Wanasit Tanakitrungruang | Towards Data Science | I recently have been working on Kotori and doing research on Japanese NLP tools. I’m writing this article to share what I have learned so far about Japanese tokenization and its components.
If you haven’t heard of it, Kotori is a Japanese tokenizer and morphological analysis engine written in Kotlin. Please check Kotor... | [
{
"code": null,
"e": 361,
"s": 171,
"text": "I recently have been working on Kotori and doing research on Japanese NLP tools. I’m writing this article to share what I have learned so far about Japanese tokenization and its components."
},
{
"code": null,
"e": 552,
"s": 361,
"text... |
Spring Boot H2 Database + JDBC Template 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 show how to... | [
{
"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,
... |
Side by Side Line charts in R - GeeksforGeeks | 21 Jul, 2021
In this article, we will discuss how to make side by side line chart in R Programming Language.
Here we will use par() function to divide frames into grids.
Syntax: par(mfrow, mar, mgp, las)
Parameters:
mfrow: A numeric vector of length 2, which sets the rows and column in which frame has to be divided.
m... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 25339,
"s": 25242,
"text": "In this article, we will discuss how to make side by side line chart in R Programming Language. "
},
{
"code": null,
"e": 25400,
"s": 25339,
"t... |
MySQL query to replace a column value | Let us first create a table −
mysql> create table DemoTable
(
StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
Score int
);
Query OK, 0 rows affected (0.45 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable(Score) values(56);
Query OK, 1 row affected (0.24 sec)
mysql> inse... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1231,
"s": 1092,
"text": "mysql> create table DemoTable\n(\n StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n Score int\n);\nQuery OK, 0 rows affected (0.45 sec)"
},
... |
Python | Check for None Tuple - GeeksforGeeks | 21 Nov, 2019
Sometimes, while working with Python records, we can have a problem in which we need to filter out all the tuples which contains just None values. This can have possible application in Data Science domain. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using all() + generator e... | [
{
"code": null,
"e": 24390,
"s": 24362,
"text": "\n21 Nov, 2019"
},
{
"code": null,
"e": 24660,
"s": 24390,
"text": "Sometimes, while working with Python records, we can have a problem in which we need to filter out all the tuples which contains just None values. This can have po... |
Weighted Job Scheduling | A list of different jobs is given, with the starting time, the ending time and profit of that job are also provided for those jobs. Our task is to find a subset of jobs, where the profit is maximum and no jobs are overlapping each other.
In this algorithm, we use a table to store the results of sub-problems and using t... | [
{
"code": null,
"e": 1300,
"s": 1062,
"text": "A list of different jobs is given, with the starting time, the ending time and profit of that job are also provided for those jobs. Our task is to find a subset of jobs, where the profit is maximum and no jobs are overlapping each other."
},
{
"... |
Automate SAP Report Extraction with Pyautogui | by Pathairush Seeda | Towards Data Science | Reporting is the foundation of any business. In daily life, you somehow have to ingest the new data from a report to decide where to go next every day. The report can come in various formats such as Microsoft Excel, Web application, or exporting from an enterprise resource planning system (ERP).
I have recently got a r... | [
{
"code": null,
"e": 469,
"s": 172,
"text": "Reporting is the foundation of any business. In daily life, you somehow have to ingest the new data from a report to decide where to go next every day. The report can come in various formats such as Microsoft Excel, Web application, or exporting from an e... |
Return Vowels in a string in JavaScript | We are required to write a JavaScript function that takes in a string that might contain some alphabets. The function should count and return the number of vowels that exists in the string.
Following is the code −
const str = 'this is a string';
const countVowels = (str = '') => {
str = str.toLowerCase();
const l... | [
{
"code": null,
"e": 1252,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a string that might contain some alphabets. The function should count and return the number of vowels that exists in the string."
},
{
"code": null,
"e": 1276,
"s": 1252,
"... |
How to fill NA values with previous values in an R data frame column? | To fill NA values with next and previous values, we can use na.locf function of zoo package with fromLast = TRUE. This is the situation of a column as shown below −
x
0
NA
NA
1
1
NA
0
1
The output after filling NA values with next and previous values will be −
x
0
0
0
1
1
1
0
1
Consider the below data frame −
Live Dem... | [
{
"code": null,
"e": 1227,
"s": 1062,
"text": "To fill NA values with next and previous values, we can use na.locf function of zoo package with fromLast = TRUE. This is the situation of a column as shown below −"
},
{
"code": null,
"e": 1248,
"s": 1227,
"text": "x\n0\nNA\nNA\n1\n... |
Fetch a specific column value (name) in MySQL | To fetch a specific column value, use LIKE clause. Let us first create a table −
mysql> create table DemoTable1809
(
Name varchar(20)
);
Query OK, 0 rows affected (0.00 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1809 values('John');
Query OK, 1 row affected (... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "To fetch a specific column value, use LIKE clause. Let us first create a table −"
},
{
"code": null,
"e": 1251,
"s": 1143,
"text": "mysql> create table DemoTable1809\n (\n Name varchar(20)\n );\nQuery OK, 0 rows affected ... |
Angular forms NgModelGroup Directive - GeeksforGeeks | 04 Jul, 2021
In this article, we are going to see what is NgModelGroup in Angular 10 and how to use it. The NgModelGroup is used to create a top-level form group Instance, and it binds the form to the given form value.
Syntax:
<div ngModelGroup="name"></div>
NgModule: Module used by NgModelGroup is:
FormsModule
Selecto... | [
{
"code": null,
"e": 24718,
"s": 24690,
"text": "\n04 Jul, 2021"
},
{
"code": null,
"e": 24924,
"s": 24718,
"text": "In this article, we are going to see what is NgModelGroup in Angular 10 and how to use it. The NgModelGroup is used to create a top-level form group Instance, and ... |
MySQL - Create Database | You would need special privileges to create or to delete a MySQL database. So assuming you have access to the root user, you can create any database using the mysql mysqladmin binary.
Here is a simple example to create a database called TUTORIALS −
[root@host]# mysqladmin -u root -p create TUTORIALS
Enter password:****... | [
{
"code": null,
"e": 2517,
"s": 2333,
"text": "You would need special privileges to create or to delete a MySQL database. So assuming you have access to the root user, you can create any database using the mysql mysqladmin binary."
},
{
"code": null,
"e": 2582,
"s": 2517,
"text":... |
Can LightGBM Outperform XGBoost?. Boosting algorithms in machine learning... | by Rukshan Pramoditha | Towards Data Science | Up to now, we’ve discussed 3 boosting techniques: AdaBoost, Gradient Boosting and XGBoost. We already know that XGBoost is more powerful than other boosting algorithms that we’ve discussed so far.
LightGBM (Light Gradient Boosting Machine) is a great alternative to XGBoost. It was developed by Microsoft and released in... | [
{
"code": null,
"e": 369,
"s": 172,
"text": "Up to now, we’ve discussed 3 boosting techniques: AdaBoost, Gradient Boosting and XGBoost. We already know that XGBoost is more powerful than other boosting algorithms that we’ve discussed so far."
},
{
"code": null,
"e": 516,
"s": 369,
... |
Your First Neural Network in PyTorch | by Dario Radečić | Towards Data Science | With the field of Deep learning getting hotter by the day and plethora of advanced articles on the web, it’s easy to think of deep learning as some advanced field reserved only for math Ph.D.’s — but let’s prove you wrong.
The field of deep learning, at least the practical part, was never easier to get started with — a... | [
{
"code": null,
"e": 395,
"s": 172,
"text": "With the field of Deep learning getting hotter by the day and plethora of advanced articles on the web, it’s easy to think of deep learning as some advanced field reserved only for math Ph.D.’s — but let’s prove you wrong."
},
{
"code": null,
... |
Create a Pandas Dataframe by appending one row at a time | To create a Pandas DataFrame by appending one row at a time, we can iterate in a range and add multiple columns data in it.
Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df.
Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df.
Print the input DataFrame.
P... | [
{
"code": null,
"e": 1186,
"s": 1062,
"text": "To create a Pandas DataFrame by appending one row at a time, we can iterate in a range and add multiple columns data in it."
},
{
"code": null,
"e": 1270,
"s": 1186,
"text": "Create a two-dimensional, size-mutable, potentially hetero... |
How to iterate over a C# tuple? | Firstly, declare a tuple and add values −
Tuple <int, string> tuple = new Tuple<int, string>(100, "Tom");
With C#, to iterate over a tuple, you can go for individual elements −
tuple.Item1 // first item
tuple.Item2 // second item
To display the complete tuple, just use:
// display entire tuple
Console.WriteLine(tuple);... | [
{
"code": null,
"e": 1104,
"s": 1062,
"text": "Firstly, declare a tuple and add values −"
},
{
"code": null,
"e": 1168,
"s": 1104,
"text": "Tuple <int, string> tuple = new Tuple<int, string>(100, \"Tom\");"
},
{
"code": null,
"e": 1239,
"s": 1168,
"text": "Wit... |
Docker - Working of Kubernetes | In this chapter, we will see how to install Kubenetes via kubeadm. This is a tool which helps in the installation of Kubernetes. Let’s go step by step and learn how to install Kubernetes.
Step 1 − Ensure that the Ubuntu server version you are working on is 16.04.
Step 2 − Ensure that you generate a ssh key which can be... | [
{
"code": null,
"e": 2528,
"s": 2340,
"text": "In this chapter, we will see how to install Kubenetes via kubeadm. This is a tool which helps in the installation of Kubernetes. Let’s go step by step and learn how to install Kubernetes."
},
{
"code": null,
"e": 2604,
"s": 2528,
"te... |
Node.js Stream writable.end() Method - GeeksforGeeks | 12 Oct, 2021
The writable.end() method is an inbuilt application programming interface of Stream module so that no more data can be written to the Writable anymore. The arguments chunk and encoding are optional which will permit one final new chunk of data to be written instantly before closing the stream. Moreover, th... | [
{
"code": null,
"e": 36865,
"s": 36837,
"text": "\n12 Oct, 2021"
},
{
"code": null,
"e": 37271,
"s": 36865,
"text": "The writable.end() method is an inbuilt application programming interface of Stream module so that no more data can be written to the Writable anymore. The argumen... |
Cycle Sort | Cycle Sort is an in-place sorting algorithm. It is also a comparison based sort and efficient for any other in-place sorting technique. It finds the minimum number of memory write to perform the sorting tasks.
Time Complexity: O(n^2)
Space Complexity: O(1)
Input:
A list of unsorted data: 23 63 98 74 20 14 36 45 99 78
O... | [
{
"code": null,
"e": 1272,
"s": 1062,
"text": "Cycle Sort is an in-place sorting algorithm. It is also a comparison based sort and efficient for any other in-place sorting technique. It finds the minimum number of memory write to perform the sorting tasks."
},
{
"code": null,
"e": 1296,
... |
C++ Stack Library - top() Function | The C++ function std::stack::top() returns top element of the stack. This is the element which is removed after performing pop operation.
Following is the declaration for std::stack::top() function form std::stack header.
value_type& top();
const value_type& top() const;
reference& top();
const_reference& top() const;... | [
{
"code": null,
"e": 2741,
"s": 2603,
"text": "The C++ function std::stack::top() returns top element of the stack. This is the element which is removed after performing pop operation."
},
{
"code": null,
"e": 2825,
"s": 2741,
"text": "Following is the declaration for std::stack:... |
Self Numbers - GeeksforGeeks | 01 Aug, 2021
A Number N is said to be Self Number if it can not be written as M + sum of digits of M for any M.The first few Self numbers are:
1, 3, 5, 7, 9, 20, 31, 42................
Given an integer N, the task is to find if this number is Self number or not. Examples:
Input: N = 3 Output: Yes Explanation: 1 + ... | [
{
"code": null,
"e": 24301,
"s": 24273,
"text": "\n01 Aug, 2021"
},
{
"code": null,
"e": 24433,
"s": 24301,
"text": "A Number N is said to be Self Number if it can not be written as M + sum of digits of M for any M.The first few Self numbers are: "
},
{
"code": null,
... |
How to parse JSON Objects on Android? | This example demonstrates how to parse JSON Objects on Android .
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following dependency to Gradle Scripts ⇒ build.gradle and do sync
apply plugin: 'com.android.application'
and... | [
{
"code": null,
"e": 1127,
"s": 1062,
"text": "This example demonstrates how to parse JSON Objects on Android ."
},
{
"code": null,
"e": 1256,
"s": 1127,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a n... |
Spring Boot Environment Properties reading based on activeProfile | 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, I am going to show how to r... | [
{
"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,
... |
Functions in C - GeeksQuiz | 21 Oct, 2021
In C, parameters are always
Passed by value
Passed by reference
Non-pointer variables are passed by value and pointers are passed by reference
Passed by value result
In C, function parameters are always passed by value. Pass-by-reference is simulated in C by explicitly passing pointer values.
Which ... | [
{
"code": null,
"e": 27610,
"s": 27582,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 27640,
"s": 27610,
"text": "In C, parameters are always "
},
{
"code": null,
"e": 27657,
"s": 27640,
"text": "Passed by value "
},
{
"code": null,
"e": 27678,... |
JSP - Custom Tags | In this chapter, we will discuss the Custom Tags in JSP. A custom tag is a user-defined JSP language element. When a JSP page containing a custom tag is translated into a servlet, the tag is converted to operations on an object called a tag handler. The Web container then invokes those operations when the JSP page's se... | [
{
"code": null,
"e": 2578,
"s": 2239,
"text": "In this chapter, we will discuss the Custom Tags in JSP. A custom tag is a user-defined JSP language element. When a JSP page containing a custom tag is translated into a servlet, the tag is converted to operations on an object called a tag handler. The... |
Collectors.joining() method in Java 8 | The joining() method of the Collectors class in Java 8 returns a Collector that concatenates the input elements into a String, in encounter order.
The syntax is as follows −
public static Collector<CharSequence,?,String> joining()
Here, CharSequence is a readable sequence of char values, whereas String class represents... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "The joining() method of the Collectors class in Java 8 returns a Collector that concatenates the input elements into a String, in encounter order."
},
{
"code": null,
"e": 1236,
"s": 1209,
"text": "The syntax is as follows −"
},
... |
Microprocessor - 8086 Addressing Modes | The different ways in which a source operand is denoted in an instruction is known as addressing modes. There are 8 different addressing modes in 8086 programming −
The addressing mode in which the data operand is a part of the instruction itself is known as immediate addressing mode.
MOV CX, 4929 H, ADD AX, 2387 H, M... | [
{
"code": null,
"e": 2626,
"s": 2461,
"text": "The different ways in which a source operand is denoted in an instruction is known as addressing modes. There are 8 different addressing modes in 8086 programming −"
},
{
"code": null,
"e": 2747,
"s": 2626,
"text": "The addressing mo... |
Ruby - Multithreading | Traditional programs have a single thread of execution the statements or instructions that comprise the program are executed sequentially until the program terminates.
A multithreaded program has more than one thread of execution. Within each thread, statements are executed sequentially, but the threads themselves may ... | [
{
"code": null,
"e": 2462,
"s": 2294,
"text": "Traditional programs have a single thread of execution the statements or instructions that comprise the program are executed sequentially until the program terminates."
},
{
"code": null,
"e": 2833,
"s": 2462,
"text": "A multithreade... |
R - Logistic Regression | The Logistic Regression is a regression model in which the response variable (dependent variable) has categorical values such as True/False or 0/1. It actually measures the probability of a binary response as the value of response variable based on the mathematical equation relating it with the predictor variables.
The... | [
{
"code": null,
"e": 2719,
"s": 2402,
"text": "The Logistic Regression is a regression model in which the response variable (dependent variable) has categorical values such as True/False or 0/1. It actually measures the probability of a binary response as the value of response variable based on the ... |
How to throw an exception from a static block in Java?
| A static block is a set of statements, which will be executed by the JVM before the execution of the main() method. At the time of class loading if we want to perform any activity we have to define that activity inside a static block because this block executes at the time of class loading.
A static block can throw onl... | [
{
"code": null,
"e": 1354,
"s": 1062,
"text": "A static block is a set of statements, which will be executed by the JVM before the execution of the main() method. At the time of class loading if we want to perform any activity we have to define that activity inside a static block because this block ... |
Program to add two binary strings in C++ | Given two strings with binary number, we have to find the result obtained by adding those two binary strings and return the result as a binary string.
Binary numbers are those numbers which are expressed either as 0 or 1. While adding 2 binary numbers there is binary addition rule which is to be taken care of.
0+0 → 0
... | [
{
"code": null,
"e": 1213,
"s": 1062,
"text": "Given two strings with binary number, we have to find the result obtained by adding those two binary strings and return the result as a binary string."
},
{
"code": null,
"e": 1374,
"s": 1213,
"text": "Binary numbers are those number... |
Caffe2 - Creating Your Own Network | In this lesson, you will learn to define a single layer neural network (NN) in Caffe2 and run it on a randomly generated dataset. We will write code to graphically depict the network architecture, print input, output, weights, and bias values. To understand this lesson, you must be familiar with neural network architec... | [
{
"code": null,
"e": 2158,
"s": 1791,
"text": "In this lesson, you will learn to define a single layer neural network (NN) in Caffe2 and run it on a randomly generated dataset. We will write code to graphically depict the network architecture, print input, output, weights, and bias values. To unders... |
\mkern - Tex Command | \mkern - gives horizontal space.
{ \mkern <dimen>}
\mkern command is used to create horizontal space.
ab
ab
a\mkern18mu b
ab
a\mkern18pt b
ab
ab
ab
ab
a\mkern18mu b
ab
a\mkern18mu b
a\mkern18pt b
ab
a\mkern18pt b
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf S... | [
{
"code": null,
"e": 8019,
"s": 7986,
"text": "\\mkern - gives horizontal space."
},
{
"code": null,
"e": 8037,
"s": 8019,
"text": "{ \\mkern <dimen>}"
},
{
"code": null,
"e": 8088,
"s": 8037,
"text": "\\mkern command is used to create horizontal space."
},
... |
Tracking bird migration using Python-3 | In some Research works, Researchers uses GPS modules to track the animal behavior. They can track how they are travelling to different places in different time of a year etc.
In this example we use that kind of dataset to get an idea, how Birds are moving in different places. In this dataset there are the location deta... | [
{
"code": null,
"e": 1237,
"s": 1062,
"text": "In some Research works, Researchers uses GPS modules to track the animal behavior. They can track how they are travelling to different places in different time of a year etc."
},
{
"code": null,
"e": 1566,
"s": 1237,
"text": "In this... |
Custom Events in Spring | There are number of steps to be taken to write and publish your own custom events. Follow the instructions given in this chapter to write, publish and handle Custom Spring Events.
Here is the content of CustomEvent.java file
package com.tutorialspoint;
import org.springframework.context.ApplicationEvent;
public class... | [
{
"code": null,
"e": 2472,
"s": 2292,
"text": "There are number of steps to be taken to write and publish your own custom events. Follow the instructions given in this chapter to write, publish and handle Custom Spring Events."
},
{
"code": null,
"e": 2517,
"s": 2472,
"text": "He... |
XStream - Aliasing | Aliasing is a technique to customize the generated XML or to use a particular formatted XML using XStream. Let’s suppose the following XML format is to be used to serialize/de-serialize the Student object.
<student name = "Suresh">
<note>
<title>first</title>
<description>My first assignment.</descriptio... | [
{
"code": null,
"e": 1964,
"s": 1758,
"text": "Aliasing is a technique to customize the generated XML or to use a particular formatted XML using XStream. Let’s suppose the following XML format is to be used to serialize/de-serialize the Student object."
},
{
"code": null,
"e": 2211,
... |
How to split Python tuples into sub-tuples? | Here is a tuple with 12 integers. In order to split it in four sub-tuple of three elements each, slice a tuple of three successive elements from it and append the segment in a lis. The result will be a list of 4 tuples each with 3 numbers.
>>> tup=(7,6,8,19,2,4,13,1,10,25,11,34)
>>> lst=[]
>>> for i in range(0,10,3):
l... | [
{
"code": null,
"e": 1302,
"s": 1062,
"text": "Here is a tuple with 12 integers. In order to split it in four sub-tuple of three elements each, slice a tuple of three successive elements from it and append the segment in a lis. The result will be a list of 4 tuples each with 3 numbers."
},
{
... |
Reading a Text file in java | Java provides Reader classes to read data from various sources. You can read the contents of a file using the BufferedReader class.
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class BufferedReaderExample {
public static void main(String[] args) {
try (BufferedR... | [
{
"code": null,
"e": 1194,
"s": 1062,
"text": "Java provides Reader classes to read data from various sources. You can read the contents of a file using the BufferedReader class."
},
{
"code": null,
"e": 1673,
"s": 1194,
"text": "import java.io.BufferedReader;\nimport java.io.Fil... |
FilePathField - Django Forms - GeeksforGeeks | 19 May, 2021
FilePathField in Django Forms is a string field, for input of path of a particular file from server. It is used for select inputs from the user. One needs to specify which folders should be used in FilePathField and field displays the inputs in form of a select field. The default widget for this input is S... | [
{
"code": null,
"e": 24294,
"s": 24266,
"text": "\n19 May, 2021"
},
{
"code": null,
"e": 24668,
"s": 24294,
"text": "FilePathField in Django Forms is a string field, for input of path of a particular file from server. It is used for select inputs from the user. One needs to speci... |
Unset an attribute from a single array element in MongoDB? | Use $unset operator to unset an attribute. Let us first create a collection with documents −
> db.unsetAnAttributeDemo.insertOne(
... {
... _id: 1,
... "StudentDetails": [
... {
... "StudentFirstName": "Ramit",
... "StudentCountryName":"UK"
... },
... {
... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "Use $unset operator to unset an attribute. Let us first create a collection with documents −"
},
{
"code": null,
"e": 1677,
"s": 1155,
"text": "> db.unsetAnAttributeDemo.insertOne(\n... {\n... _id: 1,\n... \"StudentDet... |
Simplicity vs Complexity in Machine Learning — Finding the Right Balance | by Benjamin Obi Tayo Ph.D. | Towards Data Science | In statistics and machine learning, the bias-variance tradeoff is the property of a set of predictive models whereby models with a lower bias in parameter estimation have a higher variance of the parameter estimates across samples and vice versa. The bias-variance dilemma or problem is the conflict in trying to simulta... | [
{
"code": null,
"e": 625,
"s": 172,
"text": "In statistics and machine learning, the bias-variance tradeoff is the property of a set of predictive models whereby models with a lower bias in parameter estimation have a higher variance of the parameter estimates across samples and vice versa. The bias... |
Tk - Entry Widgets | Entry widgets are used to accept a single line of text as input. Getting user input is almost mandatory in all Tk applications. The syntax for entry widget is shown below −
entry entryName options
The options available for the entry widget are listed below in the following table −
-background color
Used to set backgro... | [
{
"code": null,
"e": 2374,
"s": 2201,
"text": "Entry widgets are used to accept a single line of text as input. Getting user input is almost mandatory in all Tk applications. The syntax for entry widget is shown below −"
},
{
"code": null,
"e": 2399,
"s": 2374,
"text": "entry ent... |
How to Start and Stop a Timer in PHP ? - GeeksforGeeks | 10 May, 2021
You can start and stop a timer in PHP using the microtime() function in PHP. The microtime() function is an inbuilt function in PHP which is used to return the current Unix timestamp with microseconds.
In this article, you will learn the uses of the microtime() function.
Syntax:
microtime( $get_as_float )... | [
{
"code": null,
"e": 31406,
"s": 31378,
"text": "\n10 May, 2021"
},
{
"code": null,
"e": 31608,
"s": 31406,
"text": "You can start and stop a timer in PHP using the microtime() function in PHP. The microtime() function is an inbuilt function in PHP which is used to return the cur... |
OpenCV: Complete Beginners Guide To Master Basics Of Computer Vision With Codes! | by Bharath K | Towards Data Science | Computer Vision is perhaps the most intriguing and fascinating concept in artificial intelligence. Computer Vision is an interdisciplinary field that deals with how computers or any software can learn a high-level understanding of the visualizations in the surroundings. After obtaining this conceptual perspective, it c... | [
{
"code": null,
"e": 553,
"s": 171,
"text": "Computer Vision is perhaps the most intriguing and fascinating concept in artificial intelligence. Computer Vision is an interdisciplinary field that deals with how computers or any software can learn a high-level understanding of the visualizations in th... |
How to Scrape a Dashboard with Python | Towards Data Science | Dashboard scraping is a useful skill to have when the only way to interact with the data you need is through a dashboard. We’re going to learn how to scrape data from a dashboard using the Selenium and Beautiful Soup packages in Python. The Selenium package allows you to write Python code to automate web browser intera... | [
{
"code": null,
"e": 626,
"s": 172,
"text": "Dashboard scraping is a useful skill to have when the only way to interact with the data you need is through a dashboard. We’re going to learn how to scrape data from a dashboard using the Selenium and Beautiful Soup packages in Python. The Selenium packa... |
How to add vertical lines to a distribution plot (sns.distplot) in Matplotlib? | To add vertical lines to a distribution plot, we can take the following steps−
Create a list of numbers.
Create an axis using sns.displot().
Get x and y data of the axis ax.
Plot a vertical line on the plot.
Remove the line at the 0th index.
To display the figure, use show() method.
import seaborn as sns, numpy as np
i... | [
{
"code": null,
"e": 1141,
"s": 1062,
"text": "To add vertical lines to a distribution plot, we can take the following steps−"
},
{
"code": null,
"e": 1167,
"s": 1141,
"text": "Create a list of numbers."
},
{
"code": null,
"e": 1203,
"s": 1167,
"text": "Create... |
Introduction to PostgreSQL PL/pgSQL | 17 Mar, 2021
In this, we will discuss the overview of PostgreSQL PL/pgSQL and will also cover the CRUD(CREATE, READ, UPDATE, DELETE) operations with the help of the example of each operation and finally will discuss the advantages and disadvantages of PostgreSQL PL/pgSQL. Let’s discuss it one by one.
PostgreSQL :It is ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Mar, 2021"
},
{
"code": null,
"e": 317,
"s": 28,
"text": "In this, we will discuss the overview of PostgreSQL PL/pgSQL and will also cover the CRUD(CREATE, READ, UPDATE, DELETE) operations with the help of the example of each operati... |
Maximum value obtained by performing given operations in an Array | 05 May, 2021
Given an array arr[], the task is to find out the maximum obtainable value. The user is allowed to add or multiply the two consecutive elements. However, there has to be at least one addition operation between two multiplication operations (i.e), two consecutive multiplication operations are not allowed.Le... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 May, 2021"
},
{
"code": null,
"e": 548,
"s": 54,
"text": "Given an array arr[], the task is to find out the maximum obtainable value. The user is allowed to add or multiply the two consecutive elements. However, there has to be at l... |
Round-off a number to a given number of significant digits | 14 Apr, 2021
Given a positive number n (n > 1), round-off this number to a given no. of significant digits, d.Examples:
Input : n = 139.59
d = 4
Output : The number after rounding-off is 139.6 .
The number 139.59 has 5 significant figures and for rounding-off
the number to 4 significant figures, 139.59 is c... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Apr, 2021"
},
{
"code": null,
"e": 163,
"s": 54,
"text": "Given a positive number n (n > 1), round-off this number to a given no. of significant digits, d.Examples: "
},
{
"code": null,
"e": 462,
"s": 163,
"text... |
PasscodeView in Android with Example | 18 Jul, 2021
Here, we are going to see that how we can implement numeric PasscodeView in android studio and using it how users can set numeric passwords to his/her application.
A Passcode view is a custom view with a keyboard and characters or numbers display to be used for authentication. Applications of numeric passw... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 192,
"s": 28,
"text": "Here, we are going to see that how we can implement numeric PasscodeView in android studio and using it how users can set numeric passwords to his/her application."
},
{
... |
SLR, CLR and LALR Parsers | Set 3 - GeeksforGeeks | 21 Nov, 2019
In this article we are discussing the SLR parser, CLR parser and LALR parser which are the parts of Bottom Up parser.SLR ParserThe SLR parser is similar to LR(0) parser except that the reduced entry. The reduced productions are written only in the FOLLOW of the variable whose production is reduced.Construc... | [
{
"code": null,
"e": 26599,
"s": 26571,
"text": "\n21 Nov, 2019"
},
{
"code": null,
"e": 26934,
"s": 26599,
"text": "In this article we are discussing the SLR parser, CLR parser and LALR parser which are the parts of Bottom Up parser.SLR ParserThe SLR parser is similar to LR(0) p... |
String substring(beginIndex, endIndex) | This method has two variants and returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string or up to endIndex – 1, if the second argument is given.
Here is the syntax of this method −
public String substring(int beginInde... | [
{
"code": null,
"e": 2624,
"s": 2377,
"text": "This method has two variants and returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string or up to endIndex – 1, if the second argument is given."
},
... |
Structure Sorting (By Multiple Rules) in C++ - GeeksforGeeks | 28 Jun, 2021
Prerequisite : Structures in CName and marks in different subjects (physics, chemistry and maths) are given for all students. The task is to compute total marks and ranks of all students. And finally display all students sorted by rank. Rank of student is computed using below rules.
If total marks are dif... | [
{
"code": null,
"e": 25961,
"s": 25933,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 26246,
"s": 25961,
"text": "Prerequisite : Structures in CName and marks in different subjects (physics, chemistry and maths) are given for all students. The task is to compute total marks an... |
Cucumber - Annotations | Annotation is a predefined text, which holds a specific meaning. It lets the compiler/interpreter know, what should be done upon execution. Cucumber has got the following few annotations −
Given −
It describes the pre-requisite for the test to be executed.
Example − GIVEN I am a Facebook user
Given −
It describes the... | [
{
"code": null,
"e": 2151,
"s": 1962,
"text": "Annotation is a predefined text, which holds a specific meaning. It lets the compiler/interpreter know, what should be done upon execution. Cucumber has got the following few annotations −"
},
{
"code": null,
"e": 2258,
"s": 2151,
"t... |
How to replace a string by another string in AngularJS ? - GeeksforGeeks | 02 Sep, 2021
In this article, we will see how to select a string from the text and replace it by another string with the help of AngularJS.
Approach: The approach is to use the replace() method and replace the content of the string by the new one. In the first example the string ‘Welcome User‘ is replaced by the word ‘... | [
{
"code": null,
"e": 27207,
"s": 27179,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 27334,
"s": 27207,
"text": "In this article, we will see how to select a string from the text and replace it by another string with the help of AngularJS."
},
{
"code": null,
"e":... |
Find maximum number that can be formed using digits of a given number - GeeksforGeeks | 01 Feb, 2022
Given a number, write a program to find a maximum number that can be formed using all of the digits of this number.Examples:
Input : 38293367
Output : 98763332
Input : 1203465
Output: 6543210
Simple Approach: The simple method to solve this problem is to extract and store the digits of the given numbe... | [
{
"code": null,
"e": 26253,
"s": 26225,
"text": "\n01 Feb, 2022"
},
{
"code": null,
"e": 26380,
"s": 26253,
"text": "Given a number, write a program to find a maximum number that can be formed using all of the digits of this number.Examples: "
},
{
"code": null,
"e":... |
Python Program to Merge a Matrix By the Elements of First Column | 11 Oct, 2020
Given a Matrix, perform merge on the basis of the element in the first column.
Input : test_list = [[4, “geeks”], [3, “Gfg”], [4, “CS”], [4, “cs”], [3, “best”]] Output : [[4, ‘geeks’, ‘CS’, ‘cs’], [3, ‘Gfg’, ‘best’]] Explanation : 4 is paired with geeks, CS and cs hence are merged into 1 row.
Input : test_... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Oct, 2020"
},
{
"code": null,
"e": 107,
"s": 28,
"text": "Given a Matrix, perform merge on the basis of the element in the first column."
},
{
"code": null,
"e": 322,
"s": 107,
"text": "Input : test_list = [[4, “g... |
Useful CMD commands for daily use in Windows OS | 24 Jun, 2022
List of uncommon useful cmd commands are as follows:
Cipher:Cipher.exe is a built-in command line tool in the Windows operating system that can be used to encrypt or decrypt data on NTFS drives. This tool also lets to securely delete data by overwriting it.Cipher Switches:/? : Displays help at the command ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 105,
"s": 52,
"text": "List of uncommon useful cmd commands are as follows:"
},
{
"code": null,
"e": 8411,
"s": 105,
"text": "Cipher:Cipher.exe is a built-in command line tool i... |
How to Pass a Serializable Object from One Activity to Another Activity in Android? | 05 Aug, 2021
While developing an application in Android, the developer can create more than one activity in the application. So, there can be many activities and can be a case to transfer data from one activity to the other. In such cases, Intents are used. Intents let the user jump from one activity to the other, or g... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Aug, 2021"
},
{
"code": null,
"e": 543,
"s": 28,
"text": "While developing an application in Android, the developer can create more than one activity in the application. So, there can be many activities and can be a case to transfer ... |
How to detect browser or tab closing in JavaScript ? | 21 Jul, 2021
A tab or window closing in a browser can be detected by using the beforeunload event. This can be used to alert the user in case some data is unsaved on the page, or the user has mistakenly navigated away from the current page by closing the tab or the browser.
The addEventListener() method is used to set ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 315,
"s": 53,
"text": "A tab or window closing in a browser can be detected by using the beforeunload event. This can be used to alert the user in case some data is unsaved on the page, or the user... |
Function Decorators in Python | Set 1 (Introduction) | 10 Nov, 2018
In Python, we can define a function inside another function.In Python, a function can be passed as parameter to another function (a function can also return another function).
In Python, we can define a function inside another function.
In Python, a function can be passed as parameter to another function (... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Nov, 2018"
},
{
"code": null,
"e": 230,
"s": 54,
"text": "In Python, we can define a function inside another function.In Python, a function can be passed as parameter to another function (a function can also return another function)... |
Working on BitBucket using Git | 23 Nov, 2021
Git provides various tools and applications to perform better handling of the work environment. Git is a type of version control system that is used to allow more than one developer to access the source code of a specific application and can modify changes to it that may be seen by other developers. BitBuc... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 797,
"s": 52,
"text": "Git provides various tools and applications to perform better handling of the work environment. Git is a type of version control system that is used to allow more than one de... |
How to use clock() function in C++ | Here we will see how to use the clock() in C++. This clock() is present in the time.h or ctime header file. Here we will find the elapsed time of a process using this clock() function
To get the elapsed time, we can get the time using clock() at the beginning, and at the end of the taks, then subtract the values to get... | [
{
"code": null,
"e": 1371,
"s": 1187,
"text": "Here we will see how to use the clock() in C++. This clock() is present in the time.h or ctime header file. Here we will find the elapsed time of a process using this clock() function"
},
{
"code": null,
"e": 1645,
"s": 1371,
"text":... |
Java Program to Check Whether Number is Divisible by 5 | 18 Oct, 2021
Generic rules in mathematics to test divisibility by 5 in a number system is followed as numbers that end in 5 or 0 are divisible by 5. It doesn’t matter how big the number is. Modulo operator will be used most frequently in programming when it comes down to divisibility.
Knowledge of the range of numbers... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 326,
"s": 52,
"text": "Generic rules in mathematics to test divisibility by 5 in a number system is followed as numbers that end in 5 or 0 are divisible by 5. It doesn’t matter how big the number i... |
How to place text on image using HTML and CSS? | 30 Jul, 2021
CSS position property is used to set the position of text over an image. This can be done by enclosing the image and text in an HTML “div”. Then make the position of div “relative” and that of text “absolute”. The absolute elements are positioned relative to their parent (div). The top, right, bottom, and ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jul, 2021"
},
{
"code": null,
"e": 433,
"s": 52,
"text": "CSS position property is used to set the position of text over an image. This can be done by enclosing the image and text in an HTML “div”. Then make the position of div “rel... |
How to save a plot using ggplot2 in R? | 17 Jun, 2021
In this article, we are going to see how to save GGPlot in R Programming language. ggplot2 is a plotting package in R that is used to create complex plots from data specified in a data frame. It provides a more programmatic interface for specifying which variables to plot on to the graphical device, how th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 481,
"s": 28,
"text": "In this article, we are going to see how to save GGPlot in R Programming language. ggplot2 is a plotting package in R that is used to create complex plots from data specified ... |
Adding Time in Python | Suppose we have a string that is representing a 12-hour clock time with suffix am or pm, and an integer n is also given, we will add n minutes to the time and return the new time in the same format.
So, if the input is like s = "8:20pm" and n = 150, then the output will be 10:50pm
To solve this, we will follow these st... | [
{
"code": null,
"e": 1386,
"s": 1187,
"text": "Suppose we have a string that is representing a 12-hour clock time with suffix am or pm, and an integer n is also given, we will add n minutes to the time and return the new time in the same format."
},
{
"code": null,
"e": 1469,
"s": 13... |
How to set smooth scroll after clicking the link using JavaScript ? | 14 Sep, 2021
There are two methods to smoothly scroll a web page after clicking the anchor link which are discussed below:
Method 1: Using scrollIntoView() with the ‘smooth’ behavior: The scrollIntoView() method is used to scroll the view of the user to the element that it is called upon. It contains several options th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 138,
"s": 28,
"text": "There are two methods to smoothly scroll a web page after clicking the anchor link which are discussed below:"
},
{
"code": null,
"e": 628,
"s": 138,
"text... |
PostgreSQL – Create updatable Views | 10 Feb, 2022
A view can represent a subset of a real table, selecting certain columns or certain rows from an ordinary table. We can use them to restrict access to the original table so that the users can see only a sub-portion of a table. The table from which view is created is known as the base table. There can be up... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Feb, 2022"
},
{
"code": null,
"e": 547,
"s": 28,
"text": "A view can represent a subset of a real table, selecting certain columns or certain rows from an ordinary table. We can use them to restrict access to the original table so th... |
Largest sum contiguous increasing subarray | 11 Jul, 2022
Given an array of n positive distinct integers. The problem is to find the largest sum of contiguous increasing subarray in O(n) time complexity.
Examples :
Input : arr[] = {2, 1, 4, 7, 3, 6}
Output : 12
Contiguous Increasing subarray {1, 4, 7} = 12
Input : arr[] = {38, 7, 8, 10, 12}
Output : 38
A simple... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 Jul, 2022"
},
{
"code": null,
"e": 198,
"s": 52,
"text": "Given an array of n positive distinct integers. The problem is to find the largest sum of contiguous increasing subarray in O(n) time complexity."
},
{
"code": null,
... |
K means Clustering – Introduction | 27 Jun, 2022
We are given a data set of items, with certain features, and values for these features (like a vector). The task is to categorize those items into groups. To achieve this, we will use the kMeans algorithm; an unsupervised learning algorithm. ‘K’ in the name of the algorithm represents the number of groups/... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 Jun, 2022"
},
{
"code": null,
"e": 406,
"s": 54,
"text": "We are given a data set of items, with certain features, and values for these features (like a vector). The task is to categorize those items into groups. To achieve this, we... |
Maximum Data Rate (channel capacity) for Noiseless and Noisy channels | 29 Jun, 2021
As early as 1924, an AT&T engineer, Henry Nyquist, realized that even a perfect channel has a finite transmission capacity. He derived an equation expressing the maximum data rate for a finite-bandwidth noiseless channel. In 1948, Claude Shannon carried Nyquist’s work further and extended to it the case of... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 508,
"s": 52,
"text": "As early as 1924, an AT&T engineer, Henry Nyquist, realized that even a perfect channel has a finite transmission capacity. He derived an equation expressing the maximum data... |
ReactJS dangerouslySetInnerHTML Attribute | 25 May, 2021
React.js library is all about splitting the app into several components. Each Component has its own lifecycle. React provides us some in-built methods that we can override at particular stages in the life-cycle of the component.
In class-based components, the dangerouslySetInnerHTML attribute is used to se... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 May, 2021"
},
{
"code": null,
"e": 257,
"s": 28,
"text": "React.js library is all about splitting the app into several components. Each Component has its own lifecycle. React provides us some in-built methods that we can override at ... |
How to use Flask-Session in Python Flask ? | 16 Jun, 2022
Flask-Session is an extension for Flask that supports Server-side Session to your application.
The Session is the time between the client logs in to the server and logs out of the server.
The data that is required to be saved in the Session is stored in a temporary directory on the server.
The data in the ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 149,
"s": 54,
"text": "Flask-Session is an extension for Flask that supports Server-side Session to your application."
},
{
"code": null,
"e": 242,
"s": 149,
"text": "The Sessio... |
How to add a new line in the alert box ? | 20 May, 2019
To add a new line to the content of alert box we are going to use \n backslash(n).
Example-1: This example adds \n between the 2 lines to the text of alert box.
<!DOCTYPE HTML><html> <head> <title> JavaScript | New line in alert box. </title></head> <body style="text-align:center;" ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 May, 2019"
},
{
"code": null,
"e": 111,
"s": 28,
"text": "To add a new line to the content of alert box we are going to use \\n backslash(n)."
},
{
"code": null,
"e": 189,
"s": 111,
"text": "Example-1: This exampl... |
Python – Johnson SU Distribution in Statistics | 10 Jan, 2020
scipy.stats.johnsonsu() is a Johnson SU continuous random variable that is defined with a standard format and some shape parameters to complete its specification.
Parameters :
q : lower and upper tail probabilityx : quantilesloc : [optional]location parameter. Default = 0scale : [optional]scale parameter. ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jan, 2020"
},
{
"code": null,
"e": 191,
"s": 28,
"text": "scipy.stats.johnsonsu() is a Johnson SU continuous random variable that is defined with a standard format and some shape parameters to complete its specification."
},
{
... |
Write Code to Determine if Two Trees are Identical | 15 Jun, 2022
Two trees are identical when they have same data and arrangement of data is also same. To identify if two trees are identical, we need to traverse both trees simultaneously, and while traversing we need to compare data and children of the trees.
Algorithm:
sameTree(tree1, tree2)
1. If both trees are emp... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 Jun, 2022"
},
{
"code": null,
"e": 299,
"s": 52,
"text": "Two trees are identical when they have same data and arrangement of data is also same. To identify if two trees are identical, we need to traverse both trees simultaneously, ... |
ReactJS Custom Hooks | 25 Oct, 2020
React.Js provides lots of built-in hooks that you can use in your React apps. But besides them, you can make your own custom hooks and use it in your apps resulting in better readability and a reduced amount of code. Custom hooks are normal JavaScript functions whose names start with “use” and they may cal... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 Oct, 2020"
},
{
"code": null,
"e": 397,
"s": 54,
"text": "React.Js provides lots of built-in hooks that you can use in your React apps. But besides them, you can make your own custom hooks and use it in your apps resulting in better... |
Repeated K-fold Cross Validation in R Programming | 15 Nov, 2021
Repeated K-fold is the most preferred cross-validation technique for both classification and regression machine learning models. Shuffling and random sampling of the data set multiple times is the core procedure of repeated K-fold algorithm and it results in making a robust model as it covers the maximum t... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Nov, 2021"
},
{
"code": null,
"e": 1035,
"s": 54,
"text": "Repeated K-fold is the most preferred cross-validation technique for both classification and regression machine learning models. Shuffling and random sampling of the data se... |
Check if it is possible to survive on Island | 30 Jun, 2022
You are a poor person in an island. There is only one shop in this island, this shop is open on all days of the week except for Sunday. Consider following constraints:
N – Maximum unit of food you can buy each day.
S – Number of days you are required to survive.
M – Unit of food required each day to survi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jun, 2022"
},
{
"code": null,
"e": 221,
"s": 52,
"text": "You are a poor person in an island. There is only one shop in this island, this shop is open on all days of the week except for Sunday. Consider following constraints: "
},... |
Passing Reference to a Pointer in C++ | 09 Dec, 2021
Prerequisite: Pointers vs References in C++.
For clear understanding, let’s compare the usage of a “pointer to pointer” VS “Reference to pointer” in some cases.
Note: It is allowed to use “pointer to pointer” in both C and C++, but we can use “Reference to pointer” only in C++.
Passing pointer to a functio... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 99,
"s": 54,
"text": "Prerequisite: Pointers vs References in C++."
},
{
"code": null,
"e": 215,
"s": 99,
"text": "For clear understanding, let’s compare the usage of a “pointer... |
Convert given Pandas series into a dataframe with its index as another column on the dataframe | 17 Aug, 2020
First of all, let we understand that what are pandas series. Pandas Series are the type of array data structure. It is one dimensional data structure. It is capable of holding data of any type such as string, integer, float etc. A Series can be created using Series constructor.
Syntax: pandas.Series(data, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Aug, 2020"
},
{
"code": null,
"e": 307,
"s": 28,
"text": "First of all, let we understand that what are pandas series. Pandas Series are the type of array data structure. It is one dimensional data structure. It is capable of holding... |
8086 program to convert a 16 bit decimal number to binary - GeeksforGeeks | 03 Jun, 2021
Problem: We are given a 16 bit decimal number we have to print the number in binary format
Examples:
Input: d1 = 16
Output: 10000
Input: d1 = 7
Output: 111
Explanation:
Load the value stored into registerDivide the value by 2 to convert it to binaryPush the remainder into the stackIncrease the countRe... | [
{
"code": null,
"e": 24449,
"s": 24421,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 24540,
"s": 24449,
"text": "Problem: We are given a 16 bit decimal number we have to print the number in binary format"
},
{
"code": null,
"e": 24551,
"s": 24540,
"text": ... |
A Beginner’s Guide to Instrumental Variables | by Amanda West | Towards Data Science | As an undergraduate I studied economics, which meant I studied a lot of regressions. It was basically 90% of the curriculum (when we’re not discussing supply and demand curves, of course). The effect of corruption on sumo wrestling? Regression. Effect of minimum wage changes on a Wendy’s in NJ? Regression. Or maybe The... | [
{
"code": null,
"e": 587,
"s": 172,
"text": "As an undergraduate I studied economics, which meant I studied a lot of regressions. It was basically 90% of the curriculum (when we’re not discussing supply and demand curves, of course). The effect of corruption on sumo wrestling? Regression. Effect of ... |
numpy.nper() in Python - GeeksforGeeks | 28 Nov, 2018
numpy.pmt(rate, pmt, pv, fv, when = ‘end’) : This financial function helps user to compute number of periodic payments.
Parameters :rate : [scalar or (M, )array] Rate of interest as decimal (not per cent) per periodpmt : [scalar or (M, )array] Payment valuefv : [scalar or (M, )array] Future valuepv : [scal... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n28 Nov, 2018"
},
{
"code": null,
"e": 24332,
"s": 24212,
"text": "numpy.pmt(rate, pmt, pv, fv, when = ‘end’) : This financial function helps user to compute number of periodic payments."
},
{
"code": null,
"e": 24666,... |
How to set the width of a Tkinter Entry widget in pixels? | Tkinter has an Entry widget to accept single-line user input. It has many properties and attributes that can be used to configure the Entry widget. To change the size (width or height of the Entry widget), we can use Internal Padding Properties – ipadx and ipady. By defining the value of internal padding, we can actual... | [
{
"code": null,
"e": 1434,
"s": 1062,
"text": "Tkinter has an Entry widget to accept single-line user input. It has many properties and attributes that can be used to configure the Entry widget. To change the size (width or height of the Entry widget), we can use Internal Padding Properties – ipadx ... |
Image Processing: Image Scaling Algorithms | by Bilal Himite | Towards Data Science | Image scaling is an essential part of image processing. Images need to be scaled up or down for multiple reasons. In this article, we will take a look into different image scaling methods and we will implement them in Python.
This article is a part of a series of articles discussing concepts of image processing. Check ... | [
{
"code": null,
"e": 398,
"s": 172,
"text": "Image scaling is an essential part of image processing. Images need to be scaled up or down for multiple reasons. In this article, we will take a look into different image scaling methods and we will implement them in Python."
},
{
"code": null,
... |
How to turn off the ticks and marks of a matlibplot axes? | To turn off the ticks and marks of a matplotlib axes, we can take the following steps −
Set the figure size and adjust the padding between and around the subplots.
Create x and y data points using numpy.
Plot x and y data points using plot() method.
Get the current axis of the plot.
Use set_tick_params() to hide X and ... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "To turn off the ticks and marks of a matplotlib axes, we can take the following steps −"
},
{
"code": null,
"e": 1226,
"s": 1150,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"cod... |
Python - Change List Item - GeeksforGeeks | 02 Dec, 2020
List in python is mutable types which means it can be changed after assigning some value. The list is similar to arrays in other programming languages. In this article, we are going to see how to change list items in python.
Accessing the first element mylist[0]
Accessing the second element mylist[1]
Acce... | [
{
"code": null,
"e": 25579,
"s": 25551,
"text": "\n02 Dec, 2020"
},
{
"code": null,
"e": 25805,
"s": 25579,
"text": "List in python is mutable types which means it can be changed after assigning some value. The list is similar to arrays in other programming languages. In this art... |
How to integrate Git Bash with Visual Studio Code? - GeeksforGeeks | 22 Nov, 2021
Git Bash is an application that provides Git command line experience on the Operating System. It is a command-line shell for enabling git with the command line in the system. VSCode is a Text editor that provides support for development operations and version control systems. It provides tools for a user t... | [
{
"code": null,
"e": 25489,
"s": 25461,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 26018,
"s": 25489,
"text": "Git Bash is an application that provides Git command line experience on the Operating System. It is a command-line shell for enabling git with the command line in ... |
Inner Join vs Outer Join - GeeksforGeeks | 09 May, 2017
What is Join?An SQL Join is used to combine data from two or more tables, based on a common field between them. For example, consider the following two tables.
Student Table
StudentCourse Table
Following is join query that shows names of students enrolled in different courseIDs.
SELECT StudentCourse.Course... | [
{
"code": null,
"e": 30869,
"s": 30841,
"text": "\n09 May, 2017"
},
{
"code": null,
"e": 31029,
"s": 30869,
"text": "What is Join?An SQL Join is used to combine data from two or more tables, based on a common field between them. For example, consider the following two tables."
... |
jQuery | length property - GeeksforGeeks | 28 Feb, 2019
The length property is used to count number of the elements of the jQuery object.
Syntax:
$(selector).length
where selector is the object whose length is to be calculated.
Return Values: It returns the length of the selector.
Below is the example to show the working of jQuery length property:
<!DOCTYPE htm... | [
{
"code": null,
"e": 41968,
"s": 41940,
"text": "\n28 Feb, 2019"
},
{
"code": null,
"e": 42050,
"s": 41968,
"text": "The length property is used to count number of the elements of the jQuery object."
},
{
"code": null,
"e": 42058,
"s": 42050,
"text": "Syntax:"... |
Java Program to Extract Content from a Excel sheet - GeeksforGeeks | 09 Nov, 2021
Spreadsheets are the easier way to represent table like data and can give a visual representation of data in tabular format. In this article, let us see how to extract the contents of the Excel sheet via java. Here there arise two cases where Maven is considered in the program or not. Discussing both of th... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 25596,
"s": 25225,
"text": "Spreadsheets are the easier way to represent table like data and can give a visual representation of data in tabular format. In this article, let us see how to ext... |
Sort an array according to count of set bits - GeeksforGeeks | 02 May, 2022
Given an array of positive integers, sort the array in decreasing order of count of set bits in binary representations of array elements. For integers having the same number of set bits in their binary representation, sort according to their position in the original array i.e., a stable sort. For example, ... | [
{
"code": null,
"e": 26585,
"s": 26557,
"text": "\n02 May, 2022"
},
{
"code": null,
"e": 27021,
"s": 26585,
"text": "Given an array of positive integers, sort the array in decreasing order of count of set bits in binary representations of array elements. For integers having the s... |
Sort by Set Bit Count | Practice | GeeksforGeeks | Given an array of integers, sort the array (in descending order) according to count of set bits in binary representation of array elements.
Note: For integers having same number of set bits in their binary representation, sort according to their position in the original array i.e., a stable sort.
Input:
arr[] = {5, ... | [
{
"code": null,
"e": 380,
"s": 238,
"text": "Given an array of integers, sort the array (in descending order) according to count of set bits in binary representation of array elements. "
},
{
"code": null,
"e": 538,
"s": 380,
"text": "Note: For integers having same number of set... |
How to Initialize and Compare Strings in Java? - GeeksforGeeks | 12 Dec, 2021
As we all know String is immutable in java so do it gives birth to two ways of initialization as we do have the concept of String Pool in java.
Ways: Initializing Strings in Java
Direct initializationIndirect initialization
Direct initialization
Indirect initialization
Way 1: Direct Initialization(String C... | [
{
"code": null,
"e": 24167,
"s": 24139,
"text": "\n12 Dec, 2021"
},
{
"code": null,
"e": 24311,
"s": 24167,
"text": "As we all know String is immutable in java so do it gives birth to two ways of initialization as we do have the concept of String Pool in java."
},
{
"code... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.