title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
WSDL - <binding> Element | The <binding> element provides specific details on how a portType operation will actually be transmitted over the wire.
The bindings can be made available via multiple transports including HTTP GET, HTTP POST, or SOAP.
The bindings can be made available via multiple transports including HTTP GET, HTTP POST, or SOAP.
Th... | [
{
"code": null,
"e": 2058,
"s": 1938,
"text": "The <binding> element provides specific details on how a portType operation will actually be transmitted over the wire."
},
{
"code": null,
"e": 2157,
"s": 2058,
"text": "The bindings can be made available via multiple transports inc... |
Number of groups formed in a graph of friends | 31 Aug, 2021
Given n friends and their friendship relations, find the total number of groups that exist. And the number of ways of new groups that can be formed consisting of people from every existing group. If no relation is given for any person then that person has no group and singularly forms a group. If a is a fr... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 424,
"s": 54,
"text": "Given n friends and their friendship relations, find the total number of groups that exist. And the number of ways of new groups that can be formed consisting of people from ... |
How to round elements of the NumPy array to the nearest integer? | 08 Jun, 2022
Prerequisites: Python NumPy
In this article, let’s discuss how to round elements of the NumPy array to the nearest integer. numpy.rint() function of Python that can convert the elements of an array to the nearest integer.
Syntax: numpy.rint(x, /, out=None, *, where=True, casting=’same_kind’, order=’K’, dty... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jun, 2022"
},
{
"code": null,
"e": 56,
"s": 28,
"text": "Prerequisites: Python NumPy"
},
{
"code": null,
"e": 250,
"s": 56,
"text": "In this article, let’s discuss how to round elements of the NumPy array to the n... |
Smallest number to make Array sum at most K by dividing each element | 05 Nov, 2021
Given an array arr[] of size N and a number K, the task is to find the smallest number M such that the sum of the array becomes lesser than or equal to the number K when every element of that array is divided by the number M.Note: Each result of the division is rounded to the nearest integer greater than o... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 420,
"s": 54,
"text": "Given an array arr[] of size N and a number K, the task is to find the smallest number M such that the sum of the array becomes lesser than or equal to the number K when ever... |
How to run two async functions forever – Python | 17 May, 2021
Asynchronous programming is a type of programming in which we can execute more than one task without blocking the Main task (function). In Python, there are many ways to execute more than one function concurrently, one of the ways is by using asyncio. Async programming allows you to write concurrent code t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 May, 2021"
},
{
"code": null,
"e": 388,
"s": 52,
"text": "Asynchronous programming is a type of programming in which we can execute more than one task without blocking the Main task (function). In Python, there are many ways to exec... |
GATE | GATE-CS-2015 (Set 1) | Question 19 | 28 Jun, 2021
The following two functions P1 and P2 that share a variable B with an initial value of 2 execute concurrently.
P1()
{
C = B – 1;
B = 2*C;
}
P2()
{
D = 2 * B;
B = D - 1;
}
The number of distinct values that B can possibly take after the execution is(A) 3(B) 2(C) 5(D) 4Answer: (A)Explanati... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 139,
"s": 28,
"text": "The following two functions P1 and P2 that share a variable B with an initial value of 2 execute concurrently."
},
{
"code": null,
"e": 218,
"s": 139,
"tex... |
GATE | GATE-CS-2015 (Set 2) | Question 65 | 28 Jun, 2021
A Computer system implements 8 kilobyte pages and a 32-bit physical address space. Each page table entry contains a valid bit, a dirty bit three permission bits, and the translation. If the maximum size of the page table of a process is 24 megabytes, the length of the virtual address supported by the syste... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 432,
"s": 52,
"text": "A Computer system implements 8 kilobyte pages and a 32-bit physical address space. Each page table entry contains a valid bit, a dirty bit three permission bits, and the tran... |
VB.Net - Continue Statement | The Continue statement causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating. It works somewhat like the Exit statement. Instead of forcing termination, it forces the next iteration of the loop to take place, skipping any code in between.
For the For...Next loop, Co... | [
{
"code": null,
"e": 2727,
"s": 2434,
"text": "The Continue statement causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating. It works somewhat like the Exit statement. Instead of forcing termination, it forces the next iteration of the loop to ta... |
Timers of 8051 | In Intel 8051, there are two 16-bit timer registers. These registers are known as Timer0 andTimer1. The timer registers can be used in two modes. These modes areTimer mode and the Counter mode. The only difference between these two modes is the source for incrementing the timer registers.
In the timer mode, the intern... | [
{
"code": null,
"e": 1478,
"s": 1187,
"text": "In Intel 8051, there are two 16-bit timer registers. These registers are known as Timer0 andTimer1. The timer registers can be used in two modes. These modes areTimer mode and the Counter mode. The only difference between these two modes is the source f... |
R - Histograms | A histogram represents the frequencies of values of a variable bucketed into ranges. Histogram is similar to bar chat but the difference is it groups the values into continuous ranges. Each bar in histogram represents the height of the number of values present in that range.
R creates histogram using hist() function. T... | [
{
"code": null,
"e": 2812,
"s": 2536,
"text": "A histogram represents the frequencies of values of a variable bucketed into ranges. Histogram is similar to bar chat but the difference is it groups the values into continuous ranges. Each bar in histogram represents the height of the number of values ... |
Boolean equals() method in Java with examples | 09 Oct, 2018
The equals() method of Boolean class is a built in method of Java which is used check equality of two Boolean object.
Syntax:
BooleanObject.equals(Object ob)
Parameter: It take a parameter ob of type Object as input which is the instance to be compared.
Return Type: The return type is boolean. It returns t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Oct, 2018"
},
{
"code": null,
"e": 146,
"s": 28,
"text": "The equals() method of Boolean class is a built in method of Java which is used check equality of two Boolean object."
},
{
"code": null,
"e": 154,
"s": 146,
... |
Java Program to Print a New Line in String | 06 Jun, 2021
Java is the most powerful programming language, by which we can perform many tasks and Java is an industry preferable language. So it is filled with a huge amount of features. Here we are going to discuss one of the best features of Java, that is how to print a new line in a string using Java.
Methods:
Th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 323,
"s": 28,
"text": "Java is the most powerful programming language, by which we can perform many tasks and Java is an industry preferable language. So it is filled with a huge amount of features.... |
Ways to convert string to dictionary | 30 May, 2022
Dictionary is an unordered collection in Python which store data values like a map i.e., key:value pair. In order to convert a String into a dictionary, the stored string must be in such a way that key:value pair can be generated from it. This article demonstrates several ways of converting a string into a... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 May, 2022"
},
{
"code": null,
"e": 692,
"s": 54,
"text": "Dictionary is an unordered collection in Python which store data values like a map i.e., key:value pair. In order to convert a String into a dictionary, the stored string mus... |
Commonly used file formats in Data Science | 04 Feb, 2022
What is a File Format File formats are designed to store specific types of information, such as CSV, XLSX etc. The file format also tells the computer how to display or process its content. Common file formats, such as CSV, XLSX, ZIP, TXT etc.If you see your future as a data scientist so you must understan... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Feb, 2022"
},
{
"code": null,
"e": 941,
"s": 52,
"text": "What is a File Format File formats are designed to store specific types of information, such as CSV, XLSX etc. The file format also tells the computer how to display or proce... |
JCL - EXEC Statement | Each JCL can be made of many job steps. Each job step can execute a program directly or can call a procedure, which in turn executes one or more programs (job steps). The statement, which holds the job step program/procedure information is the EXEC statement.
The purpose of the EXEC statement is to provide required inf... | [
{
"code": null,
"e": 2258,
"s": 1998,
"text": "Each JCL can be made of many job steps. Each job step can execute a program directly or can call a procedure, which in turn executes one or more programs (job steps). The statement, which holds the job step program/procedure information is the EXEC stat... |
PHP Check if two arrays contain same elements | 03 Dec, 2021
In this article, we will see how to compare the elements of arrays in PHP, & will know how to apply to get the result after comparison through the examples. In PHP, there are two types of arrays, Indexed array and Associative array. In an Indexed array, the array elements are index numerically starting fro... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Dec, 2021"
},
{
"code": null,
"e": 428,
"s": 28,
"text": "In this article, we will see how to compare the elements of arrays in PHP, & will know how to apply to get the result after comparison through the examples. In PHP, there are ... |
Horn Clauses in Deductive Databases | 01 Jul, 2020
Horn clause is clause (a disjunction of literals) with at most one positive, i.e. unnegated, literal. A clause with at most one positive (unnegated) literal is called a Horn Clause.
Deductive Database:A type of database which can make conclusions based on sets of well-defined rules, stored in database. RDB... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Jul, 2020"
},
{
"code": null,
"e": 210,
"s": 28,
"text": "Horn clause is clause (a disjunction of literals) with at most one positive, i.e. unnegated, literal. A clause with at most one positive (unnegated) literal is called a Horn C... |
Python | Pandas Series.plot() method | 17 Sep, 2019
With the help of Series.plot() method, we can get the plot of pandas series by using Series.plot() method.
Syntax : Series.plot()Return : Return the plot of series.
# import Series and matplotlibimport pandas as pdimport matplotlib.pyplot as plt # using Series.plot() methodgfg = pd.Series([0.1, 0.4, 0.16,... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Sep, 2019"
},
{
"code": null,
"e": 161,
"s": 54,
"text": "With the help of Series.plot() method, we can get the plot of pandas series by using Series.plot() method."
},
{
"code": null,
"e": 219,
"s": 161,
"text":... |
Check if the String ends with specified suffix in Golang | 26 Aug, 2019
In Go language, strings are different from other languages like Java, C++, Python, etc. It is a sequence of variable-width characters where each and every character is represented by one or more bytes using UTF-8 Encoding.In Go strings, you can check whether the string ends with the specified suffix or not... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Aug, 2019"
},
{
"code": null,
"e": 659,
"s": 28,
"text": "In Go language, strings are different from other languages like Java, C++, Python, etc. It is a sequence of variable-width characters where each and every character is represe... |
Find the first, second and third minimum elements in an array | 12 Jun, 2022
Find the first, second and third minimum elements in an array in O(n).Examples:
Input : 9 4 12 6
Output : First min = 4
Second min = 6
Third min = 9
Input : 4 9 1 32 12
Output : First min = 1
Second min = 4
Third min = 9
First approach : First we can use normal meth... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n12 Jun, 2022"
},
{
"code": null,
"e": 135,
"s": 53,
"text": "Find the first, second and third minimum elements in an array in O(n).Examples: "
},
{
"code": null,
"e": 313,
"s": 135,
"text": "Input : 9 4 12 6\nOutpu... |
KeyFactory getInstance() method in Java with Examples | 09 Jun, 2020
The getInstance() method of java.security.KeyFactory class returns a object of KeyFactory type that applys the assigned KeyFactory algorithm.
Syntax:
public static KeyFactory
getInstance(String algorithm)
throws NoSuchAlgorithmException
Parameters: This method seeks the standard Algorithm as a paramete... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Jun, 2020"
},
{
"code": null,
"e": 170,
"s": 28,
"text": "The getInstance() method of java.security.KeyFactory class returns a object of KeyFactory type that applys the assigned KeyFactory algorithm."
},
{
"code": null,
"... |
Seaborn – Coloring Boxplots with Palettes | 27 Sep, 2021
Adding the right set of color with your data visualization makes it more impressive and readable, seaborn color palettes make it easy to use colors with your visualization. In this article, we will see how to color boxplot with seaborn color palettes also learn the uses of seaborn color palettes and it can... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 398,
"s": 54,
"text": "Adding the right set of color with your data visualization makes it more impressive and readable, seaborn color palettes make it easy to use colors with your visualization. I... |
Modulo Operator (%) in C/C++ with Examples | 17 Jun, 2022
The modulo operator, denoted by %, is an arithmetic operator. The modulo division operator produces the remainder of an integer division.
Syntax: If x and y are integers, then the expression:
x % y
produces the remainder when x is divided by y.
Return Value:
If y completely divides x, the result of the... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n17 Jun, 2022"
},
{
"code": null,
"e": 192,
"s": 53,
"text": "The modulo operator, denoted by %, is an arithmetic operator. The modulo division operator produces the remainder of an integer division. "
},
{
"code": null,
"e"... |
Exceptions – Selenium Python | 30 Apr, 2020
Exceptions in Selenium Python are the errors that occur when one of method fails or an unexpected event occurs. 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 n... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Apr, 2020"
},
{
"code": null,
"e": 549,
"s": 52,
"text": "Exceptions in Selenium Python are the errors that occur when one of method fails or an unexpected event occurs. All instances in Python must be instances of a class that deri... |
Scatterplot using Seaborn in Python | 05 Nov, 2020
Seaborn is an amazing visualization library for statistical graphics plotting in Python. It provides beautiful default styles and color palettes to make statistical plots more attractive. It is built on the top of matplotlib library and also closely integrated into the data structures from pandas.
Scatter... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n05 Nov, 2020"
},
{
"code": null,
"e": 353,
"s": 53,
"text": "Seaborn is an amazing visualization library for statistical graphics plotting in Python. It provides beautiful default styles and color palettes to make statistical plots mor... |
How to test the shared location path from the remote computer in PowerShell? | Many times we need to test the NAS path or shared path location from the remote server. Meaning we need to check if the shared path is accessible from the remote location and we use the Test-Path that time but we get an error of PermissionDenied or UnauthorizedAccessExcept.
Our sample code is shown below and in this ex... | [
{
"code": null,
"e": 1462,
"s": 1187,
"text": "Many times we need to test the NAS path or shared path location from the remote server. Meaning we need to check if the shared path is accessible from the remote location and we use the Test-Path that time but we get an error of PermissionDenied or Unau... |
How to find SubString in R programming? - GeeksforGeeks | 21 Oct, 2021
In this article, we are going to see how to find substring in R programming language.
R provides different ways to find substrings. These are:
Using substr() method
Using str_detect() method
Using grep() method
Find substring in R using substr() method in R Programming is used to find the sub-string from ... | [
{
"code": null,
"e": 25162,
"s": 25134,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 25249,
"s": 25162,
"text": "In this article, we are going to see how to find substring in R programming language. "
},
{
"code": null,
"e": 25306,
"s": 25249,
"text": "R p... |
Adjusting Prices for Inflation in Python with Pandas Merge | by Jake Huneycutt | Towards Data Science | For several years, I managed a small, start-up investment fund. While Wall Street analysts typically look back only a year or two when analyzing companies, I’d often dig back 20 or 30 years. I’d even occasionally scour through economic and price data going back to the 1950’s, ‘20s, or in rare cases 19th Century, to get... | [
{
"code": null,
"e": 671,
"s": 172,
"text": "For several years, I managed a small, start-up investment fund. While Wall Street analysts typically look back only a year or two when analyzing companies, I’d often dig back 20 or 30 years. I’d even occasionally scour through economic and price data goin... |
Java - Polymorphism | Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.
Any Java object that can pass more than one IS-A test is considered to be polymorphic. In Java, all Java objects are polymorphic since... | [
{
"code": null,
"e": 2563,
"s": 2377,
"text": "Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object."
},
{
"code": null,
"e": 2778,
"s": 2563,
"text... |
SQL DELETE JOIN | 25 Oct, 2021
We use joins to combine data from multiple tables. To delete the same rows or related rows from the table at that time we use delete join. In this article let us see how to delete multiple data using DELETE using JOIN by using MSSQL as a server.
Syntax:
DELETE table1
FROM table1 JOIN table2 ON
table1.attri... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Oct, 2021"
},
{
"code": null,
"e": 274,
"s": 28,
"text": "We use joins to combine data from multiple tables. To delete the same rows or related rows from the table at that time we use delete join. In this article let us see how to de... |
Angular PrimeNG InputText Component | 19 Aug, 2021
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the InputText component in angular primeNG. Let’s learn about the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Aug, 2021"
},
{
"code": null,
"e": 404,
"s": 28,
"text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websi... |
LINQ | Method Syntax | 21 May, 2019
In LINQ, Method Syntax is used to call the extension methods of the Enumerable or Queryable static classes. It is also known as Method Extension Syntax or Fluent. However, the compiler always converts the query syntax in method syntax at compile time. It can invoke the standard query operator like Select, ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 May, 2019"
},
{
"code": null,
"e": 457,
"s": 52,
"text": "In LINQ, Method Syntax is used to call the extension methods of the Enumerable or Queryable static classes. It is also known as Method Extension Syntax or Fluent. However, th... |
Functions in R Programming | 19 Apr, 2022
Functions are useful when you want to perform a certain task multiple times. A function accepts input arguments and produces the output by executing valid R commands that are inside the function. In R Programming Language when you are creating a function the function name and the file in which you are crea... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Apr, 2022"
},
{
"code": null,
"e": 468,
"s": 52,
"text": "Functions are useful when you want to perform a certain task multiple times. A function accepts input arguments and produces the output by executing valid R commands that are... |
Print Fibonacci Series in reverse order | 26 Nov, 2021
Given a number n then print n terms of fibonacci series in reverse order.
Examples:
Input : n = 5
Output : 3 2 1 1 0
Input : n = 8
Output : 13 8 5 3 2 1 1 0
Algorithm
1) Declare an array of size n. 2) Initialize a[0] and a[1] to 0 and 1 respectively. 3) Run a loop from 2 to n-1 and store sum of a[i-2] ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 Nov, 2021"
},
{
"code": null,
"e": 127,
"s": 53,
"text": "Given a number n then print n terms of fibonacci series in reverse order."
},
{
"code": null,
"e": 138,
"s": 127,
"text": "Examples: "
},
{
"code"... |
Range Queries for Frequencies of array elements | 07 Jul, 2022
Given an array of n non-negative integers. The task is to find frequency of a particular element in the arbitrary range of array[]. The range is given as positions (not 0 based indexes) in array. There can be multiple queries of given type.
Examples:
Input : arr[] = {2, 8, 6, 9, 8, 6, 8, 2, 11};
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 295,
"s": 54,
"text": "Given an array of n non-negative integers. The task is to find frequency of a particular element in the arbitrary range of array[]. The range is given as positions (not 0 bas... |
Zero Knowledge Proof | 11 May, 2022
Zero Knowledge Proof (ZKP) is an encryption scheme originally proposed by MIT researchers Shafi Goldwasser, Silvio Micali and Charles Rackoff in the 1980s.
Zero-knowledge protocols are probabilistic assessments, which means they don’t prove something with as much certainty as simply revealing the entire i... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 May, 2022"
},
{
"code": null,
"e": 209,
"s": 52,
"text": "Zero Knowledge Proof (ZKP) is an encryption scheme originally proposed by MIT researchers Shafi Goldwasser, Silvio Micali and Charles Rackoff in the 1980s. "
},
{
"co... |
How to find maximum between 2 numbers using C#? | Firstly, declare and initialize two numbers.
int num1 = 50;
int num2 = 90;
With that, use if-else to find the maximum number.
if (num1 > num2) {
maxNum = num1;
} else {
maxNum = num2;
}
Above, we have set the maximum value to the variable maxNum and printed it later on.
The following is the complete example to fi... | [
{
"code": null,
"e": 1232,
"s": 1187,
"text": "Firstly, declare and initialize two numbers."
},
{
"code": null,
"e": 1262,
"s": 1232,
"text": "int num1 = 50;\nint num2 = 90;"
},
{
"code": null,
"e": 1313,
"s": 1262,
"text": "With that, use if-else to find the ... |
Get minimum values in rows or columns with their index position in Pandas-Dataframe | 02 Jul, 2020
Let’s discuss how to find minimum values in rows & columns of a Dataframe and also their index position.
a) Find the minimum value among rows and columns :
Dataframe.min() : This function returns the minimum of the values in the given object. If the input is a series, the method will return a scalar which ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n02 Jul, 2020"
},
{
"code": null,
"e": 159,
"s": 54,
"text": "Let’s discuss how to find minimum values in rows & columns of a Dataframe and also their index position."
},
{
"code": null,
"e": 210,
"s": 159,
"text": "... |
Elements of Network protocol | 24 Aug, 2020
Protocol :Set of rules that govern data communication.
Network communication protocol requires following elements :
Message encoding :A source message from sender is encoded into signals or waves then transmitted through a medium wired / wireless then received and decoded and message is passed to destinati... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n24 Aug, 2020"
},
{
"code": null,
"e": 108,
"s": 53,
"text": "Protocol :Set of rules that govern data communication."
},
{
"code": null,
"e": 169,
"s": 108,
"text": "Network communication protocol requires following ... |
Software Engineering | Application Composition Estimation Model (COCOMO II | Stage 1) | 14 Mar, 2019
Application Composition Estimation Model allows one to estimate the cost, effort at the stage 1 of the COCOMO II Model.
In this model size is first estimated using Object Points. Object Points are easy to identify and count. Object Points defines screen, reports, third generation (3GL) modules as objects.
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Mar, 2019"
},
{
"code": null,
"e": 174,
"s": 54,
"text": "Application Composition Estimation Model allows one to estimate the cost, effort at the stage 1 of the COCOMO II Model."
},
{
"code": null,
"e": 361,
"s": 174... |
Count pairs (a, b) whose sum of cubes is N (a^3 + b^3 = N) in C++ | We are given a number N. The goal is to find ordered pairs of positive numbers such that the sum of their cubes is N.
We will do this by finding solutions to the equation a3 + b3 = N. Where a is not more than cube root of N and b can be calculated as cube root of (N-a3).
Let’s understand with examples.
Input
N=35
Outp... | [
{
"code": null,
"e": 1180,
"s": 1062,
"text": "We are given a number N. The goal is to find ordered pairs of positive numbers such that the sum of their cubes is N."
},
{
"code": null,
"e": 1334,
"s": 1180,
"text": "We will do this by finding solutions to the equation a3 + b3 = N... |
numpy.exp2() in Python - GeeksforGeeks | 29 Nov, 2018
numpy.exp2(array, out = None, where = True, casting = ‘same_kind’, order = ‘K’, dtype = None) :This mathematical function helps user to calculate 2**x for all x being the array elements.
Parameters :
array : [array_like]Input array or object whose elements, we need to test.out : [ndarray, optional]Output a... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n29 Nov, 2018"
},
{
"code": null,
"e": 24088,
"s": 23901,
"text": "numpy.exp2(array, out = None, where = True, casting = ‘same_kind’, order = ‘K’, dtype = None) :This mathematical function helps user to calculate 2**x for all x be... |
Find an integer in the given range that satisfies the given conditions - GeeksforGeeks | 14 Sep, 2021
Given two integers L and R where L ≤ R, the task is to find an integer K such that:
L ≤ K ≤ R.All the digits of K are distinct.The value of the expression (L – K) * (K – R) is maximum.
L ≤ K ≤ R.
All the digits of K are distinct.
The value of the expression (L – K) * (K – R) is maximum.
If multiple a... | [
{
"code": null,
"e": 25102,
"s": 25074,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 25188,
"s": 25102,
"text": "Given two integers L and R where L ≤ R, the task is to find an integer K such that: "
},
{
"code": null,
"e": 25291,
"s": 25188,
"text": "L ≤ ... |
Plotting a horizontal line on multiple subplots in Python using pyplot | To plot a horizontal line on multiple subplots in Python, we can use subplots to get multiple axes and axhline() method to draw a horizontal line.
Create a figure and a set of subplots. Here, we will create 3 subplots.
Create a figure and a set of subplots. Here, we will create 3 subplots.
Use axhline() method to draw ... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "To plot a horizontal line on multiple subplots in Python, we can use subplots to get multiple axes and axhline() method to draw a horizontal line."
},
{
"code": null,
"e": 1281,
"s": 1209,
"text": "Create a figure and a set of subplo... |
DataInputStream readLong() method in Java with Examples - GeeksforGeeks | 05 Jun, 2020
The readLong() method of DataInputStream class in Java is used to read eight input bytes and returns a long value. This method reads the next eight bytes from the input stream and interprets it into long type and returns.
Syntax:
public final long readLong()
throws IOException
Specified ... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 24170,
"s": 23948,
"text": "The readLong() method of DataInputStream class in Java is used to read eight input bytes and returns a long value. This method reads the next eight bytes from the ... |
How to use Measure-Object in PowerShell? | Measure-Object in PowerShell is used to measure the property of the command. There are various measurement parameters are available. For example, Average, Count, sum, maximum, minimum and more.
Get-Process | Measure-Object
PS C:\WINDOWS\system32> Get-Process | Measure-Object
Count : 278
Average :
Sum ... | [
{
"code": null,
"e": 1256,
"s": 1062,
"text": "Measure-Object in PowerShell is used to measure the property of the command. There are various measurement parameters are available. For example, Average, Count, sum, maximum, minimum and more."
},
{
"code": null,
"e": 1285,
"s": 1256,
... |
Erlang - whereis | It is called as whereis(Name). Returns the pid of the process that is registered with the name.
whereis(atom,pid)
atom − This is the registered name to give to the process.
atom − This is the registered name to give to the process.
The process id bound to the atom.
-module(helloworld).
-export([start/0, call/2]).
c... | [
{
"code": null,
"e": 2397,
"s": 2301,
"text": "It is called as whereis(Name). Returns the pid of the process that is registered with the name."
},
{
"code": null,
"e": 2416,
"s": 2397,
"text": "whereis(atom,pid)\n"
},
{
"code": null,
"e": 2475,
"s": 2416,
"tex... |
Python Group elements at same indices in a multi-list | In this tutorial, we are going to write a program that combines elements of the same indices different lists into a single list. And there is one constraint here. All the lists must be of the same length. Let's see an example to understand it more clearly.
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
[[1, 4, 7], [2, 5, 8], [3, 6,... | [
{
"code": null,
"e": 1319,
"s": 1062,
"text": "In this tutorial, we are going to write a program that combines elements of the same indices different lists into a single list. And there is one constraint here. All the lists must be of the same length. Let's see an example to understand it more clear... |
An Easy Beginners Guide to SQLite in Python and Pandas | by Julia Kho | Towards Data Science | Welcome to an easy beginners guide to SQLite. In this article, you’ll learn about what SQLite is, how to connect to databases, create tables, insert and query for data, and access SQLite in Pandas. I am assuming that you have a basic understanding of SQL and my focus in the article will be on how to use SQLite in Pytho... | [
{
"code": null,
"e": 495,
"s": 172,
"text": "Welcome to an easy beginners guide to SQLite. In this article, you’ll learn about what SQLite is, how to connect to databases, create tables, insert and query for data, and access SQLite in Pandas. I am assuming that you have a basic understanding of SQL ... |
Python Functions, Explained.. Here is a more intuitive way of... | by Brunna Torino | Towards Data Science | We first learn about functions in high school mathematics. The general concept of functions in maths is that there is an input (let’s call it x) and an output (let’s call it y). We represent a mathematical function like this:
y = f(x)
where f(x) can be any transformation (such as adding, subtracting, multiplication, ex... | [
{
"code": null,
"e": 398,
"s": 172,
"text": "We first learn about functions in high school mathematics. The general concept of functions in maths is that there is an input (let’s call it x) and an output (let’s call it y). We represent a mathematical function like this:"
},
{
"code": null,
... |
Create a temporary file in Java | A temporary file can be created using the method java.io.File.createTempFile(). This method requires two parameters i.e. the prefix to define the file name and the suffix to define the file extension. It also returns the abstract path name for the temporary file created.
A program that demonstrates this is given as fol... | [
{
"code": null,
"e": 1334,
"s": 1062,
"text": "A temporary file can be created using the method java.io.File.createTempFile(). This method requires two parameters i.e. the prefix to define the file name and the suffix to define the file extension. It also returns the abstract path name for the tempo... |
Javascript - Page Printing | Many times you would like to give a button at your webpage to print out the content of that web page via an actual printer.
JavaScript helps you to implement this functionality using print function of window object.
The JavaScript print function window.print() will print the current web page when executed. You can call... | [
{
"code": null,
"e": 2590,
"s": 2466,
"text": "Many times you would like to give a button at your webpage to print out the content of that web page via an actual printer."
},
{
"code": null,
"e": 2682,
"s": 2590,
"text": "JavaScript helps you to implement this functionality using... |
Sum triangle from an array in C programming | The sum triangle from an array is a triangle that is made by decreasing the number of elements of the array one by one and the new array that is formed is with integers that are the sum of adjacent integers of the existing array. This procedure continues until only one element remains in the array.
Let's take an exampl... | [
{
"code": null,
"e": 1362,
"s": 1062,
"text": "The sum triangle from an array is a triangle that is made by decreasing the number of elements of the array one by one and the new array that is formed is with integers that are the sum of adjacent integers of the existing array. This procedure continue... |
Python 3 - Number cos() Method | The cos() method returns the cosine of x radians.
Following is the syntax for cos() method −
cos(x)
Note − This function is not accessible directly, so we need to import math module and then we need to call this function using math static object.
x − This must be a numeric value.
This method returns a numeric value be... | [
{
"code": null,
"e": 2390,
"s": 2340,
"text": "The cos() method returns the cosine of x radians."
},
{
"code": null,
"e": 2433,
"s": 2390,
"text": "Following is the syntax for cos() method −"
},
{
"code": null,
"e": 2441,
"s": 2433,
"text": "cos(x)\n"
},
{... |
Huffman Encoding | Practice | GeeksforGeeks | Given a string S of distinct character of size N and their corresponding frequency f[ ] i.e. character S[i] has f[i] frequency. Your task is to build the Huffman tree print all the huffman codes in preorder traversal of the tree.
Note: While merging if two nodes have the same value, then the node which occurs at first ... | [
{
"code": null,
"e": 731,
"s": 238,
"text": "Given a string S of distinct character of size N and their corresponding frequency f[ ] i.e. character S[i] has f[i] frequency. Your task is to build the Huffman tree print all the huffman codes in preorder traversal of the tree.\nNote: While merging if t... |
Generating Geocodes Using Google Maps API | by Francis Adrian Viernes | Towards Data Science | Geocoding is the process of translating text addresses into geographic latitude and longitude coordinates which in turn make it easy to manipulate and analyze massive amounts of geospatial data.
For a data scientist, knowing the geocode makes it easy to plot it in visualization and create other features, such as distan... | [
{
"code": null,
"e": 367,
"s": 172,
"text": "Geocoding is the process of translating text addresses into geographic latitude and longitude coordinates which in turn make it easy to manipulate and analyze massive amounts of geospatial data."
},
{
"code": null,
"e": 537,
"s": 367,
... |
How to fetch only N rows at a time in MySQL? | To fetch only N rows at a time, you can use LIMIT operator. Following is the syntax −
select *from yourTableNameLIMIT 0,N;
Let us first create a table −
mysql> create table DemoTable
(
Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,
Name varchar(20)
);
Query OK, 0 rows affected (0.25 sec)
Insert some records in... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "To fetch only N rows at a time, you can use LIMIT operator. Following is the syntax −"
},
{
"code": null,
"e": 1185,
"s": 1148,
"text": "select *from yourTableNameLIMIT 0,N;"
},
{
"code": null,
"e": 1215,
"s": 1185,
... |
Selenium Webdriver - Exceptions | If an error occurs, any of the methods fail or an unexpected error happens, an exception is thrown. In Python, all the exceptions are obtained from the BaseException class.
Some of the common Selenium Exceptions are listed below −
ElementNotInteractableException − It is thrown if a webelement is attached to the DOM, bu... | [
{
"code": null,
"e": 2376,
"s": 2203,
"text": "If an error occurs, any of the methods fail or an unexpected error happens, an exception is thrown. In Python, all the exceptions are obtained from the BaseException class."
},
{
"code": null,
"e": 2434,
"s": 2376,
"text": "Some of t... |
Stream peek() Method in Java with Examples | 11 Apr, 2022
In Java, Stream provides an powerful alternative to process data where here we will be discussing one of the very frequently used methods named peek() which being a consumer action basically returns a stream consisting of the elements of this stream, additionally performing the provided action on each elem... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Apr, 2022"
},
{
"code": null,
"e": 578,
"s": 54,
"text": "In Java, Stream provides an powerful alternative to process data where here we will be discussing one of the very frequently used methods named peek() which being a consumer ... |
TypeScript | String split() Method | 20 Jun, 2022
The split() is an inbuilt function in TypeScript which is used to splits a String object into an array of strings by separating the string into sub-strings.
Syntax:
string.split([separator][, limit])
Parameter: This method accepts two parameter as mentioned above and described below:
separator – This para... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 185,
"s": 28,
"text": "The split() is an inbuilt function in TypeScript which is used to splits a String object into an array of strings by separating the string into sub-strings."
},
{
"cod... |
Implementing Rabin Karp Algorithm Using Rolling Hash in Java | 02 Feb, 2022
There are so many pattern searching algorithms for the string. KMP algorithm, Z algorithm Rabin Karp algorithm, etc these algorithms are the optimization of Naive Pattern searching Algorithm.
Naive Pattern Searching Algorithm:
Input : "AABACACAACAC"
Pattern : "CAC"
Output : [4,9]
AABACACAACAC
Implem... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Feb, 2022"
},
{
"code": null,
"e": 220,
"s": 28,
"text": "There are so many pattern searching algorithms for the string. KMP algorithm, Z algorithm Rabin Karp algorithm, etc these algorithms are the optimization of Naive Pattern sear... |
PHP | ctype_space() Function | 06 Jun, 2018
A ctype_space() function in PHP is used to check whether each and every character of a string is whitespace character or not. It returns True if the all characters are white space, else returns False.
Syntax :
ctype_space(string text)
Parameter Used:
text :- It is a mandatory parameter which specifies the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jun, 2018"
},
{
"code": null,
"e": 229,
"s": 28,
"text": "A ctype_space() function in PHP is used to check whether each and every character of a string is whitespace character or not. It returns True if the all characters are white s... |
Permutations of a given string | Practice | GeeksforGeeks | Given a string S. The task is to print all permutations of a given string in lexicographically sorted order.
Example 1:
Input: ABC
Output:
ABC ACB BAC BCA CAB CBA
Explanation:
Given string ABC has permutations in 6
forms as ABC, ACB, BAC, BCA, CAB and CBA .
Example 2:
Input: ABSG
Output:
ABGS ABSG AGBS AGSB ASBG AS... | [
{
"code": null,
"e": 347,
"s": 238,
"text": "Given a string S. The task is to print all permutations of a given string in lexicographically sorted order."
},
{
"code": null,
"e": 360,
"s": 349,
"text": "Example 1:"
},
{
"code": null,
"e": 500,
"s": 360,
"text"... |
Program to insert dashes between two adjacent odd digits in given Number | 07 Oct, 2021
Given a large number in form of string N, the task is to insert a dash between two adjacent odd digits in the given number in form of strings.
Examples:
Input: N = 1745389 Output: 1-745-389 Explanation: In string str, str[0] and str[1] both are the odd numbers in consecutive, so insert a dash between them.... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 171,
"s": 28,
"text": "Given a large number in form of string N, the task is to insert a dash between two adjacent odd digits in the given number in form of strings."
},
{
"code": null,
... |
Rename specific column(s) in Pandas | 30 Jul, 2020
Given a pandas Dataframe, let’s see how to rename specific column(s) names using various methods.
First, let’s create a Dataframe:
Python3
# import pandas packageimport pandas as pd # defining a dictionaryd = {"Name": ["John", "Mary", "Helen"], "Marks": [95, 75, 99], "Roll No": [12, 21, 9]} # cr... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Jul, 2020"
},
{
"code": null,
"e": 153,
"s": 54,
"text": "Given a pandas Dataframe, let’s see how to rename specific column(s) names using various methods. "
},
{
"code": null,
"e": 186,
"s": 153,
"text": "First,... |
Java.io.BufferedReader Class in Java | 03 May, 2022
Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines. The buffer size may be specified, or the default size may be used. The default is large enough for most purposes. In general, each read request made by a Reader causes... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 May, 2022"
},
{
"code": null,
"e": 736,
"s": 52,
"text": "Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines. The buffer size may be specified, ... |
Least Angle Regression (LARS) | 19 Apr, 2021
Regression is a supervised machine learning task that can predict continuous values (real numbers), as compared to classification, that can predict categorical or discrete values. Before we begin, if you are a beginner, I highly recommend this article. Least Angle Regression (LARS) is an algorithm used in ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Apr, 2021"
},
{
"code": null,
"e": 1015,
"s": 28,
"text": "Regression is a supervised machine learning task that can predict continuous values (real numbers), as compared to classification, that can predict categorical or discrete va... |
Open a new Window with a button in Python-Tkinter | 13 Jul, 2021
Python provides a variety of GUI (Graphic User Interface) such as PyQt, Tkinter, Kivy and soon. Among them, tkinter is the most commonly used GUI module in Python since it is simple and easy to learn and implement as well. The word Tkinter comes from the tk interface. The tkinter module is available in Pyt... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jul, 2021"
},
{
"code": null,
"e": 415,
"s": 28,
"text": "Python provides a variety of GUI (Graphic User Interface) such as PyQt, Tkinter, Kivy and soon. Among them, tkinter is the most commonly used GUI module in Python since it is ... |
SAML Authentication | 19 Aug, 2020
SAML is an XML based framework that stands for Security Assertion Markup Language. Let us see how SAML is used to enable SSO (Single-Sign-On). SSO is a term used for a type of login method where a company configures all of its web apps in such a way that the user can log in to all of these apps by just sig... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 349,
"s": 28,
"text": "SAML is an XML based framework that stands for Security Assertion Markup Language. Let us see how SAML is used to enable SSO (Single-Sign-On). SSO is a term used for a type of... |
Count Non-Leaf Nodes in Tree | Practice | GeeksforGeeks | Given a Binary Tree of size N, your task is to complete the function countNonLeafNodes(), that should return the count of all the non-leaf nodes of the given binary tree.
Example:
Input:
Output:
2
Explanation:
Nodes 1 and 2 are the only non leaf nodes.
Your Task:
You don't need to take input or print anything. Your ... | [
{
"code": null,
"e": 409,
"s": 238,
"text": "Given a Binary Tree of size N, your task is to complete the function countNonLeafNodes(), that should return the count of all the non-leaf nodes of the given binary tree."
},
{
"code": null,
"e": 418,
"s": 409,
"text": "Example:"
},
... |
HTTP - Header Fields | HTTP header fields provide required information about the request or response, or about the object sent in the message body. There are four types of HTTP message headers:
General-header: These header fields have general applicability for both request and response messages.
General-header: These header fields have gener... | [
{
"code": null,
"e": 1950,
"s": 1779,
"text": "HTTP header fields provide required information about the request or response, or about the object sent in the message body. There are four types of HTTP message headers:"
},
{
"code": null,
"e": 2053,
"s": 1950,
"text": "General-hea... |
Java Program for Heap Sort - GeeksforGeeks | 27 Mar, 2019
Heap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first find the maximum element and place the maximum element at the end. We repeat the same process for remaining element.
// Java program for implementation of Heap Sortpublic cl... | [
{
"code": null,
"e": 23677,
"s": 23649,
"text": "\n27 Mar, 2019"
},
{
"code": null,
"e": 23928,
"s": 23677,
"text": "Heap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first find the maximum element and ... |
Preventing an image from being draggable or selectable in HTML without using JS | Add the following code snippet to image properties, and prevent images from being dragged and selected.
img {
user-drag: none;
user-select: none;
-moz-user-select: none;
-webkit-user-drag: none;
-webkit-user-select: none;
-ms-user-select: none;
}
On double click on a text or image, it is highlight... | [
{
"code": null,
"e": 1166,
"s": 1062,
"text": "Add the following code snippet to image properties, and prevent images from being dragged and selected."
},
{
"code": null,
"e": 1331,
"s": 1166,
"text": "img { \n user-drag: none; \n user-select: none;\n -moz-user-select: no... |
Recursive sum all the digits of a number JavaScript | Let’s say, we are required to create a function that takes in a number and finds the sum of its
digits recursively until the sum is a one-digit number.
For example −
findSum(12345) = 1+2+3+4+5 = 15 = 1+5 = 6
So, the output should be 6.
Let’s write the code for this function findSum() −
// using recursion
const findSum ... | [
{
"code": null,
"e": 1214,
"s": 1062,
"text": "Let’s say, we are required to create a function that takes in a number and finds the sum of its\ndigits recursively until the sum is a one-digit number."
},
{
"code": null,
"e": 1228,
"s": 1214,
"text": "For example −"
},
{
"... |
How to change the color code of corrplot in R? | To change the color code of corrplot, we can use colorRampPalette function inside corrplot function. We can provide different colors in colorRampPalette that we want to display in the corrplot.
Check out the below given example to understand how it can be done.
Following snippet creates a sample data frame −
x<-rpois(2... | [
{
"code": null,
"e": 1256,
"s": 1062,
"text": "To change the color code of corrplot, we can use colorRampPalette function inside corrplot function. We can provide different colors in colorRampPalette that we want to display in the corrplot."
},
{
"code": null,
"e": 1324,
"s": 1256,
... |
Program to print the initials of a name with the surname | 13 Jun, 2022
Given a full name in the form of a string, the task is to print the initials of a name, in short, and surname in full. Examples:
Input: Devashish Kumar Gupta
Output: D. K. Gupta
Input: Ishita Bhuiya
Output: I. Bhuiya
Approach: The basic approach is to extract words one by one and then print the first lett... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 181,
"s": 52,
"text": "Given a full name in the form of a string, the task is to print the initials of a name, in short, and surname in full. Examples:"
},
{
"code": null,
"e": 270,
... |
Minimum Deletions | Practice | GeeksforGeeks | Given a string of S as input. Your task is to write a program to remove or delete the minimum number of characters from the string so that the resultant string is a palindrome.
Note: The order of characters in the string should be maintained.
Example 1:
Input: S = "aebcbda"
Output: 2
Explanation: Remove characters 'e' ... | [
{
"code": null,
"e": 481,
"s": 238,
"text": "Given a string of S as input. Your task is to write a program to remove or delete the minimum number of characters from the string so that the resultant string is a palindrome.\nNote: The order of characters in the string should be maintained."
},
{
... |
PyQtGraph – Setting Background of Plot Window | 24 Sep, 2020
In this article we will see how we can set the background of the plot window in the PyQtGraph module. PyQtGraph is a graphics and user interface library for Python that provides functionality commonly required in designing and science applications. Its primary goals are to provide fast, interactive graphic... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Sep, 2020"
},
{
"code": null,
"e": 766,
"s": 28,
"text": "In this article we will see how we can set the background of the plot window in the PyQtGraph module. PyQtGraph is a graphics and user interface library for Python that provid... |
HackingTool – ALL IN ONE Hacking Tool For Hackers | 22 Nov, 2021
HackingTool is a free and open-source tool available on GitHub. HackingTool is used as an information-gathering tool. HackingTool is used to scan websites for information gathering and find vulnerabilities in websites and webapps. HackingTool is one of the easiest and useful tool for performing reconnais... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 1183,
"s": 52,
"text": "HackingTool is a free and open-source tool available on GitHub. HackingTool is used as an information-gathering tool. HackingTool is used to scan websites for information ... |
MySQL | SHA1( ) Function | 17 Feb, 2021
The MySQL SHA1() function is used for encrypting a string using the SHA-1 technique. The SHA1 stands for secure hash algorithm and it produces a 160-bit checksum for a user inputted string.
The MySQL SHA1() function returns NULL if the string passed as an argument is a NULL string. The SHA1() function acc... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Feb, 2021"
},
{
"code": null,
"e": 219,
"s": 28,
"text": "The MySQL SHA1() function is used for encrypting a string using the SHA-1 technique. The SHA1 stands for secure hash algorithm and it produces a 160-bit checksum for a user in... |
Inorder traversal of an N-ary Tree | 12 Oct, 2021
Given an N-ary tree containing, the task is to print the inorder traversal of the tree.
Examples:
Input: N = 3
Output: 5 6 2 7 3 1 4Input: N = 3
Output: 2 5 3 1 4 6
Approach: The inorder traversal of an N-ary tree is defined as visiting all the children except the last then the root and finally the l... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 Oct, 2021"
},
{
"code": null,
"e": 142,
"s": 54,
"text": "Given an N-ary tree containing, the task is to print the inorder traversal of the tree."
},
{
"code": null,
"e": 153,
"s": 142,
"text": "Examples: "
},
... |
Sub-tree with minimum color difference in a 2-coloured tree | 30 Aug, 2021
A tree with N nodes and N-1 edges is given with 2 different colours for its nodes. Find the sub-tree with minimum colour difference i.e. abs(1-colour nodes – 2-colour nodes) is minimum. Examples:
Input :
Edges : 1 2
1 3
2 4
3 5
Colours : 1 1 2 2 1 [1-based indexing where
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Aug, 2021"
},
{
"code": null,
"e": 252,
"s": 54,
"text": "A tree with N nodes and N-1 edges is given with 2 different colours for its nodes. Find the sub-tree with minimum colour difference i.e. abs(1-colour nodes – 2-colour nodes) ... |
How to Add Dynamic Markers in Google Maps with Firebase Firstore? | 31 Jan, 2021
We have seen adding markers to Google Maps in Android. Along with that, we have also added multiple markers on Google Maps in Android. Many apps use a dynamic feature to add a marker on the Google Maps and update them according to requirements. In this article, we will take a look at adding markers to Goog... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Jan, 2021"
},
{
"code": null,
"e": 369,
"s": 28,
"text": "We have seen adding markers to Google Maps in Android. Along with that, we have also added multiple markers on Google Maps in Android. Many apps use a dynamic feature to add a... |
Automating Lambda modules deployment with GitLab CI | by Daniel Da Costa | Towards Data Science | While working with terraform lambda modules, I had a hard time finding out the best repository architecture to automate my lambdas deployment. I couldn’t find any article that I could use as a guideline, that’s why I’m writing this article.
While working on big projects, project organization is a must-have. In this sto... | [
{
"code": null,
"e": 412,
"s": 171,
"text": "While working with terraform lambda modules, I had a hard time finding out the best repository architecture to automate my lambdas deployment. I couldn’t find any article that I could use as a guideline, that’s why I’m writing this article."
},
{
... |
Guide to install TuriCreate in Python3.x - GeeksforGeeks | 06 Oct, 2021
Before Installing first you need to what is actually Turi Create. So, Turi Create is an open-source toolset for creating Core ML models, for tasks such as image classification, object detection, style transfers, recommendations, and many more.
System Requirements
Python 2.7, 3.5, 3.6, 3.7
At least 4gb of ... | [
{
"code": null,
"e": 24241,
"s": 24213,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 24485,
"s": 24241,
"text": "Before Installing first you need to what is actually Turi Create. So, Turi Create is an open-source toolset for creating Core ML models, for tasks such as image cl... |
Model Selection & Assessment. Going beyond the train-val-test split | by Michał Oleszak | Towards Data Science | A standard modeling workflow would see you partitioning your data into the training, validation, and testing sets. You would then fit your models to the training data, then use the validation set to perform model selection, and finally, evaluate the very best selected model on the test data to see what generalization p... | [
{
"code": null,
"e": 570,
"s": 47,
"text": "A standard modeling workflow would see you partitioning your data into the training, validation, and testing sets. You would then fit your models to the training data, then use the validation set to perform model selection, and finally, evaluate the very b... |
Optimising Disk Usage in Elasticsearch | by Niels D. Goet | Towards Data Science | Elasticsearch (ES) has gained traction in recent years because it offers a robust and scalable engine for storing and analysing large volumes of data with low latency. If you’re a data engineer or data scientist working with large (and fast-growing) volumes of data, you’ll know that optimising for storage is a key comp... | [
{
"code": null,
"e": 551,
"s": 47,
"text": "Elasticsearch (ES) has gained traction in recent years because it offers a robust and scalable engine for storing and analysing large volumes of data with low latency. If you’re a data engineer or data scientist working with large (and fast-growing) volume... |
KnockoutJS - checked Binding | This binding is used to create a link between a checkable form element and ViewModel property. Mostly these form elements are inclusive of check box and radio buttons. This is also a two-way binding method wherein the moment the user checks form control, the respective ViewModel property is changed and vice versa.
chec... | [
{
"code": null,
"e": 2168,
"s": 1852,
"text": "This binding is used to create a link between a checkable form element and ViewModel property. Mostly these form elements are inclusive of check box and radio buttons. This is also a two-way binding method wherein the moment the user checks form control... |
Tryit Editor v3.7 | Tryit: Use CSS and JavaScript to show an element on click | [] |
Image Classification using Fastai v2 on Colab | by C K | Towards Data Science | Fastai is a library built on top of PyTorch for deep learning applications. Their mission is to make deep learning easier to use and getting more people from all backgrounds involved. They also provide free courses for Fastai.
Fastai v2 was released in August, I will use it to build and train a deep learning model to c... | [
{
"code": null,
"e": 399,
"s": 172,
"text": "Fastai is a library built on top of PyTorch for deep learning applications. Their mission is to make deep learning easier to use and getting more people from all backgrounds involved. They also provide free courses for Fastai."
},
{
"code": null,
... |
Bootstrapping for Inferential Statistics | by Samarth Agrawal | Towards Data Science | Bootstrap is a powerful, computer-based method for statistical inference without relying on too many assumption. It’s just magical to form a sampling distribution just from only one sample data. No formula needed for my statistical inference. Not only that, in fact, it is widely applied in other statistical inference s... | [
{
"code": null,
"e": 573,
"s": 171,
"text": "Bootstrap is a powerful, computer-based method for statistical inference without relying on too many assumption. It’s just magical to form a sampling distribution just from only one sample data. No formula needed for my statistical inference. Not only tha... |
How to Get the Data Type of a Pytorch Tensor? - GeeksforGeeks | 21 Jul, 2021
In this article, we are going to create a tensor and get the data type. The Pytorch is used to process the tensors. Tensors are multidimensional arrays. PyTorch accelerates the scientific computation of tensors as it has various inbuilt functions.
A vector is a one-dimensional tensor that holds elements of... | [
{
"code": null,
"e": 25647,
"s": 25619,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 25895,
"s": 25647,
"text": "In this article, we are going to create a tensor and get the data type. The Pytorch is used to process the tensors. Tensors are multidimensional arrays. PyTorch ac... |
How Julia Perfected Multiple Dispatch | by Emmett Boudreau | Towards Data Science | Although the Julia programming language is new and not quite popular, at least for now, this does not stop the language from achieving some pretty spectacular feats. The Julia programming language is a lot more unique than many users or viewers even understand, as it resides in its own paradigm. This paradigm is awesom... | [
{
"code": null,
"e": 680,
"s": 172,
"text": "Although the Julia programming language is new and not quite popular, at least for now, this does not stop the language from achieving some pretty spectacular feats. The Julia programming language is a lot more unique than many users or viewers even under... |
Text Cleaning Methods for Natural Language Processing | by Rebecca Vickery | Towards Data Science | Natural language processing is defined as “the application of computational techniques to the analysis and synthesis of natural language and speech”. In order to perform these computational tasks, we first need to convert the language of text into a language that the machine can understand.
In the following post, I am ... | [
{
"code": null,
"e": 464,
"s": 172,
"text": "Natural language processing is defined as “the application of computational techniques to the analysis and synthesis of natural language and speech”. In order to perform these computational tasks, we first need to convert the language of text into a langu... |
n-th number with digits in {0, 1, 2, 3, 4, 5} | 24 Feb, 2022
Given a number n and we have to find n-th number such that it’s digits only consist 0, 1, 2, 3, 4 or 5.
Examples :
Input: n = 6
Output: 5
Input: n = 10
Output: 13
We first store 0, 1, 2, 3, 4, 5 in an array. We can see that next numbers will be 10, 11, 12,,13, 14, 15 and after that numbers will be 20, 2... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 156,
"s": 52,
"text": "Given a number n and we have to find n-th number such that it’s digits only consist 0, 1, 2, 3, 4 or 5."
},
{
"code": null,
"e": 168,
"s": 156,
"text": "E... |
java.net.ServerSocket Class in Java | 27 Apr, 2022
ServerSocket Class is used for providing system-independent implementation of the server-side of a client/server Socket Connection. The constructor for ServerSocket throws an exception if it can’t listen on the specified port (for example, the port is already being used).
It is widely used so the applicati... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Apr, 2022"
},
{
"code": null,
"e": 301,
"s": 28,
"text": "ServerSocket Class is used for providing system-independent implementation of the server-side of a client/server Socket Connection. The constructor for ServerSocket throws an ... |
Tensorflow.js tf.layers.dense() Function | 26 May, 2021
The tf.layers.dense() is an inbuilt function of Tensorflow.js library. This function is used to create fully connected layers, in which every output depends on every input.
Syntax:
tf.layers.dense(args)
Parameters: This function takes the args object as a parameter which can have the following properties:
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 227,
"s": 54,
"text": "The tf.layers.dense() is an inbuilt function of Tensorflow.js library. This function is used to create fully connected layers, in which every output depends on every input."
... |
Find the winner of the game with N piles of boxes | 14 Jun, 2022
Given N piles containing White(W) and Black(B) boxes only, two players A and B play a game. Player A may remove any number of boxes from the top of the pile having the topmost box White, and Player B may remove any number of boxes from the top of the pile having the topmost box Black. If there is a pile wi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Jun, 2022"
},
{
"code": null,
"e": 717,
"s": 52,
"text": "Given N piles containing White(W) and Black(B) boxes only, two players A and B play a game. Player A may remove any number of boxes from the top of the pile having the topmos... |
How to upload files asynchronously using jQuery? | 03 Aug, 2021
To upload files from local machine to the server is called file uploading. It works exactly the same as the definition, when we select file from the browser and click submit button, the browser takes file from local machine and submit it to the server and server does its job to save the file to the defined... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 426,
"s": 54,
"text": "To upload files from local machine to the server is called file uploading. It works exactly the same as the definition, when we select file from the browser and click submit ... |
Multithreading in Java | 24 Feb, 2021
Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum utilization of CPU. Each part of such program is called a thread. So, threads are light-weight processes within a process.
Threads can be created by using two mechanisms :
Chapters
descriptions ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Feb, 2021"
},
{
"code": null,
"e": 287,
"s": 52,
"text": "Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum utilization of CPU. Each part of such program is called a thre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.