title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Java and multiple inheritance | Java does not support multiple inheritance. This means that a class cannot extend more than one class. Therefore, following is illegal
public class extends Animal, Mammal{}
However, a class can implement one or more interfaces, which has helped Java get rid of the impossibility of multiple inheritance. The extends keyw... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "Java does not support multiple inheritance. This means that a class cannot extend more than one class. Therefore, following is illegal"
},
{
"code": null,
"e": 1235,
"s": 1197,
"text": "public class extends Animal, Mammal{}"
},
{... |
How to Set-Up Shiny Server on Ubuntu | Shiny is an R package that allows Linux users to convert R code into an interactive webpage and documents online. You can take your shiny apps and share them in your organisation or the world. This article explains about how to set up shiny server on Ubuntu.
Before installing Shiny server, we need to install the shiny ... | [
{
"code": null,
"e": 1321,
"s": 1062,
"text": "Shiny is an R package that allows Linux users to convert R code into an interactive webpage and documents online. You can take your shiny apps and share them in your organisation or the world. This article explains about how to set up shiny server on Ub... |
Datagrams in Java - GeeksforGeeks | 24 May, 2018
TCP/IP-style networking provides a serialized, predictable, reliable stream of packet data. This is not without its cost, however. TCP includes algorithms for dealing with congestion control on crowded networks, as well as pessimistic expectations about packet loss. This leads to inefficient way to transpo... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n24 May, 2018"
},
{
"code": null,
"e": 24931,
"s": 23948,
"text": "TCP/IP-style networking provides a serialized, predictable, reliable stream of packet data. This is not without its cost, however. TCP includes algorithms for deal... |
HTML Course | Building Main Content - Section 1 - GeeksforGeeks | 10 Aug, 2021
Course Navigation
We just completed building the header for our website. Let’s start building the main content for the website. As we described while creating the HTML layout of the website, the main content was divided into three sections as shown below:
HTML
<!-- Main content between Header and Foote... | [
{
"code": null,
"e": 30298,
"s": 30270,
"text": "\n10 Aug, 2021"
},
{
"code": null,
"e": 30318,
"s": 30298,
"text": "Course Navigation "
},
{
"code": null,
"e": 30558,
"s": 30318,
"text": "We just completed building the header for our website. Let’s start bui... |
Count substrings that starts with character X and ends with character Y - GeeksforGeeks | 28 Apr, 2021
Given a string str of n lowercase characters, the task is to count the number of substrings of str starting with character X and ending with character Y.Examples:
Input: str = "abbcaceghcak"
x = 'a', y = 'c'
Output: 5
abbc, abbcac, ac, abbcaceghc, aceghc
Input: str = "geeksforgeeks"
x = ... | [
{
"code": null,
"e": 24854,
"s": 24826,
"text": "\n28 Apr, 2021"
},
{
"code": null,
"e": 25019,
"s": 24854,
"text": "Given a string str of n lowercase characters, the task is to count the number of substrings of str starting with character X and ending with character Y.Examples: ... |
How to Create a Drop-Down Menu and a Slide Bar for your Favorite Visualization Tool | by Khuyen Tran | Towards Data Science | Imagine we are analyzing the trend population of countries in the world from 1960 to 2018 to predict the population in the next coming years.
To visualize the trend of the country, we choose Plotly for its simple and beautiful visualization. Start with ‘Vietnam’
import pandas as pd import datapane as dp import plotly.e... | [
{
"code": null,
"e": 313,
"s": 171,
"text": "Imagine we are analyzing the trend population of countries in the world from 1960 to 2018 to predict the population in the next coming years."
},
{
"code": null,
"e": 434,
"s": 313,
"text": "To visualize the trend of the country, we ch... |
Missing number in matrix | Practice | GeeksforGeeks | Given a matrix of size n x n such that it has only one 0, Find the number to be placed in place of the 0 such that sum of the numbers in every row, column and two diagonals become equal.
Note: Diagonals should be only of the form matrix[i][i] and matrix[i][n - i - 1].
Example 1:
Input: matrix = {{5, 5}, {5, 0}}
Outp... | [
{
"code": null,
"e": 414,
"s": 226,
"text": "Given a matrix of size n x n such that it has only one 0, Find the number to be placed in place of the 0 such that sum of the numbers in every row, column and two diagonals become equal. "
},
{
"code": null,
"e": 498,
"s": 414,
"text":... |
Get the top most document from a MongoDB collection | To get the topmost document, use find() along with limit(). To fetch only a single document, consider using limit(1). Let us create a collection with documents −
> db.demo681.insertOne({_id:101,Name:"Chris"});
{ "acknowledged" : true, "insertedId" : 101 }
> db.demo681.insertOne({_id:102,Name:"Bob"});
{ "acknowledged" :... | [
{
"code": null,
"e": 1224,
"s": 1062,
"text": "To get the topmost document, use find() along with limit(). To fetch only a single document, consider using limit(1). Let us create a collection with documents −"
},
{
"code": null,
"e": 1688,
"s": 1224,
"text": "> db.demo681.insertO... |
Collect.js partition() Method - GeeksforGeeks | 30 Nov, 2020
The partition() method is used to separate the collection elements according to the given callback function. The first array containing those elements that satisfy the predicate (condition) and the second array contains the remaining elements.
Syntax:
collect(array).partition(callback)
Parameters: The coll... | [
{
"code": null,
"e": 25220,
"s": 25192,
"text": "\n30 Nov, 2020"
},
{
"code": null,
"e": 25464,
"s": 25220,
"text": "The partition() method is used to separate the collection elements according to the given callback function. The first array containing those elements that satisfy... |
Fitting a Neural Network Using Randomized Optimization in Python | by Genevieve Hayes | Towards Data Science | Python’s mlrose package provides functionality for implementing some of the most popular randomization and search algorithms, and applying them to a range of different optimization problem domains.
In this tutorial, we will discuss how mlrose can be used to find the optimal weights for machine learning models, such as ... | [
{
"code": null,
"e": 370,
"s": 172,
"text": "Python’s mlrose package provides functionality for implementing some of the most popular randomization and search algorithms, and applying them to a range of different optimization problem domains."
},
{
"code": null,
"e": 599,
"s": 370,
... |
C++ Program to compare two string using pointers - GeeksforGeeks | 04 Nov, 2018
Given two strings, compare the strings using pointers
Examples:
Input: str1 = geeks, str2 = geeks
Output: Both are equal
Input: str1 = hello, str2 = hellu
Output: Both are not equal
As their length are same but characters are different
The idea is to dereference given pointers, compare values and advance ... | [
{
"code": null,
"e": 24448,
"s": 24420,
"text": "\n04 Nov, 2018"
},
{
"code": null,
"e": 24502,
"s": 24448,
"text": "Given two strings, compare the strings using pointers"
},
{
"code": null,
"e": 24512,
"s": 24502,
"text": "Examples:"
},
{
"code": null... |
MySQL IN Operator | The IN operator allows you to specify multiple values in a
WHERE clause.
The IN operator is a shorthand for multiple
OR conditions.
or:
The table below shows the complete "Customers" table from the Northwind sample database:
The following SQL statement selects all customers that are located in "Germany", "France"
or... | [
{
"code": null,
"e": 74,
"s": 0,
"text": "The IN operator allows you to specify multiple values in a \nWHERE clause."
},
{
"code": null,
"e": 134,
"s": 74,
"text": "The IN operator is a shorthand for multiple \nOR conditions."
},
{
"code": null,
"e": 138,
"s": 134... |
Convert Infix to Postfix Expression | Infix expressions are readable and solvable by humans. We can easily distinguish the order of operators, and also can use the parenthesis to solve that part first during solving mathematical expressions. The computer cannot differentiate the operators and parenthesis easily, that’s why postfix conversion is needed.
To ... | [
{
"code": null,
"e": 1379,
"s": 1062,
"text": "Infix expressions are readable and solvable by humans. We can easily distinguish the order of operators, and also can use the parenthesis to solve that part first during solving mathematical expressions. The computer cannot differentiate the operators a... |
FROM_UNIXTIME() function in MySQL - GeeksforGeeks | 22 Dec, 2020
FROM_UNIXTIME() :This function in MySQL helps to return date /DateTime representation of a Unix timestamp. The format of returning value will be ‘YYYY-MM-DD HH:MM:SS’ or ‘YYYYMMDDHHMMSS’, depending on the context of the function.
Syntax :
FROM_UNIXTIME(unix_timestamp, format)
Parameters :The function can a... | [
{
"code": null,
"e": 24268,
"s": 24240,
"text": "\n22 Dec, 2020"
},
{
"code": null,
"e": 24498,
"s": 24268,
"text": "FROM_UNIXTIME() :This function in MySQL helps to return date /DateTime representation of a Unix timestamp. The format of returning value will be ‘YYYY-MM-DD HH:MM:... |
Exploratory Data Analysis: A Practical Guide and Template for Structured Data | by Jiahao Weng | Towards Data Science | Very often, it is not the drawing that is most difficult, but rather what to draw on a blank white piece of paper that stumps people.
Similarly for data science, one may wonder how to get started after receiving a dataset. This is where Exploratory Data Analysis (EDA) comes to the rescue.
According to Wikipedia, EDA “i... | [
{
"code": null,
"e": 306,
"s": 172,
"text": "Very often, it is not the drawing that is most difficult, but rather what to draw on a blank white piece of paper that stumps people."
},
{
"code": null,
"e": 462,
"s": 306,
"text": "Similarly for data science, one may wonder how to ge... |
Count of subarrays having sum equal to its length - GeeksforGeeks | 18 May, 2021
Given an array arr[] of size N, the task is to find the number of subarrays having the sum of its elements equal to the number of elements in it.
Examples:
Input: N = 3, arr[] = {1, 0, 2}Output: 3Explanation:Total number of subarrays are 6 i.e., {1}, {0}, {2}, {1, 0}, {0, 2}, {1, 0, 2}.Out of 6 only three ... | [
{
"code": null,
"e": 25438,
"s": 25410,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 25584,
"s": 25438,
"text": "Given an array arr[] of size N, the task is to find the number of subarrays having the sum of its elements equal to the number of elements in it."
},
{
"co... |
How to click on image in selenium webdriver Python? | We can click on an image with Selenium webdriver in Python using the method click. First of all, we have to identify the image with the help of any of the locators like id, class, name, css, xpath, and so on. An image in the html code is represented by the img tagname.
Let us see the html code of an image element.
impo... | [
{
"code": null,
"e": 1332,
"s": 1062,
"text": "We can click on an image with Selenium webdriver in Python using the method click. First of all, we have to identify the image with the help of any of the locators like id, class, name, css, xpath, and so on. An image in the html code is represented by ... |
Tryit Editor v3.7 | HTML file paths
Tryit: relative url | [
{
"code": null,
"e": 26,
"s": 10,
"text": "HTML file paths"
}
] |
Data Scientists, The 5 Graph Algorithms that you should know | by Rahul Agarwal | Towards Data Science | We as data scientists have gotten quite comfortable with Pandas or SQL or any other relational database.
We are used to seeing our users in rows with their attributes as columns. But does the real world really behave like that?
In a connected world, users cannot be considered as independent entities. They have got cert... | [
{
"code": null,
"e": 277,
"s": 172,
"text": "We as data scientists have gotten quite comfortable with Pandas or SQL or any other relational database."
},
{
"code": null,
"e": 400,
"s": 277,
"text": "We are used to seeing our users in rows with their attributes as columns. But doe... |
How to Create a Strip Chart in R? - GeeksforGeeks | 14 Feb, 2022
In this article, we will be throwing light on the various methodologies to create a strip chart using various functions and its arguments in the R programming language.
In this approach to create a strip chart of the numeric vector, the user needs to simply call the stripchart() function which is an inbuil... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n14 Feb, 2022"
},
{
"code": null,
"e": 25020,
"s": 24851,
"text": "In this article, we will be throwing light on the various methodologies to create a strip chart using various functions and its arguments in the R programming lang... |
Manacher’s Algorithm | To find the longest palindromic substring from a string, we can use Manacher’s Algorithm. By selecting each character, we will try to find if there any palindrome using left and right pointer. There is another array to store information, from that information we can easily find how long the palindrome is. For each char... | [
{
"code": null,
"e": 1530,
"s": 1062,
"text": "To find the longest palindromic substring from a string, we can use Manacher’s Algorithm. By selecting each character, we will try to find if there any palindrome using left and right pointer. There is another array to store information, from that infor... |
How to change the app language programmatically in android? | This example demonstrates how do I in change the app language programmatically android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "This example demonstrates how do I in change the app language programmatically android."
},
{
"code": null,
"e": 1279,
"s": 1150,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all require... |
Python | Extract unique tuples from list, Order Irrespective - GeeksforGeeks | 11 Nov, 2019
Sometimes, while working with data, we can have a problem in which we need to check for similar records and eradicate them. When elements are ordered, this case has been discussed before. But sometimes, we might have to ignore the order and has to be removed in case similar elements occur. Let’s discuss ce... | [
{
"code": null,
"e": 24513,
"s": 24485,
"text": "\n11 Nov, 2019"
},
{
"code": null,
"e": 24868,
"s": 24513,
"text": "Sometimes, while working with data, we can have a problem in which we need to check for similar records and eradicate them. When elements are ordered, this case ha... |
\dagger - Tex Command | \dagger - Used to draw dagger symbol.
{ \dagger }
\dagger command draws dagger symbol.
\dagger
†
\dagger
†
\dagger
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu
29 Lectures
2.5 hours
Mo... | [
{
"code": null,
"e": 8024,
"s": 7986,
"text": "\\dagger - Used to draw dagger symbol."
},
{
"code": null,
"e": 8036,
"s": 8024,
"text": "{ \\dagger }"
},
{
"code": null,
"e": 8073,
"s": 8036,
"text": "\\dagger command draws dagger symbol."
},
{
"code":... |
Serialization and Deserialization in Java with Example - GeeksforGeeks | 07 Oct, 2021
Serialization is a mechanism of converting the state of an object into a byte stream. Deserialization is the reverse process where the byte stream is used to recreate the actual Java object in memory. This mechanism is used to persist the object.
The byte stream created is platform independent. So, the obj... | [
{
"code": null,
"e": 22941,
"s": 22913,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 23188,
"s": 22941,
"text": "Serialization is a mechanism of converting the state of an object into a byte stream. Deserialization is the reverse process where the byte stream is used to recre... |
Another Stage Of Visualization: Be Reactive with Dash | by Jiwon Jeong | Towards Data Science | Dash is an open source python library which enables us to create web applications with Plotly. It makes it easy to build an interactive visualization with simple reactive decorators like a dropdown, a slider bar, and markdown text data. We can even update the plots according to the input data with callbacks, and all th... | [
{
"code": null,
"e": 736,
"s": 171,
"text": "Dash is an open source python library which enables us to create web applications with Plotly. It makes it easy to build an interactive visualization with simple reactive decorators like a dropdown, a slider bar, and markdown text data. We can even update... |
Stop and Wait protocol, its problems and solutions - GeeksforGeeks | 08 Jun, 2021
It is the simplest flow control method in which the sender will send the packet and then wait for the acknowledgement by the receiver that it has received the packet then it will send the next packet.
Stop and wait protocol is very easy to implement.
Total time taken to send is,
Ttotal = Tt(data) + T... | [
{
"code": null,
"e": 24236,
"s": 24208,
"text": "\n08 Jun, 2021"
},
{
"code": null,
"e": 24438,
"s": 24236,
"text": "It is the simplest flow control method in which the sender will send the packet and then wait for the acknowledgement by the receiver that it has received the pack... |
Get the date/time of the last change to a MySQL database? | You can get the date/time of the last change to a MySQL database with the help of INFORMATION_SCHEMA.TABLES. The syntax is as follows −
SELECT update_time
FROM information_schema.tables
WHERE table_schema = 'yourDatabaseName’'
AND table_name = 'yourTableName’;
To understand the above syntax, let us create a table. The ... | [
{
"code": null,
"e": 1198,
"s": 1062,
"text": "You can get the date/time of the last change to a MySQL database with the help of INFORMATION_SCHEMA.TABLES. The syntax is as follows −"
},
{
"code": null,
"e": 1323,
"s": 1198,
"text": "SELECT update_time\nFROM information_schema.ta... |
LISP - Error Handling | In Common LISP terminology, exceptions are called conditions.
In fact, conditions are more general than exceptions in traditional programming languages, because a condition represents any occurrence, error, or not, which might affect various levels of function call stack.
Condition handling mechanism in LISP, handles s... | [
{
"code": null,
"e": 2122,
"s": 2060,
"text": "In Common LISP terminology, exceptions are called conditions."
},
{
"code": null,
"e": 2333,
"s": 2122,
"text": "In fact, conditions are more general than exceptions in traditional programming languages, because a condition represent... |
How to Use Group By and Partition By in SQL | by Chi Nguyen | Towards Data Science | When I first learned SQL, I had a problem of differentiating between PARTITION BY and GROUP BY, as they both have a function for grouping. I believe many people who begin to work with SQL may encounter the same problem. Therefore, in this article I want to share with you some examples of using PARTITION BY, and the dif... | [
{
"code": null,
"e": 546,
"s": 171,
"text": "When I first learned SQL, I had a problem of differentiating between PARTITION BY and GROUP BY, as they both have a function for grouping. I believe many people who begin to work with SQL may encounter the same problem. Therefore, in this article I want t... |
Delete Node in a BST in C++ | Suppose we have a binary search tree. We will take one key k, and we have to delete the given key k from the BST, and return the updated BST. So if the tree is like −
And the key k = 3, then the output tree will be −
To solve this, we will follow these steps −
Define a method called deleteRoot() to delete the root node... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "Suppose we have a binary search tree. We will take one key k, and we have to delete the given key k from the BST, and return the updated BST. So if the tree is like −"
},
{
"code": null,
"e": 1279,
"s": 1229,
"text": "And the key k =... |
Memoization using decorators in Python | 25 May, 2022
Recursion is a programming technique where a function calls itself repeatedly till a termination condition is met. Some of the examples where recursion is used are calculation of fibonacci series, factorial, etc. But the issue with them is that in the recursion tree, there can be chances that the sub-probl... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 May, 2022"
},
{
"code": null,
"e": 841,
"s": 54,
"text": "Recursion is a programming technique where a function calls itself repeatedly till a termination condition is met. Some of the examples where recursion is used are calculatio... |
How to declare a pointer to a function? | 28 May, 2017
Well, we assume that you know what does it mean by pointer in C. So how do we create a pointer to an integer in C?Huh..it is pretty simple..
int * ptrInteger; /*We have put a * operator between int
and ptrInteger to create a pointer.*/
Here ptrInteger is a pointer to integer. If you u... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 May, 2017"
},
{
"code": null,
"e": 193,
"s": 52,
"text": "Well, we assume that you know what does it mean by pointer in C. So how do we create a pointer to an integer in C?Huh..it is pretty simple.."
},
{
"code": null,
"... |
Write custom aggregation function in Pandas | 20 Aug, 2020
Pandas in python in widely used for Data Analysis purpose and it consists of some fine data structures like Dataframe and Series. There are several functions in pandas that proves to be a great help for a programmer one of them is an aggregate function. This function returns a single value from multiple va... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Aug, 2020"
},
{
"code": null,
"e": 479,
"s": 28,
"text": "Pandas in python in widely used for Data Analysis purpose and it consists of some fine data structures like Dataframe and Series. There are several functions in pandas that pr... |
How to get the MAC and IP address of a connected client in PHP? | 23 Feb, 2022
What is a MAC address?MAC is the abbreviation of “Media Access Control” and it is a 48-bit physical address associated with every networking device. It is printed on the NIC(Network Interface Card) and is globally unique for every networking device. MAC address is used by the data-link layer to route a dat... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Feb, 2022"
},
{
"code": null,
"e": 396,
"s": 52,
"text": "What is a MAC address?MAC is the abbreviation of “Media Access Control” and it is a 48-bit physical address associated with every networking device. It is printed on the NIC(... |
Find a Mother Vertex in a Graph | 30 Jun, 2022
What is a Mother Vertex? A mother vertex in a graph G = (V, E) is a vertex v such that all other vertices in G can be reached by a path from v.
Example:
Input : Below Graph
Output : 5
There can be more than one mother vertices in a graph. We need to output anyone of them. For example, in the below graph,... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Jun, 2022"
},
{
"code": null,
"e": 198,
"s": 54,
"text": "What is a Mother Vertex? A mother vertex in a graph G = (V, E) is a vertex v such that all other vertices in G can be reached by a path from v."
},
{
"code": null,
... |
ProgressBar in Kotlin | 01 Sep, 2021
Android ProgressBar is a user interface control that indicates the progress of an operation. For example, downloading a file, uploading a file on the internet we can see the progress bar to estimate the time remaining in operation. There are two modes of ProgressBar:
Determinate ProgressBar
Indeterminate ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 297,
"s": 28,
"text": "Android ProgressBar is a user interface control that indicates the progress of an operation. For example, downloading a file, uploading a file on the internet we can see the p... |
Random Number Generator in Solidity using keccak256 | 11 May, 2022
Random numbers are numbers that occur in a sequence with the following two mandatory conditions:
The values are uniformly distributed over a set interval.One cannot predict future values based on past outputs.
The values are uniformly distributed over a set interval.
One cannot predict future values based ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 May, 2022"
},
{
"code": null,
"e": 151,
"s": 54,
"text": "Random numbers are numbers that occur in a sequence with the following two mandatory conditions:"
},
{
"code": null,
"e": 264,
"s": 151,
"text": "The valu... |
PyQtGraph – Setting Horizontal Range of Plot Window | 13 Sep, 2021
In this article we will see how we can set the horizontal range 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 g... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Sep, 2021"
},
{
"code": null,
"e": 943,
"s": 28,
"text": "In this article we will see how we can set the horizontal range of the plot window in the PyQtGraph module. PyQtGraph is a graphics and user interface library for Python that ... |
Python Pandas - Finding the uncommon rows between two DataFrames | To find the uncommon rows between two DataFrames, use the concat() method. Let us first import the required library with alias −
import pandas as pd
Create DataFrame1 with two columns −
dataFrame1 = pd.DataFrame(
{
"Car": ['BMW', 'Lexus', 'Audi', 'Tesla', 'Bentley', 'Jaguar'],
"Reg_Price": [1000, 1500, 1... | [
{
"code": null,
"e": 1316,
"s": 1187,
"text": "To find the uncommon rows between two DataFrames, use the concat() method. Let us first import the required library with alias −"
},
{
"code": null,
"e": 1336,
"s": 1316,
"text": "import pandas as pd"
},
{
"code": null,
"... |
CSS Preprocessor | LESS | 27 May, 2020
LESS stands for Leaner Style Sheets. It is a backward-compatible language extension for CSS. It allows us to use features like variables, nesting, mixins, etc, all in a CSS-compatible syntax. LESS is influenced by SASS and has influenced the newer “SCSS” syntax of SASS. LESS was used in Bootstrap 3 but was... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 May, 2020"
},
{
"code": null,
"e": 369,
"s": 28,
"text": "LESS stands for Leaner Style Sheets. It is a backward-compatible language extension for CSS. It allows us to use features like variables, nesting, mixins, etc, all in a CSS-co... |
Google Charts - Table Chart | Table chart helps in rendering a table which can be sorted and paged. Table cells can be formatted using format strings, or by directly inserting HTML as cell values. Numeric values are right-aligned by default; boolean values are displayed as check marks or cross marks. Users can select single rows either with the key... | [
{
"code": null,
"e": 3024,
"s": 2395,
"text": "Table chart helps in rendering a table which can be sorted and paged. Table cells can be formatted using format strings, or by directly inserting HTML as cell values. Numeric values are right-aligned by default; boolean values are displayed as check mar... |
Sum of Bitwise OR of all pairs in a given array | 25 Nov, 2021
Given an array “arr[0..n-1]” of integers. The task is to calculate the sum of Bitwise OR of all pairs, i.e. calculate the sum of “arr[i] | arr[j]” for all the pairs in the given array where i < j. Here ‘|’ is a bitwise OR operator. Expected time complexity is O(n).Examples :
Input: arr[] = {5, 10, 15}
O... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Nov, 2021"
},
{
"code": null,
"e": 306,
"s": 28,
"text": "Given an array “arr[0..n-1]” of integers. The task is to calculate the sum of Bitwise OR of all pairs, i.e. calculate the sum of “arr[i] | arr[j]” for all the pairs in the giv... |
Basics of OHLC charts with Python’s Matplotlib | by Thiago Carvalho | Towards Data Science | With a history going back to the 18th century, Open-High-Low-Close (OHLC) charts are among the most popular financial analysis tools, typically used to illustrate stock prices over time.
In this article, we’ll see how to build an OHLC chart with Matplotlib from scratch, explore the advantages and limitations of this vi... | [
{
"code": null,
"e": 359,
"s": 172,
"text": "With a history going back to the 18th century, Open-High-Low-Close (OHLC) charts are among the most popular financial analysis tools, typically used to illustrate stock prices over time."
},
{
"code": null,
"e": 572,
"s": 359,
"text": ... |
Switch-Case Statements in Python 3.10 | Towards Data Science | Python 3.10 is beginning to fill-out with plenty of fascinating new features. One of those, in particular, caught my attention — structural pattern matching — or as most of us will know it, switch/case statements.
Switch-statements have been absent from Python despite being a common feature of most languages.
Back in 2... | [
{
"code": null,
"e": 386,
"s": 172,
"text": "Python 3.10 is beginning to fill-out with plenty of fascinating new features. One of those, in particular, caught my attention — structural pattern matching — or as most of us will know it, switch/case statements."
},
{
"code": null,
"e": 483,... |
How to find a network adapter driver version using PowerShell? | To find the network adapter driver version using PowerShell, we can use the Get-NetAdapter cmdlet. First, let look at how the network adapter driver version looks like from GUI.
Get-NetAdapter will retrieve all the Physical and Virtual network adapters unless specified.
This cmdlet has a property called DriverVersion, ... | [
{
"code": null,
"e": 1240,
"s": 1062,
"text": "To find the network adapter driver version using PowerShell, we can use the Get-NetAdapter cmdlet. First, let look at how the network adapter driver version looks like from GUI."
},
{
"code": null,
"e": 1333,
"s": 1240,
"text": "Get-... |
Apex - Environment | In this chapter, we will understand the environment for our Salesforce Apex development. It is assumed that you already have a Salesforce edition set up for doing Apex development.
You can develop the Apex code in either Sandbox or Developer edition of Salesforce. A Sandbox organization is a copy of your organization i... | [
{
"code": null,
"e": 2233,
"s": 2052,
"text": "In this chapter, we will understand the environment for our Salesforce Apex development. It is assumed that you already have a Salesforce edition set up for doing Apex development."
},
{
"code": null,
"e": 2627,
"s": 2233,
"text": "Y... |
Minimum number of Edges to be added to a Graph to satisfy the given condition - GeeksforGeeks | 30 Jun, 2021
Given a graph consisting of N nodes numbered from 0 to N – 1 and M edges in the form of pairs {a, b}, the task is to find the minimum number of edges to be added to the graph such that if there exists a path from any node a to node b, then there should be paths from node a to nodes [ a + 1, a + 2, a + 3, .... | [
{
"code": null,
"e": 24637,
"s": 24609,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 24964,
"s": 24637,
"text": "Given a graph consisting of N nodes numbered from 0 to N – 1 and M edges in the form of pairs {a, b}, the task is to find the minimum number of edges to be added t... |
Bayesball: Bayesian analysis of batting average | by Ricky Kim | Towards Data Science | *In addition to short code blocks I will attach, you can find the link for the whole Jupyter Notebook at the end of this post.
One of the topics in data science or statistics I found interesting, but having difficulty understanding is Bayesian analysis. During the course of my General Assembly’s Data Science Immersive ... | [
{
"code": null,
"e": 298,
"s": 171,
"text": "*In addition to short code blocks I will attach, you can find the link for the whole Jupyter Notebook at the end of this post."
},
{
"code": null,
"e": 611,
"s": 298,
"text": "One of the topics in data science or statistics I found int... |
How to install a certificate to the certificate store using PowerShell? | To install the certificate using PowerShell, we need to use the Import-Certificate command. For example, we have a certificate stored at the location C:\temp\Mycert.cer and we need to install it in the Personal store of the local machine.
Import-Certificate -FilePath C:\Temp\Mycert.cer `
-CertStoreLocation Cert:\Loc... | [
{
"code": null,
"e": 1301,
"s": 1062,
"text": "To install the certificate using PowerShell, we need to use the Import-Certificate command. For example, we have a certificate stored at the location C:\\temp\\Mycert.cer and we need to install it in the Personal store of the local machine."
},
{
... |
DateTime.AddHours() Method in C# - GeeksforGeeks | 21 Jan, 2019
This method is used to return a new DateTime that adds the specified number of hours to the value of this instance.
Syntax:
public DateTime AddHours (double value);
Here, the value is the number of whole and fractional hours. The value parameter can be negative or positive.
Return Value: This method return... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n21 Jan, 2019"
},
{
"code": null,
"e": 24418,
"s": 24302,
"text": "This method is used to return a new DateTime that adds the specified number of hours to the value of this instance."
},
{
"code": null,
"e": 24426,
... |
Groovy - Continue Statement | The continue statement complements the break statement. Its use is restricted to while and for loops. When a continue statement is executed, control is immediately passed to the test condition of the nearest enclosing loop to determine whether the loop should continue. All subsequent statements in the body of the loop ... | [
{
"code": null,
"e": 2606,
"s": 2238,
"text": "The continue statement complements the break statement. Its use is restricted to while and for loops. When a continue statement is executed, control is immediately passed to the test condition of the nearest enclosing loop to determine whether the loop ... |
Audio processing using Pydub and Google Speech Recognition API in Python | In this tutorial, we are going to work with the audio files. We will breakdown the audio into chunks to recognize the content in it. We will store the content of the audio files in text files as well. Install the following modules using the below commands.
pip install pydub
If you run the above command, you will get th... | [
{
"code": null,
"e": 1319,
"s": 1062,
"text": "In this tutorial, we are going to work with the audio files. We will breakdown the audio into chunks to recognize the content in it. We will store the content of the audio files in text files as well. Install the following modules using the below comman... |
Root to Leaf Paths | Practice | GeeksforGeeks | Given a Binary Tree of size N, you need to find all the possible paths from root node to all the leaf node's of the binary tree.
Example 1:
Input:
1
/ \
2 3
Output: 1 2 #1 3 #
Explanation:
All possible paths:
1->2
1->3
Example 2:
Input:
10
/ \
20 30
/ \
4... | [
{
"code": null,
"e": 367,
"s": 238,
"text": "Given a Binary Tree of size N, you need to find all the possible paths from root node to all the leaf node's of the binary tree."
},
{
"code": null,
"e": 378,
"s": 367,
"text": "Example 1:"
},
{
"code": null,
"e": 484,
... |
Static Variables in C | Static variables are initialized only once. The compiler persists with the variable till the end of the program. Static variables can be defined inside or outside the function. They are local to the block. The default value of static variables is zero. The static variables are alive till the execution of the program.
H... | [
{
"code": null,
"e": 1381,
"s": 1062,
"text": "Static variables are initialized only once. The compiler persists with the variable till the end of the program. Static variables can be defined inside or outside the function. They are local to the block. The default value of static variables is zero. ... |
ByteBuffer flip() methods in Java with Examples - GeeksforGeeks | 27 Jun, 2019
The flip() method of java.nio.ByteBuffer Class is used to flip this buffer. The limit is set to the current position and then the position is set to zero. If the mark is defined then it is discarded. After a sequence of channel-read or put operations, invoke this method to prepare for a sequence of channel... | [
{
"code": null,
"e": 24554,
"s": 24526,
"text": "\n27 Jun, 2019"
},
{
"code": null,
"e": 24896,
"s": 24554,
"text": "The flip() method of java.nio.ByteBuffer Class is used to flip this buffer. The limit is set to the current position and then the position is set to zero. If the m... |
Setting-up Apache Spark in Standalone Mode | by Rahuldubey | Towards Data Science | In this post we are going to setup Apache Spark in Standalone cluster mode. Apache Spark is a framework which is used to solve Big Data problems like Data Processing, Feature Engineering, Machine learning and working with streaming data. Apache Spark provides a way to distribute your work load with several worker nodes... | [
{
"code": null,
"e": 721,
"s": 172,
"text": "In this post we are going to setup Apache Spark in Standalone cluster mode. Apache Spark is a framework which is used to solve Big Data problems like Data Processing, Feature Engineering, Machine learning and working with streaming data. Apache Spark prov... |
Counting numbers after decimal point in JavaScript | We are required to write a JavaScript function that takes in a number which may be an integer or a floating-point number. If it's a floating-point number, we have to return the count of numbers after the decimal point. Otherwise we should return 0.
For our example, we are considering two numbers −
const num1 = 1.123456... | [
{
"code": null,
"e": 1311,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a number which may be an integer or a floating-point number. If it's a floating-point number, we have to return the count of numbers after the decimal point. Otherwise we should return 0."
}... |
Capitalize text with CSS | To capitalize text with CSS, use the capitalize property. You can try to run the following code to capitalize text:
<html>
<head>
</head>
<body>
<p style = "text-transform:capitalize;">
India
</p>
</body>
</html> | [
{
"code": null,
"e": 1178,
"s": 1062,
"text": "To capitalize text with CSS, use the capitalize property. You can try to run the following code to capitalize text:"
},
{
"code": null,
"e": 1308,
"s": 1178,
"text": "<html>\n <head>\n </head>\n <body>\n <p style = \"text-... |
Neo4j - Sum Function | It takes a set of rows and a <property-name> of a node or relationship as an input and finds the summation value from the given <property-name> column of given rows.
Following is the syntax of the SUM() function.
SUM(<property-name>)
Following is a sample Cypher query which demonstrates the usage of the function SUM()... | [
{
"code": null,
"e": 2505,
"s": 2339,
"text": "It takes a set of rows and a <property-name> of a node or relationship as an input and finds the summation value from the given <property-name> column of given rows."
},
{
"code": null,
"e": 2552,
"s": 2505,
"text": "Following is the... |
Classifying Images of Alcoholic Beverages with fast.ai | Towards Data Science | Having starting immersing myself in the updated fast.ai v2 deep learning course, I felt it would be ideal to apply and document what I have learnt so far. In this article, I will be sharing about how I trained a deep learning (CNN) classifier to distinguish the different types of popular alcoholic beverages.
An importa... | [
{
"code": null,
"e": 481,
"s": 171,
"text": "Having starting immersing myself in the updated fast.ai v2 deep learning course, I felt it would be ideal to apply and document what I have learnt so far. In this article, I will be sharing about how I trained a deep learning (CNN) classifier to distingui... |
How to catch LookupError Exception in Python? | LookupError Exception is the Base class for errors raised when something can’t be found. The base class for the exceptions that are raised when a key or index used on a mapping or sequence is invalid: IndexError, KeyError.
An IndexError is raised when a sequence reference is out of range.
The given code is rewritten as... | [
{
"code": null,
"e": 1285,
"s": 1062,
"text": "LookupError Exception is the Base class for errors raised when something can’t be found. The base class for the exceptions that are raised when a key or index used on a mapping or sequence is invalid: IndexError, KeyError."
},
{
"code": null,
... |
NumPy - Array From Numerical Ranges | In this chapter, we will see how to create an array from numerical ranges.
This function returns an ndarray object containing evenly spaced values within a given range. The format of the function is as follows −
numpy.arange(start, stop, step, dtype)
The constructor takes the following parameters.
start
The start of a... | [
{
"code": null,
"e": 2318,
"s": 2243,
"text": "In this chapter, we will see how to create an array from numerical ranges."
},
{
"code": null,
"e": 2455,
"s": 2318,
"text": "This function returns an ndarray object containing evenly spaced values within a given range. The format of... |
Minimum length of subsequence having unit GCD - GeeksforGeeks | 22 Jun, 2021
Given an array arr[] of N positive integers. The task is to find the length of the shortest sub-sequence such that the GCD of the subsequence is 1. If none of the sub-sequence has GCD 1, then print “-1“.
Examples:
Input: arr[] = {2, 6, 12, 3}Output: 2 Explanation:The GCD of 2, 3 = 1, which is the smalles... | [
{
"code": null,
"e": 24429,
"s": 24401,
"text": "\n22 Jun, 2021"
},
{
"code": null,
"e": 24634,
"s": 24429,
"text": "Given an array arr[] of N positive integers. The task is to find the length of the shortest sub-sequence such that the GCD of the subsequence is 1. If none of the ... |
Explain HTML formatting in PowerShell? | HTML is another form of output in PowerShell. It is the rich form of output and you can use various CSS styles to make the output more interactive. We will use the Convertto-HTML cmdlet to convert the output in the HTML format.
Here is the Syntax of the Convertto-HTML cmdlet.
ConvertTo-Html
[-InputObject <PSObject>... | [
{
"code": null,
"e": 1290,
"s": 1062,
"text": "HTML is another form of output in PowerShell. It is the rich form of output and you can use various CSS styles to make the output more interactive. We will use the Convertto-HTML cmdlet to convert the output in the HTML format."
},
{
"code": nul... |
Check whether a number is Good prime or not | 14 May, 2021
Given a positive integer N, the task is to check whether the given number is good prime or not. If the given number is good prime print ‘YES’ Otherwise Print ‘NO’.
Good Prime: In Mathematics, a good prime is a prime number whose square is greater than the product of any two primes at the same number of po... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 May, 2021"
},
{
"code": null,
"e": 219,
"s": 54,
"text": "Given a positive integer N, the task is to check whether the given number is good prime or not. If the given number is good prime print ‘YES’ Otherwise Print ‘NO’. "
},
{... |
Merge two DataFrames in PySpark | 04 May, 2022
In this article, we will learn how to merge multiple data frames row-wise in PySpark. Outside chaining unions this is the only way to do it for DataFrames. The module used is pyspark :
Spark (open-source Big-Data processing engine by Apache) is a cluster computing system. It is faster as compared to other ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 May, 2022"
},
{
"code": null,
"e": 213,
"s": 28,
"text": "In this article, we will learn how to merge multiple data frames row-wise in PySpark. Outside chaining unions this is the only way to do it for DataFrames. The module used is ... |
Comparison Networks - GeeksforGeeks | 20 Feb, 2020
Comparison Networks are a type of sorting networks which always sort their inputs. Wires and comparator comprise comparison network. A Comparator is a device which has two inputs (x, y) and outputs (x’, y’). It performs the following function:
x' = min(x, y),
y' = max(x, y)
Comparators are conventionally ... | [
{
"code": null,
"e": 24510,
"s": 24482,
"text": "\n20 Feb, 2020"
},
{
"code": null,
"e": 24754,
"s": 24510,
"text": "Comparison Networks are a type of sorting networks which always sort their inputs. Wires and comparator comprise comparison network. A Comparator is a device which... |
new and delete operators in C++ for dynamic memory - GeeksforGeeks | 22 Oct, 2021
Dynamic memory allocation in C/C++ refers to performing memory allocation manually by programmer. Dynamically allocated memory is allocated on Heap and non-static and local variables get memory allocated on Stack (Refer Memory Layout C Programs for details).What are applications?
One use of dynamically a... | [
{
"code": null,
"e": 27058,
"s": 27030,
"text": "\n22 Oct, 2021"
},
{
"code": null,
"e": 27341,
"s": 27058,
"text": "Dynamic memory allocation in C/C++ refers to performing memory allocation manually by programmer. Dynamically allocated memory is allocated on Heap and non-static ... |
Python - Find dictionary keys present in a Strings List - GeeksforGeeks | 08 May, 2020
Sometimes, while working with Python dictionaries, we can have problem in which we need to perform the extraction of dictionary keys from strings list feeded. This problem can have application in many domains including data. Lets discuss certain ways in which this task can be performed.
Method #1 : Using l... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n08 May, 2020"
},
{
"code": null,
"e": 25843,
"s": 25555,
"text": "Sometimes, while working with Python dictionaries, we can have problem in which we need to perform the extraction of dictionary keys from strings list feeded. This... |
D3.js symbol.size() Method - GeeksforGeeks | 14 Sep, 2020
The symbol.size() method can be used to change the size of the symbol.
Syntax:
symbol.size([size])
Parameters: This function accepts a single parameter as mentioned above and described below:
size: This is the size in square pixels or the area to be set.
Return Value: This method has no return value.
Exam... | [
{
"code": null,
"e": 25300,
"s": 25272,
"text": "\n14 Sep, 2020"
},
{
"code": null,
"e": 25371,
"s": 25300,
"text": "The symbol.size() method can be used to change the size of the symbol."
},
{
"code": null,
"e": 25379,
"s": 25371,
"text": "Syntax:"
},
{
... |
LISP - Variables | In LISP, each variable is represented by a symbol. The variable's name is the name of the symbol and it is stored in the storage cell of the symbol.
Global variables have permanent values throughout the LISP system and remain in effect until a new value is specified.
Global variables are generally declared using the de... | [
{
"code": null,
"e": 2209,
"s": 2060,
"text": "In LISP, each variable is represented by a symbol. The variable's name is the name of the symbol and it is stored in the storage cell of the symbol."
},
{
"code": null,
"e": 2328,
"s": 2209,
"text": "Global variables have permanent v... |
Beginner’s Guide to Jupyter Notebook | by Shinichi Okada | Towards Data Science | Table of ContentsIntroduction1. Installing Anaconda2. Jupyter Notebook help and shortcuts3. Python libraries4. Finding data5. Importing data6. Data attributes7. Missing Value8. Dealing with NaN values9. How to deal categorical data10. Descriptive statistics11. Basic plotting12. Matplotlib13. Seaborn14. What’s next?
In ... | [
{
"code": null,
"e": 489,
"s": 172,
"text": "Table of ContentsIntroduction1. Installing Anaconda2. Jupyter Notebook help and shortcuts3. Python libraries4. Finding data5. Importing data6. Data attributes7. Missing Value8. Dealing with NaN values9. How to deal categorical data10. Descriptive statisti... |
Python matplotlib multiple bars | We can use a user-defined method, autolabel, to annotate the axis value. Before that, we can initialize the fig and ax using plt.subplots() method.
Create lists, labels, men_means, and women_means with different data elements.
Create lists, labels, men_means, and women_means with different data elements.
Return evenly ... | [
{
"code": null,
"e": 1210,
"s": 1062,
"text": "We can use a user-defined method, autolabel, to annotate the axis value. Before that, we can initialize the fig and ax using plt.subplots() method."
},
{
"code": null,
"e": 1289,
"s": 1210,
"text": "Create lists, labels, men_means, a... |
Longest Consecutive Sequence in Python | Suppose we have an array of integers. We have to find the length of the longest consecutive elements sequence. So if the input is like [100, 4, 250, 1, 3, 2], answer will be 4, as the longest consecutive sequence is [1,2,3,4].
To solve this, we will follow these steps −
make the array set, longest := 0
make the array s... | [
{
"code": null,
"e": 1289,
"s": 1062,
"text": "Suppose we have an array of integers. We have to find the length of the longest consecutive elements sequence. So if the input is like [100, 4, 250, 1, 3, 2], answer will be 4, as the longest consecutive sequence is [1,2,3,4]."
},
{
"code": null... |
Frequent pattern mining, Association, and Correlations | by Prathibha Perera | Towards Data Science | In Data Mining, Frequent Pattern Mining is a major concern because it is playing a major role in Associations and Correlations. First of all, we should know what is a Frequent Pattern?
Frequent Pattern is a pattern which appears frequently in a data set. By identifying frequent patterns we can observe strongly correlat... | [
{
"code": null,
"e": 356,
"s": 171,
"text": "In Data Mining, Frequent Pattern Mining is a major concern because it is playing a major role in Associations and Correlations. First of all, we should know what is a Frequent Pattern?"
},
{
"code": null,
"e": 703,
"s": 356,
"text": "F... |
Simple Transformers — Introducing The Easiest Way To Use BERT, RoBERTa, XLNet, and XLM | by Thilina Rajapakse | Towards Data Science | The Simple Transformers library is built as a wrapper around the excellent Transformers library by Hugging Face. I am eternally grateful for the hard work done by the folks at Hugging Face to enable the public to easily access and use Transformer models. I don’t know what I’d have done without you guys!
I believe it’s ... | [
{
"code": null,
"e": 476,
"s": 171,
"text": "The Simple Transformers library is built as a wrapper around the excellent Transformers library by Hugging Face. I am eternally grateful for the hard work done by the folks at Hugging Face to enable the public to easily access and use Transformer models. ... |
EDA: Variable Relationships and Filling Missing Values | by Wesley Neill | Towards Data Science | As part of my journey as a data scientist, end-to-end data exploration and model development has been a key to my learning success. This series will provide an end to end look at predicting home sale prices in Ames Iowa. The series will be broken down into four parts for readability:
EDA Part 1: Plotting Warmup and Fil... | [
{
"code": null,
"e": 457,
"s": 172,
"text": "As part of my journey as a data scientist, end-to-end data exploration and model development has been a key to my learning success. This series will provide an end to end look at predicting home sale prices in Ames Iowa. The series will be broken down int... |
Bash Script - Write Hello World Program - GeeksforGeeks | 08 Dec, 2021
In this article, we are going to see how to write “hello world” program in Bash script.
The bash script is a text file that contains a set of instructions ( i.e. codes or commands ) that can be executed in the terminal. In any programming language, the first program that we learn to write is ” Hello World ... | [
{
"code": null,
"e": 24015,
"s": 23987,
"text": "\n08 Dec, 2021"
},
{
"code": null,
"e": 24103,
"s": 24015,
"text": "In this article, we are going to see how to write “hello world” program in Bash script."
},
{
"code": null,
"e": 24327,
"s": 24103,
"text": "Th... |
Jackson Annotations - @JsonEnumDefaultValue | @JsonEnumDefaultValue is used to deserialize an unknown enum value using a default value.
import java.io.IOException;
import java.text.ParseException;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.Ob... | [
{
"code": null,
"e": 2565,
"s": 2475,
"text": "@JsonEnumDefaultValue is used to deserialize an unknown enum value using a default value."
},
{
"code": null,
"e": 3347,
"s": 2565,
"text": "import java.io.IOException; \nimport java.text.ParseException; \n\nimport com.fasterxml.jack... |
Android - UI Design | In this chapter we will look at the different UI components of android screen. This chapter also covers the tips to make a better UI design and also explains how to design a UI.
A typical user interface of an android application consists of action bar and the application content area.
Main Action Bar
View Control
Cont... | [
{
"code": null,
"e": 3785,
"s": 3607,
"text": "In this chapter we will look at the different UI components of android screen. This chapter also covers the tips to make a better UI design and also explains how to design a UI."
},
{
"code": null,
"e": 3894,
"s": 3785,
"text": "A ty... |
Palindrome numbers in JavaScript | We are required to write a JavaScript function that takes in a number and determines whether or not it is a palindrome number.
Palindrome numbers − A palindrome number is that number which reads the same from both left and right sides.
For example −
343 is a palindrome number
343 is a palindrome number
6789876 is a pal... | [
{
"code": null,
"e": 1189,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a number and determines whether or not it is a palindrome number."
},
{
"code": null,
"e": 1298,
"s": 1189,
"text": "Palindrome numbers − A palindrome number is that number... |
Count of substrings containing exactly K distinct vowels - GeeksforGeeks | 29 Dec, 2021
Given string str of size N containing both uppercase and lowercase letters, and an integer K. The task is to find the count of substrings containing exactly K distinct vowels.
Examples:
Input: str = “aeiou”, K = 2Output: 4Explanation: The substrings having two distinct vowels are “ae”, “ei”, “io” and “ou”.... | [
{
"code": null,
"e": 25374,
"s": 25346,
"text": "\n29 Dec, 2021"
},
{
"code": null,
"e": 25550,
"s": 25374,
"text": "Given string str of size N containing both uppercase and lowercase letters, and an integer K. The task is to find the count of substrings containing exactly K dist... |
Develop glue jobs locally using Docker containers | by Shubham Jain | Towards Data Science | With the increasing amount of data in the current world, the need for services handling big data is very demanding. When we think about big data, there are very few frameworks which are used by most of the data engineers. Apache Spark is one of them.
Apache Spark is a distributed processing engine which requires a larg... | [
{
"code": null,
"e": 423,
"s": 172,
"text": "With the increasing amount of data in the current world, the need for services handling big data is very demanding. When we think about big data, there are very few frameworks which are used by most of the data engineers. Apache Spark is one of them."
}... |
Find the Kth smallest element in the sorted generated array - GeeksforGeeks | 21 Jan, 2022
Given an array arr[] of N elements and an integer K, the task is to generate an B[] with the following rules:
Copy elements arr[1...N], N times to array B[].Copy elements arr[1...N/2], 2*N times to array B[].Copy elements arr[1...N/4], 3*N times to array B[].Similarly, until only no element is left to be... | [
{
"code": null,
"e": 25432,
"s": 25404,
"text": "\n21 Jan, 2022"
},
{
"code": null,
"e": 25544,
"s": 25432,
"text": "Given an array arr[] of N elements and an integer K, the task is to generate an B[] with the following rules: "
},
{
"code": null,
"e": 25761,
"s"... |
Anonymous Structure and Field in Golang - GeeksforGeeks | 12 Aug, 2019
A structure or struct in Golang is a user-defined type, which allows us to create a group of elements of different types into a single unit. Any real-world entity which has some set of properties or fields can be represented as a struct.
In Go language, you are allowed to create an anonymous structure. An ... | [
{
"code": null,
"e": 24906,
"s": 24878,
"text": "\n12 Aug, 2019"
},
{
"code": null,
"e": 25144,
"s": 24906,
"text": "A structure or struct in Golang is a user-defined type, which allows us to create a group of elements of different types into a single unit. Any real-world entity ... |
Is BIGINT(8) the largest integer MySQL can store? | In BIGINT(8), the number 8 represents how the data will be displayed. It does not affect the storage. The number is used to display width.
BIGINT takes 8 bytes i.e. 64 bits. The signed range is -9223372036854775808 to 9223372036854775807 and unsigned range takes positive value. The range of unsigned is 0 to 18446744073... | [
{
"code": null,
"e": 1201,
"s": 1062,
"text": "In BIGINT(8), the number 8 represents how the data will be displayed. It does not affect the storage. The number is used to display width."
},
{
"code": null,
"e": 1393,
"s": 1201,
"text": "BIGINT takes 8 bytes i.e. 64 bits. The sign... |
PHP - imap_headerinfo() Function | PHP−IMAP functions helps you to access email accounts, IMAP stands for Internet Mail Access Protocol using these functions you can also work with NNTP, POP3 protocols and local mailbox access methods.
The imap_headerinfo() function accepts a resource value representing an IMAP stream, an integer value representing a pa... | [
{
"code": null,
"e": 2958,
"s": 2757,
"text": "PHP−IMAP functions helps you to access email accounts, IMAP stands for Internet Mail Access Protocol using these functions you can also work with NNTP, POP3 protocols and local mailbox access methods."
},
{
"code": null,
"e": 3156,
"s": ... |
Computer Concepts - Programming Languages | A program is a set of instructions that help computer to perform tasks. This set of instructions is also called as scripts. Programs are executed by processor whereas scripts are interpreted. The languages that are used to write a program or set of instructions are called "Programming languages". Programming languages ... | [
{
"code": null,
"e": 2233,
"s": 1870,
"text": "A program is a set of instructions that help computer to perform tasks. This set of instructions is also called as scripts. Programs are executed by processor whereas scripts are interpreted. The languages that are used to write a program or set of inst... |
ReactJS UI Ant Design Table Component - GeeksforGeeks | 30 Jun, 2021
Ant Design Library has this component pre-built, and it is very easy to integrate as well. ReactJS UI Ant Design Table Component is used to display rows of data. It is used to display data in the form of table format. We can use the following approach in ReactJS to use the Ant Design Table Component.
Table... | [
{
"code": null,
"e": 33847,
"s": 33819,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 34149,
"s": 33847,
"text": "Ant Design Library has this component pre-built, and it is very easy to integrate as well. ReactJS UI Ant Design Table Component is used to display rows of data. I... |
Sum of similarities of string with all of its suffixes - GeeksforGeeks | 11 Aug, 2021
Given a string str, the task is to find the sum of the similarities of str with each of its suffixes. The similarity of strings A and B is the length of the longest prefix common to both the strings i.e. the similarity of “aabc” and “aab” is 3 and that of “qwer” and “abc” is 0.Examples:
Input: str = “aba... | [
{
"code": null,
"e": 24619,
"s": 24591,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 24909,
"s": 24619,
"text": "Given a string str, the task is to find the sum of the similarities of str with each of its suffixes. The similarity of strings A and B is the length of the longes... |
How Important is the K in KNN Algorithm | by Soner Yıldırım | Towards Data Science | K-nearest neighbors (KNN) is a supervised machine learning algorithm that can be used to solve both classification and regression tasks.
It is based on a very simple idea. The value of a data point is determined by the data points around it.
The value of a data point is determined by the data points around it.
The numb... | [
{
"code": null,
"e": 309,
"s": 172,
"text": "K-nearest neighbors (KNN) is a supervised machine learning algorithm that can be used to solve both classification and regression tasks."
},
{
"code": null,
"e": 414,
"s": 309,
"text": "It is based on a very simple idea. The value of a... |
How to Use Neumorphic Theme in Android? - GeeksforGeeks | 21 Apr, 2021
Neumorphic theme is one of the beautiful which is seen used in many of the apps. It is a beautiful theme in which we can add a little elevation to the views of our layout components to make it look beautiful. Below is the screenshot in which you can get to see the sample layout which is made with the help ... | [
{
"code": null,
"e": 26381,
"s": 26353,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 26710,
"s": 26381,
"text": "Neumorphic theme is one of the beautiful which is seen used in many of the apps. It is a beautiful theme in which we can add a little elevation to the views of our... |
Python - Concatenate Tuple elements by delimiter - GeeksforGeeks | 02 Sep, 2020
Given a tuple, concatenate each element of tuple by delimiter.
Input : test_tup = (“Gfg”, “is”, 4, “Best”), delim = “, ”Output : Gfg, is, 4, BestExplanation : Elements joined by “, “.
Input : test_tup = (“Gfg”, “is”, 4), delim = “, ”Output : Gfg, is, 4Explanation : Elements joined by “, “.
Method #1 : Usin... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 25600,
"s": 25537,
"text": "Given a tuple, concatenate each element of tuple by delimiter."
},
{
"code": null,
"e": 25721,
"s": 25600,
"text": "Input : test_tup = (“Gfg”, ... |
Minimize cost of operation to equalize tower heights - GeeksforGeeks | 14 Mar, 2022
Given heights of n (n <=10000) towers as an array h[]; we need to bring every tower to same height by either adding or removing blocks in a tower. Every addition or removal operation costs a different value in a different tower. The objective is to minimize this cost.Examples:
Input : Tower heights h[] =... | [
{
"code": null,
"e": 26065,
"s": 26037,
"text": "\n14 Mar, 2022"
},
{
"code": null,
"e": 26345,
"s": 26065,
"text": "Given heights of n (n <=10000) towers as an array h[]; we need to bring every tower to same height by either adding or removing blocks in a tower. Every addition o... |
Python | Numpy np.unique() method - GeeksforGeeks | 21 Nov, 2019
With the help of np.unique() method, we can get the unique values from an array given as parameter in np.unique() method.
Syntax : np.unique(Array)Return : Return the unique of an array.
Example #1 :In this example we can see that by using np.unique() method, we are able to get the unique values from an ar... | [
{
"code": null,
"e": 25561,
"s": 25533,
"text": "\n21 Nov, 2019"
},
{
"code": null,
"e": 25683,
"s": 25561,
"text": "With the help of np.unique() method, we can get the unique values from an array given as parameter in np.unique() method."
},
{
"code": null,
"e": 2574... |
How to create To-Do List using jQuery? - GeeksforGeeks | 23 Jan, 2020
This article focuses on developing a To-do List with some basic features like:
Add TaskDelete TaskCross the completed tasks
Add Task
Delete Task
Cross the completed tasks
Prerequisites:Basic knowledge of Front-end development using HTML, CSS, JS, jQuery & Bootstrap-3.Steps:
Initialize the layout:– Add a in... | [
{
"code": null,
"e": 26033,
"s": 26005,
"text": "\n23 Jan, 2020"
},
{
"code": null,
"e": 26112,
"s": 26033,
"text": "This article focuses on developing a To-do List with some basic features like:"
},
{
"code": null,
"e": 26157,
"s": 26112,
"text": "Add TaskDel... |
Print all subsequences of a string using ArrayList - GeeksforGeeks | 07 Mar, 2022
Given a string str, the task is to print all the sub-sequences of str. A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements.Examples:
Input: str = “abc” Output: a b ab c ac bc abcInput: str = “geek” Outp... | [
{
"code": null,
"e": 26689,
"s": 26661,
"text": "\n07 Mar, 2022"
},
{
"code": null,
"e": 26927,
"s": 26689,
"text": "Given a string str, the task is to print all the sub-sequences of str. A subsequence is a sequence that can be derived from another sequence by deleting some or no... |
Program to draw a Hut in using OpenGL in C++ - GeeksforGeeks | 10 Oct, 2021
In this article, we will discuss how to create a front-facing view of a hut in OpenGL using two basic shapes i.e. triangle and rectangle.
Approach: Follow the steps below to solve the problem:
Initialize the toolkit using the function glutInit (&argc, argv).
Set the display mode and specify the color schem... | [
{
"code": null,
"e": 25763,
"s": 25735,
"text": "\n10 Oct, 2021"
},
{
"code": null,
"e": 25901,
"s": 25763,
"text": "In this article, we will discuss how to create a front-facing view of a hut in OpenGL using two basic shapes i.e. triangle and rectangle."
},
{
"code": nul... |
How to compare two objects to determine the first object contains equivalent property values to the second object in JavaScript ? - GeeksforGeeks | 23 Apr, 2021
Given two objects obj1 and obj2 and the task is to check the obj1 contains all the property values of obj2 in JavaScript.
Input: obj1: { name: "John", age: 23; degree: "CS" }
obj2: {age: 23, degree: "CS"}
Output: true
Input: obj1: { name: "John", degree: "CS" }
obj2: {name: "Max", ag... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n23 Apr, 2021"
},
{
"code": null,
"e": 26667,
"s": 26545,
"text": "Given two objects obj1 and obj2 and the task is to check the obj1 contains all the property values of obj2 in JavaScript."
},
{
"code": null,
"e": 2689... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.