title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Data Structure - Binary Search Tree | A Binary Search Tree (BST) is a tree in which all the nodes follow the below-mentioned properties β
The value of the key of the left sub-tree is less than the value of its parent (root) node's key.
The value of the key of the left sub-tree is less than the value of its parent (root) node's key.
The value of the key of ... | [
{
"code": null,
"e": 2680,
"s": 2580,
"text": "A Binary Search Tree (BST) is a tree in which all the nodes follow the below-mentioned properties β"
},
{
"code": null,
"e": 2778,
"s": 2680,
"text": "The value of the key of the left sub-tree is less than the value of its parent (ro... |
Convert a given Binary Tree to Doubly Linked List | Set 1 - GeeksforGeeks | 28 Jan, 2022
Given a Binary Tree (Bt), convert it to a Doubly Linked List(DLL). The left and right pointers in nodes are to be used as previous and next pointers respectively in converted DLL. The order of nodes in DLL must be the same as in Inorder for the given Binary Tree. The first node of Inorder traversal (leftmo... | [
{
"code": null,
"e": 24585,
"s": 24557,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 24942,
"s": 24585,
"text": "Given a Binary Tree (Bt), convert it to a Doubly Linked List(DLL). The left and right pointers in nodes are to be used as previous and next pointers respectively i... |
How to check internet connection availability and the network type on Android using Kotlin? | This example demonstrates how to check internet connection availability and the network type on Android using Kotlin.
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 ve... | [
{
"code": null,
"e": 1180,
"s": 1062,
"text": "This example demonstrates how to check internet connection availability and the network type on Android using Kotlin."
},
{
"code": null,
"e": 1309,
"s": 1180,
"text": "Step 1 β Create a new project in Android Studio, go to File β Ne... |
Math class methods in C# | The System.Math class in C# provides methods are properties to perform mathematical operations, trigonometric, logarithmic calculations, etc.
Some of its methods include β
For all the methods, refer MSDN
Let us see an example to get the absolute value β
using System;
class Program {
static void Main() {
int v... | [
{
"code": null,
"e": 1204,
"s": 1062,
"text": "The System.Math class in C# provides methods are properties to perform mathematical operations, trigonometric, logarithmic calculations, etc."
},
{
"code": null,
"e": 1234,
"s": 1204,
"text": "Some of its methods include β"
},
{
... |
Type.GetProperties() Method in C# | The Type.GetProperties() method in C# is used to get the properties of the current Type.
Following is the syntax β
public System.Reflection.PropertyInfo[] GetProperties ();
public abstract System.Reflection.PropertyInfo[] GetProperties (System.Reflection.BindingFlags bindingAttr);
Above, bindingAttr is a bitwise combin... | [
{
"code": null,
"e": 1151,
"s": 1062,
"text": "The Type.GetProperties() method in C# is used to get the properties of the current Type."
},
{
"code": null,
"e": 1177,
"s": 1151,
"text": "Following is the syntax β"
},
{
"code": null,
"e": 1344,
"s": 1177,
"text... |
SQL Tryit Editor v1.6 | SELECT * FROM Products
WHERE ProductName BETWEEN "Carnarvon Tigers" AND "Chef Anton's Cajun Seasoning"
ORDER BY ProductName;
β
Edit the SQL Statement, and click "Run SQL" to see the result.
This SQL-Statement is not supported in the WebSQL Database.
The example still works, because it uses a modified version of SQL.
Yo... | [
{
"code": null,
"e": 23,
"s": 0,
"text": "SELECT * FROM Products"
},
{
"code": null,
"e": 103,
"s": 23,
"text": "WHERE ProductName BETWEEN \"Carnarvon Tigers\" AND \"Chef Anton's Cajun Seasoning\""
},
{
"code": null,
"e": 125,
"s": 103,
"text": "ORDER BY Produ... |
Create Stunning Visualizations with Altair | by Aigerim Shopenova | Towards Data Science | βBeauty will save the world.β
- F. Dostoevsky
Have you ever gotten frustrated after looking at your visualization in Python? Have you ever thought that it can be done better with less effort and time? If so, this post is perfect for you because I would like to share about the Altair library, which will boost your produ... | [
{
"code": null,
"e": 202,
"s": 172,
"text": "βBeauty will save the world.β"
},
{
"code": null,
"e": 218,
"s": 202,
"text": "- F. Dostoevsky"
},
{
"code": null,
"e": 545,
"s": 218,
"text": "Have you ever gotten frustrated after looking at your visualization in ... |
Node.js console.table() Method - GeeksforGeeks | 09 Jul, 2020
The console.table() method is an inbuilt application programming interface of the console module which is used to print the table constructed from itβs parameters into the console.
Syntax:
console.table(data, properties);
Parameters: This method accept two parameters as mentioned above and described below:... | [
{
"code": null,
"e": 24169,
"s": 24141,
"text": "\n09 Jul, 2020"
},
{
"code": null,
"e": 24350,
"s": 24169,
"text": "The console.table() method is an inbuilt application programming interface of the console module which is used to print the table constructed from itβs parameters ... |
HTML | <frame> src Attribute | 28 May, 2019
The HTML <frame> src Attribute is used to specifies the document URL which is used to display in the frame.
Syntax:
<frame src="URL">
Attribute Values: It contains single value URL which specifies the source of the document. The possible value of the URL is:
absolute URL: It points to another website.
rela... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 May, 2019"
},
{
"code": null,
"e": 136,
"s": 28,
"text": "The HTML <frame> src Attribute is used to specifies the document URL which is used to display in the frame."
},
{
"code": null,
"e": 144,
"s": 136,
"text":... |
Reset keys of array elements using PHP ? | 12 Feb, 2019
In PHP, two types of arrays are possible indexed and associative array. In case of Indexed array, the elements are strictly integer indexed and in case of associative array every element has corresponding keys associated with them and the elements can only be accessed using these keys.
To access the keys a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Feb, 2019"
},
{
"code": null,
"e": 315,
"s": 28,
"text": "In PHP, two types of arrays are possible indexed and associative array. In case of Indexed array, the elements are strictly integer indexed and in case of associative array ev... |
Software Testing Life Cycle (STLC) | 10 May, 2019
Software Testing Life Cycle (STLC) is a sequence of different activities performed during the software testing process.
Characteristics of STLC:
STLC is a fundamental part of Software Development Life Cycle (SDLC) but STLC consists of only the testing phases.
STLC starts as soon as requirements are defined... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 May, 2019"
},
{
"code": null,
"e": 173,
"s": 53,
"text": "Software Testing Life Cycle (STLC) is a sequence of different activities performed during the software testing process."
},
{
"code": null,
"e": 198,
"s": 173... |
p5.js | fill() Function | 04 Sep, 2019
The fill() function is used to fill the color to the shapes. This function supports all types of color object. For example RGB, RGBA, Hex CSS color, and all named color strings. The color object can also be set as string in terms of RGB, RGBA, Hex CSS color or named color string.
Syntax:
fill( v1, v2, v3, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Sep, 2019"
},
{
"code": null,
"e": 309,
"s": 28,
"text": "The fill() function is used to fill the color to the shapes. This function supports all types of color object. For example RGB, RGBA, Hex CSS color, and all named color string... |
Kolmogorov-Smirnov Test in R Programming | 15 Dec, 2021
The Kolmogorov-Smirnov Test is a type of non-parametric test of the equality of discontinuous and continuous of a 1D probability distribution that is used to compare the sample with the reference probability test (known as one-sample K-S Test) or among two samples (known as two-sample K-S test). A K-S Test... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 909,
"s": 28,
"text": "The Kolmogorov-Smirnov Test is a type of non-parametric test of the equality of discontinuous and continuous of a 1D probability distribution that is used to compare the sampl... |
YAML - Indentation and Separation | Indentation and separation are two main concepts when you are learning any programming language. This chapter talks about these two concepts related to YAML in detail.
YAML does not include any mandatory spaces. Further, there is no need to be consistent. The valid YAML indentation is shown below β
a:
b:
- c
... | [
{
"code": null,
"e": 2350,
"s": 2182,
"text": "Indentation and separation are two main concepts when you are learning any programming language. This chapter talks about these two concepts related to YAML in detail."
},
{
"code": null,
"e": 2482,
"s": 2350,
"text": "YAML does not ... |
Basics Operations of File and Directory in C# | 13 Sep, 2021
In this article, we are going to cover how to create, delete and rename directory and also how to delete and rename the file.
We can create Directory using CreateDirectory() method present in the Directory class.
csharp
// C# program to create a directoryusing System;using System.IO; class Program { ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Sep, 2021"
},
{
"code": null,
"e": 156,
"s": 28,
"text": "In this article, we are going to cover how to create, delete and rename directory and also how to delete and rename the file. "
},
{
"code": null,
"e": 244,
"... |
Object Level Lock in Java | 08 Jun, 2021
Every object in java has a unique lock. Whenever we are using a synchronized keyword, then only the lock concept will come into the picture. If a thread wants to execute a synchronized method on the given object. First, it has to get a lock of that object. Once the thread got the lock then it is allowed to... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jun, 2021"
},
{
"code": null,
"e": 574,
"s": 28,
"text": "Every object in java has a unique lock. Whenever we are using a synchronized keyword, then only the lock concept will come into the picture. If a thread wants to execute a syn... |
Graph Plotting in Python | Set 1 | 07 Jul, 2022
This series will introduce you to graphing in python with Matplotlib, which is arguably the most popular graphing and data visualization library for Python.InstallationThe easiest way to install matplotlib is to use pip. Type following command in terminal:
pip install matplotlib
OR, you can download it f... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 311,
"s": 52,
"text": "This series will introduce you to graphing in python with Matplotlib, which is arguably the most popular graphing and data visualization library for Python.InstallationThe ea... |
How to Access Private Field and Method Using Reflection in Java? | 05 Feb, 2021
If we want to access Private Field and method using Reflection we just need to call setAccessible(true) on the field or method object which you want to access. Class.getDeclaredField(String fieldName) or Class.getDeclaredFields() can be used to get private fields. Whereas Class.getDeclaredMethod(String met... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Feb, 2021"
},
{
"code": null,
"e": 439,
"s": 28,
"text": "If we want to access Private Field and method using Reflection we just need to call setAccessible(true) on the field or method object which you want to access. Class.getDeclar... |
Rearrange a linked list in to alternate first and last element | 15 Nov, 2021
Given a linked list. arrange the linked list in manner of alternate first and last element.
Examples:
Input : 1->2->3->4->5->6->7->8
Output :1->8->2->7->3->6->4->5
Input :10->11->15->13
Output :10->13->11->15
We have discussed three different solution in Rearrange a given linked list in-place.In this pos... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 Nov, 2021"
},
{
"code": null,
"e": 144,
"s": 52,
"text": "Given a linked list. arrange the linked list in manner of alternate first and last element."
},
{
"code": null,
"e": 155,
"s": 144,
"text": "Examples: "
... |
How to do Templating using ExpressJS in Node.js ? | 08 Apr, 2021
Template Engine : A template engine basically helps us to use the static template files with minimal code. At runtime, the template engine replaces all the variables with actual values at the client-side.
Templating Engine Examples:
EJS (Embedded JavaScript Templating)
Pug
Mustache
In this article we are g... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Apr, 2021"
},
{
"code": null,
"e": 233,
"s": 28,
"text": "Template Engine : A template engine basically helps us to use the static template files with minimal code. At runtime, the template engine replaces all the variables with actu... |
How does jQuery Datepicker onchange event work? | To work with jQuery Datepicker onchange(), use the datepicker onSelect event. This will show which date we added currently and changed to.
You can try to run the following code to learn how to work jQuery Datepicker onchange:
Live Demo
<!Doctype html>
<html>
<head>
<link rel="stylesheet" href="//code.jquery.com/ui/1.... | [
{
"code": null,
"e": 1326,
"s": 1187,
"text": "To work with jQuery Datepicker onchange(), use the datepicker onSelect event. This will show which date we added currently and changed to."
},
{
"code": null,
"e": 1413,
"s": 1326,
"text": "You can try to run the following code to le... |
turtle.down() method in Python | 16 Jul, 2020
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
The turtle.down() method is used to pull back the pen down on the screen. It gives drawing... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Jul, 2020"
},
{
"code": null,
"e": 245,
"s": 28,
"text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ver... |
Static vs. Non-Static method in C# | Declare a member function as static. Such functions can access only static variables. The static functions exist even before the object is created.
A static class cannot be instantiated and can only contain static members.
Static methods is set using static keyword β
public static int getNum() {
return num;
}
The fo... | [
{
"code": null,
"e": 1335,
"s": 1187,
"text": "Declare a member function as static. Such functions can access only static variables. The static functions exist even before the object is created."
},
{
"code": null,
"e": 1410,
"s": 1335,
"text": "A static class cannot be instantia... |
Tryit Editor v3.7 | Tryit: The outline property | [] |
Character class \p{javaWhitespace} Java regex in java. | This character class \p{javaWhitespace} matches spaces. This class matches the characters which returns true when passed as a parameter to the isWhitespace() method of the java.lang.Character class.
Live Demo
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexEx... | [
{
"code": null,
"e": 1261,
"s": 1062,
"text": "This character class \\p{javaWhitespace} matches spaces. This class matches the characters which returns true when passed as a parameter to the isWhitespace() method of the java.lang.Character class."
},
{
"code": null,
"e": 1272,
"s": 1... |
Spring Boot Multiple Data Sources 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
Here I am going to show how to configure mult... | [
{
"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,
... |
Kibana - Working With Coordinate Map | Coordinate maps in Kibana will show you the geographic area and mark the area with circles based on aggregation you specify.
The Bucket aggregation used for coordinate map is geohash aggregation. For this type of aggregation, your index which you are going to use should have a field of type geo point. The geo point is ... | [
{
"code": null,
"e": 2230,
"s": 2105,
"text": "Coordinate maps in Kibana will show you the geographic area and mark the area with circles based on aggregation you specify."
},
{
"code": null,
"e": 2464,
"s": 2230,
"text": "The Bucket aggregation used for coordinate map is geohash... |
Change Font Size in Matplotlib - GeeksforGeeks | 03 Jan, 2021
Matplotlib library mainly used to create 2-dimensional graphs and plots. It has a module named pyplot which makes things easy for plotting. To change the font size in Matplotlib, the two methods given below can be used with appropriate parameters:
Method 1: matplotlib.rcParams.update()
rcParams is an ins... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n03 Jan, 2021"
},
{
"code": null,
"e": 24461,
"s": 24212,
"text": "Matplotlib library mainly used to create 2-dimensional graphs and plots. It has a module named pyplot which makes things easy for plotting. To change the font size... |
Instruction type DCR R in 8085 Microprocessor | In 8085 Instruction set, DCR is a mnemonic, which stands for βDeCRementβ and βRβ stands for any of the following registers, or memory location M pointed by HL pair.
R = A, B, C, D, E, H, L, or M
This instruction is used to decrease the content of register R. Also we can say it will subtract 1 from the register R conte... | [
{
"code": null,
"e": 1227,
"s": 1062,
"text": "In 8085 Instruction set, DCR is a mnemonic, which stands for βDeCRementβ and βRβ stands for any of the following registers, or memory location M pointed by HL pair."
},
{
"code": null,
"e": 1258,
"s": 1227,
"text": "R = A, B, C, D, E... |
Instant toString() method in Java | The range of values for a field can be obtained using the range() method in the Instant class in Java. This method requires a single parameter i.e. the ChronoField for which the range of values are required and it returns the range of valid values for the ChronoField.
A program that demonstrates this is given as follow... | [
{
"code": null,
"e": 1331,
"s": 1062,
"text": "The range of values for a field can be obtained using the range() method in the Instant class in Java. This method requires a single parameter i.e. the ChronoField for which the range of values are required and it returns the range of valid values for t... |
Jackson Annotations - @JsonUnwrapped | @JsonUnwrapped is used to unwrap values of objects during serialization or de-serialization.
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import com.fasterxml.jackson.databind.ObjectMapper;
... | [
{
"code": null,
"e": 2568,
"s": 2475,
"text": "@JsonUnwrapped is used to unwrap values of objects during serialization or de-serialization."
},
{
"code": null,
"e": 3628,
"s": 2568,
"text": "import java.io.IOException;\nimport java.text.ParseException;\nimport java.text.SimpleDat... |
How to find different elements between two string vectors in R? | Just like numerical vectors, we can find the different elements between two string vectors if there exists any. For this purpose, we can use setdiff function. For example, if we have a vector V1 that contains a, b, c, d, e, f and the other vector V2 that contains a, e, h, k, l, p, r, u, v, w then the different elements... | [
{
"code": null,
"e": 1441,
"s": 1062,
"text": "Just like numerical vectors, we can find the different elements between two string vectors if there exists any. For this purpose, we can use setdiff function. For example, if we have a vector V1 that contains a, b, c, d, e, f and the other vector V2 tha... |
How to do basic form validation using JavaScript? | JavaScript provides a way to validate form's data on the client's computer before sending it to the web server.
Basic form validation includes the form to be checked to make sure all the mandatory fields are filled in. It would require just a loop through each field in the form and check for data.
You can try to run t... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "JavaScript provides a way to validate form's data on the client's computer before sending it to the web server. "
},
{
"code": null,
"e": 1362,
"s": 1175,
"text": "Basic form validation includes the form to be checked to make sure al... |
Min Coin | Practice | GeeksforGeeks | Given a list of coins of distinct denominations and total amount of money. Find the minimum number of coins required to make up that amount. Output -1 if that money cannot be made up using given coins.
You may assume that there are infinite numbers of coins of each type.
Example 1:
Input: arr = [1, 2, 5], amount = 11... | [
{
"code": null,
"e": 500,
"s": 226,
"text": "Given a list of coins of distinct denominations and total amount of money. Find the minimum number of coins required to make up that amount. Output -1 if that money cannot be made up using given coins.\nYou may assume that there are infinite numbers of co... |
Check whether two strings contain same characters in same order - GeeksforGeeks | 27 Sep, 2021
Given two strings s1 and s2, the task is to find whether the two string contain the same characters that occur in the same order. For example: string βGeeksβ and string βGeksβ contain the same characters in same order.
Examples:
Input: s1 = βGeeksβ, s2 = βGeksβ Output: Yes
Input: s1 = βArnabβ, s2 = βAndre... | [
{
"code": null,
"e": 25128,
"s": 25100,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 25347,
"s": 25128,
"text": "Given two strings s1 and s2, the task is to find whether the two string contain the same characters that occur in the same order. For example: string βGeeksβ and s... |
Built-in Exceptions in Python - GeeksforGeeks | 14 Mar, 2022
All instances in Python must be instances of a class that derives from BaseException. Two exception classes that are not related via subclassing are never equivalent, even if they have the same name. The built-in exceptions can be generated by the interpreter or built-in functions.
There are several built-... | [
{
"code": null,
"e": 41554,
"s": 41526,
"text": "\n14 Mar, 2022"
},
{
"code": null,
"e": 41837,
"s": 41554,
"text": "All instances in Python must be instances of a class that derives from BaseException. Two exception classes that are not related via subclassing are never equivale... |
Scala List dropRight() method with example - GeeksforGeeks | 26 Jul, 2019
The dropRight() method is utilized to find all the elements of the list except the last n elements.
Method Definition: def dropRight(n: Int): List[A]
Return Type: It returns all the elements of the list except the last n elements.
Example #1:
// Scala program of dropRight()// method // Creating objectobje... | [
{
"code": null,
"e": 23747,
"s": 23719,
"text": "\n26 Jul, 2019"
},
{
"code": null,
"e": 23847,
"s": 23747,
"text": "The dropRight() method is utilized to find all the elements of the list except the last n elements."
},
{
"code": null,
"e": 23897,
"s": 23847,
... |
HTML Parser in C/C++ - GeeksforGeeks | 14 Jul, 2021
HTML Parser is a program/software by which useful statements can be extracted, leaving html tags (like <h1>, <span>, <p> etc) behind.
Examples:
Input: <h1>Geeks for Geeks</h1>Output: Geeks for Geeks Explanation- <h1> and </h1> are opening and closing heading tags, so they got parsed leaving βGeeks for Gee... | [
{
"code": null,
"e": 24539,
"s": 24511,
"text": "\n14 Jul, 2021"
},
{
"code": null,
"e": 24674,
"s": 24539,
"text": "HTML Parser is a program/software by which useful statements can be extracted, leaving html tags (like <h1>, <span>, <p> etc) behind. "
},
{
"code": null,
... |
Building a streaming pipeline using SQL with Google Data Flow | by Tuan Nguyen | Towards Data Science | Real-time data is data that is delivered the moment it is collected. This enables you to process and query those data to inform decisions or fuel data applications. There are some terminologies out there, such as real-time, near real-time, and batch. The difference between these three is not clearly defined, but you ca... | [
{
"code": null,
"e": 538,
"s": 172,
"text": "Real-time data is data that is delivered the moment it is collected. This enables you to process and query those data to inform decisions or fuel data applications. There are some terminologies out there, such as real-time, near real-time, and batch. The ... |
Tryit Editor v3.7 | CSS Grid Item
Tryit: The grid-column property | [
{
"code": null,
"e": 23,
"s": 9,
"text": "CSS Grid Item"
}
] |
How to read all excel files under a directory as a Pandas DataFrame ? | To read all excel files in a directory, use the Glob module and the read_excel() method.
Letβs say the following are our excel files in a directory β
Sales1.xlsx
Sales2.xlsx
At first, set the path where all the excel files are located. Get the excel files and read them using glob β
path = "C:\\Users\\amit_\\Desktop\\"
... | [
{
"code": null,
"e": 1151,
"s": 1062,
"text": "To read all excel files in a directory, use the Glob module and the read_excel() method."
},
{
"code": null,
"e": 1212,
"s": 1151,
"text": "Letβs say the following are our excel files in a directory β"
},
{
"code": null,
... |
Replace a substring with another string in Julia - replace() Method - GeeksforGeeks | 23 Feb, 2021
The replace() is an inbuilt function in julia that is used to replace a word or character with the specified string or character.
Syntax:
replace(s::AbstractString, pattern=>Word; count::Integer)
Parameters:
s::AbstractString: Specified string.
pattern=>Word: Pattern is searched from the given sentence... | [
{
"code": null,
"e": 23789,
"s": 23761,
"text": "\n23 Feb, 2021"
},
{
"code": null,
"e": 23920,
"s": 23789,
"text": "The replace() is an inbuilt function in julia that is used to replace a word or character with the specified string or character. "
},
{
"code": null,
... |
When to use yield instead of return in Python? | 07 Jun, 2022
The yield statement suspends functionβs execution and sends a value back to the caller, but retains enough state to enable function to resume where it is left off. When resumed, the function continues execution immediately after the last yield run. This allows its code to produce a series of values over ti... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Jun, 2022"
},
{
"code": null,
"e": 433,
"s": 52,
"text": "The yield statement suspends functionβs execution and sends a value back to the caller, but retains enough state to enable function to resume where it is left off. When resum... |
StringBuilder deleteCharAt() in Java with Examples | 29 Jun, 2022
The deleteCharAt(int index) method of StringBuilder class remove the character at the given index from String contained by StringBuilder. This method takes index as a parameter which represents the index of char we want to remove and returns the remaining String as StringBuilder Object. This StringBuilder ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jun, 2022"
},
{
"code": null,
"e": 402,
"s": 28,
"text": "The deleteCharAt(int index) method of StringBuilder class remove the character at the given index from String contained by StringBuilder. This method takes index as a paramete... |
Difference between volatile and transient keywords in Java | 16 Aug, 2020
Just like any other programming language, Java has a set of keywords which are reserved and have a special meaning. In this article, we will see the difference between the keywords volatile and transient.
Before getting into the differences, let us first understand what each of them actually means.
Volati... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Aug, 2020"
},
{
"code": null,
"e": 234,
"s": 28,
"text": "Just like any other programming language, Java has a set of keywords which are reserved and have a special meaning. In this article, we will see the difference between the key... |
Program for EMI Calculator | 24 May, 2021
EMI stand for Equated Monthly Installment. This calculator is used to calculate per month EMI of loan amount if loan amount that is principal, rate of interest and time in years is given as input.
Formula: E = (P.r.(1+r)n) / ((1+r)n β 1) Here, P = loan amount i.e principal amount R = Interest rate per mon... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 May, 2021"
},
{
"code": null,
"e": 250,
"s": 52,
"text": "EMI stand for Equated Monthly Installment. This calculator is used to calculate per month EMI of loan amount if loan amount that is principal, rate of interest and time in ye... |
MoviePy βSaving Video File Clip | 01 Aug, 2020
In this article we will see how we can save a video file clip in MoviePy. MoviePy is a Python module for video editing, which can be used for basic operations on videos and GIFβs. Visual multimedia source that combines a sequence of images to form a moving picture. The video transmits a signal to a screen ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Aug, 2020"
},
{
"code": null,
"e": 503,
"s": 28,
"text": "In this article we will see how we can save a video file clip in MoviePy. MoviePy is a Python module for video editing, which can be used for basic operations on videos and GI... |
How to get the current position of cursor from output screen in C? | 06 Mar, 2019
The given task is to get the current position of the cursor from the output screen in C.
Approach: There is a predefined function wherex() in C language that returns the x coordinate of the cursor in the current output screen. And wherey() function that returns the y coordinate of the cursor in current out... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Mar, 2019"
},
{
"code": null,
"e": 141,
"s": 52,
"text": "The given task is to get the current position of the cursor from the output screen in C."
},
{
"code": null,
"e": 425,
"s": 141,
"text": "Approach: There ... |
What is Water Pollution? Sources, Causes, Prevention | 24 Feb, 2022
Water is one of the most important natural resources on the planet, and it has existed for millennia. In reality, the same water we drink has been around in some form or another since the dinosaur era. More than two-thirds of the earthβs surface is covered with water. This equates to1 octillion litres (1,2... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 765,
"s": 28,
"text": "Water is one of the most important natural resources on the planet, and it has existed for millennia. In reality, the same water we drink has been around in some form or anoth... |
Count Occurences of Anagrams | Practice | GeeksforGeeks | Given a word pat and a text txt. Return the count of the occurences of anagrams of the word in the text.
Example 1:
Input:
txt = forxxorfxdofr
pat = for
Output: 3
Explanation: for, orf and ofr appears
in the txt, hence answer is 3.
Example 2:
Input:
txt = aabaabaa
pat = aaba
Output: 4
Explanation: aaba is present 4 ti... | [
{
"code": null,
"e": 331,
"s": 226,
"text": "Given a word pat and a text txt. Return the count of the occurences of anagrams of the word in the text."
},
{
"code": null,
"e": 342,
"s": 331,
"text": "Example 1:"
},
{
"code": null,
"e": 459,
"s": 342,
"text": "I... |
NumPy array in Python | 29 Aug, 2020
Python lists are a substitute for arrays, but they fail to deliver the performance required while computing large sets of numerical data. To address this issue we use a python library called NumPy. The word NumPy stands for Numerical Python. NumPy offers an array object called ndarray. They are similar to ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 420,
"s": 52,
"text": "Python lists are a substitute for arrays, but they fail to deliver the performance required while computing large sets of numerical data. To address this issue we use a pytho... |
Python | Pandas Series.to_frame() | 05 Feb, 2019
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index.
Pandas Series.to_frame() function is used to conve... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Feb, 2019"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based index... |
Python | os.path.expanduser() method | 11 Oct, 2021
OS module in Python provides functions for interacting with the operating system. OS comes under Pythonβs standard utility modules. This module provides a portable way of using operating system dependent functionality. os.path module is sub module of OS module in Python used for common pathname manipulatio... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 1136,
"s": 28,
"text": "OS module in Python provides functions for interacting with the operating system. OS comes under Pythonβs standard utility modules. This module provides a portable way of usi... |
HTML5 - Web Forms 2.0 | Web Forms 2.0 is an extension to the forms features found in HTML4. Form elements and attributes in HTML5 provide a greater degree of semantic mark-up than HTML4 and free us from a great deal of tedious scripting and styling that was required in HTML4.
HTML4 input elements use the type attribute to specify the data typ... | [
{
"code": null,
"e": 2861,
"s": 2608,
"text": "Web Forms 2.0 is an extension to the forms features found in HTML4. Form elements and attributes in HTML5 provide a greater degree of semantic mark-up than HTML4 and free us from a great deal of tedious scripting and styling that was required in HTML4."... |
CSS | saturate() Function - GeeksforGeeks | 22 Aug, 2019
The saturate() function is an inbuilt function in CSS which is used to super-saturate or desaturates the input image.
Syntax:
saturate( amount )
Parameters: This function accepts single parameter amount, which holds the amount of conversion. The value of the parameter is set in terms of number or percentag... | [
{
"code": null,
"e": 25739,
"s": 25711,
"text": "\n22 Aug, 2019"
},
{
"code": null,
"e": 25857,
"s": 25739,
"text": "The saturate() function is an inbuilt function in CSS which is used to super-saturate or desaturates the input image."
},
{
"code": null,
"e": 25865,
... |
IntSummaryStatistics getMin() method in Java with Examples - GeeksforGeeks | 27 Jun, 2019
The getMin() method of IntSummaryStatistics class in Java is used to get the minimum of records in this IntSummaryStatistics.
Syntax:
public int getMin()
Parameter: This method do not accept any value as parameter.
Return Value: This method returns the minimum of the records in this IntSummaryStatistics.
... | [
{
"code": null,
"e": 25347,
"s": 25319,
"text": "\n27 Jun, 2019"
},
{
"code": null,
"e": 25473,
"s": 25347,
"text": "The getMin() method of IntSummaryStatistics class in Java is used to get the minimum of records in this IntSummaryStatistics."
},
{
"code": null,
"e": ... |
Data Structure and Algorithms - Quick Sort | Quick sort is a highly efficient sorting algorithm and is based on partitioning of array of data into smaller arrays. A large array is partitioned into two arrays one of which holds values smaller than the specified value, say pivot, based on which the partition is made and another array holds values greater than the p... | [
{
"code": null,
"e": 2912,
"s": 2580,
"text": "Quick sort is a highly efficient sorting algorithm and is based on partitioning of array of data into smaller arrays. A large array is partitioned into two arrays one of which holds values smaller than the specified value, say pivot, based on which the ... |
Lazy Propagation in Segment Tree - GeeksforGeeks | 29 Mar, 2022
Segment tree is introduced in previous post with an example of range sum problem. We have used the same βSum of given Rangeβ problem to explain Lazy propagation
How does update work in Simple Segment Tree? In the previous post, update function was called to update only a single value in array. Please not... | [
{
"code": null,
"e": 26103,
"s": 26075,
"text": "\n29 Mar, 2022"
},
{
"code": null,
"e": 26266,
"s": 26103,
"text": "Segment tree is introduced in previous post with an example of range sum problem. We have used the same βSum of given Rangeβ problem to explain Lazy propagation "... |
Average of first n even natural numbers - GeeksforGeeks | 24 Mar, 2021
Given a number n then Find the Average of first n even natural numbers Ex.= 2 + 4 + 6 + 8 + 10 + 12 +.........+ 2n. Examples :
Input : 7
Output : 8
(2 + 4 + 6 + 8 + 10 + 12 + 14)/7 = 8
Input : 5
Output : 6
(2 + 4 + 6 + 8 + 10)/5 = 6
Naive Approach:- In this program iterate the loop , finding total ... | [
{
"code": null,
"e": 26791,
"s": 26763,
"text": "\n24 Mar, 2021"
},
{
"code": null,
"e": 26920,
"s": 26791,
"text": "Given a number n then Find the Average of first n even natural numbers Ex.= 2 + 4 + 6 + 8 + 10 + 12 +.........+ 2n. Examples : "
},
{
"code": null,
"e... |
How to Create a Morse Code Converter Android App? - GeeksforGeeks | 01 Sep, 2020
Morse code is a way in which one can encode characters and text using dots and dashes. The international Morse codes contain 26 letters of the alphabets and some non-English letters that are Arabic numerals as well as some punctuation. In Morse code, there is no difference between the upper and lower case ... | [
{
"code": null,
"e": 26491,
"s": 26463,
"text": "\n01 Sep, 2020"
},
{
"code": null,
"e": 27055,
"s": 26491,
"text": "Morse code is a way in which one can encode characters and text using dots and dashes. The international Morse codes contain 26 letters of the alphabets and some n... |
Bootstrap 4 | Custom Forms - GeeksforGeeks | 29 Nov, 2021
Bootstrap 4 enables to customize the browserβs default form and control layouts. The customized form can be created by using Bootstrap 4 like checkbox, radio buttons, file inputs and more. Bootstrap simplifies the process of alignment and styling of web pages in many forms like label, input, field, textare... | [
{
"code": null,
"e": 28440,
"s": 28412,
"text": "\n29 Nov, 2021"
},
{
"code": null,
"e": 29004,
"s": 28440,
"text": "Bootstrap 4 enables to customize the browserβs default form and control layouts. The customized form can be created by using Bootstrap 4 like checkbox, radio butto... |
PHP date_add() Function | The date_add() function is an alias of DateTime::add(). It accepts a DateTime object as parameters and a DateInterval object, adds the specified interval to the given DateTime.
date_add($object, $interval)
object(Optional)
This is a DateTime object specifying/representing the date to which you need to add the time int... | [
{
"code": null,
"e": 2934,
"s": 2757,
"text": "The date_add() function is an alias of DateTime::add(). It accepts a DateTime object as parameters and a DateInterval object, adds the specified interval to the given DateTime."
},
{
"code": null,
"e": 2964,
"s": 2934,
"text": "date_... |
Using Gradient Boosting for Time Series prediction tasks | by Rahul Agarwal | Towards Data Science | Time series prediction problems are pretty frequent in the retail domain.
Companies like Walmart and Target need to keep track of how much product should be shipped from Distribution Centres to stores. Even a small improvement in such a demand forecasting system can help save a lot of dollars in term of workforce manag... | [
{
"code": null,
"e": 246,
"s": 172,
"text": "Time series prediction problems are pretty frequent in the retail domain."
},
{
"code": null,
"e": 537,
"s": 246,
"text": "Companies like Walmart and Target need to keep track of how much product should be shipped from Distribution Cen... |
p5.js | jump() Function - GeeksforGeeks | 01 Sep, 2021
The jump() function is an inbuilt function in the p5.js library. This function is used to jump at some specific point of playing audio, just required the time position of that audio. which is playing that time on the web.
Syntax:
jump( cueTime, duration )
Note: All the sound-related functions only work w... | [
{
"code": null,
"e": 24991,
"s": 24963,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 25214,
"s": 24991,
"text": "The jump() function is an inbuilt function in the p5.js library. This function is used to jump at some specific point of playing audio, just required the time posi... |
Median in a stream of integers (running integers) in C++ | Given that integers are read from a data stream. Find median of elements read so for in an efficient way
After reading 1st element of stream - 10 -> median - 10
After reading 2nd element of stream - 10, 20 -> median - 15
After reading 3rd element of stream - 10, 20, 30 -> median - 20, so on...
1. Use a max heap on left... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "Given that integers are read from a data stream. Find median of elements read so for in an efficient way"
},
{
"code": null,
"e": 1223,
"s": 1167,
"text": "After reading 1st element of stream - 10 -> median - 10"
},
{
"code":... |
Create pong game using Python β Turtle | 11 Jun, 2021
Pong is one of the most famous arcade games, simulating table tennis. Each player controls a paddle in the game by dragging it vertically across the screenβs left or right side. Players use their paddles to strike back and forth on the ball.
Turtle is an inbuilt graphic module in Python. It uses a panel an... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Jun, 2021"
},
{
"code": null,
"e": 296,
"s": 54,
"text": "Pong is one of the most famous arcade games, simulating table tennis. Each player controls a paddle in the game by dragging it vertically across the screenβs left or right si... |
JavaScript escape() Function | 22 Nov, 2021
Below is the example of the escape() function.
Example:<script> // Special character encoded with // escape function document.write(escape("Geeks for Geeks!!!")); document.write("<br>"); // Print encoded string using escape() function // Also include exceptions i.e. @ and . document.write... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 75,
"s": 28,
"text": "Below is the example of the escape() function."
},
{
"code": null,
"e": 467,
"s": 75,
"text": "Example:<script> // Special character encoded with // esc... |
Natural Language Processing β Overview | 18 Jul, 2021
Natural language processing (NLP) is a subfield of Artificial Intelligence (AI). This is a widely used technology for personal assistants that are used in various business fields/areas. This technology works on the speech provided by the user, breaks it down for proper understanding and processes according... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 1749,
"s": 52,
"text": "Natural language processing (NLP) is a subfield of Artificial Intelligence (AI). This is a widely used technology for personal assistants that are used in various business f... |
Python program to get Current Time | 26 Mar, 2020
In this article, we will know the approaches to get the current time in Python. There are multiple ways to get it. The most preferably date-time module is used in Python to create the object containing date and time.1: Current time of a timezone β Using pytZ module
from datetime import *import pytz tz_I... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 318,
"s": 52,
"text": "In this article, we will know the approaches to get the current time in Python. There are multiple ways to get it. The most preferably date-time module is used in Python to c... |
Find the Largest number with given number of digits and sum of digits | 23 Jun, 2022
How to find the largest number with given digit sum s and number of digits d?Examples:
Input : s = 9, d = 2
Output : 90
Input : s = 20, d = 3
Output : 992
A Simple Solution is to consider all m digit numbers and keep track of maximum number with digit sum as s. A close upper bound on time complexity... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 141,
"s": 52,
"text": "How to find the largest number with given digit sum s and number of digits d?Examples: "
},
{
"code": null,
"e": 212,
"s": 141,
"text": "Input : s = 9, ... |
Python Exit handlers (atexit) | 29 Jun, 2022
atexit is a module in python which contains two functions register() and unregister(). The main role of this module is to perform clean up upon interpreter termination. Functions that are registered are automatically executed upon interpreter termination. Whenever a program is killed by a signal not handle... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jun, 2022"
},
{
"code": null,
"e": 477,
"s": 28,
"text": "atexit is a module in python which contains two functions register() and unregister(). The main role of this module is to perform clean up upon interpreter termination. Functi... |
Sub-string that contains all lowercase alphabets after performing the given operation | 23 May, 2022
Given a string str containing lower case alphabets and character β?β. The task is to check if it is possible to make str good or not.A string is called good if it contains a sub-string of length 26 which has every character of lower case alphabets in it. The task is to check if it is possible to make the s... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 May, 2022"
},
{
"code": null,
"e": 508,
"s": 52,
"text": "Given a string str containing lower case alphabets and character β?β. The task is to check if it is possible to make str good or not.A string is called good if it contains a ... |
Lodash | _.cloneDeep() Method | 18 Jan, 2022
The _.cloneDeep() method is used to create a deep copy of the value i.e. it recursively clones the value. This method is similar to the _.clone() method.
Syntax:
_.cloneDeep( value )
Parameters: This method accepts single parameter as mentioned above and described below:
value: This parameter holds the ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 208,
"s": 54,
"text": "The _.cloneDeep() method is used to create a deep copy of the value i.e. it recursively clones the value. This method is similar to the _.clone() method."
},
{
"code"... |
UnaryOperator Interface in Java | 18 Nov, 2019
The UnaryOperator Interface<T> is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represents a function which takes in one argument and operates on it. However what distinguishes it from a normal Function is that both its argu... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Nov, 2019"
},
{
"code": null,
"e": 370,
"s": 28,
"text": "The UnaryOperator Interface<T> is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represents a... |
How to set the Password Character for MaskedTextBox in C#? | 26 Jul, 2019
In C#, MaskedTextBox control gives a validation procedure for the user input on the form like date, phone numbers, etc. Or in other words, it is used to provide a mask which differentiates between proper and improper user input. In MaskedTextBox control, you are allowed to set the character which displays ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jul, 2019"
},
{
"code": null,
"e": 754,
"s": 28,
"text": "In C#, MaskedTextBox control gives a validation procedure for the user input on the form like date, phone numbers, etc. Or in other words, it is used to provide a mask which d... |
Lex program to count the number of lines, spaces and tabs | 22 Mar, 2021
Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language.Letβs the how to count the number of lines, spaces and tabs using ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n22 Mar, 2021"
},
{
"code": null,
"e": 376,
"s": 53,
"text": "Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt. Lex reads an input stream specifying the lexical analyzer and output... |
VigeneΜre Cipher | 05 Jul, 2022
Vigenere Cipher is a method of encrypting alphabetic text. It uses a simple form of polyalphabetic substitution. A polyalphabetic cipher is any cipher based on substitution, using multiple substitution alphabets. The encryption of the original text is done using the VigeneΜre square or VigeneΜre table.
The... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 Jul, 2022"
},
{
"code": null,
"e": 358,
"s": 54,
"text": "Vigenere Cipher is a method of encrypting alphabetic text. It uses a simple form of polyalphabetic substitution. A polyalphabetic cipher is any cipher based on substitution, ... |
What is the difference between .py and .pyc files ? | Python compliles the .py files and save it as .pyc file
The .pyc contain the compiled bytecode of Python source files, A .pyc is not created for your main program file that you execute (only for imported modules).
The .pyc file contains encoded python bytecode.
If We Want to import module.The Module calculate Addition ... | [
{
"code": null,
"e": 1243,
"s": 1187,
"text": "Python compliles the .py files and save it as .pyc file"
},
{
"code": null,
"e": 1401,
"s": 1243,
"text": "The .pyc contain the compiled bytecode of Python source files, A .pyc is not created for your main program file that you execu... |
String.Format() Method in C# with Examples | Set β 3 | 28 May, 2020
In C#, Format() is a string method. This method is used to replace one or more format items in the specified string with the string representation of a specified object.In other words, this method is used to insert the value of the variable or an object or expression into another string.
This method can b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 318,
"s": 28,
"text": "In C#, Format() is a string method. This method is used to replace one or more format items in the specified string with the string representation of a specified object.In ot... |
How to Create Image Overlay Hover using HTML & CSS ? | 31 Mar, 2020
In this article, we will go over 5 different types of overlays: left, right, top, bottom, and fade. You are going to need two divs. One will be your overlay div, containing what will show up once the user hovers over the image, and the other will be a container that holds both the image and its overlay. Th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Mar, 2020"
},
{
"code": null,
"e": 530,
"s": 28,
"text": "In this article, we will go over 5 different types of overlays: left, right, top, bottom, and fade. You are going to need two divs. One will be your overlay div, containing wh... |
Total number of Spanning trees in a Cycle Graph | 14 Apr, 2021
Given the number of vertices in a Cycle graph. The task is to find the Total number of Spanning trees possible. Note: A cycle/circular graph is a graph that contains only one cycle. A spanning tree is a shortest/minimum path in a graph that covers all the vertices of a graph.
Examples:
Input: Vertices = ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n14 Apr, 2021"
},
{
"code": null,
"e": 330,
"s": 53,
"text": "Given the number of vertices in a Cycle graph. The task is to find the Total number of Spanning trees possible. Note: A cycle/circular graph is a graph that contains only one... |
XAML - GridView | A GridView represents a control that displays data items in rows and columns. Actually, a ListView displays data. By default, it contains a GridView. The hierarchical inheritance of GridView class is as follows β
Background
Gets or sets a brush that provides the background of the control. (Inherited from Control)
Borde... | [
{
"code": null,
"e": 2270,
"s": 2057,
"text": "A GridView represents a control that displays data items in rows and columns. Actually, a ListView displays data. By default, it contains a GridView. The hierarchical inheritance of GridView class is as follows β"
},
{
"code": null,
"e": 228... |
Spring JSR-250 Annotations | Spring also supports JSR-250 based annotations which include @PostConstruct, @PreDestroy and @Resource annotations. Though these annotations are not really required because you already have other alternates, yet let us get a brief idea about them.
To define the setup and teardown for a bean, we simply declare the <bean... | [
{
"code": null,
"e": 2674,
"s": 2426,
"text": "Spring also supports JSR-250 based annotations which include @PostConstruct, @PreDestroy and @Resource annotations. Though these annotations are not really required because you already have other alternates, yet let us get a brief idea about them."
},... |
Python Program for Product of unique prime factors of a number | 03 Dec, 2018
Given a number n, we need to find the product of all of its unique prime factors. Prime factors: It is basically a factor of the number that is a prime number itself.
Examples:
Input: num = 10
Output: Product is 10
Explanation:
Here, the input number is 10 having only 2 prime factors and they are 5 and 2.
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Dec, 2018"
},
{
"code": null,
"e": 195,
"s": 28,
"text": "Given a number n, we need to find the product of all of its unique prime factors. Prime factors: It is basically a factor of the number that is a prime number itself."
},
... |
MATLAB | RGB image to grayscale image conversion | 25 Jun, 2018
An RGB image can be viewed as three images( a red scale image, a green scale image and a blue scale image) stacked on top of each other. In MATLAB, an RGB image is basically a M*N*3 array of colour pixel, where each colour pixel is a triplet which corresponds to red, blue and green colour component of RGB ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Jun, 2018"
},
{
"code": null,
"e": 398,
"s": 52,
"text": "An RGB image can be viewed as three images( a red scale image, a green scale image and a blue scale image) stacked on top of each other. In MATLAB, an RGB image is basically ... |
JQuery | Set focus on a form input text field on page load | 23 May, 2019
The task is to set the focus on form input text field using JQuery. To do so, Here are a few of the most used techniques discussed.First focus() method need to be discussed.
jQuery focus() Method:The focus event happens when an element gets focus (Either selected by a mouse click or by βtab-navigatingβ to ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 May, 2019"
},
{
"code": null,
"e": 202,
"s": 28,
"text": "The task is to set the focus on form input text field using JQuery. To do so, Here are a few of the most used techniques discussed.First focus() method need to be discussed."
... |
JavaScript Array slice() Method | 04 Oct, 2021
Below is the example of Array slice() method.
Example:<script>function func() { // Original Array var arr = [23,56,87,32,75,13]; // Extracted array var new_arr = arr.slice(2,4); document.write(arr); document.write("<br>"); document.write(new_arr);}func();</script>
<script>function ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Oct, 2021"
},
{
"code": null,
"e": 74,
"s": 28,
"text": "Below is the example of Array slice() method."
},
{
"code": null,
"e": 318,
"s": 74,
"text": "Example:<script>function func() { // Original Array va... |
Start/Stop/Restart Services Using Systemctl in Linux | 11 Feb, 2021
Systemctl is a controller or utility of Systemd(is an init system with compost for a set of programs executed in the background), with auxiliary in manage services, these commands are executed in mode root if you arenβt mode root the system, requesting the password of root.
systemctl list-unit-files --type... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Feb, 2021"
},
{
"code": null,
"e": 303,
"s": 28,
"text": "Systemctl is a controller or utility of Systemd(is an init system with compost for a set of programs executed in the background), with auxiliary in manage services, these comm... |
Enable In-Built Dark Mode on Windows 10 | 06 Jun, 2022
Most of us love to surf our desktop and apps through dark mode as it will reduce our eye strain and resultantly makes us more productive But many of us do not know how to enable dark mode on a Windows system. Windows 10 comes with the dark mode inbuilt. This can be achieved through the settings menu and it... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n06 Jun, 2022"
},
{
"code": null,
"e": 422,
"s": 53,
"text": "Most of us love to surf our desktop and apps through dark mode as it will reduce our eye strain and resultantly makes us more productive But many of us do not know how to ena... |
Python Program to check for almost similar Strings | 02 Feb, 2021
Given two strings, the task here is to write a python program that can test if they are almost similar. Similarity of strings is being checked on the criteria of frequency difference of each character which should be greater than a threshold here represented by K.
Input : test_str1 = βaabcdaaβ, test_str2 =... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Feb, 2021"
},
{
"code": null,
"e": 293,
"s": 28,
"text": "Given two strings, the task here is to write a python program that can test if they are almost similar. Similarity of strings is being checked on the criteria of frequency dif... |
Sequences of given length where every element is more than or equal to twice of previous | 21 Jun, 2022
Given two integers m & n, find the number of possible sequences of length n such that each of the next element is greater than or equal to twice of the previous element but less than or equal to m.
Examples :
Input : m = 10, n = 4
Output : 4
There should be n elements and value of last
element should be a... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 252,
"s": 54,
"text": "Given two integers m & n, find the number of possible sequences of length n such that each of the next element is greater than or equal to twice of the previous element but l... |
Pattern Printing question asked in CGI Coding Round | 22 Oct, 2021
Write a program that receives a number as input and prints it in the following format as shown below. Examples :
Input : n = 3
Output :
1*2*3*10*11*12
--4*5*8*9
----6*7
Input : n = 4
Output :
1*2*3*4*17*18*19*20
--5*6*7*14*15*16
----8*9*12*13
------10*11
Asked in CGI coding round
Approach: The approach ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Oct, 2021"
},
{
"code": null,
"e": 167,
"s": 52,
"text": "Write a program that receives a number as input and prints it in the following format as shown below. Examples : "
},
{
"code": null,
"e": 310,
"s": 167,
... |
C Program to create a House using Graphics | 14 Jun, 2020
Prerequisite: graphics.h, How to include graphics.h in CodeBlocks?
The task is to write C program to create a house using graphics.
To run the program we have the include the below header file:
#include <graphic.h>
Setting Up the Environment:
Download the WinBGlm zip file from this link.Extract the WinBGl... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n14 Jun, 2020"
},
{
"code": null,
"e": 120,
"s": 53,
"text": "Prerequisite: graphics.h, How to include graphics.h in CodeBlocks?"
},
{
"code": null,
"e": 185,
"s": 120,
"text": "The task is to write C program to crea... |
Decoding: State Of The Art Object Detection | by Kb Pachauri | Towards Data Science | EfficientDet is a neural network architecture which achieves State-Of-The-Art (SOTA) results (~55.1 Average Precision) on object detection (Microsoft COCO dataset) task with much lesser (~4x-9x) complexity than the previous detectors [2]. The key building blocks of EfficientDet are
Compound ScalingBi-directional Featur... | [
{
"code": null,
"e": 455,
"s": 172,
"text": "EfficientDet is a neural network architecture which achieves State-Of-The-Art (SOTA) results (~55.1 Average Precision) on object detection (Microsoft COCO dataset) task with much lesser (~4x-9x) complexity than the previous detectors [2]. The key building... |
TestLink - Quick Guide | TestLink is a test management tool used for project management, bug tracking and test management. It follows a centralized test management concept that helps to communicate easily for rapid development of tasks across QA teams and other stakeholders. It keeps the requirement specification and test specification in sync... | [
{
"code": null,
"e": 2640,
"s": 2318,
"text": "TestLink is a test management tool used for project management, bug tracking and test management. It follows a centralized test management concept that helps to communicate easily for rapid development of tasks across QA teams and other stakeholders. It... |
YEAR() Function in SQL Server - GeeksforGeeks | 11 Jan, 2021
YEAR() function :This function in SQL Server is used to return the year for a date stated.
Features :
This function is used to find the year for a date specified.
This function comes under Date Functions.
This function accepts only one parameter i.e, date.
This function can also include time with the state... | [
{
"code": null,
"e": 23877,
"s": 23849,
"text": "\n11 Jan, 2021"
},
{
"code": null,
"e": 23968,
"s": 23877,
"text": "YEAR() function :This function in SQL Server is used to return the year for a date stated."
},
{
"code": null,
"e": 23979,
"s": 23968,
"text": ... |
Apache Bench - Quick Guide | Performance testing has proved itself to be crucial for the success of a business. Not only does a poor performing site face financial losses, it can also lead to legal repercussions at times.
No one wants to put up with a slow performing, unreliable site in important online interactions such as purchasing, online test... | [
{
"code": null,
"e": 2027,
"s": 1834,
"text": "Performance testing has proved itself to be crucial for the success of a business. Not only does a poor performing site face financial losses, it can also lead to legal repercussions at times."
},
{
"code": null,
"e": 2350,
"s": 2027,
... |
How to implement MAX(distinct...) in MySQL and what is the difference without using DISTINCT? | Let us see the first syntax, which uses DISTINCT in MAX() β
select max(DISTINCT yourColumnName) from yourTableName;
The second syntax is as follows. It isnβt using DISTINCT β
select max( yourColumnName) from yourTableName;
NOTE β Both the above queries give the same result with or without a DISTINCT keyword. MySQL inte... | [
{
"code": null,
"e": 1122,
"s": 1062,
"text": "Let us see the first syntax, which uses DISTINCT in MAX() β"
},
{
"code": null,
"e": 1178,
"s": 1122,
"text": "select max(DISTINCT yourColumnName) from yourTableName;"
},
{
"code": null,
"e": 1237,
"s": 1178,
"tex... |
groupadd- Unix, Linux Command | groupadd - Creates a new group.
groupadd [options] group
groupadd command creates a new group account using the values specified on the command line and the default values from the system. The new group will be entered into the system files as needed.
The numeric identifiers of new system groups are choosen in the SYS... | [
{
"code": null,
"e": 10609,
"s": 10577,
"text": "groupadd - Creates a new group."
},
{
"code": null,
"e": 10634,
"s": 10609,
"text": "groupadd [options] group"
},
{
"code": null,
"e": 10830,
"s": 10634,
"text": " groupadd command creates a new group account us... |
Priority of AND and OR operator in MySQL select query? | The AND has the highest priority than the OR operator in MySQL select query.
Let us check how MySQL gives the highest priority to AND operator.
The query is as follows
mysql> select 0 AND 0 OR 1 as Result;
The following is the output
+--------+
| Result |
+--------+
| 1 |
+--------+
1 row in set (0.00 sec)
If you a... | [
{
"code": null,
"e": 1139,
"s": 1062,
"text": "The AND has the highest priority than the OR operator in MySQL select query."
},
{
"code": null,
"e": 1206,
"s": 1139,
"text": "Let us check how MySQL gives the highest priority to AND operator."
},
{
"code": null,
"e": 1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.