title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
PHP mysqli_query() Function
The mysqli_query() function accepts a string value representing a query as one of the parameters and, executes/performs the given query on the database. mysqli_query($con, query) con(Mandatory) This is an object representing a connection to MySQL Server. query(Mandatory) This is a string value representing the query t...
[ { "code": null, "e": 2910, "s": 2757, "text": "The mysqli_query() function accepts a string value representing a query as one of the parameters and, executes/performs the given query on the database." }, { "code": null, "e": 2937, "s": 2910, "text": "mysqli_query($con, query)\n" ...
Kth largest element in BST | Practice | GeeksforGeeks
Given a Binary search tree. Your task is to complete the function which will return the Kth largest element without doing any modification in Binary Search Tree. Example 1: Input: 4 / \ 2 9 k = 2 Output: 4 Example 2: Input: 9 \ 10 K = 1 Output: 10 Your Task: You don't ...
[ { "code": null, "e": 400, "s": 238, "text": "Given a Binary search tree. Your task is to complete the function which will return the Kth largest element without doing any modification in Binary Search Tree." }, { "code": null, "e": 412, "s": 400, "text": "\nExample 1:" }, { ...
C# | Adding new node or value at the end of LinkedList<T> - GeeksforGeeks
01 Feb, 2019 LinkedList<T>.AddLast Method is used to add a new node or value at the end of the LinkedList<T>. There are 2 methods in the overload list of this method as follows: AddLast(LinkedList<T>)AddLast(T) AddLast(LinkedList<T>) AddLast(T) This method is used to add the specified new node at the end of the LinkedL...
[ { "code": null, "e": 24127, "s": 24099, "text": "\n01 Feb, 2019" }, { "code": null, "e": 24292, "s": 24127, "text": "LinkedList<T>.AddLast Method is used to add a new node or value at the end of the LinkedList<T>. There are 2 methods in the overload list of this method as follows...
Matplotlib.pyplot.gcf() in Python - GeeksforGeeks
23 Jan, 2022 Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. matplotlib.pyplot.gcf() is primarily used to get the current figure. If no current figure is a...
[ { "code": null, "e": 23979, "s": 23951, "text": "\n23 Jan, 2022" }, { "code": null, "e": 24192, "s": 23979, "text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays an...
Predictive Analytics: Bayesian Linear Regression in Python | by Niousha Rasifaghihi | Towards Data Science
In this post, I would like to focus more on the Bayesian Linear Regression theory and implement the modelling in Python for a data science project. The whole project is about forecasting urban water consumption under the impact of climate change in the next three decades. The complete version of the code is available a...
[ { "code": null, "e": 626, "s": 171, "text": "In this post, I would like to focus more on the Bayesian Linear Regression theory and implement the modelling in Python for a data science project. The whole project is about forecasting urban water consumption under the impact of climate change in the ne...
Let’s Forecast Your Time Series using Classical Approaches | by Ajay Tiwari | Towards Data Science
We learned various data preparation techniques and also set up a robust evaluation framework in my previous articles. Now, we are ready to explore different forecasting techniques. With the availability of many machine learning models, often we forget the power of our classical algorithms. It is a good idea to start wi...
[ { "code": null, "e": 353, "s": 172, "text": "We learned various data preparation techniques and also set up a robust evaluation framework in my previous articles. Now, we are ready to explore different forecasting techniques." }, { "code": null, "e": 680, "s": 353, "text": "With ...
How to reset selected value to default using jQuery ? - GeeksforGeeks
23 Aug, 2021 The task is to reset the value of the select element to its default value with the help of jQuery. There are two approaches that are discussed below:Approach 1: First select the options using jQuery selectors then use prop() method to get access to its properties. If the property is selected then return th...
[ { "code": null, "e": 26476, "s": 26448, "text": "\n23 Aug, 2021" }, { "code": null, "e": 26836, "s": 26476, "text": "The task is to reset the value of the select element to its default value with the help of jQuery. There are two approaches that are discussed below:Approach 1: Fi...
builtin command in Linux with examples - GeeksforGeeks
15 May, 2019 builtin command is used to run a shell builtin, passing it arguments(args), and also to get the exit status. The main use of this command is to define a shell function having the same name as the shell builtin by keeping the functionality of the builtin within the function. Syntax: builtin [shell-builtin [...
[ { "code": null, "e": 25651, "s": 25623, "text": "\n15 May, 2019" }, { "code": null, "e": 25926, "s": 25651, "text": "builtin command is used to run a shell builtin, passing it arguments(args), and also to get the exit status. The main use of this command is to define a shell func...
How to select all elements without a given class using jQuery ? - GeeksforGeeks
07 Nov, 2019 All elements that do not match the given selector can be selected using jQuery( “:not(selector)” ). For example, the first example selects all the <li> elements which are not active. Example 1: This example selects <li> elements which does not contains the class active. <!DOCTYPE html><html> <head> ...
[ { "code": null, "e": 26202, "s": 26174, "text": "\n07 Nov, 2019" }, { "code": null, "e": 26385, "s": 26202, "text": "All elements that do not match the given selector can be selected using jQuery( “:not(selector)” ). For example, the first example selects all the <li> elements wh...
Python | Get a set of places according to search query using Google Places API - GeeksforGeeks
27 Nov, 2019 Google Places API Web Service allow the user to query for place information on a variety of categories, such as establishments, prominent points of interest, geographic locations, and more. One can search for places either by proximity or a text string. A Place Search returns a list of places along with su...
[ { "code": null, "e": 26307, "s": 26279, "text": "\n27 Nov, 2019" }, { "code": null, "e": 26713, "s": 26307, "text": "Google Places API Web Service allow the user to query for place information on a variety of categories, such as establishments, prominent points of interest, geogr...
Output of Python program | Set 17 - GeeksforGeeks
11 Aug, 2021 Prerequisite – Tuples and Dictionaryin Python Predict the output of the following Python programs. 1.What is the output of the following program? Python numberGames = {}numberGames[(1,2,4)] = 8numberGames[(4,2,1)] = 10numberGames[(1,2)] = 12 sum = 0for k in numberGames: sum += numberGames[k] print l...
[ { "code": null, "e": 25861, "s": 25833, "text": "\n11 Aug, 2021" }, { "code": null, "e": 25961, "s": 25861, "text": "Prerequisite – Tuples and Dictionaryin Python Predict the output of the following Python programs. " }, { "code": null, "e": 26009, "s": 25961, ...
Implementing Checksum using Python - GeeksforGeeks
03 May, 2022 The checksum is a kind of error Detection method in Computer Networks. This method used by the higher layer protocols and makes use of Checksum Generator on the Sender side and Checksum Checker on the Receiver side. In this article, we will be implementing the checksum algorithm in Python. Refer to the bel...
[ { "code": null, "e": 25755, "s": 25727, "text": "\n03 May, 2022" }, { "code": null, "e": 26046, "s": 25755, "text": "The checksum is a kind of error Detection method in Computer Networks. This method used by the higher layer protocols and makes use of Checksum Generator on the Se...
Slide Down a Navigation Bar on Scroll using HTML, CSS and JavaScript - GeeksforGeeks
27 Sep, 2021 To create a slide down navigation bar you need to use HTML, CSS, and JavaScript. HTML will make the structure of the body, CSS will make it looks good. This kind of sliding navbar looks attractive on a site. By using JavaScript you can easily make the navigation bar slideable when the user scrolls down. Cr...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n27 Sep, 2021" }, { "code": null, "e": 26926, "s": 26621, "text": "To create a slide down navigation bar you need to use HTML, CSS, and JavaScript. HTML will make the structure of the body, CSS will make it looks good. This kind o...
Python Program to Find Numbers Divisible by 7 and Multiple of 5 in a Given Range - GeeksforGeeks
04 Dec, 2020 Given a range of numbers, the task is to write a Python program to find numbers divisible by 7 and multiple of 5. Example: Input:Enter minimum 100 Enter maximum 200 Output: 105 is divisible by 7 and 5. 140 is divisible by 7 and 5. 175 is divisible by 7 and 5. Input:Input:Enter minimum 29 Enter maximu...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n04 Dec, 2020" }, { "code": null, "e": 25651, "s": 25537, "text": "Given a range of numbers, the task is to write a Python program to find numbers divisible by 7 and multiple of 5." }, { "code": null, "e": 25660, "...
HTTP headers | X-DNS-Prefetch-Control - GeeksforGeeks
30 Dec, 2019 The X-DNS-Prefetch-Control is an HTTP response type header that informs the browser whether DNS prefetch to be executed or not. Turning it on may not work as many browsers may not support it in all the situations. Turning it off should disable in all supported browsers. Most of the browsers will ignore thi...
[ { "code": null, "e": 25883, "s": 25855, "text": "\n30 Dec, 2019" }, { "code": null, "e": 26233, "s": 25883, "text": "The X-DNS-Prefetch-Control is an HTTP response type header that informs the browser whether DNS prefetch to be executed or not. Turning it on may not work as many ...
How not to delete a function inside an object when JSON.stringify() method is operated?
JSON.stringify() method not only stringifies an object but also removes any function if found inside that object. So to make the function not to be deleted it should be converted into a string and then only JSON.stringify() method should be applied. In the following example since the function is not converted into a st...
[ { "code": null, "e": 1312, "s": 1062, "text": "JSON.stringify() method not only stringifies an object but also removes any function if found inside that object. So to make the function not to be deleted it should be converted into a string and then only JSON.stringify() method should be applied." ...
How can I extract minute from time in BigQuery in MySQL?
Extract using extract() method along with cast(). Following is the syntax − select extract(minute from cast(yourColumnName as time)) as anyAliasName from yourTableName; Let us create a table − mysql> create table demo15 −> ( −> value time −> ); Query OK, 0 rows affected (2.11 sec) Insert some records into the table wit...
[ { "code": null, "e": 1138, "s": 1062, "text": "Extract using extract() method along with cast(). Following is the syntax −" }, { "code": null, "e": 1231, "s": 1138, "text": "select extract(minute from cast(yourColumnName as time)) as anyAliasName from yourTableName;" }, { ...
Java Swing | JList with examples - GeeksforGeeks
16 Apr, 2021 JList is part of Java Swing package . JList is a component that displays a set of Objects and allows the user to select one or more items . JList inherits JComponent class. JList is a easy way to display an array of Vectors .Constructor for JList are : JList(): creates an empty blank listJList(E [ ] l) :...
[ { "code": null, "e": 24534, "s": 24506, "text": "\n16 Apr, 2021" }, { "code": null, "e": 24789, "s": 24534, "text": "JList is part of Java Swing package . JList is a component that displays a set of Objects and allows the user to select one or more items . JList inherits JCompone...
GeoSpark (Apache Sedona) stands out for processing geospatial data at Scale | by Mo Sarwat | Towards Data Science
In the past decade, the volume of available geospatial data increased tremendously. Such data includes but not limited to: weather maps, socio-economic data, and geo-tagged social media. For example, spacecrafts from NASA keep monitoring the status of the earth, including land temperature, atmosphere humidity. As of to...
[ { "code": null, "e": 1244, "s": 172, "text": "In the past decade, the volume of available geospatial data increased tremendously. Such data includes but not limited to: weather maps, socio-economic data, and geo-tagged social media. For example, spacecrafts from NASA keep monitoring the status of th...
How to find mean and standard deviation from frequency table in R?
To find the mean and standard deviation from frequency table, we would need to apply the formula for mean and standard deviation for frequency data. For example, if we have a data frame called df that contains a column x for units and frequency for counts then the mean and standard deviation can be calculated as − Mean...
[ { "code": null, "e": 1378, "s": 1062, "text": "To find the mean and standard deviation from frequency table, we would need to apply the formula for mean and standard deviation for frequency data. For example, if we have a data frame called df that contains a column x for units and frequency for coun...
Break a Palindrome in C++
Suppose we have a palindromic string palindrome, we have to replace exactly one character by any lowercase English letter so that the string becomes the lexicographically smallest possible string that isn't a palindrome. Now after doing so, we have to find the final string. If there is no way to do so, then return the ...
[ { "code": null, "e": 1464, "s": 1062, "text": "Suppose we have a palindromic string palindrome, we have to replace exactly one character by any lowercase English letter so that the string becomes the lexicographically smallest possible string that isn't a palindrome. Now after doing so, we have to f...
Python - Append Dictionary Keys and Values ( In order ) in dictionary - GeeksforGeeks
01 Aug, 2020 Given a dictionary, perform append of keys followed by values in list. Input : test_dict = {“Gfg” : 1, “is” : 2, “Best” : 3}Output : [‘Gfg’, ‘is’, ‘Best’, 1, 2, 3]Explanation : All the keys before all the values in list. Input : test_dict = {“Gfg” : 1, “Best” : 3}Output : [‘Gfg’, ‘Best’, 1, 3]Explanation :...
[ { "code": null, "e": 24455, "s": 24427, "text": "\n01 Aug, 2020" }, { "code": null, "e": 24526, "s": 24455, "text": "Given a dictionary, perform append of keys followed by values in list." }, { "code": null, "e": 24676, "s": 24526, "text": "Input : test_dict =...
How to make ajax call from JavaScript ? - GeeksforGeeks
07 Jan, 2022 Ajax stands for Asynchronous JavaScript and XML. It is used to make asynchronous communication with the server. Ajax is used to read data from the server and update the page or send data to the server without affecting the current client page. Ajax is a programming concept. Below are some ways to make Aja...
[ { "code": null, "e": 25300, "s": 25272, "text": "\n07 Jan, 2022" }, { "code": null, "e": 25576, "s": 25300, "text": "Ajax stands for Asynchronous JavaScript and XML. It is used to make asynchronous communication with the server. Ajax is used to read data from the server and updat...
Matplotlib.axes.Axes.matshow() in Python - GeeksforGeeks
13 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. The Axe...
[ { "code": null, "e": 24580, "s": 24552, "text": "\n13 Apr, 2020" }, { "code": null, "e": 24880, "s": 24580, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, ...
N-ary Tree Preorder Traversal in C++
Suppose we have one n-ary tree, we have to find the preorder traversal of its nodes. So, if the input is like then the output will be [1,3,5,6,2,4] To solve this, we will follow these steps − Define an array ans Define an array ans Define a method called preorder(), this will take root Define a method called preorder()...
[ { "code": null, "e": 1147, "s": 1062, "text": "Suppose we have one n-ary tree, we have to find the preorder traversal of its nodes." }, { "code": null, "e": 1172, "s": 1147, "text": "So, if the input is like" }, { "code": null, "e": 1210, "s": 1172, "text": "t...
Difference Between PHP and JavaScript
In this post, we will understand the differences between PHP and JavaScript − JavaScript It helps work with frond end as well as back end It is asynchronous, which means it doesn't wait for the input and output operations. It can be run in browsers and since 'Node' has been released, JavaScript can also run be run on t...
[ { "code": null, "e": 1140, "s": 1062, "text": "In this post, we will understand the differences between PHP and JavaScript −" }, { "code": null, "e": 1151, "s": 1140, "text": "JavaScript" }, { "code": null, "e": 1200, "s": 1151, "text": "It helps work with fro...
Unit Testing in Android using Mockito - GeeksforGeeks
26 Nov, 2021 Most classes have dependencies, and methods frequently delegate work to other methods in other classes, which we refer to as class dependencies. If we just utilized JUnit to unit test these methods, our tests would likewise be dependent on them. All additional dependencies should be independent of the unit...
[ { "code": null, "e": 24725, "s": 24697, "text": "\n26 Nov, 2021" }, { "code": null, "e": 25406, "s": 24725, "text": "Most classes have dependencies, and methods frequently delegate work to other methods in other classes, which we refer to as class dependencies. If we just utilize...
How to show soft Keyboard based on Android EditText is focused?
This example demonstrates how do I show soft keyboard based on Android EditText is focused. 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-...
[ { "code": null, "e": 1154, "s": 1062, "text": "This example demonstrates how do I show soft keyboard based on Android EditText is focused." }, { "code": null, "e": 1283, "s": 1154, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all req...
Difference Between EnumMap and HashMap - GeeksforGeeks
28 Dec, 2020 EnumMap and HashMap both are the classes that implement the Map interface. But there are some differences that exist between them. So we have tried to list out the differences between EnumMap and HashMap. 1. EnumMap: EnumMap is a specialized implementation of the Map interface for enumeration types. It ext...
[ { "code": null, "e": 24467, "s": 24439, "text": "\n28 Dec, 2020" }, { "code": null, "e": 24672, "s": 24467, "text": "EnumMap and HashMap both are the classes that implement the Map interface. But there are some differences that exist between them. So we have tried to list out the...
Check if the Object is a Data Frame in R Programming - is.data.frame() Function - GeeksforGeeks
12 Jun, 2020 is.data.frame() function in R Language is used to return TRUE if the specified data type is a data frame else return FALSE. R data.frame is a powerful data type, especially when processing table (.csv). It can store the data as row and columns according to the table. Syntax: is.data.frame(x) Parameters:x: ...
[ { "code": null, "e": 26163, "s": 26135, "text": "\n12 Jun, 2020" }, { "code": null, "e": 26431, "s": 26163, "text": "is.data.frame() function in R Language is used to return TRUE if the specified data type is a data frame else return FALSE. R data.frame is a powerful data type, e...
How to Do a Left Join in R? - GeeksforGeeks
21 Dec, 2021 In this article, we will discuss how to do a left join in R programming language. A left join is used to join the table by selecting all the records from the first dataframe and only matching records in the second dataframe. This function is used to join the dataframes based on the x parameter that specifi...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n21 Dec, 2021" }, { "code": null, "e": 26569, "s": 26487, "text": "In this article, we will discuss how to do a left join in R programming language." }, { "code": null, "e": 26712, "s": 26569, "text": "A left j...
Learn-One-Rule Algorithm - GeeksforGeeks
01 Jul, 2021 Prerequisite: Rule-Based Classifier Learn-One-Rule: This method is used in the sequential learning algorithm for learning the rules. It returns a single rule that covers at least some examples (as shown in Fig 1). However, what makes it really powerful is its ability to create relations among the attribu...
[ { "code": null, "e": 25589, "s": 25561, "text": "\n01 Jul, 2021" }, { "code": null, "e": 25626, "s": 25589, "text": "Prerequisite: Rule-Based Classifier " }, { "code": null, "e": 25643, "s": 25626, "text": "Learn-One-Rule: " }, { "code": null, "e":...
HTML | <p> align Attribute - GeeksforGeeks
22 Feb, 2022 The HTML <p> align Attribute is used to specify the alignment of paragraph text content. Syntax: <p align="left | right | center | justify"> Attribute Values: left: It sets the text left-align. It is a default value. right: It sets the text right-align. center: It sets the text center-align. justify: It st...
[ { "code": null, "e": 26600, "s": 26572, "text": "\n22 Feb, 2022" }, { "code": null, "e": 26689, "s": 26600, "text": "The HTML <p> align Attribute is used to specify the alignment of paragraph text content." }, { "code": null, "e": 26697, "s": 26689, "text": "S...
Python - Test if List contains elements in Range - GeeksforGeeks
01 Mar, 2020 A lot of times, while working with data, we have a problem in which we need to make sure that a container or a list is having elements in just one range. This has application in Data Domains. Let’s discuss certain ways in which this task can be performed. Method #1 : Using loopThis is brute force method in...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n01 Mar, 2020" }, { "code": null, "e": 25818, "s": 25562, "text": "A lot of times, while working with data, we have a problem in which we need to make sure that a container or a list is having elements in just one range. This has ...
Scala | yield Keyword - GeeksforGeeks
07 Jun, 2019 yield keyword will returns a result after completing of loop iterations. The for loop used buffer internally to store iterated result and when finishing all iterations it yields the ultimate result from that buffer. It doesn’t work like imperative loop. The type of the collection that is returned is the sa...
[ { "code": null, "e": 25301, "s": 25273, "text": "\n07 Jun, 2019" }, { "code": null, "e": 25716, "s": 25301, "text": "yield keyword will returns a result after completing of loop iterations. The for loop used buffer internally to store iterated result and when finishing all iterat...
How to Trim White Spaces from input in ReactJS? - GeeksforGeeks
31 Dec, 2020 Trim white space means removing white spaces from the text input from both start and end. The following example shows how to trim white space from text input in ReactJS. Creating React Application And Installing Module: Step 1: Create a React application using the following command: npx create-react-app fo...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n31 Dec, 2020" }, { "code": null, "e": 26715, "s": 26545, "text": "Trim white space means removing white spaces from the text input from both start and end. The following example shows how to trim white space from text input in Re...
java.time.Instant Class in Java - GeeksforGeeks
09 Mar, 2021 In Java language, the Instant Class is used to represent the specific time instant on the current timeline. The Instant Class extends the Object Class and implements the Comparable interface. Declaration of the Instant Class public final class Instant extends Object implements Temporal, TemporalAdjuste...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n09 Mar, 2021" }, { "code": null, "e": 25417, "s": 25225, "text": "In Java language, the Instant Class is used to represent the specific time instant on the current timeline. The Instant Class extends the Object Class and implemen...
How to Install OpenCV for Python in Linux? - GeeksforGeeks
06 Oct, 2021 Prerequisite: Python Language Introduction OpenCV is the huge open-source library for computer vision, machine learning, and image processing and now it plays a major role in real-time operation which is very important in today’s systems. By using it, one can process images and videos to identify objects, ...
[ { "code": null, "e": 26197, "s": 26169, "text": "\n06 Oct, 2021" }, { "code": null, "e": 26806, "s": 26197, "text": "Prerequisite: Python Language Introduction OpenCV is the huge open-source library for computer vision, machine learning, and image processing and now it plays a ma...
Application Binary Interface(ABI) in Ethereum Virtual Machine - GeeksforGeeks
11 May, 2022 Smart contracts are pieces of code that are stored on the blockchain and are executed by the Ethereum Virtual Machine (EVM). The EVM also provides a comprehensive instruction set called opcodes which execute certain instructions. Opcodes are low-level codes similar to the processor’s instruction set. The c...
[ { "code": null, "e": 26171, "s": 26143, "text": "\n11 May, 2022" }, { "code": null, "e": 27239, "s": 26171, "text": "Smart contracts are pieces of code that are stored on the blockchain and are executed by the Ethereum Virtual Machine (EVM). The EVM also provides a comprehensive ...
Python program to display half diamond pattern of numbers with star border - GeeksforGeeks
02 Feb, 2021 Given a number n, the task is to write a Python program to print a half diamond pattern of numbers with a star border. Examples: Input: n = 5 Output: * *1* *121* *12321* *1234321* *123454321* *1234321* *12321* *121* *1* * Input: n = 3 Output: * *1* *121* *12321* *121* *1* * Approach: Two for loops will...
[ { "code": null, "e": 25581, "s": 25553, "text": "\n02 Feb, 2021" }, { "code": null, "e": 25700, "s": 25581, "text": "Given a number n, the task is to write a Python program to print a half diamond pattern of numbers with a star border." }, { "code": null, "e": 25710, ...
Find the minimum number of steps to reach M from N - GeeksforGeeks
07 Apr, 2021 Given two integers N and M. The task is to find the minimum number of steps to reach M from N by performing given operations. Multiply a number x by 2. So, x becomes 2*x.Subtract one from the number x. So, x becomes x-1. Multiply a number x by 2. So, x becomes 2*x. Subtract one from the number x. So, x b...
[ { "code": null, "e": 26297, "s": 26269, "text": "\n07 Apr, 2021" }, { "code": null, "e": 26425, "s": 26297, "text": "Given two integers N and M. The task is to find the minimum number of steps to reach M from N by performing given operations. " }, { "code": null, "e"...
Tower Of Hanoi | Practice | GeeksforGeeks
The tower of Hanoi is a famous puzzle where we have three rods and N disks. The objective of the puzzle is to move the entire stack to another rod. You are given the number of discs N. Initially, these discs are in the rod 1. You need to print all the steps of discs movement so that all the discs reach the 3rd rod. Als...
[ { "code": null, "e": 870, "s": 238, "text": "The tower of Hanoi is a famous puzzle where we have three rods and N disks. The objective of the puzzle is to move the entire stack to another rod. You are given the number of discs N. Initially, these discs are in the rod 1. You need to print all the ste...
Java 8 | ObjDoubleConsumer Interface with Example - GeeksforGeeks
26 Oct, 2018 The ObjDoubleConsumer Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represents a function which takes in two arguments and produces a result. However these kind of functions don’t return any value. Hence this fu...
[ { "code": null, "e": 25485, "s": 25457, "text": "\n26 Oct, 2018" }, { "code": null, "e": 25779, "s": 25485, "text": "The ObjDoubleConsumer Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It...
How to Find Duplicate Values in a SQL Table using Python? - GeeksforGeeks
25 Nov, 2020 MySQL server is an open-source relational database management system that is a major support for web-based applications. Databases and related tables are the main component of many websites and applications as the data is stored and exchanged over the web. In order to access MySQL databases from a web serv...
[ { "code": null, "e": 26145, "s": 26117, "text": "\n25 Nov, 2020" }, { "code": null, "e": 26529, "s": 26145, "text": "MySQL server is an open-source relational database management system that is a major support for web-based applications. Databases and related tables are the main ...
ML | Adjusted R-Square in Regression Analysis - GeeksforGeeks
29 Sep, 2021 Prerequisite: Linear Regression, R-square in Regression Why Adjusted-R Square Test: R-square test is used to determine the goodness of fit in regression analysis. Goodness of fit implies how better regression model is fitted to the data points. More is the value of r-square near to 1, better is the model. ...
[ { "code": null, "e": 25929, "s": 25901, "text": "\n29 Sep, 2021" }, { "code": null, "e": 25985, "s": 25929, "text": "Prerequisite: Linear Regression, R-square in Regression" }, { "code": null, "e": 26731, "s": 25985, "text": "Why Adjusted-R Square Test: R-squa...
Java Program to Convert Array To Vector - GeeksforGeeks
07 Jan, 2021 Array is a group of like-typed variables that are referred to by a common name. Java arrays can be both types namely primitive data types or object (or non-primitive) reference of a class. In the case of primitive data types, the actual values are stored in contiguous memory locations, while in the case of...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n07 Jan, 2021" }, { "code": null, "e": 25602, "s": 25225, "text": "Array is a group of like-typed variables that are referred to by a common name. Java arrays can be both types namely primitive data types or object (or non-primiti...
Solidity - Basics of Contracts - GeeksforGeeks
11 May, 2022 Solidity Contracts are like a class in any other object-oriented programming language. They firmly contain data as state variables and functions which can modify these variables. When a function is called on a different instance (contract), the EVM function call happens and the context is switched in such ...
[ { "code": null, "e": 25605, "s": 25577, "text": "\n11 May, 2022" }, { "code": null, "e": 26083, "s": 25605, "text": "Solidity Contracts are like a class in any other object-oriented programming language. They firmly contain data as state variables and functions which can modify t...
How to find the index of all occurrence of elements in an array using JavaScript ? - GeeksforGeeks
20 Nov, 2019 Given an array containing array elements and the task is to find all occurrence of an element from the array. We are going to do that with the help of JavaScript. Approach 1: Declare an empty array which stores the indexes of all occurrence of the array element. Visit the array elements one by one using wh...
[ { "code": null, "e": 25913, "s": 25885, "text": "\n20 Nov, 2019" }, { "code": null, "e": 26076, "s": 25913, "text": "Given an array containing array elements and the task is to find all occurrence of an element from the array. We are going to do that with the help of JavaScript."...
How to convert a Python datetime.datetime to excel serial date number - GeeksforGeeks
06 Sep, 2021 This article will discuss the conversion of a python datetime.datetime to an excel serial date number. The Excel “serial date” format is actually the number of days since 1900-01-00. The strftime() function is used to convert date and time objects to their string representation. It takes one or more inputs...
[ { "code": null, "e": 25381, "s": 25353, "text": "\n06 Sep, 2021" }, { "code": null, "e": 25746, "s": 25381, "text": "This article will discuss the conversion of a python datetime.datetime to an excel serial date number. The Excel “serial date” format is actually the number of day...
A Simplex Stop-and-Wait Protocol for a Noisy Channel
Simplex Stop – and – Wait protocol for noisy channel is data link layer protocol for data communications with error control and flow control mechanisms. It is popularly known as Stop – and –Wait Automatic Repeat Request (Stop – and –Wait ARQ) protocol. It adds error control facilities to Stop – and – Wait protocol. Thi...
[ { "code": null, "e": 1379, "s": 1062, "text": "Simplex Stop – and – Wait protocol for noisy channel is data link layer protocol for data communications with error control and flow control mechanisms. It is popularly known as Stop – and –Wait Automatic Repeat Request (Stop – and –Wait ARQ) protocol. ...
Advanced Options with Hyperopt for Tuning Hyperparameters in Neural Networks | by Nicholas Lewis | Towards Data Science
If you’re anything like me, you spent the first several months looking at applications of machine learning and wondering how to get better performance out of the model. I would spend hours, if not days, making minor tweaks to the model, hoping for better performance. Surely, I thought, there should be a better way to i...
[ { "code": null, "e": 575, "s": 172, "text": "If you’re anything like me, you spent the first several months looking at applications of machine learning and wondering how to get better performance out of the model. I would spend hours, if not days, making minor tweaks to the model, hoping for better ...
CSS - Tables
This tutorial will teach you how to set different properties of an HTML table using CSS. You can set following properties of a table − The border-collapse specifies whether the browser should control the appearance of the adjacent borders that touch each other or whether each cell should maintain its style. The border-...
[ { "code": null, "e": 2761, "s": 2626, "text": "This tutorial will teach you how to set different properties of an HTML table using CSS. You can set following properties of a table −" }, { "code": null, "e": 2935, "s": 2761, "text": "The border-collapse specifies whether the brows...
How to detect touch screen device using CSS ? - GeeksforGeeks
18 May, 2021 In a website, it becomes important to detect the pointing device used by the user. For example, if the user uses a finger as the pointing device (which has less accuracy on the screen due to more screen-finger contact area) then we should increase the size of various elements like buttons, links, input fie...
[ { "code": null, "e": 24985, "s": 24957, "text": "\n18 May, 2021" }, { "code": null, "e": 25356, "s": 24985, "text": "In a website, it becomes important to detect the pointing device used by the user. For example, if the user uses a finger as the pointing device (which has less ac...
Flutter - DatePicker - GeeksforGeeks
15 Feb, 2021 The flutter, syncfusion date range picker is a widget that is used to select single or multiple dates along with the range between two dates. The use of this library makes the navigation between dates, weeks, months, years, and even centuries simple and easy. The following are the key features of DatePicke...
[ { "code": null, "e": 24010, "s": 23982, "text": "\n15 Feb, 2021" }, { "code": null, "e": 24270, "s": 24010, "text": "The flutter, syncfusion date range picker is a widget that is used to select single or multiple dates along with the range between two dates. The use of this libra...
Spatial Data Solution for City Planning in Indonesia: Understanding The GeoDataFrame | by Sutan Ashari Mufti | Towards Data Science
Geographic Information System (GIS) is an essential skill an urban planner must-have. With GIS, urban planners may manage, publish, and analyze spatial data. The spatial data is distinct to ordinary data as spatial data has a spatial element that sometimes people overlook. The awareness and intuition about the “spatial...
[ { "code": null, "e": 551, "s": 172, "text": "Geographic Information System (GIS) is an essential skill an urban planner must-have. With GIS, urban planners may manage, publish, and analyze spatial data. The spatial data is distinct to ordinary data as spatial data has a spatial element that sometime...
java.time.LocalTime.now() Method Example
The java.time.LocalTime.now(ZoneId zone) method obtains the current time from the system clock in the specified time-zone. Following is the declaration for java.time.LocalTime.now(ZoneId zone) method. public static LocalTime now(ZoneId zone) zone − the zone ID to use, not null. the current time using the system clock...
[ { "code": null, "e": 2038, "s": 1915, "text": "The java.time.LocalTime.now(ZoneId zone) method obtains the current time from the system clock in the specified time-zone." }, { "code": null, "e": 2116, "s": 2038, "text": "Following is the declaration for java.time.LocalTime.now(Zo...
Implementing a Chess engine from scratch | by Micaël Paquier | Towards Data Science
As a humble Chess amateur, I gave myself this challenge: to develop a simple, good-looking Chess game with AI that can beat me, without Machine-Learning. This article is about my journey to achieve it and is composed of 4 parts: rules, computation, strategy, and playing. And just to make things clear, I also decided no...
[ { "code": null, "e": 444, "s": 172, "text": "As a humble Chess amateur, I gave myself this challenge: to develop a simple, good-looking Chess game with AI that can beat me, without Machine-Learning. This article is about my journey to achieve it and is composed of 4 parts: rules, computation, strate...
Pandas vs SQL. Which Should Data Scientists Use? | Towards Data Science
IntroductionPandasSQLSummaryReferences Introduction Pandas SQL Summary References Both of these tools are important to not only data scientists, but also to those in similar positions like data analytics and business intelligence. With that being said, when should data scientists specifically use pandas over SQL and vi...
[ { "code": null, "e": 211, "s": 172, "text": "IntroductionPandasSQLSummaryReferences" }, { "code": null, "e": 224, "s": 211, "text": "Introduction" }, { "code": null, "e": 231, "s": 224, "text": "Pandas" }, { "code": null, "e": 235, "s": 231, ...
Swap two numbers in PL/SQL without using temp - GeeksforGeeks
05 Jul, 2018 In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations. Given two numbers num1 and num2 and the task is to swap the value of given numbers. Examples: Inp...
[ { "code": null, "e": 24041, "s": 24013, "text": "\n05 Jul, 2018" }, { "code": null, "e": 24251, "s": 24041, "text": "In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between ...
Twitter data collection tutorial using Python | by Yehia “Yaya” Khoja | Towards Data Science
Over the past year, I’ve become more active on Twitter, and with the growing number of interactions, I needed to answer basic questions like: Where are my followers from? How many likes do my tweets get on average? What’s the distribution of the accounts I am following? So I thought this could be a fun programming exer...
[ { "code": null, "e": 314, "s": 172, "text": "Over the past year, I’ve become more active on Twitter, and with the growing number of interactions, I needed to answer basic questions like:" }, { "code": null, "e": 343, "s": 314, "text": "Where are my followers from?" }, { "...
How to Design Image Slider using jQuery ? - GeeksforGeeks
28 Jan, 2022 A slideshow container that cycles through a list of images on a web page. The following article will guide you to implement an image slider using HTML, CSS, and jQuery. The jQuery image slider contains images that run them using the previous and next icons. Previous and Next arrows are used to traverse bac...
[ { "code": null, "e": 25375, "s": 25347, "text": "\n28 Jan, 2022" }, { "code": null, "e": 26124, "s": 25375, "text": "A slideshow container that cycles through a list of images on a web page. The following article will guide you to implement an image slider using HTML, CSS, and jQ...
How to specify an image as a client-side image-map in HTML?
Use the usemap attribute to specify an image as a client-side image-map in HTML. You can try to run the following code to implement usemap attribute − <!DOCTYPE html> <html> <head> <title>HTML map Tag</title> </head> <body> <img src = "/images/html.gif" alt = "HTML Map" border = "0" usemap = "#html...
[ { "code": null, "e": 1213, "s": 1062, "text": "Use the usemap attribute to specify an image as a client-side image-map in HTML. You can try to run the following code to implement usemap attribute −" }, { "code": null, "e": 1601, "s": 1213, "text": "<!DOCTYPE html>\n<html>\n <he...
How to Setup SSL for MySQL Server and Client on Linux
In this tutorial, I will be explaining about – how to set up a secure connection to MySQL server using an SSH connection for encryption so that data in the database will be in safe and which is impossible for hackers to steal the data. SSL is used to verify the means of SSL certificates which can protect against phishi...
[ { "code": null, "e": 1460, "s": 1062, "text": "In this tutorial, I will be explaining about – how to set up a secure connection to MySQL server using an SSH connection for encryption so that data in the database will be in safe and which is impossible for hackers to steal the data. SSL is used to ve...
How to delete data in a MySQL database with Java?
Delete data from a MySQL database with the help of DELETE command. The syntax is as follows. delete from yourTableName where condition; I will delete data from a MySQL database with the help of JAVA programming language. First, create a table and insert some records. The following is the query to create a table. mysql>...
[ { "code": null, "e": 1155, "s": 1062, "text": "Delete data from a MySQL database with the help of DELETE command. The syntax is as follows." }, { "code": null, "e": 1198, "s": 1155, "text": "delete from yourTableName where condition;" }, { "code": null, "e": 1376, ...
An Overview of Building a Merchant Name Cleaning Engine with SequenceMatcher and spaCy | by Cheng | Towards Data Science
Merchant names cleaning can be a quite challenging problem. As different bank provides different quality of transaction data, there is not a very mature way to clean the data. Commonly, merchant names cleaning can be classified as a Named Entity Recognition (NER) task and be solved in a similar way as an entity extract...
[ { "code": null, "e": 505, "s": 172, "text": "Merchant names cleaning can be a quite challenging problem. As different bank provides different quality of transaction data, there is not a very mature way to clean the data. Commonly, merchant names cleaning can be classified as a Named Entity Recogniti...
Batch Script - ATTRIB
Displays or sets the attributes of the files in the current directory attrib The following example shows the different variants of the attrib command. @echo off Rem Displays the attribites of the file in the current directory Attrib Rem Displays the attributes of the file lists.txt attrib C:\tp\lists.txt Rem Adds th...
[ { "code": null, "e": 2239, "s": 2169, "text": "Displays or sets the attributes of the files in the current directory" }, { "code": null, "e": 2247, "s": 2239, "text": "attrib\n" }, { "code": null, "e": 2321, "s": 2247, "text": "The following example shows the ...
How to add picasso library in android studio?
Before getting into picasso library example, we should know about picasso. Picasso is image processing library and developed by Square Inc. In older days we used to write lengthy of codes to grab image from server or do process., to optimize the process picasso introduced. This example demonstrate about how to integrat...
[ { "code": null, "e": 1336, "s": 1062, "text": "Before getting into picasso library example, we should know about picasso. Picasso is image processing library and developed by Square Inc. In older days we used to write lengthy of codes to grab image from server or do process., to optimize the process...
Encoding Data with Transformers. How to use transformer-based technology... | by Michelangiolo Mazzeschi | Towards Data Science
Data encoding has been one of the most recent technological advancements in the domain of Artificial Intelligence. By using encoder models, we can convert categorical data into numerical data, and this allows us to make comparisons, see how the data is related to each other, make recommendations, improve searches... In...
[ { "code": null, "e": 489, "s": 171, "text": "Data encoding has been one of the most recent technological advancements in the domain of Artificial Intelligence. By using encoder models, we can convert categorical data into numerical data, and this allows us to make comparisons, see how the data is re...
POS Tagging Using RNN. Learn how to use RNNs to tag words in... | by Tanya Dayanand | Towards Data Science
The classical way of doing POS tagging is using some variant of Hidden Markov Model. Here we'll see how we could do that using Recurrent neural networks. The original RNN architecture has some variants too. It has a novel RNN architecture — the Bidirectional RNN which is capable of reading sequences in the ‘reverse ord...
[ { "code": null, "e": 554, "s": 171, "text": "The classical way of doing POS tagging is using some variant of Hidden Markov Model. Here we'll see how we could do that using Recurrent neural networks. The original RNN architecture has some variants too. It has a novel RNN architecture — the Bidirectio...
SQLite - GLOB Clause
SQLite GLOB operator is used to match only text values against a pattern using wildcards. If the search expression can be matched to the pattern expression, the GLOB operator will return true, which is 1. Unlike LIKE operator, GLOB is case sensitive and it follows syntax of UNIX for specifying THE following wildcards. ...
[ { "code": null, "e": 2958, "s": 2638, "text": "SQLite GLOB operator is used to match only text values against a pattern using wildcards. If the search expression can be matched to the pattern expression, the GLOB operator will return true, which is 1. Unlike LIKE operator, GLOB is case sensitive and...
Find the sum of maximum difference possible from all subset of a given array. - GeeksforGeeks
18 Nov, 2021 We are given an array arr[] of n non-negative integers (repeated elements allowed), find out the sum of maximum difference possible from all subsets of the given array. Suppose max(s) represents the maximum value in any subset ‘s’ whereas min(s) represents the minimum value in the set ‘s’. We need to find ...
[ { "code": null, "e": 24886, "s": 24858, "text": "\n18 Nov, 2021" }, { "code": null, "e": 25245, "s": 24886, "text": "We are given an array arr[] of n non-negative integers (repeated elements allowed), find out the sum of maximum difference possible from all subsets of the given a...
How to avoid the warning “Cannot compute exact p-value with ties” while perform correlation test for Spearman’s correlation in R?
When the variables are not continuous but could be ranked then we do not use pearson correlation coefficient to find the linear relationship, in this case spearman correlation coefficient comes into the scene. Since the spearman correlation coefficient considers the rank of values, the correlation test ignores the same...
[ { "code": null, "e": 1556, "s": 1062, "text": "When the variables are not continuous but could be ranked then we do not use pearson correlation coefficient to find the linear relationship, in this case spearman correlation coefficient comes into the scene. Since the spearman correlation coefficient ...
Python os.chown() Method
Python method chown() changes the owner and group id of path to the numeric uid and gid. To leave one of the ids unchanged, set it to -1.To set ownership, you would need super user privilege.. Following is the syntax for chown() method − os.chown(path, uid, gid); path − This is the path for which owner id and group id...
[ { "code": null, "e": 2437, "s": 2244, "text": "Python method chown() changes the owner and group id of path to the numeric uid and gid. To leave one of the ids unchanged, set it to -1.To set ownership, you would need super user privilege.." }, { "code": null, "e": 2482, "s": 2437, ...
Difference Between Inline and Macro in C++
In this post, we will understand the difference between inline and macro in C++. It is a function in C++. It is a function in C++. It is parsed by the compiler. It is parsed by the compiler. It can be defined inside or outside the class. It can be defined inside or outside the class. It evaluates the argument only once...
[ { "code": null, "e": 1143, "s": 1062, "text": "In this post, we will understand the difference between inline and macro in C++." }, { "code": null, "e": 1168, "s": 1143, "text": "It is a function in C++." }, { "code": null, "e": 1193, "s": 1168, "text": "It is...
MFC - Button
A button is an object that the user clicks to initiate an action. Button control is represented by CButton class. Create Creates the Windows button control and attaches it to the CButton object. DrawItem Override to draw an owner-drawn CButton object. GetBitmap Retrieves the handle of the bitmap previously set with Set...
[ { "code": null, "e": 2181, "s": 2067, "text": "A button is an object that the user clicks to initiate an action. Button control is represented by CButton class." }, { "code": null, "e": 2188, "s": 2181, "text": "Create" }, { "code": null, "e": 2262, "s": 2188, ...
Spring Boot - Unit Test Cases
Unit Testing is a one of the testing done by the developers to make sure individual unit or component functionalities are working fine. In this tutorial, we are going to see how to write a unit test case by using Mockito and Web Controller. For injecting Mockito Mocks into Spring Beans, we need to add the Mockito-core ...
[ { "code": null, "e": 3161, "s": 3025, "text": "Unit Testing is a one of the testing done by the developers to make sure individual unit or component functionalities are working fine." }, { "code": null, "e": 3266, "s": 3161, "text": "In this tutorial, we are going to see how to w...
Flatten a binary tree into linked list - GeeksforGeeks
21 Apr, 2022 Given a binary tree, flatten it into linked list in-place. Usage of auxiliary data structure is not allowed. After flattening, left of each node should point to NULL and right should contain next node in preorder. Examples: Input : 1 / \ 2 5 / \ \ 3 4 ...
[ { "code": null, "e": 25178, "s": 25150, "text": "\n21 Apr, 2022" }, { "code": null, "e": 25392, "s": 25178, "text": "Given a binary tree, flatten it into linked list in-place. Usage of auxiliary data structure is not allowed. After flattening, left of each node should point to NU...
How can we set a border to JCheckBox in Java?
A JCheckBox is a component that can extend JToggleButton and an object of JCheckBox represents an option that can be checked or unchecked. If there are two or more options then any combination of these options can be selected at the same time. We can set a border to the JCheckBox component by using the setBorder() meth...
[ { "code": null, "e": 1443, "s": 1062, "text": "A JCheckBox is a component that can extend JToggleButton and an object of JCheckBox represents an option that can be checked or unchecked. If there are two or more options then any combination of these options can be selected at the same time. We can se...
Creating a Finance Web App in 3 Minutes! | Towards Data Science
A vital part of any data-driven project is its ability to be easily explained and viewable even for others who may not know anything about the data beforehand. Introducing Streamlit in Python! Streamlit is an extremely easy to use and intuitive tool for building highly interactive, data-driven web applications in Pytho...
[ { "code": null, "e": 365, "s": 172, "text": "A vital part of any data-driven project is its ability to be easily explained and viewable even for others who may not know anything about the data beforehand. Introducing Streamlit in Python!" }, { "code": null, "e": 617, "s": 365, "t...
Getting Started with Python
In the first chapter, we have learnt what web scraping is all about. In this chapter, let us see how to implement web scraping using Python. Python is a popular tool for implementing web scraping. Python programming language is also used for other useful projects related to cyber security, penetration testing as well a...
[ { "code": null, "e": 2053, "s": 1912, "text": "In the first chapter, we have learnt what web scraping is all about. In this chapter, let us see how to implement web scraping using Python." }, { "code": null, "e": 2375, "s": 2053, "text": "Python is a popular tool for implementing...
C# Program to Implement the Same Method in Multiple Classes - GeeksforGeeks
30 Sep, 2021 C# is a general-purpose programming language it is used to create mobile apps, desktop apps, websites, and games. In C#, an object is a real-world entity. Or in other words, an object is a runtime entity that is created at runtime. It is an instance of a class. In this article, Implement the same method in...
[ { "code": null, "e": 24958, "s": 24930, "text": "\n30 Sep, 2021" }, { "code": null, "e": 25820, "s": 24958, "text": "C# is a general-purpose programming language it is used to create mobile apps, desktop apps, websites, and games. In C#, an object is a real-world entity. Or in ot...
Accessing inner element of JSON array in MongoDB?
To access inner element of JSON array in MongoDB, use dot notation. Let us create a collection with documents − > db.demo687.insert({CountryName:'US', ... info: ... { ... id:101, ... details: ... [ ... { ... Name:'Chris', ... SubjectName:'MongoDB', ... otherDetails:{ ... "Marks":58, ... Age:23 ... ...
[ { "code": null, "e": 1174, "s": 1062, "text": "To access inner element of JSON array in MongoDB, use dot notation. Let us create a collection with documents −" }, { "code": null, "e": 1724, "s": 1174, "text": "> db.demo687.insert({CountryName:'US',\n... info:\n... {\n... id:101,\...
Convert Infix to Prefix Expression
To solve expressions by the computer, we can either convert it in postfix form or to the prefix form. Here we will see how infix expressions are converted to prefix form. At first infix expression is reversed. Note that for reversing the opening and closing parenthesis will also be reversed. for an example: The express...
[ { "code": null, "e": 1233, "s": 1062, "text": "To solve expressions by the computer, we can either convert it in postfix form or to the prefix form. Here we will see how infix expressions are converted to prefix form." }, { "code": null, "e": 1355, "s": 1233, "text": "At first in...
Extracting rows using Pandas .iloc[] in Python
Pandas is a famous python library that Is extensively used for data processing and analysis in python. In this article we will see how to use the .iloc method which is used for reading selective data from python by filtering both rows and columns from the dataframe. iloc method processes data by using integer based ind...
[ { "code": null, "e": 1329, "s": 1062, "text": "Pandas is a famous python library that Is extensively used for data processing and analysis in python. In this article we will see how to use the .iloc method which is used for reading selective data from python by filtering both rows and columns from t...
C# Linq SelectMany Method
Use SelectMany method to collapse elements into a single collection like an error. An example would be to convert string to character array. The following is our string array. string[] str = { "Mobile", "Laptop", "Tablet" }; Now, convert to character array. str.SelectMany(item => item.ToCharArray()); Live Demo using S...
[ { "code": null, "e": 1145, "s": 1062, "text": "Use SelectMany method to collapse elements into a single collection like an error." }, { "code": null, "e": 1238, "s": 1145, "text": "An example would be to convert string to character array. The following is our string array." }, ...
Performance of paging - GeeksforGeeks
23 Oct, 2020 In this article, we are going to cover the performance of paging and will also cover the expression for evaluating paging performance. Let’s discuss one by one. Pre-requisite –Paging in Operating System Performance of Paging :Evaluating of paging performance is one of the important tasks. Consider the main...
[ { "code": null, "e": 25627, "s": 25599, "text": "\n23 Oct, 2020" }, { "code": null, "e": 25788, "s": 25627, "text": "In this article, we are going to cover the performance of paging and will also cover the expression for evaluating paging performance. Let’s discuss one by one." ...
Python | Numpy matrix.argmax() - GeeksforGeeks
10 Apr, 2019 With the help of Numpy matrix.argmax() method, we are able to find the index value of the maximum element in the given matrix having one or more dimension. Syntax : matrix.argmax() Return : Return index number of maximum element in matrix Example #1 :In this example we can see that with the help of matrix....
[ { "code": null, "e": 25709, "s": 25681, "text": "\n10 Apr, 2019" }, { "code": null, "e": 25865, "s": 25709, "text": "With the help of Numpy matrix.argmax() method, we are able to find the index value of the maximum element in the given matrix having one or more dimension." }, ...
Java.lang.ProcessBuilder class in Java - GeeksforGeeks
14 Jan, 2022 This class is used to create operating system processes. Each ProcessBuilder instance manages a collection of process attributes. The start() method creates a new Process instance with those attributes. The start() method can be invoked repeatedly from the same instance to create new subprocesses with iden...
[ { "code": null, "e": 25455, "s": 25427, "text": "\n14 Jan, 2022" }, { "code": null, "e": 25792, "s": 25455, "text": "This class is used to create operating system processes. Each ProcessBuilder instance manages a collection of process attributes. The start() method creates a new ...
Dart - Variables - GeeksforGeeks
12 Feb, 2021 A variable name is the name assign to the memory location where the user stores the data and that data can be fetched when required with the help of the variable by calling its variable name. There are various types of variable which are used to store the data. The type which will be used to store data dep...
[ { "code": null, "e": 25402, "s": 25374, "text": "\n12 Feb, 2021" }, { "code": null, "e": 25750, "s": 25402, "text": "A variable name is the name assign to the memory location where the user stores the data and that data can be fetched when required with the help of the variable b...
Installing MATLAB on Windows - GeeksforGeeks
30 May, 2021 MATLAB stands for “Matrix Laboratory” and it is a numerical computing environment and fourth-generation programming language. designed by Math Works, MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs...
[ { "code": null, "e": 25887, "s": 25859, "text": "\n30 May, 2021" }, { "code": null, "e": 26254, "s": 25887, "text": "MATLAB stands for “Matrix Laboratory” and it is a numerical computing environment and fourth-generation programming language. designed by Math Works, MATLAB allow...
Type Casting or Type Conversion in Golang - GeeksforGeeks
13 Jul, 2021 Type conversion happens when we assign the value of one data type to another. Statically typed languages like C/C++, Java, provide the support for Implicit Type Conversion but Golang is different, as it doesn’t support the Automatic Type Conversion or Implicit Type Conversion even if the data types are com...
[ { "code": null, "e": 25696, "s": 25668, "text": "\n13 Jul, 2021" }, { "code": null, "e": 26746, "s": 25696, "text": "Type conversion happens when we assign the value of one data type to another. Statically typed languages like C/C++, Java, provide the support for Implicit Type Co...
Evaluation of Postfix Expression | Practice | GeeksforGeeks
Given string S representing a postfix expression, the task is to evaluate the expression and find the final value. Operators will only include the basic arithmetic operators like *, /, + and -. Example 1: Input: S = "231*+9-" Output: -4 Explanation: After solving the given expression, we have -4 as result. Example ...
[ { "code": null, "e": 432, "s": 238, "text": "Given string S representing a postfix expression, the task is to evaluate the expression and find the final value. Operators will only include the basic arithmetic operators like *, /, + and -." }, { "code": null, "e": 445, "s": 434, "...
Java Program to Detect Cycle in a Directed Graph - GeeksforGeeks
02 Jan, 2019 Given a directed graph, check whether the graph contains a cycle or not. Your function should return true if the given graph contains at least one cycle, else return false. For example, the following graph contains three cycles 0->2->0, 0->1->2->0 and 3->3, so your function must return true. Java // A Java...
[ { "code": null, "e": 26107, "s": 26079, "text": "\n02 Jan, 2019" }, { "code": null, "e": 26400, "s": 26107, "text": "Given a directed graph, check whether the graph contains a cycle or not. Your function should return true if the given graph contains at least one cycle, else retu...
Teradata - Compression
Compression is used to reduce the storage used by the tables. In Teradata, compression can compress up to 255 distinct values including NULL. Since the storage is reduced, Teradata can store more records in a block. This results in improved query response time since any I/O operation can process more rows per block. Co...
[ { "code": null, "e": 3195, "s": 2764, "text": "Compression is used to reduce the storage used by the tables. In Teradata, compression can compress up to 255 distinct values including NULL. Since the storage is reduced, Teradata can store more records in a block. This results in improved query respon...
Text Preprocessing in Python | Set – 1
27 Jan, 2022 Prerequisites: Introduction to NLPWhenever we have textual data, we need to apply several pre-processing steps to the data to transform words into numerical features that work with machine learning algorithms. The pre-processing steps for a problem depend mainly on the domain and the problem itself, hence,...
[ { "code": null, "e": 53, "s": 25, "text": "\n27 Jan, 2022" }, { "code": null, "e": 548, "s": 53, "text": "Prerequisites: Introduction to NLPWhenever we have textual data, we need to apply several pre-processing steps to the data to transform words into numerical features that wor...
Node.js forEach() function
13 Oct, 2021 forEach() is an array function from Node.js that is used to iterate over items in a given array. Syntax: array_name.forEach(function) Parameter: This function takes a function (which is to be executed) as a parameter. Return type: The function returns array element after iteration. The program below demons...
[ { "code": null, "e": 53, "s": 25, "text": "\n13 Oct, 2021" }, { "code": null, "e": 150, "s": 53, "text": "forEach() is an array function from Node.js that is used to iterate over items in a given array." }, { "code": null, "e": 158, "s": 150, "text": "Syntax:"...
set vs map in C++ STL
13 Jun, 2022 set and map in STL are similar in the sense that they both use Red Black Tree (A self balancing BST). Note that the time complexities of search, insert and delete are O(Log n). Differences: The difference is set is used to store only keys while map is used to store key value pairs. For example consider in ...
[ { "code": null, "e": 53, "s": 25, "text": "\n13 Jun, 2022" }, { "code": null, "e": 618, "s": 53, "text": "set and map in STL are similar in the sense that they both use Red Black Tree (A self balancing BST). Note that the time complexities of search, insert and delete are O(Log n...
Python Program to get all unique keys from a List of Dictionaries
22 Mar, 2021 Given a list arr[] consisting of N dictionaries, the task is to find the sum of unique keys from the given list of the dictionary. Examples: Input: arr = [{‘my’: 1, ‘name’: 2}, {‘is’: 1, ‘my’: 3}, {‘ria’: 2}]Output: [‘ria’, ‘my’, ‘is’, ‘name’]Explanation: The set of unique keys are {“ria”, “my”, “Is”, “nam...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Mar, 2021" }, { "code": null, "e": 159, "s": 28, "text": "Given a list arr[] consisting of N dictionaries, the task is to find the sum of unique keys from the given list of the dictionary." }, { "code": null, "e": 169, ...
How to Find All Failed SSH login Attempts in Linux?
16 Feb, 2021 SSH Server provides us with a secure encrypted communications channel between two untrusted hosts over an insecure network. Still, we can not say for sure that it is secured. It is generally very susceptible to many kinds of password guessing and brute-forcing attacks. To enable and start the SSH server, t...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Feb, 2021" }, { "code": null, "e": 298, "s": 28, "text": "SSH Server provides us with a secure encrypted communications channel between two untrusted hosts over an insecure network. Still, we can not say for sure that it is secured. ...
Session Management in Android with Example
23 Feb, 2021 Session Management is one of the most important features that are to be used in the Android App when you are integrating the login feature in Android. In your android app if you are using a feature of Login then you should have to save the state if the user has signed the first time. Then when the user clo...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Feb, 2021" }, { "code": null, "e": 1005, "s": 28, "text": "Session Management is one of the most important features that are to be used in the Android App when you are integrating the login feature in Android. In your android app if ...