title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
C Program to print “Hello World!” without using a semicolon
Let us see how to write a C program in which we can print the text “Hello World” without using any semicolon. We can simply write the text by using the line printf(“Hello World”); in the main() function. But there is a semicolon at the end of the line. To avoid the semicolon, we can follow some trick. We can use the sa...
[ { "code": null, "e": 1172, "s": 1062, "text": "Let us see how to write a C program in which we can print the text “Hello World” without using any\nsemicolon." }, { "code": null, "e": 1266, "s": 1172, "text": "We can simply write the text by using the line printf(“Hello World”); i...
How to Handle Missing Data. “The idea of imputation is both... | by Alvira Swalin | Towards Data Science
“The idea of imputation is both seductive and dangerous” (R.J.A Little & D.B. Rubin) One of the most common problems I have faced in Data Cleaning/Exploratory Analysis is handling the missing values. Firstly, understand that there is NO good way to deal with missing data. I have come across different solutions for data...
[ { "code": null, "e": 257, "s": 172, "text": "“The idea of imputation is both seductive and dangerous” (R.J.A Little & D.B. Rubin)" }, { "code": null, "e": 748, "s": 257, "text": "One of the most common problems I have faced in Data Cleaning/Exploratory Analysis is handling the mi...
How to get latest set of data from a MongoDB collection based on the date records?
To get the latest set of data from data records, use sort() and -1. For only a single data i.e. document, use LIMIT(1). Let us create a collection with documents − > db.demo521.insertOne({"PurchaseDate":new ISODate("2019-01-10"),"ProductName":"Product-1"});{ "acknowledged" : true, "insertedId" : ObjectId("5e89a1acb3...
[ { "code": null, "e": 1226, "s": 1062, "text": "To get the latest set of data from data records, use sort() and -1. For only a single data i.e. document, use LIMIT(1). Let us create a collection with documents −" }, { "code": null, "e": 1927, "s": 1226, "text": "> db.demo521.inser...
Shell Script to Show the Difference Between echo “$SHELL” and echo ‘$SHELL’
28 Mar, 2021 When shell commands are executed with the help of the file this is called shell scripting. In this article, we will understand how shell commands work? How to use commands more efficiently? And understand the logic of interpretation of commands on shell. Bash or Bourne Again Shell is the most widely used s...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Mar, 2021" }, { "code": null, "e": 400, "s": 28, "text": "When shell commands are executed with the help of the file this is called shell scripting. In this article, we will understand how shell commands work? How to use commands mor...
C++ Program to Compute Determinant of a Matrix
The determinant of a square matrix can be computed using its element values. The determinant of a matrix A can be denoted as det(A) and it can be called the scaling factor of the linear transformation described by the matrix in geometry. An example of the determinant of a matrix is as follows. The matrix is: 3 1 2 7 Th...
[ { "code": null, "e": 1425, "s": 1187, "text": "The determinant of a square matrix can be computed using its element values. The determinant of a matrix A can be denoted as det(A) and it can be called the scaling factor of the linear transformation described by the matrix in geometry." }, { "...
How to add 30 minutes to a JavaScript Date object?
To add minutes to a JavaScript Date object, use the setMinutes() method. Under that, get the current minutes and 30 minutes to it. JavaScript date setMinutes() method sets the minutes for a specified date according to local time. You can try to run the following code to add 30 minutes to date. Live Demo <html> <hea...
[ { "code": null, "e": 1417, "s": 1187, "text": "To add minutes to a JavaScript Date object, use the setMinutes() method. Under that, get the current minutes and 30 minutes to it. JavaScript date setMinutes() method sets the minutes for a specified date according to local time." }, { "code": n...
wcscpy() function in C++ with Examples
03 Oct, 2018 The wcscpy() function is defined in cwchar.h header file. The wcscpy() function is used to copy a wide character string from source to destination. Syntax: wchar_t *wcscpy(wchar_t *dest, const wchar_t *src); Parameters: This method accepts the following two parameters: dest: specifies the pointer to the de...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Oct, 2018" }, { "code": null, "e": 200, "s": 52, "text": "The wcscpy() function is defined in cwchar.h header file. The wcscpy() function is used to copy a wide character string from source to destination." }, { "code": null...
SQL Drop Table Statement
27 Sep, 2021 SQL is a programming language used to manipulate data that are stored in the database. It is flexible and user-friendly. In SQL, to interact with the database, the users have to type queries that have certain syntax, e.g., the drop command. The drop command in SQL is used to remove the whole table includin...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Sep, 2021" }, { "code": null, "e": 775, "s": 28, "text": "SQL is a programming language used to manipulate data that are stored in the database. It is flexible and user-friendly. In SQL, to interact with the database, the users have ...
Bootstrap 4 .card-img-overlay class
Use the card-img-overlay class to turn an image into a Bootstrap 4 card background and set the image using the <img> element and the card-img-top class − <img class="card-img-top" src="Image-Source" alt="Alt-Text" style="width:100%"> After that, use the card-img-overlay class − <div class="card-img-overlay"> <h4 clas...
[ { "code": null, "e": 1341, "s": 1187, "text": "Use the card-img-overlay class to turn an image into a Bootstrap 4 card background and set the image using the <img> element and the card-img-top class −" }, { "code": null, "e": 1421, "s": 1341, "text": "<img class=\"card-img-top\" ...
How to get the unique elements of an array using NumPy?
31 Aug, 2021 Let’s see How to get the unique elements of an array using NumPy. So for finding unique elements from the array we are using numpy.unique() function of NumPy library. Syntax: np.unique(Array)Return: Return the unique of an array. Now, Let’s see the examples: Example 1: Python3 # import libraryimport numpy...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Aug, 2021" }, { "code": null, "e": 195, "s": 28, "text": "Let’s see How to get the unique elements of an array using NumPy. So for finding unique elements from the array we are using numpy.unique() function of NumPy library." }, ...
Find number of closed islands in given Matrix
07 Dec, 2021 Given a binary matrix mat[][] of dimensions NxM such that 1 denotes the island and 0 denotes the water. The task is to find the number of closed islands in the given matrix. A closed island is known as the group of 1s that is surrounded by only 0s on all the four sides (excluding diagonals). If any 1 is a...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Dec, 2021" }, { "code": null, "e": 227, "s": 52, "text": "Given a binary matrix mat[][] of dimensions NxM such that 1 denotes the island and 0 denotes the water. The task is to find the number of closed islands in the given matrix. ...
Find maximum count of duplicate nodes in a Binary Search Tree
16 Aug, 2021 Given a Binary Search Tree (BST) with duplicates, find the node (the most frequently occurred element) in the given BST. If the BST contains two or more such nodes, print any of them. Note: We cannot use any extra space. (Assume that the implicit stack space incurred due to recursion does not count) Assume...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Aug, 2021" }, { "code": null, "e": 391, "s": 52, "text": "Given a Binary Search Tree (BST) with duplicates, find the node (the most frequently occurred element) in the given BST. If the BST contains two or more such nodes, print any...
Multiprocessing in Python | Set 2 (Communication between processes)
18 Oct, 2021 Multiprocessing in Python | Set 1These articles discusses the concept of data sharing and message passing between processes while using multiprocessing module in Python.In multiprocessing, any newly created process will do following: run independently have their own memory space. Consider the program below...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 Oct, 2021" }, { "code": null, "e": 288, "s": 54, "text": "Multiprocessing in Python | Set 1These articles discusses the concept of data sharing and message passing between processes while using multiprocessing module in Python.In mu...
How to change (-, +) symbol with a button in Bootstrap Accordion ?
04 Mar, 2022 In Bootstrap 4, there is no default option for changing (-, +) symbol with a button accordion. Hence it can be done by using jQuery. The Following Approach will explain clearly.Approach: Font awesome or any icon utilities to display (-, +) symbol: <link rel=”stylesheet” href=”https://use.fontawesome.co...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Mar, 2022" }, { "code": null, "e": 217, "s": 28, "text": "In Bootstrap 4, there is no default option for changing (-, +) symbol with a button accordion. Hence it can be done by using jQuery. The Following Approach will explain clearl...
Find k numbers with most occurrences in the given array
27 Jun, 2022 Given an array of n numbers and a positive integer k. The problem is to find k numbers with most occurrences, i.e., the top k numbers having the maximum frequency. If two numbers have the same frequency then the larger number should be given preference. The numbers should be displayed in decreasing order o...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 Jun, 2022" }, { "code": null, "e": 456, "s": 54, "text": "Given an array of n numbers and a positive integer k. The problem is to find k numbers with most occurrences, i.e., the top k numbers having the maximum frequency. If two num...
Android - TextureView
If you want to display a live video stream or any content stream such as video or an OpenGL scene, you can use TextureView provided by android in order to do that. In order to use TextureView, all you need to do is get its SurfaceTexture.The SurfaceTexture can then be used to render content. In order to do this, you ju...
[ { "code": null, "e": 3905, "s": 3741, "text": "If you want to display a live video stream or any content stream such as video or an OpenGL scene, you can use TextureView provided by android in order to do that." }, { "code": null, "e": 4187, "s": 3905, "text": "In order to use Te...
Linux man page entries | different types
31 Mar, 2018 The man page(manual page) is a documentation manual of different commands available in unix or unix like operating systems. To check manual entry for any command use, man command_nameIn this article, I’m using command printf for my demonstrations. man printf Output: PRINTF(1) ...
[ { "code": null, "e": 52, "s": 24, "text": "\n31 Mar, 2018" }, { "code": null, "e": 176, "s": 52, "text": "The man page(manual page) is a documentation manual of different commands available in unix or unix like operating systems." }, { "code": null, "e": 300, "s":...
Convert a Matrix into another Matrix of given dimensions
07 Mar, 2022 Given a matrix, mat[][] of size N * M and two positive integers A and B, the task is to construct a matrix of size A * B from the given matrix elements. If multiple solutions exist, then print any one of them. Otherwise, print -1. Input: mat[][] = { { 1, 2, 3, 4, 5, 6 } }, A = 2, B = 3 Output: { { 1, 2, 3 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Mar, 2022" }, { "code": null, "e": 283, "s": 52, "text": "Given a matrix, mat[][] of size N * M and two positive integers A and B, the task is to construct a matrix of size A * B from the given matrix elements. If multiple solutions...
How to Save ArrayList to SharedPreferences in Android?
28 Jan, 2021 SharedPreferences in Android is local storage that is used to store strings, integers, and variables in phone storage so that we can manage the state of the app. We have seen storing simple variables in shared prefs with key and value pair. In this article, we will see How we can store ArrayList to shared ...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jan, 2021" }, { "code": null, "e": 395, "s": 54, "text": "SharedPreferences in Android is local storage that is used to store strings, integers, and variables in phone storage so that we can manage the state of the app. We have seen...
KeyStore getCertificateChain() method in Java with Examples
10 Jun, 2020 The getCertificateChain() method of java.security.KeyStore class is used to provide the certificate chain for the requested alias. . Syntax: public final Certificate[] getCertificateChain(String alias) throws KeyStoreException Parameter: This method accepts a parameter alias which is the name of the al...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jun, 2020" }, { "code": null, "e": 161, "s": 28, "text": "The getCertificateChain() method of java.security.KeyStore class is used to provide the certificate chain for the requested alias. ." }, { "code": null, "e": 169, ...
C# | Check if ListDictionary has a fixed size
01 Feb, 2019 ListDictionary.IsFixedSize property is used to get a value indicating whether the ListDictionary has a fixed size or not. Syntax: public bool IsFixedSize { get; } Return Value : This property always returns false. Example: // C# code to check if ListDictionary// has a fixed sizeusing System;using System.C...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Feb, 2019" }, { "code": null, "e": 150, "s": 28, "text": "ListDictionary.IsFixedSize property is used to get a value indicating whether the ListDictionary has a fixed size or not." }, { "code": null, "e": 158, "s": 15...
Multi-Cycle Data path and Control
01 Oct, 2021 Overview : Multi-cycle data path break up instructions into separate steps. It reduces average instruction time. Each step takes a single clock cycle Each functional unit can be used more than once in an instruction, as long as it is used in different clock cycles. It reduces the amount of hardware needed....
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Oct, 2021" }, { "code": null, "e": 39, "s": 28, "text": "Overview :" }, { "code": null, "e": 337, "s": 39, "text": "Multi-cycle data path break up instructions into separate steps. It reduces average instruction t...
To Generate a One Time Password or Unique Identification URL - GeeksforGeeks
31 Mar, 2020 A one-time password (OTP) is a password that is valid for only one login session or transaction, on a computer system or other digital device. For more details refer this.AlgorithmRandomly pick characters from our all possibilities and generate a string of the desired length from it. OTPs are generally 6-7...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n31 Mar, 2020" }, { "code": null, "e": 26474, "s": 26071, "text": "A one-time password (OTP) is a password that is valid for only one login session or transaction, on a computer system or other digital device. For more details ref...
Count the values greater than X in the modified array - GeeksforGeeks
20 May, 2021 Given an array Arr of positive integers and a value X. The task is to find the number of values that is greater than or equal to X.But the twist is that the values of the array are kept changing after every operation. There are two possibilities: If the current value is picked then all the remaining valu...
[ { "code": null, "e": 24448, "s": 24420, "text": "\n20 May, 2021" }, { "code": null, "e": 24697, "s": 24448, "text": "Given an array Arr of positive integers and a value X. The task is to find the number of values that is greater than or equal to X.But the twist is that the values...
Smallest number greater than Y with sum of digits equal to X - GeeksforGeeks
10 Jun, 2021 Given two integers X and Y, find the minimal number with the sum of digits X, which is strictly greater than Y. Examples: Input: X = 18, Y = 99 Output: 189 Explanation: 189 is the smallest number greater than 99 having sum of digits = 18. Input: X = 12, Y = 72 Output: 75 Explanation: 75 is the smallest nu...
[ { "code": null, "e": 26291, "s": 26263, "text": "\n10 Jun, 2021" }, { "code": null, "e": 26403, "s": 26291, "text": "Given two integers X and Y, find the minimal number with the sum of digits X, which is strictly greater than Y." }, { "code": null, "e": 26414, "s"...
How to Remove Nan Values from a Matrix in MATLAB? - GeeksforGeeks
04 Jul, 2021 Removal of Nan Values from a Matrix.There are multiple methods by which we can remove Nan values from a specified matrix:. This function is used to remove missing entries or Nan values from a specified matrix. rmmissing(A) Parameters: This function accepts a parameter which is illustrated below: A: This is...
[ { "code": null, "e": 25871, "s": 25843, "text": "\n04 Jul, 2021" }, { "code": null, "e": 25994, "s": 25871, "text": "Removal of Nan Values from a Matrix.There are multiple methods by which we can remove Nan values from a specified matrix:." }, { "code": null, "e": 260...
Predictive Analytics: Time-Series Forecasting with GRU and BiLSTM in TensorFlow | by Niousha Rasifaghihi | Towards Data Science
Recurrent Neural Networks are designed to handle the complexity of sequence dependence in time-series analysis. In this tutorial, I build GRU and BiLSTM for a univariate time-series predictive model. Gated Recurrent Unit (GRU) is a new generation of Neural Networks and is pretty similar to Long Short Term Memory (LSTM)...
[ { "code": null, "e": 641, "s": 172, "text": "Recurrent Neural Networks are designed to handle the complexity of sequence dependence in time-series analysis. In this tutorial, I build GRU and BiLSTM for a univariate time-series predictive model. Gated Recurrent Unit (GRU) is a new generation of Neura...
Convert string (varchar) to double in MySQL
Let us first create a table: mysql> create table DemoTable731 (Value varchar(100)); Query OK, 0 rows affected (0.50 sec) Insert some records in the table using insert command - mysql> insert into DemoTable731 values('4.50'); Query OK, 1 row affected (0.15 sec) mysql> insert into DemoTable731 values('7.83'); Query OK, 1...
[ { "code": null, "e": 1091, "s": 1062, "text": "Let us first create a table:" }, { "code": null, "e": 1183, "s": 1091, "text": "mysql> create table DemoTable731 (Value varchar(100));\nQuery OK, 0 rows affected (0.50 sec)" }, { "code": null, "e": 1239, "s": 1183, ...
Output of C programs | Set 36 - GeeksforGeeks
19 Jun, 2019 1. What will be the output of following? void main(){ int const* p = 5; printf("%d", ++(*p));} Options:A. 6B. 5C. Garbage ValueD. Compiler Error Answer : D Explanation : It will give compile time error because we are trying to change the constant value. p is a pointer to a “constant integer”. But we ...
[ { "code": null, "e": 24328, "s": 24300, "text": "\n19 Jun, 2019" }, { "code": null, "e": 24369, "s": 24328, "text": "1. What will be the output of following?" }, { "code": "void main(){ int const* p = 5; printf(\"%d\", ++(*p));}", "e": 24429, "s": 24369, ...
Amazon Interview experience | Set 128 (For SDET) - GeeksforGeeks
24 Jun, 2019 I was interviewed for the position of SDET-1 few days back at Chennai. Here is my interview experience: Coding round (Full code required):1) Given a linked list. Check whether it is a palindrome (without using any extra space).2) Write a program to return the mirror tree of a given binary tree.3) Given a 2...
[ { "code": null, "e": 24536, "s": 24508, "text": "\n24 Jun, 2019" }, { "code": null, "e": 24640, "s": 24536, "text": "I was interviewed for the position of SDET-1 few days back at Chennai. Here is my interview experience:" }, { "code": null, "e": 24878, "s": 24640,...
Angular ng Bootstrap Progressbar Component - GeeksforGeeks
06 Jul, 2021 Angular ng bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites. In this article, we will see how to use Progressbar in angular ng bootstrap. The Progressbar component is used to provide u...
[ { "code": null, "e": 25109, "s": 25081, "text": "\n06 Jul, 2021" }, { "code": null, "e": 25293, "s": 25109, "text": "Angular ng bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make ...
How to find Image Contours using Java OpenCV library?
Contours are nothing but the line joining all the points along the boundary of a particular shape. Using this you can − Find the shape of an object. Find the shape of an object. Calculate the area of an object. Calculate the area of an object. Detect an object. Detect an object. Recognize an object. Recognize an object...
[ { "code": null, "e": 1182, "s": 1062, "text": "Contours are nothing but the line joining all the points along the boundary of a particular shape. Using this you can −" }, { "code": null, "e": 1211, "s": 1182, "text": "Find the shape of an object." }, { "code": null, "...
How to run a timer in background within your iOS app
If you wish to run a timer in background within your iOS Application, Apple provides beginBackgroundTaskWithExpirationHandler method, you can read more about the same https://developer.apple.com/documentation/uikit/uiapplication/1623031-beginbackgroundtaskwithexpiration. We will be using the same for writing our code f...
[ { "code": null, "e": 1334, "s": 1062, "text": "If you wish to run a timer in background within your iOS Application, Apple provides beginBackgroundTaskWithExpirationHandler method, you can read more about the same https://developer.apple.com/documentation/uikit/uiapplication/1623031-beginbackgroundt...
Count numbers in a range with digit sum divisible by K having first and last digit different - GeeksforGeeks
10 Nov, 2021 Given a range in the form of L and R, and a value K, the task is to count the numbers between the range L to R such that the sum of the digit is divisible by K, and the first digit is not equal to the last digit of the number. Examples: Input: L = 1, R = 10, K = 2 Output: 0 Explanation: The input numbers...
[ { "code": null, "e": 25478, "s": 25450, "text": "\n10 Nov, 2021" }, { "code": null, "e": 25706, "s": 25478, "text": "Given a range in the form of L and R, and a value K, the task is to count the numbers between the range L to R such that the sum of the digit is divisible by K, an...
Predicting Sequential Data using LSTM: An Introduction | by George V Jose | Towards Data Science
Predicting the future of sequential data like stocks using Long Short Term Memory (LSTM) networks. Forecasting is the process of predicting the future using current and previous data. The major challenge is understanding the patterns in the sequence of data and then using this pattern to analyse the future. If we were ...
[ { "code": null, "e": 146, "s": 47, "text": "Predicting the future of sequential data like stocks using Long Short Term Memory (LSTM) networks." }, { "code": null, "e": 555, "s": 146, "text": "Forecasting is the process of predicting the future using current and previous data. The...
Beginners Guide to Transition from SAS to Python | by ankur garg | Towards Data Science
SAS is a specialized data analytics programming language that has been around since 1976. That was 14 years before Python first appeared as a general purpose programming language in 1990 and 32 years before Pandas was first released in 2008 and transformed Python into an open source data analytics power house. While SA...
[ { "code": null, "e": 1002, "s": 171, "text": "SAS is a specialized data analytics programming language that has been around since 1976. That was 14 years before Python first appeared as a general purpose programming language in 1990 and 32 years before Pandas was first released in 2008 and transform...
Builder Design Pattern - GeeksforGeeks
18 Oct, 2021 Builder pattern aims to “Separate the construction of a complex object from its representation so that the same construction process can create different representations.” It is used to construct a complex object step by step and the final step will return the object. The process of constructing an object ...
[ { "code": null, "e": 23917, "s": 23889, "text": "\n18 Oct, 2021" }, { "code": null, "e": 24322, "s": 23917, "text": "Builder pattern aims to “Separate the construction of a complex object from its representation so that the same construction process can create different represent...
Maximize the last Array element as per the given conditions - GeeksforGeeks
29 May, 2021 Given an array arr[] consisting of N integers, rearrange the array such that it satisfies the following conditions: arr[0] must be 1.Difference between adjacent array elements should not exceed 1, that is, arr[i] – arr[i-1] ≤ 1 for all 1 ≤ i < N. arr[0] must be 1. Difference between adjacent array elements...
[ { "code": null, "e": 25261, "s": 25233, "text": "\n29 May, 2021" }, { "code": null, "e": 25377, "s": 25261, "text": "Given an array arr[] consisting of N integers, rearrange the array such that it satisfies the following conditions:" }, { "code": null, "e": 25508, ...
How "getElementByID" works in JavaScript?
The getElementById() is a DOM method used to return the element that has the ID attribute with the specified value. This is one of the most common methods in the HTML DOM and is used almost every time we want to manipulate an element on our document. This method returns null if no elements with the specified ID exists....
[ { "code": null, "e": 1538, "s": 1062, "text": "The getElementById() is a DOM method used to return the element that has the ID attribute with the specified value. This is one of the most common methods in the HTML DOM and is used almost every time we want to manipulate an element on our document. Th...
R Statistics - Percentiles
Percentiles are used in statistics to give you a number that describes the value that a given percent of the values are lower than. If we take a look at the values of the wt (weight) variable from the mtcars data set: What is the 75. percentile of the weight of the cars? The answer is 3.61 or 3 610 lbs, meaning that 7...
[ { "code": null, "e": 132, "s": 0, "text": "Percentiles are used in statistics to give you a number that describes the value that a given percent of\nthe values are lower than." }, { "code": null, "e": 219, "s": 132, "text": "If we take a look at the values of the wt \n(weight) va...
CSS | Generic font-family collection - GeeksforGeeks
09 Mar, 2021 The font-family property is used to set the font of text in HTML document. The different font-family is used to create attractive web pages. There are many fonts available to choose from font pool like Google fonts, Adobe fonts, etc and require font API linking and customization. Generic font families main...
[ { "code": null, "e": 25114, "s": 25086, "text": "\n09 Mar, 2021" }, { "code": null, "e": 25480, "s": 25114, "text": "The font-family property is used to set the font of text in HTML document. The different font-family is used to create attractive web pages. There are many fonts a...
Python | Pandas dataframe.shift() - GeeksforGeeks
31 Aug, 2021 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.Pandas dataframe.shift() function Shift index by desired number of periods with an optional ti...
[ { "code": null, "e": 24473, "s": 24445, "text": "\n31 Aug, 2021" }, { "code": null, "e": 24986, "s": 24473, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a...
Google Charts - Material bar chart
Following is an example of a material bar chart. We've already seen the configuration used to draw this chart in Google Charts Configuration Syntax chapter. So, let's see the complete example. We've used Bar class to show material chart. //classic chart var chart = new google.visualization.BarChart(document.getElementB...
[ { "code": null, "e": 2454, "s": 2261, "text": "Following is an example of a material bar chart. We've already seen the configuration used to draw this chart in Google Charts Configuration Syntax chapter. So, let's see the complete example." }, { "code": null, "e": 2499, "s": 2454, ...
Find the first circular tour that visits all petrol pumps in C++ Program
Suppose there is a circle, and there are n petrol pumps on the circle. We have two sets of data like − The amount of petrol that every petrol pump has Distance from one petrol pump to another. Calculate the first point, from where a truck will be able to complete the circle. Assume for 1 liter petrol, the truck can go ...
[ { "code": null, "e": 1165, "s": 1062, "text": "Suppose there is a circle, and there are n petrol pumps on the circle. We have two sets of data like −" }, { "code": null, "e": 1213, "s": 1165, "text": "The amount of petrol that every petrol pump has" }, { "code": null, ...
Complete Step-by-step Conjugate Gradient Algorithm from Scratch | by Albers Uzila | Towards Data Science
Table of Contents (read till the end to see how you can get the complete python code of this story)· Conjugate Gradient for Solving a Linear System· Improving the Algorithm ∘ Theorem ∘ Simple Problems· Conjugate Gradient for Nonlinear Optimization Problem ∘ Wolfe Line Search ∘ Implementation ∘ Scenarios· Conclusio...
[ { "code": null, "e": 494, "s": 172, "text": "Table of Contents (read till the end to see how you can get the complete python code of this story)· Conjugate Gradient for Solving a Linear System· Improving the Algorithm ∘ Theorem ∘ Simple Problems· Conjugate Gradient for Nonlinear Optimization Probl...
Faithful Numbers | Practice | GeeksforGeeks
A number is called faithful if you can write it as the sum of distinct powers of 7. e.g., 2457 = 7 + 72 + 74 . If we order all the faithful numbers, we get the sequence 1 = 70, 7 = 71, 8 = 70 + 71, 49 = 72, 50 = 70 + 72 . . . and so on. Given some value of N, you have to find the N'th faithful number. Example 1: In...
[ { "code": null, "e": 543, "s": 238, "text": "A number is called faithful if you can write it as the sum of distinct powers of 7. \ne.g., 2457 = 7 + 72 + 74 . If we order all the faithful numbers, we get the sequence 1 = 70, 7 = 71, 8 = 70 + 71, 49 = 72, 50 = 70 + 72 . . . and so on.\nGiven some val...
How can we convert a list to the JSON array in Java?
The JSON is a lightweight, text-based and language-independent data exchange format. The JSON can represent two structured types like objects and arrays. An object is an unordered collection of key/value pairs and an array is an ordered sequence of values. We can convert a list to the JSON array using the JSONArray.toJ...
[ { "code": null, "e": 1319, "s": 1062, "text": "The JSON is a lightweight, text-based and language-independent data exchange format. The JSON can represent two structured types like objects and arrays. An object is an unordered collection of key/value pairs and an array is an ordered sequence of valu...
HiveQL - Select-Joins
JOIN is a clause that is used for combining specific fields from two tables by using values common to each one. It is used to combine records from two or more tables in the database. join_table: table_reference JOIN table_factor [join_condition] | table_reference {LEFT|RIGHT|FULL} [OUTER] JOIN table_reference ...
[ { "code": null, "e": 2133, "s": 1950, "text": "JOIN is a clause that is used for combining specific fields from two tables by using values common to each one. It is used to combine records from two or more tables in the database." }, { "code": null, "e": 2418, "s": 2133, "text": ...
Genpact India Pvt Ltd Interview Experience for SDE Role (Off-Campus) - GeeksforGeeks
09 Dec, 2021 I have applied at Genpact through a referral that was given by my senior, rounds are as follows:- First Round(Technical Round): It went for 1.5 hrs and they have asked the following questions:- IntroductionHow does Java Works?What is Interface, write a code to explain it?What are Collections in java, expla...
[ { "code": null, "e": 25028, "s": 25000, "text": "\n09 Dec, 2021" }, { "code": null, "e": 25126, "s": 25028, "text": "I have applied at Genpact through a referral that was given by my senior, rounds are as follows:-" }, { "code": null, "e": 25222, "s": 25126, "...
How to Fix: if using all scalar values, you must pass an index - GeeksforGeeks
19 Dec, 2021 In this article, we discuss how to fix the error: if using all scalar values, you must pass an index in Python. Python3 # Importing pandas libraryimport pandas as pd; # Creating a dictionary or the data to # be converted to the dataframedict = {'column-1': 1,'column-2': 2, 'column-3': 3,'column-4':...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n19 Dec, 2021" }, { "code": null, "e": 24013, "s": 23901, "text": "In this article, we discuss how to fix the error: if using all scalar values, you must pass an index in Python." }, { "code": null, "e": 24021, "s"...
Selenium Webdriver - Select Support
Selenium can handle static dropdowns with the help of the Select class. A dropdown is identified with select tagname and its options are represented with the tagname option. The statement - from selenium.webdriver.support.select import Select should be added to work with Select class. The methods under the Select class...
[ { "code": null, "e": 2489, "s": 2203, "text": "Selenium can handle static dropdowns with the help of the Select class. A dropdown is identified with select tagname and its options are represented with the tagname option. The statement - from selenium.webdriver.support.select import Select should be ...
How to post data to specific URL using WebClient in C#?
We can Get and Post data from a Web API using Web client. Web client provides common methods for sending and receiving data from Server Web client is easy to use for consuming the Web API. You can also use httpClient instead of WebClient The WebClient class uses the WebRequest class to provide access to resources. WebC...
[ { "code": null, "e": 1198, "s": 1062, "text": "We can Get and Post data from a Web API using Web client. Web client provides\ncommon methods for sending and receiving data from Server" }, { "code": null, "e": 1300, "s": 1198, "text": "Web client is easy to use for consuming the W...
Generating random number in a range in C - GeeksforGeeks
23 Apr, 2018 How to generate a random number in a given range in C. Examples: Input : Lower = 50, Upper = 100, Count of random Number = 5 Output : 91 34 21 88 29 Explanation: lower is the lower limit of the range and upper is the upper limit of the range. Output contains 5 random numbers in given ran...
[ { "code": null, "e": 24519, "s": 24491, "text": "\n23 Apr, 2018" }, { "code": null, "e": 24574, "s": 24519, "text": "How to generate a random number in a given range in C." }, { "code": null, "e": 24584, "s": 24574, "text": "Examples:" }, { "code": nul...
Generating Startup names with Markov Chains | by Gustavo Zomer | Towards Data Science
The most interesting applications of Machine Learning are, without a doubt, the generative models. The idea of finding patterns in data and generating new content that at the same time is similar to your data, but unique in its own way, has always fascinated me. So I have decided to develop a simple text generator to c...
[ { "code": null, "e": 271, "s": 172, "text": "The most interesting applications of Machine Learning are, without a doubt, the generative models." }, { "code": null, "e": 435, "s": 271, "text": "The idea of finding patterns in data and generating new content that at the same time i...
Departmental Accounting
Departmental stores have many types of stores under a single roof, for example one departmental store may have a cosmetic store, shoe store, stationery store, readymade departmental store, grocery stores, medicines, and many more. It is essential to know the profit and loss account of each departmental store at the end...
[ { "code": null, "e": 2396, "s": 2165, "text": "Departmental stores have many types of stores under a single roof, for example one departmental store may have a cosmetic store, shoe store, stationery store, readymade departmental store, grocery stores, medicines, and many more." }, { "code": ...
Statistical Tests for Comparing Classification Algorithms | by Tiago Toledo Jr. | Towards Data Science
Comparing prediction methods to define which one should be used for the task at hand is a daily activity for most data scientists. Usually, one will have a pool of classification models and will validate them using cross-validation to define which one is best. Another goal, however, is not to compare classifiers, but t...
[ { "code": null, "e": 433, "s": 172, "text": "Comparing prediction methods to define which one should be used for the task at hand is a daily activity for most data scientists. Usually, one will have a pool of classification models and will validate them using cross-validation to define which one is ...
3D scatterplots in Python Matplotlib with hue colormap and legend
To plot 3D scatter plots in Python with hue colormap and legend, we can take the following steps− Set the figure size and adjust the padding between and around the subplots Create x, y and z data points using numpy. Create a new figure or activate an existing figure using figure() method. Get the current axes, creating...
[ { "code": null, "e": 1160, "s": 1062, "text": "To plot 3D scatter plots in Python with hue colormap and legend, we can take the following steps−" }, { "code": null, "e": 1235, "s": 1160, "text": "Set the figure size and adjust the padding between and around the subplots" }, {...
Explain the concept of Sorting in C language
Why sorting makes searching easier in C language? How can you judge the sorting efficiency in C? Sorting is the process of arranging elements either in ascending (or) descending order. The term sorting came into existence when humans realized the importance of searching quickly. The term sorting came into existence whe...
[ { "code": null, "e": 1159, "s": 1062, "text": "Why sorting makes searching easier in C language? How can you judge the sorting efficiency in C?" }, { "code": null, "e": 1247, "s": 1159, "text": "Sorting is the process of arranging elements either in ascending (or) descending orde...
5 Powerful Visualisation with Pandas for Data Preprocessing | by Kaushik Choudhury | Towards Data Science
One of the most common pitfalls I observe repeatedly among relatively junior data scientist and machine learning professionals is spending hours in finding the best algorithm for their project and not spending enough time to understand the data first. A structured way to approach data science and machine learning proje...
[ { "code": null, "e": 424, "s": 172, "text": "One of the most common pitfalls I observe repeatedly among relatively junior data scientist and machine learning professionals is spending hours in finding the best algorithm for their project and not spending enough time to understand the data first." ...
Vim - Tips And Tricks
Now we got fair idea about Vim. Let us discuss few tips and tricks of Vim to improve productivity. In this section, we will discuss following items − Convert spaces to tabs and vice-versa Highlight miss-spelled words Word completion Copy line character by character Indent code Change file format If you are editing a fi...
[ { "code": null, "e": 2120, "s": 1970, "text": "Now we got fair idea about Vim. Let us discuss few tips and tricks of Vim to improve productivity. In this section, we will discuss following items −" }, { "code": null, "e": 2158, "s": 2120, "text": "Convert spaces to tabs and vice-...
Org.Json - Quick Guide
org.json or JSON-Java is a simple Java based toolkit for JSON. You can use org.json to encode or decode JSON data. Specification Compliant − JSON.simple is fully compliant with JSON Specification - RFC4627. Specification Compliant − JSON.simple is fully compliant with JSON Specification - RFC4627. Lightweight − It have...
[ { "code": null, "e": 2090, "s": 1975, "text": "org.json or JSON-Java is a simple Java based toolkit for JSON. You can use org.json to encode or decode JSON data." }, { "code": null, "e": 2182, "s": 2090, "text": "Specification Compliant − JSON.simple is fully compliant with JSON ...
Electron - Native Node Libraries
We used a node module, fs, in the previous chapter. We will now look at some other node modules that we can use with Electron. Using the OS module, we can get a lot of information about the system our application is running on. Following are a few methods that help while the app is being created. These methods help us ...
[ { "code": null, "e": 2192, "s": 2065, "text": "We used a node module, fs, in the previous chapter. We will now look at some other node modules that we can use with Electron." }, { "code": null, "e": 2450, "s": 2192, "text": "Using the OS module, we can get a lot of information ab...
Industrial Motor Fault Classification using Deep Learning with IoT Implications | by Milan Kordic | Towards Data Science
Purpose The following work is for educational purposes only and is not intended for commercial use. I continually challenge myself to develop my skills in engineering, data science, communication, and business acumen. I enjoy working on projects that test my knowledge, push me out of my comfort zone, and allow me to ex...
[ { "code": null, "e": 54, "s": 46, "text": "Purpose" }, { "code": null, "e": 146, "s": 54, "text": "The following work is for educational purposes only and is not intended for commercial use." }, { "code": null, "e": 549, "s": 146, "text": "I continually challe...
How to Fix SettingWithCopyWarning in Pandas - GeeksforGeeks
23 Dec, 2021 The SettingWithCopyWarning may occur when we are trying to modify the data in the Pandas DataFrame. This warning is thrown when we write a line of code with getting and set operations. To explain this in detail, Using get operation, Pandas won’t guarantee that the returned result from getting operation is...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n23 Dec, 2021" }, { "code": null, "e": 24478, "s": 24292, "text": "The SettingWithCopyWarning may occur when we are trying to modify the data in the Pandas DataFrame. This warning is thrown when we write a line of code with gettin...
Explain the END OF FILE (EOF) with a C Program
The End of the File (EOF) indicates the end of input. After we enter the text, if we press ctrl+Z, the text terminates i.e. it indicates the file reached end nothing to read. Refer to the algorithm given below for EOF. Step 1: Open file in write mode. Step 2: Until character reaches end of the file, write each characte...
[ { "code": null, "e": 1116, "s": 1062, "text": "The End of the File (EOF) indicates the end of input." }, { "code": null, "e": 1237, "s": 1116, "text": "After we enter the text, if we press ctrl+Z, the text terminates i.e. it indicates the file reached end nothing to read." }, ...
Python Pandas - Return the string alias of the Time series frequency applied on the given Period object
To return the string alias of the Time series frequency applied on the given Period object, use the period.freqstr property. At first, import the required libraries − import pandas as pd The pandas.Period represents a period of time. Creating two Period objects − period1 = pd.Period("2020-09-23 03:55:20") period2 = pd....
[ { "code": null, "e": 1187, "s": 1062, "text": "To return the string alias of the Time series frequency applied on the given Period object, use the period.freqstr property." }, { "code": null, "e": 1229, "s": 1187, "text": "At first, import the required libraries −" }, { "...
Tryit Editor v3.7
HTML Input types Tryit: input type = number
[ { "code": null, "e": 27, "s": 10, "text": "HTML Input types" } ]
Monte Carlo Pricing in Python. A guide to the notion of securities... | by Roman Paolucci | Towards Data Science
The majority of the time in undergraduate quantitative finance coursework is spent on pricing different securities. Initially, there is a heavy emphasis on the time value of money, and analyzing annuities and perpetuities. Afterward, the focus shifts to learning, analyzing, and pricing equity derivatives including forw...
[ { "code": null, "e": 864, "s": 171, "text": "The majority of the time in undergraduate quantitative finance coursework is spent on pricing different securities. Initially, there is a heavy emphasis on the time value of money, and analyzing annuities and perpetuities. Afterward, the focus shifts to l...
Batch Inserts Using JDBC Prepared Statements
Grouping a set of INSERT Statements and executing them at once is known as batch insert. To execute a batch of insert statements using the PreparedStatement object − Create a PreparedStatement − Create a PreparedStatement object using the prepareStatement() method. Pass the Insert query with place holders “?” instead o...
[ { "code": null, "e": 1151, "s": 1062, "text": "Grouping a set of INSERT Statements and executing them at once is known as batch insert." }, { "code": null, "e": 1228, "s": 1151, "text": "To execute a batch of insert statements using the PreparedStatement object −" }, { "c...
How can I use MySQL IF() function within SELECT statement?
It is quite possible to use MySQL IF() function within SELECT statement by providing the name of the column along with a condition as the first argument of IF() function. To understand it, consider the following data from table ‘Students’. mysql> Select * from Students; +----+-----------+-----------+----------+--------...
[ { "code": null, "e": 1302, "s": 1062, "text": "It is quite possible to use MySQL IF() function within SELECT statement by providing the name of the column along with a condition as the first argument of IF() function. To understand it, consider the following data from table ‘Students’." }, { ...
this in JavaScript
29 Dec, 2021 The this keyword in JavaScript has often been a source of much confusion for beginners to the language. Some of this confusion stems from the fact that this in JavaScript is treated differently as compared to in other languages like in Java or self in Python.Understanding this is absolutely imperative in o...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Dec, 2021" }, { "code": null, "e": 754, "s": 54, "text": "The this keyword in JavaScript has often been a source of much confusion for beginners to the language. Some of this confusion stems from the fact that this in JavaScript is ...
How to retrieve source code from Python objects?
We use the getsource() method of inspect module to get the source code of the function. inspect.getsource(object) Returns the text of the source code for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a single string. An IOError is rais...
[ { "code": null, "e": 1275, "s": 1187, "text": "We use the getsource() method of inspect module to get the source code of the function." }, { "code": null, "e": 1301, "s": 1275, "text": "inspect.getsource(object)" }, { "code": null, "e": 1550, "s": 1301, "text"...
How to Fix: ValueError: Operands could not be broadcast together with shapes?
28 Nov, 2021 Broadcasting refers to the ability of NumPy to handle arrays of different shapes during arithmetic operations. Actually, in arrays, Arithmetic operations can be done on corresponding elements of arrays. If 2 arrays are of the same shape, then arithmetic operation between 2 arrays can be done smoothly. If ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2021" }, { "code": null, "e": 232, "s": 28, "text": "Broadcasting refers to the ability of NumPy to handle arrays of different shapes during arithmetic operations. Actually, in arrays, Arithmetic operations can be done on corres...
How to convert Date to String in Java 8?
The java.time package of Java provides API’s for dates, times, instances and durations. It provides various classes like Clock, LocalDate, LocalDateTime, LocalTime, MonthDay, Year, YearMonth etc. Using classes of this package you can get details related to date and time in much simpler way compared to previous alternat...
[ { "code": null, "e": 1513, "s": 1187, "text": "The java.time package of Java provides API’s for dates, times, instances and durations. It provides various classes like Clock, LocalDate, LocalDateTime, LocalTime, MonthDay, Year, YearMonth etc. Using classes of this package you can get details related...
unordered set of Vectors in C++ with Examples
19 Dec, 2021 What is an unordered set? In C++, an unordered set is an unordered container that can hold a number of unique elements. Unlike a set, elements in an unordered set are not arranged in any particular order. Internally, an unordered set is implemented using a hash table where keys are hashed into indices of a...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Dec, 2021" }, { "code": null, "e": 78, "s": 52, "text": "What is an unordered set?" }, { "code": null, "e": 608, "s": 78, "text": "In C++, an unordered set is an unordered container that can hold a number of uniq...
Python | Pandas Timestamp.replace
14 Jan, 2019 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Timestamp.replace() function is used to replace the member values of the given Timesta...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Jan, 2019" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp...
Python | Create and write on excel file using xlsxwriter module
18 Aug, 2021 XlsxWriter is a Python module for writing files in the XLSX file format. It can be used to write text, numbers, and formulas to multiple worksheets. Also, it supports features such as formatting, images, charts, page setup, auto filters, conditional formatting and many others.Use this command to install xl...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Aug, 2021" }, { "code": null, "e": 378, "s": 52, "text": "XlsxWriter is a Python module for writing files in the XLSX file format. It can be used to write text, numbers, and formulas to multiple worksheets. Also, it supports feature...
Difference between std::set vs std::vector in C++ STL
21 Jun, 2022 Vectors: Vectors are containers similar to dynamic arrays, with the ability to resize when a new element is inserted or deleted from it. It is a template of Standard Template Library or STL, which provides more flexibility to the program. Elements of vectors are placed in contiguous storage and are travers...
[ { "code": null, "e": 53, "s": 25, "text": "\n21 Jun, 2022" }, { "code": null, "e": 380, "s": 53, "text": "Vectors: Vectors are containers similar to dynamic arrays, with the ability to resize when a new element is inserted or deleted from it. It is a template of Standard Template...
Java Type Casting Examples
We can convert one data types into another data type using casting when narrowing happens in case widening happens, no casting is required. Narrowing refers to passing a higher size data type like int to a lower size data type like short. It may lead to data loss. Following program output will be 44. public class MyFi...
[ { "code": null, "e": 1328, "s": 1187, "text": "We can convert one data types into another data type using casting when narrowing happens in case widening happens, no casting is required. " }, { "code": null, "e": 1490, "s": 1328, "text": "Narrowing refers to passing a higher size...
sympy.stats.Exponential() in python
05 Jun, 2020 With the help of sympy.stats.Exponential() method, we can get the continuous random variable representing the exponential distribution. Syntax : sympy.stats.Exponential(name, rate)Return : Return continuous random variable. Example #1 :In this example we can see that by using sympy.stats.Exponential() meth...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2020" }, { "code": null, "e": 164, "s": 28, "text": "With the help of sympy.stats.Exponential() method, we can get the continuous random variable representing the exponential distribution." }, { "code": null, "e": 25...
issubset() in python
20 May, 2022 Python set issubset() method returns True if all elements of a set A are present in another set B which is passed as an argument and returns false if all elements not present. A.issubset(B) checks whether A is a subset of B or not. returns true if A is a subset of B otherwise false. Python # Python program...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 May, 2022" }, { "code": null, "e": 229, "s": 53, "text": "Python set issubset() method returns True if all elements of a set A are present in another set B which is passed as an argument and returns false if all elements not present...
How to break line without using <br> tag in HTML / CSS ?
15 Feb, 2019 Use block-level elements to break the line without using <br> tag. There are many ways to break the line without using <br> tag.The used properties are listed below: white-space: pre; It is used to make elements acts like <pre> tag. display: block; It sets the display property of elements to block. Example...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Feb, 2019" }, { "code": null, "e": 194, "s": 28, "text": "Use block-level elements to break the line without using <br> tag. There are many ways to break the line without using <br> tag.The used properties are listed below:" }, {...
Unique subsequences of length K with given sum
28 Feb, 2022 Given an array arr[] of N integers and two numbers K and S, the task is to print all the subsequence of length K with the sum S.Examples: Input: N = 5, K = 3, S = 20, arr[] = {4, 6, 8, 2, 12} Output: {6, 2, 12} Explanation: Only one subsequence of size 3 with a sum 20 is possible i.e., {6, 2, 12} and sum...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Feb, 2022" }, { "code": null, "e": 194, "s": 54, "text": "Given an array arr[] of N integers and two numbers K and S, the task is to print all the subsequence of length K with the sum S.Examples: " }, { "code": null, "e...
How to update multiple documents in MongoDB?
You need to use multi:true to update multiple documents. Let us first create a collection with documents − > db.multiUpdateDemo.insertOne({"ClientName":"John","ClientAge":29}); { "acknowledged" : true, "insertedId" : ObjectId("5cda5bc0b50a6c6dd317adc8") } > db.multiUpdateDemo.insertOne({"ClientName":"Carol","Clie...
[ { "code": null, "e": 1169, "s": 1062, "text": "You need to use multi:true to update multiple documents. Let us first create a collection with documents −" }, { "code": null, "e": 1946, "s": 1169, "text": "> db.multiUpdateDemo.insertOne({\"ClientName\":\"John\",\"ClientAge\":29});...
From XML to Excel for Data Analysis | by Costas Andreou | Towards Data Science
Depending on your role and company, now and again you may be required to work with XML. In this article, we will explore how you can leverage Python to assist you in extracting and shaping data in such a way as to enable you to carry out your analysis. XML stands for eXtensible Markup Language, and it’s a language desi...
[ { "code": null, "e": 424, "s": 171, "text": "Depending on your role and company, now and again you may be required to work with XML. In this article, we will explore how you can leverage Python to assist you in extracting and shaping data in such a way as to enable you to carry out your analysis." ...
Design a movie ticket booking system like Bookmyshow - GeeksforGeeks
27 Oct, 2021 We need to design an online Movie ticket booking system where a user can search a movie in a given city and book it. This article will explain you the architecture of the booking system. How to implement the seat booking process? Solution : The Main Classes to be used for the user personas : User Movie T...
[ { "code": null, "e": 25933, "s": 25905, "text": "\n27 Oct, 2021" }, { "code": null, "e": 26120, "s": 25933, "text": "We need to design an online Movie ticket booking system where a user can search a movie in a given city and book it. This article will explain you the architecture...
Find foot of perpendicular from a point in 2 D plane to a Line - GeeksforGeeks
13 Sep, 2021 Given a point P in 2-D plane and equation of a line, the task is to find the foot of the perpendicular from P to the line. Note: Equation of line is in form ax+by+c=0. Examples: Input : P=(1, 0), a = -1, b = 1, c = 0 Output : Q = (0.5, 0.5) The foot of perpendicular from point (1, 0) to line -x + y = 0 ...
[ { "code": null, "e": 26393, "s": 26365, "text": "\n13 Sep, 2021" }, { "code": null, "e": 26516, "s": 26393, "text": "Given a point P in 2-D plane and equation of a line, the task is to find the foot of the perpendicular from P to the line." }, { "code": null, "e": 265...
JavaScript | date.getYear() Function - GeeksforGeeks
30 Jul, 2021 The date.getYear() method in JavaScript is use to get the year in a specified date according to universal time. The year we get from the method getYear() is the current year minus 1900. Syntax: date.getYear() Here, date is the object of Date() class. Parameter: This function does not accept any parameters...
[ { "code": null, "e": 26655, "s": 26627, "text": "\n30 Jul, 2021" }, { "code": null, "e": 26841, "s": 26655, "text": "The date.getYear() method in JavaScript is use to get the year in a specified date according to universal time. The year we get from the method getYear() is the cu...
Matplotlib.pyplot.axvspan() in Python - GeeksforGeeks
12 Apr, 2020 Matplotlib is a plotting library for creating static, animated, and interactive visualizations in Python.\ Pyplot is a Matplotlib module which provides a MATLAB-like interface. Matplotlib is designed to be as usable as MATLAB, with the ability to use Python and the advantage of being free and open-source. ...
[ { "code": null, "e": 25805, "s": 25777, "text": "\n12 Apr, 2020" }, { "code": null, "e": 26112, "s": 25805, "text": "Matplotlib is a plotting library for creating static, animated, and interactive visualizations in Python.\\ Pyplot is a Matplotlib module which provides a MATLAB-l...
Why can't Java generics be used for static methods?
Generics is a concept in Java where you can enable a class, interface and, method, accept all (reference) types as parameters. In other words it is the concept which enables the users to choose the reference type that a method, constructor of a class accepts, dynamically. By defining a class as generic you are making i...
[ { "code": null, "e": 1430, "s": 1062, "text": "Generics is a concept in Java where you can enable a class, interface and, method, accept all (reference) types as parameters. In other words it is the concept which enables the users to choose the reference type that a method, constructor of a class ac...
JScript Web Resources
JScript Web Resources are probably the most important type of web resources that you will be using with Microsoft Dynamics CRM. Form Event Programming is used to handle client-side behaviors such as what happens when a user opens a form, changes some data, moves through tabs, etc. To achieve such client-side interactio...
[ { "code": null, "e": 2169, "s": 2041, "text": "JScript Web Resources are probably the most important type of web resources that you will be using with Microsoft Dynamics CRM." }, { "code": null, "e": 2732, "s": 2169, "text": "Form Event Programming is used to handle client-side b...
JOGL - API for Basic Template
Using JOGL programming, it is possible to draw various graphical shapes such as straight lines, triangles, 3D shapes including special effects such as rotation, lighting, colors, etc. To draw objects in JOGL first of all we have to construct a basic JOGL frame. Below given are the classes required to construct a basic...
[ { "code": null, "e": 2347, "s": 2019, "text": "Using JOGL programming, it is possible to draw various graphical shapes such as straight lines, triangles, 3D shapes including special effects such as rotation, lighting, colors, etc. To draw objects in JOGL first of all we have to construct a basic JOG...
Program to fill Min-max game tree in Python
Suppose we have a binary tree representing a game state of a two player game. Every internal node is filled with 0 and the leaves values represent the end score. Player 1 wants to maximize the end score while player 2 wants to minimize the end score. Player 1 will always make moves on nodes at even levels and player 2 ...
[ { "code": null, "e": 1522, "s": 1062, "text": "Suppose we have a binary tree representing a game state of a two player game. Every internal node is filled with 0 and the leaves values represent the end score. Player 1 wants to maximize the end score while player 2 wants to minimize the end score. Pl...
Python program to remove words that are common in two Strings
31 Mar, 2021 Given two strings S1 and S2, representing sentences, the task is to print both sentences after removing all words which are present in both sentences. Input: S1 = “sky is blue in color”, S2 =”Raj likes sky blue color “Output: is in Raj likes Explanation: The common words are [ sky, blue, color ...
[ { "code": null, "e": 54, "s": 26, "text": "\n31 Mar, 2021" }, { "code": null, "e": 205, "s": 54, "text": "Given two strings S1 and S2, representing sentences, the task is to print both sentences after removing all words which are present in both sentences." }, { "code": n...
Sort an array after applying the given equation
10 Jul, 2021 We have an integer array that is sorted in ascending order. We also have 3 integers A, B and C. We need to apply A*x*x + B*x + C for each element x in the array and sort the modified array. Example: Input : arr[] = {-1, 0, 1, 2, 3, 4} A = -1, B = 2, C = -1 Output : {-9, -4, -4, -1, -1, 0} Input a...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Jul, 2021" }, { "code": null, "e": 243, "s": 52, "text": "We have an integer array that is sorted in ascending order. We also have 3 integers A, B and C. We need to apply A*x*x + B*x + C for each element x in the array and sort the ...
How to add options to a select element using jQuery?
03 Aug, 2021 An option can be added to a select element using 3 approaches in jQuery: Method 1: Append the option tag to the select box The option to be added is created like a normal HTML string. The select box is selected with the jQuery selector and this option is added with the append() method. The append() method ...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Aug, 2021" }, { "code": null, "e": 127, "s": 54, "text": "An option can be added to a select element using 3 approaches in jQuery:" }, { "code": null, "e": 177, "s": 127, "text": "Method 1: Append the option tag ...
Redux Toolkit Better way to write Redux code in ReactJS
17 Jan, 2022 Redux Toolkit is used for writing redux code but in a more concise way. Redux Toolkit (RTK) solves three bigger problems that most of the developer’s face who used redux in a react application. Too much code to configure the store.Writing too much boilerplate code to dispatch actions and store the data in ...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jan, 2022" }, { "code": null, "e": 222, "s": 28, "text": "Redux Toolkit is used for writing redux code but in a more concise way. Redux Toolkit (RTK) solves three bigger problems that most of the developer’s face who used redux in a ...
Initialize a vector in C++ (7 different ways)
01 Jun, 2022 The following are different ways to create and initialize a vector in C++ STL 1. Initializing by pushing values one by one : CPP // CPP program to create an empty vector// and push values one by one.#include <iostream>#include <vector>using namespace std; int main(){ // Create an empty vector vector<...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Jun, 2022" }, { "code": null, "e": 130, "s": 52, "text": "The following are different ways to create and initialize a vector in C++ STL" }, { "code": null, "e": 177, "s": 130, "text": "1. Initializing by pushing ...
NotSerializableException in Java with Examples
05 Jan, 2022 Serialization in Java is a mechanism of writing the state of an object into a byte-stream. It is mainly used in Hibernate, RMI, JPA, EJB, and JMS technologies. The reverse operation of serialization is called deserialization where byte-stream is converted into an object. The serialization and deserializati...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jan, 2022" }, { "code": null, "e": 188, "s": 28, "text": "Serialization in Java is a mechanism of writing the state of an object into a byte-stream. It is mainly used in Hibernate, RMI, JPA, EJB, and JMS technologies." }, { "...
JDK in Java
17 Jun, 2022 The Java Development Kit (JDK) is a cross-platformed software development environment that offers a collection of tools and libraries necessary for developing Java-based software applications and applets. It is a core package used in Java, along with the JVM (Java Virtual Machine) and the JRE (Java Runtime...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Jun, 2022" }, { "code": null, "e": 377, "s": 54, "text": "The Java Development Kit (JDK) is a cross-platformed software development environment that offers a collection of tools and libraries necessary for developing Java-based soft...