title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Find max or min value in an array of primitives using Java - GeeksforGeeks | 04 Nov, 2020
Java as a whole is a language that generally requires a lot of coding to execute specific tasks. Hence, having shorthand for several utilities can be beneficial. One such utility, to find maximum and minimum element in array is explained in this article using “aslist()“. aslist() type casts a list from the... | [
{
"code": null,
"e": 24659,
"s": 24631,
"text": "\n04 Nov, 2020"
},
{
"code": null,
"e": 25295,
"s": 24659,
"text": "Java as a whole is a language that generally requires a lot of coding to execute specific tasks. Hence, having shorthand for several utilities can be beneficial. O... |
Check if one of the numbers is one's complement of the other - GeeksforGeeks | 28 Apr, 2021
Given two non-negative integers a and b. The problem is to check if one of the two numbers is 1’s complement of the other. The ones’ complement of a binary number is defined as the value obtained by inverting all the bits in the binary representation of the number (swapping 0s for 1s and vice versa).
Examp... | [
{
"code": null,
"e": 26475,
"s": 26447,
"text": "\n28 Apr, 2021"
},
{
"code": null,
"e": 26777,
"s": 26475,
"text": "Given two non-negative integers a and b. The problem is to check if one of the two numbers is 1’s complement of the other. The ones’ complement of a binary number ... |
Data Warehouse - Overview | A Data Warehouse consists of data from multiple heterogeneous data sources and is used for analytical reporting and decision making. Data Warehouse is a central place where data is stored from different data sources and applications.
The term Data Warehouse was first invented by Bill Inmom in 1990. A Data Warehouse is ... | [
{
"code": null,
"e": 2801,
"s": 2567,
"text": "A Data Warehouse consists of data from multiple heterogeneous data sources and is used for analytical reporting and decision making. Data Warehouse is a central place where data is stored from different data sources and applications."
},
{
"code... |
Access Modifiers in C# | Access Modifiers specifies the scope of variable and functions in C#. The following are the access modifiers used provided by C#:
The public modifier sets no restriction on the access of members.
Access limited to the derived class or class definition.
The Internal access modifier access within the program that has its... | [
{
"code": null,
"e": 1192,
"s": 1062,
"text": "Access Modifiers specifies the scope of variable and functions in C#. The following are the access modifiers used provided by C#:"
},
{
"code": null,
"e": 1258,
"s": 1192,
"text": "The public modifier sets no restriction on the acces... |
Minimum Swaps to Sort | Practice | GeeksforGeeks | Given an array of n distinct elements. Find the minimum number of swaps required to sort the array in strictly increasing order.
Example 1:
Input:
nums = {2, 8, 5, 4}
Output:
1
Explaination:
swap 8 with 4.
Example 2:
Input:
nums = {10, 19, 6, 3, 5}
Output:
2
Explaination:
swap 10 with 3 and swap 19 with 5.
Your Task:... | [
{
"code": null,
"e": 367,
"s": 238,
"text": "Given an array of n distinct elements. Find the minimum number of swaps required to sort the array in strictly increasing order."
},
{
"code": null,
"e": 379,
"s": 367,
"text": "\nExample 1:"
},
{
"code": null,
"e": 445,
... |
Build a Dash Web App for Binary Classification Model Selection | by Taylor Plumer | Towards Data Science | This post demonstrates a use case of a classifiers-dash web app tool I developed to automatically curate a compilation of machine learning visual diagnostics for binary classification problems. This web app offers established practitioners efficiency gains and enhanced interactivity in their modeling selection process.... | [
{
"code": null,
"e": 682,
"s": 172,
"text": "This post demonstrates a use case of a classifiers-dash web app tool I developed to automatically curate a compilation of machine learning visual diagnostics for binary classification problems. This web app offers established practitioners efficiency gain... |
Groovy - Template Engines | Groovy’s template engine operates like a mail merge (the automatic addition of names and addresses from a database to letters and envelopes in order to facilitate sending mail, especially advertising, to many addresses) but it is much more general.
If you take the simple example below, we are first defining a name vari... | [
{
"code": null,
"e": 2487,
"s": 2238,
"text": "Groovy’s template engine operates like a mail merge (the automatic addition of names and addresses from a database to letters and envelopes in order to facilitate sending mail, especially advertising, to many addresses) but it is much more general."
}... |
How to perform arithmetic operations on two-dimensional array in C? | An array is a group of related data items that are stored with single name.
For example, int student[30]; //student is an array name that holds 30 collection of data items with a single variable name
Searching − It is used to find whether particular element is present or not
Searching − It is used to find whether parti... | [
{
"code": null,
"e": 1138,
"s": 1062,
"text": "An array is a group of related data items that are stored with single name."
},
{
"code": null,
"e": 1262,
"s": 1138,
"text": "For example, int student[30]; //student is an array name that holds 30 collection of data items with a sin... |
Cassandra - Alter Table | You can alter a table using the command ALTER TABLE. Given below is the syntax for creating a table.
ALTER (TABLE | COLUMNFAMILY) <tablename> <instruction>
Using ALTER command, you can perform the following operations −
Add a column
Add a column
Drop a column
Drop a column
Using ALTER command, you can add a column to ... | [
{
"code": null,
"e": 2388,
"s": 2287,
"text": "You can alter a table using the command ALTER TABLE. Given below is the syntax for creating a table."
},
{
"code": null,
"e": 2444,
"s": 2388,
"text": "ALTER (TABLE | COLUMNFAMILY) <tablename> <instruction>\n"
},
{
"code": nu... |
Show Matplotlib graphs to image as fullscreen | To show matplotlib graphs as full screen, we can use full_screen_toggle() method.
Create a figure or activate an existing figure using figure() method.
Create a figure or activate an existing figure using figure() method.
Plot a line using two lists.
Plot a line using two lists.
Return the figure manager of the current... | [
{
"code": null,
"e": 1144,
"s": 1062,
"text": "To show matplotlib graphs as full screen, we can use full_screen_toggle() method."
},
{
"code": null,
"e": 1214,
"s": 1144,
"text": "Create a figure or activate an existing figure using figure() method."
},
{
"code": null,
... |
Conversions in LINQ | The operators change the type of input objects and are used in a diverse range of applications.
using System;
using System.Linq;
namespace Operators {
class Cast {
static void Main(string[] args) {
Plant[] plants = new Plant[] {new CarnivorousPlant { Name = "Venus Fly Trap", TrapType = "Snap T... | [
{
"code": null,
"e": 1832,
"s": 1736,
"text": "The operators change the type of input objects and are used in a diverse range of applications."
},
{
"code": null,
"e": 2902,
"s": 1832,
"text": "using System;\nusing System.Linq;\n\nnamespace Operators {\n class Cast {\n sta... |
Quick Sort | The quicksort technique is done by separating the list into two parts. Initially, a pivot element is chosen by partitioning algorithm. The left part of the pivot holds the smaller values than the pivot, and right part holds the larger value. After partitioning, each separate lists are partitioned using the same procedu... | [
{
"code": null,
"e": 1386,
"s": 1062,
"text": "The quicksort technique is done by separating the list into two parts. Initially, a pivot element is chosen by partitioning algorithm. The left part of the pivot holds the smaller values than the pivot, and right part holds the larger value. After parti... |
StandardScaler, MinMaxScaler and RobustScaler techniques - ML - GeeksforGeeks | 20 Aug, 2021
StandardScaler follows Standard Normal Distribution (SND). Therefore, it makes mean = 0 and scales the data to unit variance. MinMaxScaler scales all the data features in the range [0, 1] or else in the range [-1, 1] if there are negative values in the dataset. This scaling compresses all the inliers in th... | [
{
"code": null,
"e": 24065,
"s": 24037,
"text": "\n20 Aug, 2021"
},
{
"code": null,
"e": 25666,
"s": 24065,
"text": "StandardScaler follows Standard Normal Distribution (SND). Therefore, it makes mean = 0 and scales the data to unit variance. MinMaxScaler scales all the data feat... |
What is IGMP(Internet Group Management Protocol)? | 07 Jul, 2022
IGMP is acronym for Internet Group Management Protocol. IGMP is a communication protocol used by hosts and adjacent routers for multicasting communication with IP networks and uses the resources efficiently to transmit the message/data packets. Multicast communication can have single or multiple senders an... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 871,
"s": 28,
"text": "IGMP is acronym for Internet Group Management Protocol. IGMP is a communication protocol used by hosts and adjacent routers for multicasting communication with IP networks and... |
Tree Isomorphism Problem | 21 Jun, 2022
Write a function to detect if two trees are isomorphic. Two trees are called isomorphic if one of them can be obtained from other by a series of flips, i.e. by swapping left and right children of a number of nodes. Any number of nodes at any level can have their children swapped. Two empty trees are isomor... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 480,
"s": 54,
"text": "Write a function to detect if two trees are isomorphic. Two trees are called isomorphic if one of them can be obtained from other by a series of flips, i.e. by swapping left ... |
Perl keys Function | This function returns all the keys of the HASH as a list. The keys are returned in random order but, in fact, share the same order as that used by values and each.
Following is the simple syntax for this function −
keys HASH
This function returns number of keys in the hash in scalar context and list of keys in list co... | [
{
"code": null,
"e": 2384,
"s": 2220,
"text": "This function returns all the keys of the HASH as a list. The keys are returned in random order but, in fact, share the same order as that used by values and each."
},
{
"code": null,
"e": 2435,
"s": 2384,
"text": "Following is the s... |
Clean, Connect and Visualize Interactively with DataPrep | by Cornellius Yudha Wijaya | Towards Data Science | Data preparation is the initial step that any data professional does. Whether you want to analyze the data or preprocess the data for a machine learning model, you need to prepare the data.
Preparing data means you need to collect, clean, and explore the data. To do all the activities I have mentioned, there is a Pytho... | [
{
"code": null,
"e": 361,
"s": 171,
"text": "Data preparation is the initial step that any data professional does. Whether you want to analyze the data or preprocess the data for a machine learning model, you need to prepare the data."
},
{
"code": null,
"e": 591,
"s": 361,
"text... |
An Introduction to Discretization Techniques for Data Scientists | by Rohan Gupta | Towards Data Science | Discretization is the process through which we can transform continuous variables, models or functions into a discrete form. We do this by creating a set of contiguous intervals (or bins) that go across the range of our desired variable/model/function.
Continuous data is Measured, while Discrete data is Counted.
Mathem... | [
{
"code": null,
"e": 424,
"s": 171,
"text": "Discretization is the process through which we can transform continuous variables, models or functions into a discrete form. We do this by creating a set of contiguous intervals (or bins) that go across the range of our desired variable/model/function."
... |
HSQLDB - Where Clause | Generally, we use SELECT command to fetch data from HSQLDB table. We can use WHERE conditional clause to filter the resultant data. Using WHERE we can specify the selection criteria to select the required records from a table.
Following is the syntax of SELECT command WHERE clause to fetch data from HSQLDB table.
SELEC... | [
{
"code": null,
"e": 2209,
"s": 1982,
"text": "Generally, we use SELECT command to fetch data from HSQLDB table. We can use WHERE conditional clause to filter the resultant data. Using WHERE we can specify the selection criteria to select the required records from a table."
},
{
"code": null... |
jQuery Effect - Clip Effect | The Clip effect can be used with show/hide/toggle. This clips the element on or off, vertically or horizontally.
Here is the simple syntax to use this effect −
selector.hide|show|toggle( "clip", {arguments}, speed );
Here is the description of all the arguments −
direction − The direction of the effect. Can be "vertic... | [
{
"code": null,
"e": 2435,
"s": 2322,
"text": "The Clip effect can be used with show/hide/toggle. This clips the element on or off, vertically or horizontally."
},
{
"code": null,
"e": 2482,
"s": 2435,
"text": "Here is the simple syntax to use this effect −"
},
{
"code": ... |
PyTorch - Datasets | In this chapter, we will focus more on torchvision.datasets and its various types. PyTorch includes following dataset loaders −
MNIST
COCO (Captioning and Detection)
Dataset includes majority of two types of functions given below −
Transform − a function that takes in an image and returns a modified version of standard... | [
{
"code": null,
"e": 2387,
"s": 2259,
"text": "In this chapter, we will focus more on torchvision.datasets and its various types. PyTorch includes following dataset loaders −"
},
{
"code": null,
"e": 2393,
"s": 2387,
"text": "MNIST"
},
{
"code": null,
"e": 2425,
"... |
How to open External Programs using Tkinter? | Sometimes, while creating an application, we need to interact with external programs and applications. In order to interact with the system's applications and programs, we have to use os Module in python.
In this article, we will see how we can interact with external programs and open
files using the OS module in Pytho... | [
{
"code": null,
"e": 1267,
"s": 1062,
"text": "Sometimes, while creating an application, we need to interact with external programs and applications. In order to interact with the system's applications and programs, we have to use os Module in python."
},
{
"code": null,
"e": 1385,
"... |
Bootstrap Glyphicons | Bootstrap provides 260 glyphicons from the Glyphicons
Halflings set.
Glyphicons can be used in text, buttons, toolbars, navigation, forms, etc.
Here are some examples of glyphicons:
Envelope glyphicon:
Print glyphicon:
Search glyphicon:
Download glyphicon:
A glyphicon is inserted with the following syntax:
The name... | [
{
"code": null,
"e": 69,
"s": 0,
"text": "Bootstrap provides 260 glyphicons from the Glyphicons\nHalflings set."
},
{
"code": null,
"e": 144,
"s": 69,
"text": "Glyphicons can be used in text, buttons, toolbars, navigation, forms, etc."
},
{
"code": null,
"e": 182,
... |
Cypress - Alerts | Cypress can work with alerts by default. The pop-up can be an alert or confirmation popup.Cypress is designed in such a way that it shall always click on the OK button on the pop-up. Moreover, Cypress has the ability to fire the browser events.
An alert is triggered by window:alert event. This is by default handled by ... | [
{
"code": null,
"e": 2742,
"s": 2497,
"text": "Cypress can work with alerts by default. The pop-up can be an alert or confirmation popup.Cypress is designed in such a way that it shall always click on the OK button on the pop-up. Moreover, Cypress has the ability to fire the browser events."
},
... |
Abstract vs Sealed Classes vs Class Members in C# | The abstract class includes abstract and non-abstract methods. You cannot instantiate an abstract class.
The sealed class prevents inheritance and you cannot use it as a base class.
To declare an abstract class, you need to place the keyword abstract before the class definition. An example of class members in an abstra... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "The abstract class includes abstract and non-abstract methods. You cannot instantiate an abstract class."
},
{
"code": null,
"e": 1244,
"s": 1167,
"text": "The sealed class prevents inheritance and you cannot use it as a base class."... |
How to compare Enum values in C#? - GeeksforGeeks | 23 Jul, 2019
Enum.CompareTo(Object) Method is used to compare the current instance to a specified object and returns an indication of their relative values.
Syntax:
public int CompareTo (object target);
Here, the target is an object to compare or it may be null.
Returns: This method returns a signed number which shows ... | [
{
"code": null,
"e": 24396,
"s": 24368,
"text": "\n23 Jul, 2019"
},
{
"code": null,
"e": 24540,
"s": 24396,
"text": "Enum.CompareTo(Object) Method is used to compare the current instance to a specified object and returns an indication of their relative values."
},
{
"code... |
Set a MySQL field with the current date (UNIX_TIMESTAMP(now)) | For this, use unix_timestamp(). Let us first create a table −
mysql> create table DemoTable1894
(
Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,
DueTime int
);
Query OK, 0 rows affected (0.00 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1894 values();
Query OK, 1 row... | [
{
"code": null,
"e": 1124,
"s": 1062,
"text": "For this, use unix_timestamp(). Let us first create a table −"
},
{
"code": null,
"e": 1268,
"s": 1124,
"text": "mysql> create table DemoTable1894\n (\n Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n DueTime int\n );\nQuery OK... |
Check if a line touches or intersects a circle in C++ | Suppose we have a circle and another straight line. Our task is to find if the line touches the circle or intersects it, otherwise, it passes through outside. So there are three different cases like below −
Here we will solve it by following steps. These are like below −
Find perpendicular P between the center and give... | [
{
"code": null,
"e": 1269,
"s": 1062,
"text": "Suppose we have a circle and another straight line. Our task is to find if the line touches the circle or intersects it, otherwise, it passes through outside. So there are three different cases like below −"
},
{
"code": null,
"e": 1334,
... |
Program to count number of elements are placed at correct position in Python | Suppose we have a list of numbers called nums, we have to find the number of elements that are present in the correct indices, when the list was to be sorted.
So, if the input is like [2, 8, 4, 5, 11], then the output will be 2, as the elements 2 and 11 are in their correct positions. The sorted sequence will be [2, 4,... | [
{
"code": null,
"e": 1221,
"s": 1062,
"text": "Suppose we have a list of numbers called nums, we have to find the number of elements that are present in the correct indices, when the list was to be sorted."
},
{
"code": null,
"e": 1393,
"s": 1221,
"text": "So, if the input is lik... |
ExpressJS - Sessions | HTTP is stateless; in order to associate a request to any other request, you need a way to store user data between HTTP requests. Cookies and URL parameters are both suitable ways to transport data between the client and the server. But they are both readable and on the client side. Sessions solve exactly this problem.... | [
{
"code": null,
"e": 2541,
"s": 2061,
"text": "HTTP is stateless; in order to associate a request to any other request, you need a way to store user data between HTTP requests. Cookies and URL parameters are both suitable ways to transport data between the client and the server. But they are both re... |
Can you change size of Array in Java once created? | An array is a data structure/container/object that stores a fixed-size sequential collection of elements of the same type. The size/length of the array is determined at the time of creation.
The position of the elements in the array is called as index or subscript. The first element of the array is stored at the index ... | [
{
"code": null,
"e": 1253,
"s": 1062,
"text": "An array is a data structure/container/object that stores a fixed-size sequential collection of elements of the same type. The size/length of the array is determined at the time of creation."
},
{
"code": null,
"e": 1437,
"s": 1253,
... |
How to download mp3 tracks from youtube video using youtube dl | There are several ways to download MP3 tracks from Youtube such as web applications, windows applications and command line tools in Linux. Youtube-DL is one of the best available tools in the market to download tracks from youtube. It is developed in Python programming language. This program can be used in almost all L... | [
{
"code": null,
"e": 1469,
"s": 1062,
"text": "There are several ways to download MP3 tracks from Youtube such as web applications, windows applications and command line tools in Linux. Youtube-DL is one of the best available tools in the market to download tracks from youtube. It is developed in Py... |
Decimal.Remainder() Method in C# - GeeksforGeeks | 30 Jan, 2019
This method is used to compute the remainder when the division is done between two specified decimal values.
Syntax: public static decimal Remainder (decimal a1, decimal a2);
Parameters:a1: This parameter specifies the dividend.a2: This parameter specifies the divisor.
Return Value: It returns the remainde... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n30 Jan, 2019"
},
{
"code": null,
"e": 25656,
"s": 25547,
"text": "This method is used to compute the remainder when the division is done between two specified decimal values."
},
{
"code": null,
"e": 25722,
"s": 2... |
Count of K length subarrays containing only 1s in given Binary String - GeeksforGeeks | 04 Jan, 2022
Given a binary string str, the task is to find the count of K length subarrays containing only 1s.
Examples:
Input: str = “0101000”, K=1Output: 2Explanation: 0101000 -> There are 2 subarrays with 1 ones
Input: str = “11111001”, K=3Output: 3
Approach: The task can be solved by keeping track of the group siz... | [
{
"code": null,
"e": 27535,
"s": 27507,
"text": "\n04 Jan, 2022"
},
{
"code": null,
"e": 27634,
"s": 27535,
"text": "Given a binary string str, the task is to find the count of K length subarrays containing only 1s."
},
{
"code": null,
"e": 27644,
"s": 27634,
... |
AngularJS | ng-class Directive - GeeksforGeeks | 29 Mar, 2019
The ng-class Directive in AngularJS is used to specify the CSS classes on HTML elements. It is used to dynamically bind classes on an HTML element. If the expression inside the ng-class directive returns true then only the class is added else it is not added. It is supported by all HTML elements.
Syntax:
<... | [
{
"code": null,
"e": 29626,
"s": 29598,
"text": "\n29 Mar, 2019"
},
{
"code": null,
"e": 29924,
"s": 29626,
"text": "The ng-class Directive in AngularJS is used to specify the CSS classes on HTML elements. It is used to dynamically bind classes on an HTML element. If the expressi... |
Program to check for Peterson number - GeeksforGeeks | 31 Aug, 2021
A number is said to be a Peterson number if the sum of factorials of each digit of the number is equal to the number itself.
Example:
Input : n = 145
Output = Yes
Explanation:
145 = 5! + 4! + 1!
= 120 + 24 +1
= 145
Input : n = 55
Output : No
Explanation: 5! + 5!
= 120 + 120
... | [
{
"code": null,
"e": 25575,
"s": 25547,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 25700,
"s": 25575,
"text": "A number is said to be a Peterson number if the sum of factorials of each digit of the number is equal to the number itself."
},
{
"code": null,
"e": 2... |
Implement your own word2vec(skip-gram) model in Python - GeeksforGeeks | 02 Dec, 2021
Prerequisite: Introduction to word2vecNatural language processing (NLP) is a subfield of computer science and artificial intelligence concerned with the interactions between computers and human (natural) languages. In NLP techniques, we map the words and phrases (from vocabulary or corpus) to vectors of nu... | [
{
"code": null,
"e": 26238,
"s": 26210,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 27149,
"s": 26238,
"text": "Prerequisite: Introduction to word2vecNatural language processing (NLP) is a subfield of computer science and artificial intelligence concerned with the interactio... |
PHP | pi( ) Function - GeeksforGeeks | 08 Mar, 2018
While solving mathematical problems we often come across questions which requires the value of π. Manually inserting the value of PI (π) can be time-consuming and erroneous. It is also not considered as a good programming practice. To solve this issue a built-in function of PHP pi() comes to aid.
The pi() ... | [
{
"code": null,
"e": 24784,
"s": 24756,
"text": "\n08 Mar, 2018"
},
{
"code": null,
"e": 25082,
"s": 24784,
"text": "While solving mathematical problems we often come across questions which requires the value of π. Manually inserting the value of PI (π) can be time-consuming and ... |
Arabic NLP: Unique Challenges and Their Solutions | by Richard Pelgrim | Towards Data Science | In this article, I provide a concise and to-the-point overview of the challenges of working with Arabic text in NLP projects...and the tools available to overcome them. I rely heavily on the camel-tools Python package developed at the NYU Abu Dhabi CAMeL Lab and this excellent webinar by its director, Dr. Nizar Habash.... | [
{
"code": null,
"e": 606,
"s": 171,
"text": "In this article, I provide a concise and to-the-point overview of the challenges of working with Arabic text in NLP projects...and the tools available to overcome them. I rely heavily on the camel-tools Python package developed at the NYU Abu Dhabi CAMeL ... |
HTML DOM Input Number type Property | The HTML DOM Input number type property is associated with the input element having its type=”number”. It will always return number for the input number element.
Following is the syntax for number type property −
numberObject.type
Let us look at an example for the HTML DOM Input Number type property −
Live Demo
<!DOCTY... | [
{
"code": null,
"e": 1224,
"s": 1062,
"text": "The HTML DOM Input number type property is associated with the input element having its type=”number”. It will always return number for the input number element."
},
{
"code": null,
"e": 1275,
"s": 1224,
"text": "Following is the syn... |
Use MLflow to better track ML experiments | Towards Data Science | We all know how painful keeping track of your machine learning experiments can be.
You train a bunch of models of different flavours: Random Forests, XGBoost, Neural Networks...
For each model, you explore a range of hyper-parameters. Then you compute the performance metrics on some test data.
Sometimes you change the ... | [
{
"code": null,
"e": 255,
"s": 172,
"text": "We all know how painful keeping track of your machine learning experiments can be."
},
{
"code": null,
"e": 350,
"s": 255,
"text": "You train a bunch of models of different flavours: Random Forests, XGBoost, Neural Networks..."
},
... |
HTML - <script> Tag | The HTML <script> tag is used for declaring a script (such as JavaScript) within your HTML document.
<!DOCTYPE html>
<html>
<head>
<title>HTML script Tag</title>
</head>
<body>
<script type = "text/JavaScript">
document.write("You're visiting tutorialspoint!")
</script>
</body>
... | [
{
"code": null,
"e": 2475,
"s": 2374,
"text": "The HTML <script> tag is used for declaring a script (such as JavaScript) within your HTML document."
},
{
"code": null,
"e": 2704,
"s": 2475,
"text": "<!DOCTYPE html>\n<html>\n\n <head>\n <title>HTML script Tag</title>\n </... |
PHP | popen( ) Function | 04 Jun, 2018
The popen() function used to open a pipe to the program specified by the user using the command parameter. It returns a file pointer which is identical to that returned by fopen(), but it is unidirectional in nature i.e it can be only used for reading or writing. The popen() pointer can be used with fgets(... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Jun, 2018"
},
{
"code": null,
"e": 591,
"s": 28,
"text": "The popen() function used to open a pipe to the program specified by the user using the command parameter. It returns a file pointer which is identical to that returned by fop... |
Solving Linear Regression in Python | 16 Jul, 2020
Linear regression is a common method to model the relationship between a dependent variable and one or more independent variables. Linear models are developed using the parameters which are estimated from the data. Linear regression is useful in prediction and forecasting where a predictive model is fit to... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Jul, 2020"
},
{
"code": null,
"e": 536,
"s": 54,
"text": "Linear regression is a common method to model the relationship between a dependent variable and one or more independent variables. Linear models are developed using the param... |
How to use Avatar Component in ReactJS? | 05 Mar, 2021
Avatars are found throughout material design with uses in everything from tables to dialog menus. Material UI for React has this component available for us, and it is very easy to integrate. We can use the Avatar Component in ReactJS using the following approach.
Creating React Application And Installing M... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Mar, 2021"
},
{
"code": null,
"e": 292,
"s": 28,
"text": "Avatars are found throughout material design with uses in everything from tables to dialog menus. Material UI for React has this component available for us, and it is very eas... |
Python | Visualize graphs generated in NetworkX using Matplotlib | 14 Aug, 2021
Prerequisites: Generating Graph using Network X, Matplotlib IntroIn this article, we will be discussing how to plot a graph generated by NetworkX in Python using Matplotlib. NetworkX is not a graph visualizing package but basic drawing with Matplotlib is included in the software package.
Step 1 : Import ne... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Aug, 2021"
},
{
"code": null,
"e": 317,
"s": 28,
"text": "Prerequisites: Generating Graph using Network X, Matplotlib IntroIn this article, we will be discussing how to plot a graph generated by NetworkX in Python using Matplotlib. N... |
SQL Trigger | Book Management Database | 01 Feb, 2019
Prerequisite – SQL Trigger | Student DatabaseFor example, given Library Book Management database schema with Student database schema. In these databases, if any student borrows a book from library then the count of that specified book should be decremented. To do so,
Suppose the schema with some data,
mysq... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 320,
"s": 52,
"text": "Prerequisite – SQL Trigger | Student DatabaseFor example, given Library Book Management database schema with Student database schema. In these databases, if any student borro... |
Python | Convert mixed data types tuple list to string list | 29 Nov, 2019
Sometimes, while working with records, we can have a problem in which we need to perform type conversion of all records into a specific format to string. This kind of problem can occur in many domains. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using list comprehension + tu... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Nov, 2019"
},
{
"code": null,
"e": 318,
"s": 52,
"text": "Sometimes, while working with records, we can have a problem in which we need to perform type conversion of all records into a specific format to string. This kind of problem... |
ES6 | Classes | 15 Feb, 2022
There are three concepts in Object-Oriented Programming Object, Class and Methods. The ES6 JavaScript supports the Object-Oriented programming components.
Object: A real-time object entity means the presentation of any entity in real-time.
Class: It is the before the plan of creating any objects which ar... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Feb, 2022"
},
{
"code": null,
"e": 211,
"s": 54,
"text": "There are three concepts in Object-Oriented Programming Object, Class and Methods. The ES6 JavaScript supports the Object-Oriented programming components. "
},
{
"co... |
Java Program to Rename a File | 09 Nov, 2020
Changing the name of the file is known as Renaming the file. Rename operation is possible using renameTo() method belongs to the File class in java.
A. renameTo() Method
The renameTo() method is used to rename the abstract pathname of a file to a given pathname. The method returns a boolean value i.e. retu... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n09 Nov, 2020"
},
{
"code": null,
"e": 203,
"s": 54,
"text": "Changing the name of the file is known as Renaming the file. Rename operation is possible using renameTo() method belongs to the File class in java."
},
{
"code": nul... |
Package getImplementationVersion() method in Java with Examples | 25 Jan, 2022
The getImplementationVersion() method of java.lang.Package class is used to get the version of the implementation of this package. The method returns the implementation version of the package as a String.Syntax:
public String getImplementationVersion()
Parameter: This method does not accept any parameter... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jan, 2022"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "The getImplementationVersion() method of java.lang.Package class is used to get the version of the implementation of this package. The method returns the implementation versio... |
Local Classes in C++ | 16 Nov, 2021
A class declared inside a function becomes local to that function and is called Local Class in C++.
A local class name can only be used locally i.e., inside the function and not outside it.
The methods of a local class must be defined inside it only.
A local class can have static functions but, not static ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Nov, 2021"
},
{
"code": null,
"e": 154,
"s": 54,
"text": "A class declared inside a function becomes local to that function and is called Local Class in C++."
},
{
"code": null,
"e": 244,
"s": 154,
"text": "A loc... |
Number of common tangents between two circles if their centers and radius is given | 30 May, 2022
Given two circles with a given radius and centers. The task is to find the number of common tangents between these circles.Examples:
Input: x1 = -10, y1 = 8, x2 = 14, y2 = -24, r1 = 30, r2 = 10
Output: 3
Input: x1 = 40, y1 = 8, x2 = 14, y2 = 54, r1 = 39, r2 = 51
Output: 2
Approach:
First of all we wil... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 May, 2022"
},
{
"code": null,
"e": 163,
"s": 28,
"text": "Given two circles with a given radius and centers. The task is to find the number of common tangents between these circles.Examples: "
},
{
"code": null,
"e": 304... |
Luhn algorithm | 26 May, 2021
The Luhn algorithm, also known as the modulus 10 or mod 10 algorithm, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, Canadian Social Insurance Numbers. The LUHN formula was created in the late 1960s by a group of mathematicians.... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 742,
"s": 54,
"text": "The Luhn algorithm, also known as the modulus 10 or mod 10 algorithm, is a simple checksum formula used to validate a variety of identification numbers, such as credit card n... |
Pattern searching | Practice | GeeksforGeeks | Given a string str and a pattern pat. You need to check whether pattern is present or not in the given string.
Input Format: The input line contains T, denoting the number of testcases. Each testcase contains two lines. First line contains string str. Second line contains patter text.
Output format: For each testcase ... | [
{
"code": null,
"e": 338,
"s": 226,
"text": "Given a string str and a pattern pat. You need to check whether pattern is present or not in the given string. "
},
{
"code": null,
"e": 513,
"s": 338,
"text": "Input Format: The input line contains T, denoting the number of testcases.... |
Difference Between Traits and Abstract Classes in Scala - GeeksforGeeks | 13 Feb, 2019
In Scala, an abstract class is constructed using the abstract keyword. It contains both abstract and non-abstract methods and cannot support multiple inheritances.Example:
// Scala program to illustrate how to // create an abstract class // Abstract classabstract class Abstclass{ // Abstract and ... | [
{
"code": null,
"e": 23738,
"s": 23710,
"text": "\n13 Feb, 2019"
},
{
"code": null,
"e": 23910,
"s": 23738,
"text": "In Scala, an abstract class is constructed using the abstract keyword. It contains both abstract and non-abstract methods and cannot support multiple inheritances.... |
How to delete all the tags of the azure resource using PowerShell? | To delete all the tags of the Azure VM using PowerShell, we need to use the Remove-AZTag command.
To delete the azure resource tags, we need its resource ID but before that, it is always better to take azure resource tags backup. You can search the question on the TutorialPoints site or google,
Site − TutorialsPoint.co... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "To delete all the tags of the Azure VM using PowerShell, we need to use the Remove-AZTag command."
},
{
"code": null,
"e": 1358,
"s": 1160,
"text": "To delete the azure resource tags, we need its resource ID but before that, it is al... |
How to Handle Imbalance Data and Small Training Sets in ML | by Ege Hosgungor | Towards Data Science | Imbalanced data refers to where the number of observations per class is not equally distributed and often there is a major class that has a much larger percentage of the dataset and minor classes which doesn’t have enough examples.
Small Training Sets also suffer from not having enough examples. Both of the problems ar... | [
{
"code": null,
"e": 404,
"s": 172,
"text": "Imbalanced data refers to where the number of observations per class is not equally distributed and often there is a major class that has a much larger percentage of the dataset and minor classes which doesn’t have enough examples."
},
{
"code": n... |
How to Install Flutter For Web? - GeeksforGeeks | 13 Oct, 2021
Flutter is Google’s platform-independent technology for creating applications that can run on multiple platforms. This open-source UI software development kit allows you to reuse most of your code across platforms, which can significantly lower your budget costs.
Cross-Platform DevelopmentHot ReloadRich Wi... | [
{
"code": null,
"e": 24561,
"s": 24533,
"text": "\n13 Oct, 2021"
},
{
"code": null,
"e": 24825,
"s": 24561,
"text": "Flutter is Google’s platform-independent technology for creating applications that can run on multiple platforms. This open-source UI software development kit allo... |
Check if a given array is sorted in Spiral manner or not - GeeksforGeeks | 22 Apr, 2021
Given an array arr[] of size N, the task is to check if the array is spirally sorted or not. If found to be true, then print “YES”. Otherwise, print “NO”.
Note: An array is spirally sorted if arr[0] ≤ arr[N – 1] ≤ arr[1] ≤ arr[N – 2] ...
Examples:
Input: arr[] = { 1, 10, 14, 20, 18, 12, 5 } Output: YES Exp... | [
{
"code": null,
"e": 25081,
"s": 25053,
"text": "\n22 Apr, 2021"
},
{
"code": null,
"e": 25236,
"s": 25081,
"text": "Given an array arr[] of size N, the task is to check if the array is spirally sorted or not. If found to be true, then print “YES”. Otherwise, print “NO”."
},
... |
Collections unmodifiableSet() method in Java with Examples - GeeksforGeeks | 08 Oct, 2018
The unmodifiableSet() method of java.util.Collections class is used to return an unmodifiable view of the specified set. This method allows modules to provide users with “read-only” access to internal sets. Query operations on the returned set “read through” to the specified set, and attempts to modify the... | [
{
"code": null,
"e": 26107,
"s": 26079,
"text": "\n08 Oct, 2018"
},
{
"code": null,
"e": 26509,
"s": 26107,
"text": "The unmodifiableSet() method of java.util.Collections class is used to return an unmodifiable view of the specified set. This method allows modules to provide user... |
Number of horizontal or vertical line segments to connect 3 points - GeeksforGeeks | 24 Nov, 2021
Given three points on the x-y coordinate plane. You need to find the no. of line segments formed by making a polyline passing through these points. (Line segment can be vertically or horizontally aligned to the coordinate axis) Examples :
Input : A = {-1, -1}, B = {-1, 3}, C = {4, 3}
Output : 2
Expant... | [
{
"code": null,
"e": 26411,
"s": 26383,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 26652,
"s": 26411,
"text": "Given three points on the x-y coordinate plane. You need to find the no. of line segments formed by making a polyline passing through these points. (Line segment c... |
Amazon Interview Experience for SDE-1 - GeeksforGeeks | 20 Aug, 2021
Hi All, Initially, I have found the Amazon SDE job requirement on Linked In then I applied on the Amazon job portal for the same. I got an email for round one after two weeks.
Round 1: It was conducted online and needs to implement the coding on the HackerRank platform. There are 3 sections of the assessme... | [
{
"code": null,
"e": 27006,
"s": 26978,
"text": "\n20 Aug, 2021"
},
{
"code": null,
"e": 27182,
"s": 27006,
"text": "Hi All, Initially, I have found the Amazon SDE job requirement on Linked In then I applied on the Amazon job portal for the same. I got an email for round one afte... |
Find n'th number in a number system with only 3 and 4 - GeeksforGeeks | 16 Apr, 2021
Given a number system with only 3 and 4. Find the nth number in the number system. First few numbers in the number system are: 3, 4, 33, 34, 43, 44, 333, 334, 343, 344, 433, 434, 443, 444, 3333, 3334, 3343, 3344, 3433, 3434, 3443, 3444, ...Source: Zoho Interview
We can generate all numbers with i digits us... | [
{
"code": null,
"e": 26371,
"s": 26343,
"text": "\n16 Apr, 2021"
},
{
"code": null,
"e": 26634,
"s": 26371,
"text": "Given a number system with only 3 and 4. Find the nth number in the number system. First few numbers in the number system are: 3, 4, 33, 34, 43, 44, 333, 334, 343,... |
How to delete only one row in CSV with Python? - GeeksforGeeks | 24 Jan, 2021
Prerequisites: pandas
One can open and edit CSV files in Python via Pandas library. While editing the file one might want to remove the entire row in the file. Following are some different approaches to do the same:
Data set in use: iris.csv dataset
This method is only good for removing the first or the l... | [
{
"code": null,
"e": 24413,
"s": 24385,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 24435,
"s": 24413,
"text": "Prerequisites: pandas"
},
{
"code": null,
"e": 24629,
"s": 24435,
"text": "One can open and edit CSV files in Python via Pandas library. While ... |
Javascript | JSON PHP - GeeksforGeeks | 20 Oct, 2021
JSON stands for the JavaScript Object Notation. It is used to exchanging and storing the data from the web-server. JSON uses the object notation of JavaScript. JavaScript objects can be converted into the JSON and receive JSON format text into the JavaScript objects. Converting the JavaScript object into t... | [
{
"code": null,
"e": 25454,
"s": 25426,
"text": "\n20 Oct, 2021"
},
{
"code": null,
"e": 25809,
"s": 25454,
"text": "JSON stands for the JavaScript Object Notation. It is used to exchanging and storing the data from the web-server. JSON uses the object notation of JavaScript. Jav... |
Fade In Up Animation Effect with CSS | To implement Fade In Up Animation Effect on an image with CSS, you can try to run the following code −
Live Demo
<html>
<head>
<style>
.animated {
background-image: url(/css/images/logo.png);
background-repeat: no-repeat;
background-position: left top;
... | [
{
"code": null,
"e": 1165,
"s": 1062,
"text": "To implement Fade In Up Animation Effect on an image with CSS, you can try to run the following code −"
},
{
"code": null,
"e": 1175,
"s": 1165,
"text": "Live Demo"
},
{
"code": null,
"e": 2217,
"s": 1175,
"text":... |
How to create three-dimensional arrays of different sizes in R? | A three-dimensional array can have matrices of different size and they are not necessarily to be square or rectangular. Also, all the elements in an array are of same data type. To create a three-dimensional array of different size we would need to use the proper number of rows and columns within the array function.
L... | [
{
"code": null,
"e": 1380,
"s": 1062,
"text": "A three-dimensional array can have matrices of different size and they are not necessarily to be square or rectangular. Also, all the elements in an array are of same data type. To create a three-dimensional array of different size we would need to use ... |
Python - Pretty Print Numbers | The python module pprint is used for giving proper printing formats to various data objects in python. Those data objects can represent a dictionary data type or even a data object containing the JSON data. In the below example we see how that data looks before applying the pprint module and after applying it.
import ... | [
{
"code": null,
"e": 2900,
"s": 2587,
"text": "The python module pprint is used for giving proper printing formats to various data objects in python. Those data objects can represent a dictionary data type or even a data object containing the JSON data. In the below example we see how that data loo... |
What are table rowspan and colspan in HTML? | The rowspan and colspan are <td> tag attributes. These are used to specify the number of rows or columns a cell should span. The rowspan attribute is for rows as well as the colspan attribute is for columns.
These attributes have numeric values, for example, colspan=3 will span three columns.You can try to run the foll... | [
{
"code": null,
"e": 1270,
"s": 1062,
"text": "The rowspan and colspan are <td> tag attributes. These are used to specify the number of rows or columns a cell should span. The rowspan attribute is for rows as well as the colspan attribute is for columns."
},
{
"code": null,
"e": 1448,
... |
MongoDB - Regex - GeeksforGeeks | 05 Feb, 2021
MongoDB provides the functionality to search a pattern in a string during a query by writing a regular expression. A regular expression is a generalized way to match patterns with sequences of characters. MongoDB uses Perl compatible regular expressions(PCRE) version 8.42 along with UTF-8 support. In Mongo... | [
{
"code": null,
"e": 23873,
"s": 23845,
"text": "\n05 Feb, 2021"
},
{
"code": null,
"e": 24234,
"s": 23873,
"text": "MongoDB provides the functionality to search a pattern in a string during a query by writing a regular expression. A regular expression is a generalized way to mat... |
Print the given pattern recursively | Here, as per the given problem pattern needs to be displayed using recursive approach.
Recursive function is the one that calls itself n number of times. There can be ‘n’ number of recursive function in a program. The problem working with recursive function is their complexity.
START
Step 1 -> function int printpattern... | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "Here, as per the given problem pattern needs to be displayed using recursive approach."
},
{
"code": null,
"e": 1341,
"s": 1149,
"text": "Recursive function is the one that calls itself n number of times. There can be ‘n’ number of r... |
Entity Framework - Nested Entity Types | Prior to Entity Framework 6, Entity Framework didn't recognize entities or complex types that were nested within other entities or complex types. When Entity Framework generated the model, the nested types just disappeared.
Let’s take a look at a simple example in which we have our basic model with three entities Stude... | [
{
"code": null,
"e": 3256,
"s": 3032,
"text": "Prior to Entity Framework 6, Entity Framework didn't recognize entities or complex types that were nested within other entities or complex types. When Entity Framework generated the model, the nested types just disappeared."
},
{
"code": null,
... |
C Program for Two Pointers Technique - GeeksforGeeks | 13 Jan, 2022
Two pointers is really an easy and effective technique which is typically used for searching pairs in a sorted array.Given a sorted array A (sorted in ascending order), having N integers, find if there exists any pair of elements (A[i], A[j]) such that their sum is equal to X.
Let’s see the naive solution.... | [
{
"code": null,
"e": 24405,
"s": 24377,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 24683,
"s": 24405,
"text": "Two pointers is really an easy and effective technique which is typically used for searching pairs in a sorted array.Given a sorted array A (sorted in ascending or... |
Manipulating machine learning results with random state | by Ler Wei Han | Towards Data Science | Tuning hyperparameters, performing the right kind of feature engineering, feature selection etc are all part of the data science flow for building your machine learning model. Hours are spent tweaking and modifying each part of the process to improve the outcome of our model.
However, there is one argument nested withi... | [
{
"code": null,
"e": 448,
"s": 171,
"text": "Tuning hyperparameters, performing the right kind of feature engineering, feature selection etc are all part of the data science flow for building your machine learning model. Hours are spent tweaking and modifying each part of the process to improve the ... |
CSS | @page rule - GeeksforGeeks | 24 Jan, 2022
The CSS @page rule defines the dimension of the page which is gonna be print. There are few important things should be under control when you want to print a web page those are listed below:
The page size, orientation, margins, border, and padding.
Page breaks.
Headers and footers.
Page counters.
Orphans... | [
{
"code": null,
"e": 24916,
"s": 24888,
"text": "\n24 Jan, 2022"
},
{
"code": null,
"e": 25109,
"s": 24916,
"text": "The CSS @page rule defines the dimension of the page which is gonna be print. There are few important things should be under control when you want to print a web p... |
Python OpenCV - namedWindow() Function - GeeksforGeeks | 25 Apr, 2022
Python OpenCV namedWindow() method is used to create a window with a suitable name and size to display images and videos on the screen. The image by default is displayed in its original size, so we may need to resize the image for it to fit our screen.
Created windows are referred by their names and can al... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n25 Apr, 2022"
},
{
"code": null,
"e": 24465,
"s": 24212,
"text": "Python OpenCV namedWindow() method is used to create a window with a suitable name and size to display images and videos on the screen. The image by default is dis... |
Building a Simple Text Recognizer in Python | by Behic Guven | Towards Data Science | In this post, I will show you how to extract text from an image using Python. This process is simply called “Text Recognition” or “Text Detection”. So basically as you can understand from the title, we will build a simple python program that will extract text for us. After the extraction, the program will also export t... | [
{
"code": null,
"e": 571,
"s": 172,
"text": "In this post, I will show you how to extract text from an image using Python. This process is simply called “Text Recognition” or “Text Detection”. So basically as you can understand from the title, we will build a simple python program that will extract ... |
float() in Python | 17 Sep, 2021
Python float() function is used to return a floating-point number from a number or a string.
Syntax: float(x)
The method only accepts one parameter and that is also optional to use. Let us look at the various types of argument, the method accepts:
A number: Can be an integer or a floating-point number.
... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n17 Sep, 2021"
},
{
"code": null,
"e": 147,
"s": 53,
"text": "Python float() function is used to return a floating-point number from a number or a string. "
},
{
"code": null,
"e": 165,
"s": 147,
"text": "Syntax: fl... |
Visitor Method – Python Design Patterns | 04 Jan, 2022
Visitor Method is a Behavioral Design Pattern which allows us to separate the algorithm from an object structure on which it operates. It helps us to add new features to an existing class hierarchy dynamically without changing it. All the behavioral patterns proved as the best methods to handle the communi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Jan, 2022"
},
{
"code": null,
"e": 502,
"s": 28,
"text": "Visitor Method is a Behavioral Design Pattern which allows us to separate the algorithm from an object structure on which it operates. It helps us to add new features to an ex... |
Find the largest multiple of 3 from array of digits | Set 2 (In O(n) time and O(1) space) | 01 Dec, 2021
Given an array of digits (contain elements from 0 to 9). Find the largest number that can be made from some or all digits of array and is divisible by 3. The same element may appear multiple times in the array, but each element in the array may only be used once. Examples:
Input : arr[] = {5, 4, 3, 1, 1}... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Dec, 2021"
},
{
"code": null,
"e": 328,
"s": 52,
"text": "Given an array of digits (contain elements from 0 to 9). Find the largest number that can be made from some or all digits of array and is divisible by 3. The same element may... |
How to Create Section Counter using HTML and CSS ? | 09 Feb, 2022
Section counter is like a card and is useful for webpage footer. It contains details about the company. In this article, we will introduce some predicted data about some companies. We divide this article into two sections, in the first section we will create the normal structure then we will work on the de... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Feb, 2022"
},
{
"code": null,
"e": 566,
"s": 28,
"text": "Section counter is like a card and is useful for webpage footer. It contains details about the company. In this article, we will introduce some predicted data about some compa... |
Zoho Interview | Set 1 (On-Campus) | 11 Aug, 2014
First Round: (Aptitude written round)This round consisted of two sections “Reasoning Aptitude” and “Technical Aptitude”. Reasoning section was more like puzzles so do concentrate on logical puzzles. Technical Aptitude dealt more with “operator precedence”, “pointers”, “iterations”, “dynamic memory allocati... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Aug, 2014"
},
{
"code": null,
"e": 367,
"s": 54,
"text": "First Round: (Aptitude written round)This round consisted of two sections “Reasoning Aptitude” and “Technical Aptitude”. Reasoning section was more like puzzles so do concent... |
Java Object Creation of Inherited Class | 18 Apr, 2022
In Java, being an object-oriented language, objects inside a class is created with help of constructors. When it comes down to inheritance in Java we are basically dealing with deriving a class from another class. Now let us understand inheritance a step deeper so when a particular class inherits a class w... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Apr, 2022"
},
{
"code": null,
"e": 450,
"s": 52,
"text": "In Java, being an object-oriented language, objects inside a class is created with help of constructors. When it comes down to inheritance in Java we are basically dealing wi... |
Validation Based Protocol in DBMS | 25 Nov, 2020
Validation Based Protocol is also called Optimistic Concurrency Control Technique. This protocol is used in DBMS (Database Management System) for avoiding concurrency in transactions. It is called optimistic because of the assumption it makes, i.e. very less interference occurs, therefore, there is no need... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Nov, 2020"
},
{
"code": null,
"e": 409,
"s": 52,
"text": "Validation Based Protocol is also called Optimistic Concurrency Control Technique. This protocol is used in DBMS (Database Management System) for avoiding concurrency in tran... |
How to Solve Histogram Equalization Numerical Problem in MATLAB? | 22 Nov, 2021
Histogram Equalization is a mathematical technique to widen the dynamic range of the histogram. Sometimes the histogram is spanned over a short range, by equalization the span of the histogram is widened. In digital image processing, the contrast of an image is enhanced using this very technique.
It is us... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 353,
"s": 54,
"text": "Histogram Equalization is a mathematical technique to widen the dynamic range of the histogram. Sometimes the histogram is spanned over a short range, by equalization the spa... |
FastText Working and Implementation | 26 Nov, 2020
What is FastText?
FastText is an open-source, free library from Facebook AI Research(FAIR) for learning word embeddings and word classifications. This model allows creating unsupervised learning or supervised learning algorithm for obtaining vector representations for words. It also evaluates these models.... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 46,
"s": 28,
"text": "What is FastText?"
},
{
"code": null,
"e": 386,
"s": 46,
"text": "FastText is an open-source, free library from Facebook AI Research(FAIR) for learning word... |
Tensorflow.js tf.data.zip() Function | 09 Mar, 2022
Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. It also helps the developers to develop ML models in JavaScript language and can use ML directly in the browser or in Node.js.
The tf.data.zi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Mar, 2022"
},
{
"code": null,
"e": 321,
"s": 28,
"text": "Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. It also h... |
How to Install PIP on Windows ? | 07 Jul, 2022
Prerequisite: Python Language Introduction
Before we start with how to install pip for Python on Windows, let’s first go through the basic introduction to Python. Python is a widely-used general-purpose, high-level programming language. Python is a programming language that lets you work quickly and integr... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 97,
"s": 54,
"text": "Prerequisite: Python Language Introduction"
},
{
"code": null,
"e": 392,
"s": 97,
"text": "Before we start with how to install pip for Python on Windows, l... |
Fizz Buzz Implementation | Set 2 | 01 Jul, 2021
Given an integer N, the task is to print all the numbers from 1 to N replacing the multiples of 3, 5 and both 3 and 5 by “Fizz”, “Buzz” and “Fizz Buzz” respectively.
Examples:
Input: N = 5Output: 1, 2, Fizz, 4, Buzz
Input: N = 15Output: 1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14Fizz Buzz... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Jul, 2021"
},
{
"code": null,
"e": 218,
"s": 52,
"text": "Given an integer N, the task is to print all the numbers from 1 to N replacing the multiples of 3, 5 and both 3 and 5 by “Fizz”, “Buzz” and “Fizz Buzz” respectively."
},
... |
SGML Full Form - GeeksforGeeks | 16 Dec, 2021
SGML stands for Standard Generalized Markup Language. It can be defined as the standard for defining generalized markup language for documents.
It was developed and designed by the International Organization for Standards i.e ISO. HTML was theoretically an example of an SGML-based language until HTML 5, w... | [
{
"code": null,
"e": 24828,
"s": 24800,
"text": "\n16 Dec, 2021"
},
{
"code": null,
"e": 24973,
"s": 24828,
"text": "SGML stands for Standard Generalized Markup Language. It can be defined as the standard for defining generalized markup language for documents. "
},
{
"cod... |
How to create a client-side image-map in HTML5 ? - GeeksforGeeks | 20 Oct, 2020
In this article, we will create a client-side image map by using an <img> tag. The <img> tag is used to add images on a webpage. This tag is an empty tag which means it can contain only a list of attributes and it has no closing tag.
Syntax:
<img src="url" alt="some_text" usemap="#mapname">
Example:
<!DOCT... | [
{
"code": null,
"e": 24992,
"s": 24964,
"text": "\n20 Oct, 2020"
},
{
"code": null,
"e": 25226,
"s": 24992,
"text": "In this article, we will create a client-side image map by using an <img> tag. The <img> tag is used to add images on a webpage. This tag is an empty tag which mea... |
How to change the PyGame icon? - GeeksforGeeks | 30 Apr, 2021
While building a video game, do you wish to set your image or company’s logo as the icon for a game? If yes, then you can do it easily by using set_icon() function after declaring the image you wish to set as an icon. Read the article given below to know more in detail.
Syntax:
pygame_icon = pygame.image.... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 24484,
"s": 24212,
"text": "While building a video game, do you wish to set your image or company’s logo as the icon for a game? If yes, then you can do it easily by using set_icon() function... |
Number of permutations such that sum of elements at odd index and even index are equal - GeeksforGeeks | 04 Dec, 2021
Given N numbers, find the number of permutations in which the sum of elements at odd index and sum of elements at even index are equal. Examples:
Input: 1 2 3 Output: 2 The permutations are: 1 3 2 sum at odd index = 1+2 = 3, sum at even index = 3 2 3 1 sum at odd index = 2+1 = 3, sum at even index = 3Input... | [
{
"code": null,
"e": 26900,
"s": 26872,
"text": "\n04 Dec, 2021"
},
{
"code": null,
"e": 27046,
"s": 26900,
"text": "Given N numbers, find the number of permutations in which the sum of elements at odd index and sum of elements at even index are equal. Examples:"
},
{
"co... |
Accuracy Visualisation: Supervised Machine Learning Classification Algorithms | by Kaushik Choudhury | Towards Data Science | Measuring the prediction accuracy of any regression or classification algorithm is vital in different stages during modelling and also when the model is live in production.
We have several ways to measure the accuracy of classification algorithms. In the Scikit-learn package, we have several scores like recall score, a... | [
{
"code": null,
"e": 345,
"s": 172,
"text": "Measuring the prediction accuracy of any regression or classification algorithm is vital in different stages during modelling and also when the model is live in production."
},
{
"code": null,
"e": 821,
"s": 345,
"text": "We have sever... |
CSS :focus Selector - GeeksforGeeks | 21 Oct, 2021
The :focus CSS pseudo-class Selector is used to target the focused element ie., it selects an element that is currently focused by the user. This selector works on user input elements, generally used in forms, and is triggered as soon as the user clicks on it or taps on an element, or selects any keyboard ... | [
{
"code": null,
"e": 24425,
"s": 24397,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 24740,
"s": 24425,
"text": "The :focus CSS pseudo-class Selector is used to target the focused element ie., it selects an element that is currently focused by the user. This selector works on... |
10 Surprisingly Useful Base Python Functions | by Emmett Boudreau | Towards Data Science | Those that work in Python often consider that maybe Python isn’t the star of the show here — but instead its brilliant ecosystem. Often whenever we are working with Python applications, we are working with a lot of dependencies. Python on its own isn’t particularly good at anything, but it is instead its wonderful pack... | [
{
"code": null,
"e": 539,
"s": 172,
"text": "Those that work in Python often consider that maybe Python isn’t the star of the show here — but instead its brilliant ecosystem. Often whenever we are working with Python applications, we are working with a lot of dependencies. Python on its own isn’t pa... |
Fetching top news using News API - GeeksforGeeks | 20 Nov, 2021
News API is a simple JSON-based REST API for searching and retrieving news articles from all over the web. Using this, one can fetch the top stories running on a news website or can search top news on a specific topic (or keyword).
News can be retrieved based on some criteria. Say the topic (keyword) to be... | [
{
"code": null,
"e": 23969,
"s": 23941,
"text": "\n20 Nov, 2021"
},
{
"code": null,
"e": 24201,
"s": 23969,
"text": "News API is a simple JSON-based REST API for searching and retrieving news articles from all over the web. Using this, one can fetch the top stories running on a n... |
AngularJS - First Application | Before creating actual Hello World ! application using AngularJS, let us see the parts of a AngularJS application. An AngularJS application consists of following three important parts −
ng-app − This directive defines and links an AngularJS application to HTML.
ng-app − This directive defines and links an AngularJS app... | [
{
"code": null,
"e": 2885,
"s": 2699,
"text": "Before creating actual Hello World ! application using AngularJS, let us see the parts of a AngularJS application. An AngularJS application consists of following three important parts −"
},
{
"code": null,
"e": 2961,
"s": 2885,
"text... |
How to remove an element from a list by index in Python? | There are two options to remove an element by its index in list. Using del statement, and using pop() method.
The del statement needs index of the element to remove.
>>> L1=[11,22,33,44,55,66,77]
>>> del L1[2]
>>> L1
[11, 22, 44, 55, 66, 77]
The pop() method of built-in list class requires index as argument. The method... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "There are two options to remove an element by its index in list. Using del statement, and using pop() method."
},
{
"code": null,
"e": 1228,
"s": 1172,
"text": "The del statement needs index of the element to remove."
},
{
"c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.