title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
C# Program that Demonstrates Exception Handling For Invalid TypeCasting in UnBoxing - GeeksforGeeks
01 Nov, 2021 Exception handling is used to handle the errors in the program. Or we can say that an exception is an event that occurs during the execution of a program that is unexpected by the program code. The actions to be performed in case of the occurrence of an exception are not known to the program. In this situa...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n01 Nov, 2021" }, { "code": null, "e": 24965, "s": 24302, "text": "Exception handling is used to handle the errors in the program. Or we can say that an exception is an event that occurs during the execution of a program that is u...
Python - HTTP Authentication
Authentication is the process of determining if the request has come from a valid user who has the required privileges to use the system. In the world of computer networking this is a very vital requirement as many systems keep interacting with each other and proper mechanism needs to ensure that only valid interaction...
[ { "code": null, "e": 2679, "s": 2326, "text": "Authentication is the process of determining if the request has come from a valid user who has the required privileges to use the system. In the world of computer networking this is a very vital requirement as many systems keep interacting with each oth...
Converting the Slides of a PPT into Images using Java - GeeksforGeeks
15 Jul, 2021 To convert PowerPoint slides to images, multiple packages are required like, java.awt because It contains all the classes for creating user interfaces and for painting graphics and images, java.io because It provides a set of input streams and a set of output streams used to read and write data to files or...
[ { "code": null, "e": 23581, "s": 23553, "text": "\n15 Jul, 2021" }, { "code": null, "e": 24026, "s": 23581, "text": "To convert PowerPoint slides to images, multiple packages are required like, java.awt because It contains all the classes for creating user interfaces and for pain...
Spring Boot JPA - Unit Test Repository
To test a Repository, we need the following annotation and classes − @ExtendWith(SpringExtension.class) − Mark the class to run as test case using SpringExtension class. @ExtendWith(SpringExtension.class) − Mark the class to run as test case using SpringExtension class. @SpringBootTest(classes = SprintBootH2Application...
[ { "code": null, "e": 2047, "s": 1978, "text": "To test a Repository, we need the following annotation and classes −" }, { "code": null, "e": 2148, "s": 2047, "text": "@ExtendWith(SpringExtension.class) − Mark the class to run as test case using SpringExtension class." }, { ...
How to extract numbers from cell array in MATLAB? - GeeksforGeeks
23 Jul, 2021 In this article, we are going to discuss the extraction of numbers from the cell array with the help of regexp(), str2double(), cat(), and isletter() functions. A cell array is nothing but a data type having indexed data containers called cells, where each cell contains any type of data. It mainly contains...
[ { "code": null, "e": 24255, "s": 24227, "text": "\n23 Jul, 2021" }, { "code": null, "e": 24416, "s": 24255, "text": "In this article, we are going to discuss the extraction of numbers from the cell array with the help of regexp(), str2double(), cat(), and isletter() functions." ...
Impala - Shell
In the earlier chapters, we have seen the installation of Impala using cloudera and its architecture. Impala shell (command prompt) Hue (User Interface) ODBC and JDBC (Third party libraries) This chapter explains how to start Impala Shell and the various options of the shell. The commands of Impala shell are classifie...
[ { "code": null, "e": 2388, "s": 2285, "text": "In the earlier chapters, we have seen the installation of Impala using cloudera \nand its architecture." }, { "code": null, "e": 2418, "s": 2388, "text": "Impala shell (command prompt)" }, { "code": null, "e": 2439, "...
Design a calendar using HTML and CSS - GeeksforGeeks
27 Jan, 2021 In this article, we will create a calendar using HTML, and CSS. First, we have to know a little about HTML. If someone does not know HTML and CSS, they will not be able to make the calendar better. The main focus of this article is on HTML tags and the way we are going to use CSS. Approach: First we will b...
[ { "code": null, "e": 25376, "s": 25348, "text": "\n27 Jan, 2021" }, { "code": null, "e": 25658, "s": 25376, "text": "In this article, we will create a calendar using HTML, and CSS. First, we have to know a little about HTML. If someone does not know HTML and CSS, they will not be...
Given n line segments, find if any two segments intersect - GeeksforGeeks
01 Sep, 2021 We have discussed the problem to detect if two given line segments intersect or not. In this post, we extend the problem. Here we are given n line segments and we need to find out if any two line segments intersect or not. Naive Algorithm A naive solution to solve this problem is to check every pair of lin...
[ { "code": null, "e": 34516, "s": 34488, "text": "\n01 Sep, 2021" }, { "code": null, "e": 37099, "s": 34516, "text": "We have discussed the problem to detect if two given line segments intersect or not. In this post, we extend the problem. Here we are given n line segments and we ...
String split(String regex, int limit) Method
This method has two variants and splits this string around matches of the given regular expression. Here is the syntax of this method − public String[] split(String regex, int limit) Here is the detail of parameters − regex − the delimiting regular expression. regex − the delimiting regular expression. limit − the res...
[ { "code": null, "e": 2477, "s": 2377, "text": "This method has two variants and splits this string around matches of the given regular expression." }, { "code": null, "e": 2513, "s": 2477, "text": "Here is the syntax of this method −" }, { "code": null, "e": 2561, ...
Achieving world-class results using the new fastai library | by Aayush Agrawal | Towards Data Science
I am currently doing a fast.ai Live MOOC called “Practical Deep learning for Coders” which will be publically available in January 2019 on fast.ai website. The following code is based on lesson 1 from that course. I will be using fastai V1 library which sits on top of Pytorch 1.0. The fastai library provides many usefu...
[ { "code": null, "e": 764, "s": 172, "text": "I am currently doing a fast.ai Live MOOC called “Practical Deep learning for Coders” which will be publically available in January 2019 on fast.ai website. The following code is based on lesson 1 from that course. I will be using fastai V1 library which s...
Convert JSON to another JSON format with recursion JavaScript
Suppose, we have the following JSON object − const obj = { "context": { "device": { "localeCountryCode": "AX", "datetime": "3047-09-29T07:09:52.498Z" }, "currentLocation": { "country": "KM", "lon": -78789486, } } }; We are required to write a JavaScript ...
[ { "code": null, "e": 1107, "s": 1062, "text": "Suppose, we have the following JSON object −" }, { "code": null, "e": 1344, "s": 1107, "text": "const obj = {\n \"context\": {\n \"device\": {\n \"localeCountryCode\": \"AX\",\n \"datetime\": \"3047-09-29T07:09...
Python Blockchain - Adding Blocks
Each miner will pick up the transactions from a previously created transaction pool. To track the number of messages already mined, we have to create a global variable − last_transaction_index = 0 We will now have our first miner adding a block to the blockchain. To add a new block, we first create an instance of the ...
[ { "code": null, "e": 2165, "s": 1995, "text": "Each miner will pick up the transactions from a previously created transaction pool. To track the number of messages already mined, we have to create a global variable −" }, { "code": null, "e": 2193, "s": 2165, "text": "last_transac...
Machine Learning Basics: K-Nearest Neighbors Classification | by Gurucharan M K | Towards Data Science
In the previous stories, I had given an explanation of the program for implementation of various Regression models. Also, I had described the implementation of the Logistic Regression model. In this article, we shall see the algorithm of the K-Nearest Neighbors or KNN Classification along with a simple example. The K-N...
[ { "code": null, "e": 485, "s": 172, "text": "In the previous stories, I had given an explanation of the program for implementation of various Regression models. Also, I had described the implementation of the Logistic Regression model. In this article, we shall see the algorithm of the K-Nearest Nei...
What is the difference between getWindowHandle() and getWindowHandles() methods in Selenium WebDriver?
There are difference between getWindowHandle() and getWindowHandles() methods in Selenium webdriver. The getWindowHandles and getWindowHandle methods can be used to handle child windows. The getWindowHandles method is used to store all the opened window handles in the Set data structure. The getWindowHandle method is u...
[ { "code": null, "e": 1351, "s": 1062, "text": "There are difference between getWindowHandle() and getWindowHandles() methods in Selenium webdriver. The getWindowHandles\nand getWindowHandle methods can be used to handle child windows. The getWindowHandles method is used to store all the opened windo...
Solidity - Special Variables
Special variables are globally available variables and provides information about the blockchain. Following is the list of special variables − blockhash(uint blockNumber) returns (bytes32) Hash of the given block - only works for 256 most recent, excluding current, blocks. block.coinbase (address payable) Current block...
[ { "code": null, "e": 2698, "s": 2555, "text": "Special variables are globally available variables and provides information about the blockchain. Following is the list of special variables −" }, { "code": null, "e": 2744, "s": 2698, "text": "blockhash(uint blockNumber) returns (by...
CSS Buttons - Social Buttons Usage
Social Buttons library is a set of CSS Buttons made in pure CSS and are based on Bootstrap and Font Awesome. To load the bootstrap-social.css library, download the bootstrap-social.css from github and paste the following line in the <head> section of the webpage. <head> <link rel = "stylesheet" href = "bootstrap-soc...
[ { "code": null, "e": 2007, "s": 1898, "text": "Social Buttons library is a set of CSS Buttons made in pure CSS and are based on Bootstrap and Font Awesome." }, { "code": null, "e": 2162, "s": 2007, "text": "To load the bootstrap-social.css library, download the bootstrap-social.c...
Abstraction in R Programming - GeeksforGeeks
11 Nov, 2020 People who’ve been using the R language for any period of time have likely grown to be conversant in passing features as arguments to other functions. However, people are a whole lot much less probably to go back functions from their personal custom code. This is simply too horrific because doing so can op...
[ { "code": null, "e": 28679, "s": 28651, "text": "\n11 Nov, 2020" }, { "code": null, "e": 29269, "s": 28679, "text": "People who’ve been using the R language for any period of time have likely grown to be conversant in passing features as arguments to other functions. However, peo...
Kotlin | Filtering Collections
21 Feb, 2022 In Kotlin, filtering is a prominent task of collection processing. The filtering conditions are defined by predicates – lambda functions that take a collection element and return true when the given element matches the predicate, and false means it doesn’t match the predicate. There are standard library ...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Feb, 2022" }, { "code": null, "e": 332, "s": 52, "text": "In Kotlin, filtering is a prominent task of collection processing. The filtering conditions are defined by predicates – lambda functions that take a collection element and re...
Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest, ..
27 Jun, 2022 Given an array of integers, the task is to print the array in the order – smallest number, the Largest number, 2nd smallest number, 2nd largest number, 3rd smallest number, 3rd largest number, and so on..... Examples: Input : arr[] = [5, 8, 1, 4, 2, 9, 3, 7, 6] Output :arr[] = {1, 9, 2, 8, 3, 7, 4, 6, 5}...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Jun, 2022" }, { "code": null, "e": 260, "s": 52, "text": "Given an array of integers, the task is to print the array in the order – smallest number, the Largest number, 2nd smallest number, 2nd largest number, 3rd smallest number, 3...
Noise removal using Median filter in C++
18 Jan, 2022 Median filtering is a nonlinear process useful in reducing impulsive, or salt-and-pepper noise. The median filter is also used to preserve edge properties while reducing the noise. Also, the smoothing techniques, like Gaussian blur is also used to reduce noise but it can’t preserve the edge properties. The...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Jan, 2022" }, { "code": null, "e": 460, "s": 52, "text": "Median filtering is a nonlinear process useful in reducing impulsive, or salt-and-pepper noise. The median filter is also used to preserve edge properties while reducing the ...
Proof that Hamiltonian Path is NP-Complete
01 Jun, 2022 Prerequisite : NP-Completeness The class of languages for which membership can be decided quickly fall in the class of P and The class of languages for which membership can be verified quickly fall in the class of NP(stands for problem solved in Non-deterministic Turing Machine in polynomial time). In stra...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 Jun, 2022" }, { "code": null, "e": 481, "s": 54, "text": "Prerequisite : NP-Completeness The class of languages for which membership can be decided quickly fall in the class of P and The class of languages for which membership can b...
Print Right View of a Binary Tree
11 Jun, 2022 Given a Binary Tree, print Right view of it. Right view of a Binary Tree is set of nodes visible when tree is visited from Right side. Right view of following tree is 1 3 7 8 1 / \ 2 3 / \ / \ 4 5 6 7 \ 8 The probl...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Jun, 2022" }, { "code": null, "e": 190, "s": 54, "text": "Given a Binary Tree, print Right view of it. Right view of a Binary Tree is set of nodes visible when tree is visited from Right side. " }, { "code": null, "e": 3...
DetailView – Class Based Views Django
22 Jan, 2020 Detail View refers to a view (logic) to display one instances of a table in the database. We have already discussed basics of Detail View in Detail View – Function based Views Django. Class-based views provide an alternative way to implement views as Python objects instead of functions. They do not replace...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Jan, 2020" }, { "code": null, "e": 466, "s": 53, "text": "Detail View refers to a view (logic) to display one instances of a table in the database. We have already discussed basics of Detail View in Detail View – Function based View...
Convert HTML table into CSV file in python
21 Apr, 2020 CSV file is a Comma Separated Value file that uses a comma to separate values. CSV file is a useful thing in today’s world when we are talking about machine learning, data handling, and data visualization. In this article, we will discuss how to convert an HTML table into a CSV file. Example: Suppose HTML ...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Apr, 2020" }, { "code": null, "e": 339, "s": 54, "text": "CSV file is a Comma Separated Value file that uses a comma to separate values. CSV file is a useful thing in today’s world when we are talking about machine learning, data ha...
LMN – Digital Electronics
28 Jun, 2021 See Last Minute Notes on all subjects here.We will discuss the important key points useful for GATE exams in summarized form. For details you may refer this. Logic Gates: Note: NAND and NOR gates are called UNIVERSAL GATES because all other gates can be constructed from any of them. K-map example of 3 vari...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2021" }, { "code": null, "e": 212, "s": 54, "text": "See Last Minute Notes on all subjects here.We will discuss the important key points useful for GATE exams in summarized form. For details you may refer this." }, { "c...
Python | Pandas.CategoricalDtype()
10 Mar, 2022 pandas.api.types.CategoricalDtype(categories = None, ordered = None) : This class is useful for specifying the type of Categorical data independent of the values, with categories and orderness. Parameters- categories : [index like] Unique categorization of the categories. ordered : [boolean] If false, th...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Mar, 2022" }, { "code": null, "e": 224, "s": 28, "text": "pandas.api.types.CategoricalDtype(categories = None, ordered = None) : This class is useful for specifying the type of Categorical data independent of the values, with categor...
How to convert an object to string using JavaScript?
23 May, 2019 Below are the methods to convert different objects to string.Method 1: Using the function String()The String() function converts the value of an object to a string.Syntax: String(object) Parameter: JavaScript Object Example : <script> var bool_to_s1 = Boolean(0);var bool_to_s2 = Boolean(1);var num_to_s = 1...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 May, 2019" }, { "code": null, "e": 200, "s": 28, "text": "Below are the methods to convert different objects to string.Method 1: Using the function String()The String() function converts the value of an object to a string.Syntax:" ...
How to create texture background using CSS ?
18 Jun, 2020 Introduction: We can use CSS property to texture the background of web page by using an image editor to cut out a portion of the background. Apply CSS background-repeat property to make the small image fill the area where it is used. CSS provides many styling properties of background including coloring the...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jun, 2020" }, { "code": null, "e": 478, "s": 28, "text": "Introduction: We can use CSS property to texture the background of web page by using an image editor to cut out a portion of the background. Apply CSS background-repeat proper...
Partial Methods in C#
23 Jan, 2019 C# contains a special method is known as a partial method, which contains declaration part in one partial class and definition part in another partial class or may contain both declaration and definition in the same partial class.Basically, partial methods exist in the partial class, or in the struct. A pa...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jan, 2019" }, { "code": null, "e": 640, "s": 52, "text": "C# contains a special method is known as a partial method, which contains declaration part in one partial class and definition part in another partial class or may contain bo...
Program to find number of solutions in Quadratic Equation
22 Apr, 2021 Given an equation with value a, b, and c, where a and b is any value and c is constant, find how many solutions thus this quadratic equation have?Examples: Input : Output : 2 solutions Input : Output : no solution Solution: To check whether the equation has a solution or not, quadratic formula for disc...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2021" }, { "code": null, "e": 186, "s": 28, "text": "Given an equation with value a, b, and c, where a and b is any value and c is constant, find how many solutions thus this quadratic equation have?Examples: " }, { "co...
Is Learning Rate Useful in Artificial Neural Networks? | by Ahmed Gad | Towards Data Science
This article will help you understand why we need the learning rate and whether it is useful or not for training an artificial neural network. Using a very simple Python code for a single layer perceptron, the learning rate value will get changed to catch its idea. An obstacle for newbies in artificial neural networks ...
[ { "code": null, "e": 438, "s": 172, "text": "This article will help you understand why we need the learning rate and whether it is useful or not for training an artificial neural network. Using a very simple Python code for a single layer perceptron, the learning rate value will get changed to catch...
Detect cycle in the graph using degrees of nodes of graph - GeeksforGeeks
02 Jul, 2021 Given a graph, the task is to detect a cycle in the graph using degrees of the nodes in the graph and print all the nodes that are involved in any of the cycles. If there is no cycle in the graph then print -1. Examples: Input: Output: 0 1 2 Approach: Recursively remove all vertices of degree 1. This c...
[ { "code": null, "e": 25010, "s": 24982, "text": "\n02 Jul, 2021" }, { "code": null, "e": 25221, "s": 25010, "text": "Given a graph, the task is to detect a cycle in the graph using degrees of the nodes in the graph and print all the nodes that are involved in any of the cycles. I...
Python program to count the number of characters in a String - GeeksforGeeks
01 Oct, 2020 Given a String. The task is to return the number of characters in the string. Examples: Input : test_str = ‘geeksforgeeks !!$*** best 4 all Geeks 10-0’ Output : 25Explanation : Only alphabets, when counted are 25 Input : test_str = ‘geeksforgeeks !!$*** best for all Geeks 10—0’ Output : 27Explanation : Onl...
[ { "code": null, "e": 25531, "s": 25503, "text": "\n01 Oct, 2020" }, { "code": null, "e": 25609, "s": 25531, "text": "Given a String. The task is to return the number of characters in the string." }, { "code": null, "e": 25619, "s": 25609, "text": "Examples:" ...
BlackRock Interview Experience (On-campus) - GeeksforGeeks
09 Sep, 2020 BlackRock was one of the Super-Dream companies that visited VIT. Eligibility criteria were 60% or CGPA 6 in Xth, XIIth, and pursuing a degree with no standing arrears. 1000 students(Company was open to all branches) were short-listed for the online test for tech. profile(I would be describing the process f...
[ { "code": null, "e": 26321, "s": 26293, "text": "\n09 Sep, 2020" }, { "code": null, "e": 26684, "s": 26321, "text": "BlackRock was one of the Super-Dream companies that visited VIT. Eligibility criteria were 60% or CGPA 6 in Xth, XIIth, and pursuing a degree with no standing arre...
Ruby | Array uniq() function - GeeksforGeeks
06 Dec, 2019 Array#uniq() : uniq() is a Array class method which returns a new array by removing duplicate values in the array. Syntax: Array.uniq() Parameter: Array Return: a new array by removing duplicate values in the array Example #1 : # Ruby code for uniq() method # declaring arraya = [18, 22, 33, nil, 5, 6] # ...
[ { "code": null, "e": 24955, "s": 24927, "text": "\n06 Dec, 2019" }, { "code": null, "e": 25070, "s": 24955, "text": "Array#uniq() : uniq() is a Array class method which returns a new array by removing duplicate values in the array." }, { "code": null, "e": 25091, ...
How to Implement Shapeable ImageView in Android? - GeeksforGeeks
20 Dec, 2021 In Android, ShapeableImageView is used to change the shape of your image to circle, diamond, etc. Also, you can set a corner radius to your ImageView. You can do much more by using this ShapeableImageView with minimal code. So in this article, we are going to make a ShapableImageView in android. By impleme...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n20 Dec, 2021" }, { "code": null, "e": 26875, "s": 26381, "text": "In Android, ShapeableImageView is used to change the shape of your image to circle, diamond, etc. Also, you can set a corner radius to your ImageView. You can do m...
Find Nth term of series 1, 4, 15, 72, 420... - GeeksforGeeks
14 May, 2021 Given a number N. The task is to write a program to find the Nth term in the below series: 1, 4, 15, 72, 420... Examples: Input: 3 Output: 15 For N = 3, we know that the factorial of 3 is 6 Nth term = 6*(3+2)/2 = 15 Input: 6 Output: 2880 For N = 6, we know that the factorial of 6 is 720 Nth te...
[ { "code": null, "e": 25445, "s": 25417, "text": "\n14 May, 2021" }, { "code": null, "e": 25537, "s": 25445, "text": "Given a number N. The task is to write a program to find the Nth term in the below series: " }, { "code": null, "e": 25558, "s": 25537, "text":...
Simple Multithreaded Download Manager in Python - GeeksforGeeks
25 Aug, 2016 Introduction A Download Manager is basically a computer program dedicated to the task of downloading stand alone files from internet. Here, we are going to create a simple Download Manager with the help of threads in Python. Using multi-threading a file can be downloaded in the form of chunks simultaneousl...
[ { "code": null, "e": 26299, "s": 26271, "text": "\n25 Aug, 2016" }, { "code": null, "e": 26312, "s": 26299, "text": "Introduction" }, { "code": null, "e": 26756, "s": 26312, "text": "A Download Manager is basically a computer program dedicated to the task of d...
How to set the overflow property to scroll in CSS ? - GeeksforGeeks
03 Jun, 2021 In this article, we will see how to set the overflow property to scroll in CSS. The overflow property is used to control the big content. It tells what to do when an element’s content is too big to fit in the specified area. When the overflow property is set to scroll, the overflow is clipped, but a scroll...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n03 Jun, 2021" }, { "code": null, "e": 26958, "s": 26621, "text": "In this article, we will see how to set the overflow property to scroll in CSS. The overflow property is used to control the big content. It tells what to do when ...
How to create a Triangle Correlation Heatmap in seaborn - Python? - GeeksforGeeks
29 Jul, 2021 Seaborn is a Python library that is based on matplotlib and is used for data visualization. It provides a medium to present data in a statistical graph format as an informative and attractive medium to impart some information. A heatmap is one of the components supported by seaborn where variation in relat...
[ { "code": null, "e": 27981, "s": 27953, "text": "\n29 Jul, 2021" }, { "code": null, "e": 28491, "s": 27981, "text": "Seaborn is a Python library that is based on matplotlib and is used for data visualization. It provides a medium to present data in a statistical graph format as a...
How to get the file name from full path using JavaScript ? - GeeksforGeeks
10 Jun, 2019 Given a file name which contains the file path also, the task is to get the file name from full path. There are a few methods to solve this problem which are listed below: replace() method: This method searches a string for a defined value, or a regular expression, and returns a new string with the replace...
[ { "code": null, "e": 25817, "s": 25789, "text": "\n10 Jun, 2019" }, { "code": null, "e": 25989, "s": 25817, "text": "Given a file name which contains the file path also, the task is to get the file name from full path. There are a few methods to solve this problem which are liste...
Java Program to Extract Content From a XML Document - GeeksforGeeks
02 Feb, 2022 An XML file contains data between the tags so it is complex to read the data when compared to other file formats like docx and txt. There are two types of parsers which parse an XML file: Object-Based (e.g. D.O.M) Event-Based (e.g. SAX, StAX) In this article, we will discuss how to parse XML using Java DOM...
[ { "code": null, "e": 25237, "s": 25209, "text": "\n02 Feb, 2022" }, { "code": null, "e": 25425, "s": 25237, "text": "An XML file contains data between the tags so it is complex to read the data when compared to other file formats like docx and txt. There are two types of parsers ...
Modify values of a Data Frame in R Language - transform() Function - GeeksforGeeks
26 May, 2020 transform() function in R Language is used to modify data. It converts the first argument to the data frame.This function is used to transform/modify the data frame in a quick and easy way. Syntax:transform(data, value) Parameters:data: Data Frame to be modifiedvalue: new modified value of data Example 1: ...
[ { "code": null, "e": 25957, "s": 25929, "text": "\n26 May, 2020" }, { "code": null, "e": 26147, "s": 25957, "text": "transform() function in R Language is used to modify data. It converts the first argument to the data frame.This function is used to transform/modify the data fram...
How to use a DataLoader in PyTorch? - GeeksforGeeks
24 Feb, 2021 Operating with large datasets requires loading them into memory all at once. In most cases, we face a memory outage due to the limited amount of memory available in the system. Also, the programs tend to run slowly due to heavy datasets loaded once. PyTorch offers a solution for parallelizing the data load...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n24 Feb, 2021" }, { "code": null, "e": 26004, "s": 25537, "text": "Operating with large datasets requires loading them into memory all at once. In most cases, we face a memory outage due to the limited amount of memory available i...
Ittiam Written Test Questions - GeeksforGeeks
29 Aug, 2018 Round 1(30 mins): Written TestIt was a written round (pen-paper). It started just after the company’s ppt (pre-placement talk). There were a total of 20 Mcqs (with negative marking), 10 from quantitative aptitude and 10 from technical aptitude to be solved in 30 mins. Quant questions were from time&work, s...
[ { "code": null, "e": 26705, "s": 26677, "text": "\n29 Aug, 2018" }, { "code": null, "e": 26974, "s": 26705, "text": "Round 1(30 mins): Written TestIt was a written round (pen-paper). It started just after the company’s ppt (pre-placement talk). There were a total of 20 Mcqs (with...
Print the nodes at odd levels of a tree - GeeksforGeeks
16 Mar, 2022 Given a binary tree, print nodes of odd level in any order. Root is considered at level 1. For example consider the following tree 1 / \ 2 3 / \ \ 4 5 6 / \ / 7 8 9 Output 1 4 5 6 Method 1 (Recursive) The idea is to p...
[ { "code": null, "e": 37091, "s": 37063, "text": "\n16 Mar, 2022" }, { "code": null, "e": 37183, "s": 37091, "text": "Given a binary tree, print nodes of odd level in any order. Root is considered at level 1. " }, { "code": null, "e": 37357, "s": 37183, "text":...
Python | Filter a list based on the given list of strings - GeeksforGeeks
25 Jun, 2019 Given a List, the task is to filter elements from list based on another list of strings. These type of problems are quite common while scraping websites. Examples: Input: List_string1 = ['key', 'keys', 'keyword', 'keychain', 'keynote'] List_string2 = ['home/key/1.pdf', 'home/keys/2.pdf', ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n25 Jun, 2019" }, { "code": null, "e": 25691, "s": 25537, "text": "Given a List, the task is to filter elements from list based on another list of strings. These type of problems are quite common while scraping websites." }, {...
p5.js | redraw() Function - GeeksforGeeks
23 Aug, 2019 The redraw() function is used to execute the code within draw() function one time. This functions is used to update the display window only when it necessary. The redraw() function does not work when it is called inside the draw() function. The loop() and noLoop() function is used to enable/disable the ani...
[ { "code": null, "e": 26627, "s": 26599, "text": "\n23 Aug, 2019" }, { "code": null, "e": 26943, "s": 26627, "text": "The redraw() function is used to execute the code within draw() function one time. This functions is used to update the display window only when it necessary. The ...
Compute the Value of Poisson Density in R Programming - dpois() Function - GeeksforGeeks
04 Jan, 2022 dpois() function in R Language is used to compute the Poisson Density for a set of Integer values. It also creates a density plot of poisson distribution. Syntax: dpois(vec, lambda)Parameters: vec: Sequence of integer values lambda: Average number of events per interval Example 1: Python3 # R program to...
[ { "code": null, "e": 26561, "s": 26533, "text": "\n04 Jan, 2022" }, { "code": null, "e": 26717, "s": 26561, "text": "dpois() function in R Language is used to compute the Poisson Density for a set of Integer values. It also creates a density plot of poisson distribution. " }, ...
How to record and play audio in JavaScript ? - GeeksforGeeks
24 Mar, 2022 JavaScript is a very flexible language and it provides many API support to do many useful things. Here one important thing is that record audio or video in web pages is also done using JavaScript. In this case, it will ask the user for microphone access to the browser and record the audio through the micro...
[ { "code": null, "e": 24216, "s": 24188, "text": "\n24 Mar, 2022" }, { "code": null, "e": 24907, "s": 24216, "text": "JavaScript is a very flexible language and it provides many API support to do many useful things. Here one important thing is that record audio or video in web pag...
Dixon's Factorization Method with implementation - GeeksforGeeks
30 Mar, 2020 Dixon’s Factorization method is an integer factorization algorithm. In this article, this method is explained to find the factors of a composite number. Dixon Factorization is based on the well-known fact of number theory that: If with it is likely that gcd(x – y, n) will be factor of n. For example: if ...
[ { "code": null, "e": 26027, "s": 25999, "text": "\n30 Mar, 2020" }, { "code": null, "e": 26180, "s": 26027, "text": "Dixon’s Factorization method is an integer factorization algorithm. In this article, this method is explained to find the factors of a composite number." }, { ...
Array range queries for searching an element - GeeksforGeeks
21 Jun, 2021 Given an array of N elements and Q queries of the form L R X. For each query, you have to output if the element X exists in the array between the indices L and R(included).Prerequisite : Mo’s Algorithms Examples : Input : N = 5 arr = [1, 1, 5, 4, 5] Q = 3 1 3 2 2 5 1 ...
[ { "code": null, "e": 41194, "s": 41166, "text": "\n21 Jun, 2021" }, { "code": null, "e": 41410, "s": 41194, "text": "Given an array of N elements and Q queries of the form L R X. For each query, you have to output if the element X exists in the array between the indices L and R(i...
Why switch keyword used in React Router v4 ? - GeeksforGeeks
18 Oct, 2021 ReactJS is a javascript library that is used to build single-page applications (SPA). React by default does not provide the routing features. We can implement routing in ReactJS projects using React Router. React Router is a library that enables navigation among views of various components in a React Appli...
[ { "code": null, "e": 26181, "s": 26153, "text": "\n18 Oct, 2021" }, { "code": null, "e": 26569, "s": 26181, "text": "ReactJS is a javascript library that is used to build single-page applications (SPA). React by default does not provide the routing features. We can implement rout...
Importance of @JsonView annotation using Jackson in Java?
The JsonView annotation can be used to include/exclude a property during the serialization and deserialization process dynamically. We need to configure an ObjectMapper class to include the type of view used for writing a JSON from Java object using the writerWithView() method. @Target(value={ANNOTATION_TYPE,METHOD,FIE...
[ { "code": null, "e": 1341, "s": 1062, "text": "The JsonView annotation can be used to include/exclude a property during the serialization and deserialization process dynamically. We need to configure an ObjectMapper class to include the type of view used for writing a JSON from Java object using the...
java.time.ZoneId.of() Method Example
The java.time.ZoneId.of(String zoneId) method obtains an instance of ZoneId from an ID ensuring that the ID is valid and available for use. Following is the declaration for java.time.ZoneId.of(String zoneId) method. public static ZoneId of(String zoneId) zoneId − the time-zone ID, not null. the zone ID, not null DateT...
[ { "code": null, "e": 2055, "s": 1915, "text": "The java.time.ZoneId.of(String zoneId) method obtains an instance of ZoneId from an ID ensuring that the ID is valid and available for use." }, { "code": null, "e": 2131, "s": 2055, "text": "Following is the declaration for java.time...
JavaScript
JavaScript is a lightweight, interpreted programming language with object-oriented capabilities that allows you to build interactivity into otherwise static HTML pages. Key Points It is Lightweight, interpreted programming language. It is Lightweight, interpreted programming language. It is designed for creating networ...
[ { "code": null, "e": 2642, "s": 2473, "text": "JavaScript is a lightweight, interpreted programming language with object-oriented capabilities that allows you to build interactivity into otherwise static HTML pages." }, { "code": null, "e": 2653, "s": 2642, "text": "Key Points" ...
Yii - Rules of URL
A URL rule is an instance if yii\web\UrlRule. The urlManager components uses the URL rules declared in its rules property when the pretty URL format is enabled. To parse a request, the URL manager obtains the rules in the order they are declared and looks for the first rule. Step 1 − Modify the urlManager component in ...
[ { "code": null, "e": 2994, "s": 2833, "text": "A URL rule is an instance if yii\\web\\UrlRule. The urlManager components uses the URL rules declared in its rules property when the pretty URL format is enabled." }, { "code": null, "e": 3109, "s": 2994, "text": "To parse a request,...
Spring MVC - TextArea Example
The following example explains how to use TextArea in forms using the Spring Web MVC framework. To begin with, let us have a working Eclipse IDE in place and follow the subsequent steps to develop a Dynamic Form based Web Application using the Spring Web Framework. package com.tutorialspoint; public class User { ...
[ { "code": null, "e": 3057, "s": 2791, "text": "The following example explains how to use TextArea in forms using the Spring Web MVC framework. To begin with, let us have a working Eclipse IDE in place and follow the subsequent steps to develop a Dynamic Form based Web Application using the Spring We...
Filtering array to contain palindrome elements in JavaScript
We are required to write a JavaScript function that takes in an array of String / Number literals and returns a subarray of all the elements that were palindrome in the original array. If the input array is − const arr = ['carecar', 1344, 12321, 'did', 'cannot']; Then the output should be − const output = [12321, 'did'...
[ { "code": null, "e": 1247, "s": 1062, "text": "We are required to write a JavaScript function that takes in an array of String / Number literals and returns a subarray of all the elements that were palindrome in the original array." }, { "code": null, "e": 1271, "s": 1247, "text"...
C++ Set Library - begin Function
It returns an iterator referring to the first element in the set container. Following are the ways in which std::set::begin works in various C++ versions. iterator begin(); const_iterator begin() const; iterator begin() noexcept; const_iterator begin() const noexcept; It returns an iterator referring to the first el...
[ { "code": null, "e": 2679, "s": 2603, "text": "It returns an iterator referring to the first element in the set container." }, { "code": null, "e": 2758, "s": 2679, "text": "Following are the ways in which std::set::begin works in various C++ versions." }, { "code": null,...
Generate Random double type number in Java
In order to generate Random double type numbers in Java, we use the nextDouble() method of the java.util.Random class. This returns the next random double value between 0.0 (inclusive) and 1.0 (exclusive) from the random generator sequence. Declaration - The java.util.Random.nextDouble() method is declared as follows −...
[ { "code": null, "e": 1303, "s": 1062, "text": "In order to generate Random double type numbers in Java, we use the nextDouble() method of the java.util.Random class. This returns the next random double value between 0.0 (inclusive) and 1.0 (exclusive) from the random generator sequence." }, { ...
Unvalidated Redirects and Forwards
Most web applications on the internet frequently redirect and forward users to other pages or other external websites. However, without validating the credibility of those pages, hackers can redirect victims to phishing or malware sites, or use forwards to access unauthorized pages. Let us understand Threat Agents, Att...
[ { "code": null, "e": 2724, "s": 2440, "text": "Most web applications on the internet frequently redirect and forward users to other pages or other external websites. However, without validating the credibility of those pages, hackers can redirect victims to phishing or malware sites, or use forwards...
What is difference between onCreate() and onStart() on Android?
This example demonstrates the difference between onCreate() and onStart() in Android. Note − onCreate() is called when the when the activity is first created. onStart() is called when the activity is becoming visible to the user. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all req...
[ { "code": null, "e": 1148, "s": 1062, "text": "This example demonstrates the difference between onCreate() and onStart() in Android." }, { "code": null, "e": 1155, "s": 1148, "text": "Note −" }, { "code": null, "e": 1221, "s": 1155, "text": "onCreate() is call...
Hungarian Algorithm for Assignment Problem | Set 2 (Implementation)
20 Jul, 2021 Given a 2D array, arr of size N*N where arr[i][j] denotes the cost to complete the jth job by the ith worker. Any worker can be assigned to perform any job. The task is to assign the jobs such that exactly one worker can perform exactly one job in such a way that the total cost of the assignment is minimiz...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Jul, 2021" }, { "code": null, "e": 365, "s": 54, "text": "Given a 2D array, arr of size N*N where arr[i][j] denotes the cost to complete the jth job by the ith worker. Any worker can be assigned to perform any job. The task is to as...
Linux | Uptime command with examples
27 May, 2019 Uptime Command In Linux: It is used to find out how long the system is active (running). This command returns set of values that involve, the current time, and the amount of time system is in running state, number of users currently logged into, and the load time for the past 1, 5 and 15 minutes respective...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 May, 2019" }, { "code": null, "e": 339, "s": 28, "text": "Uptime Command In Linux: It is used to find out how long the system is active (running). This command returns set of values that involve, the current time, and the amount of t...
Dplyr – Find Mean for multiple columns in R
14 Sep, 2021 In this article, we will discuss how to calculate the mean for multiple columns using dplyr package of R programming language. The mutate() method adds new variables and preserves existing ones. It is used to carry out addition of more variables. The original sequence of rows and columns remain unaltered d...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Sep, 2021" }, { "code": null, "e": 155, "s": 28, "text": "In this article, we will discuss how to calculate the mean for multiple columns using dplyr package of R programming language." }, { "code": null, "e": 366, "s...
Java.util.LinkedList.offer(), offerFirst(), offerLast() in Java
04 Oct, 2021 Linked list also has a function that does the work of flexible addition of elements and helps addition both at front and back of the list, these functions literally “offer” the facility and named offer(). Three types are available and are discussed in this very article below. 1. offer(E e) : This method a...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Oct, 2021" }, { "code": null, "e": 306, "s": 28, "text": "Linked list also has a function that does the work of flexible addition of elements and helps addition both at front and back of the list, these functions literally “offer” th...
Node.js Stream readable.read() Method
12 Oct, 2021 The readable.read() method is an inbuilt application programming interface of Stream module which is used to read the data out of the internal buffer. It returns data as a buffer object if no encoding is being specified or if the stream is working in object mode. Syntax: readable.read( size ) Parameters: T...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Oct, 2021" }, { "code": null, "e": 292, "s": 28, "text": "The readable.read() method is an inbuilt application programming interface of Stream module which is used to read the data out of the internal buffer. It returns data as a buf...
JoomScan Vulnerability Scanner Tool in Kali Linux
27 Sep, 2021 JoomScan is a free and Open source tool available on GitHub. It’s a vulnerability scanner tool. This tool is written in perl programming language. When a website is being created developers knowingly or unknowingly do some mistakes in code. A hacker can take advantage of that vulnerability and can access t...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Sep, 2021" }, { "code": null, "e": 472, "s": 28, "text": "JoomScan is a free and Open source tool available on GitHub. It’s a vulnerability scanner tool. This tool is written in perl programming language. When a website is being crea...
java.time.ZoneOffset Class in Java
06 Sep, 2021 A time-zone offset is that the amount of your time that a time-zone differs from Greenwich/UTC. This is often usually a hard and fast number of hours and minutes. From the time package of java, ZoneOffset class is employed to represent the fixed zone offset from UTC zone and inherits the ZoneId class and i...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Sep, 2021" }, { "code": null, "e": 371, "s": 28, "text": "A time-zone offset is that the amount of your time that a time-zone differs from Greenwich/UTC. This is often usually a hard and fast number of hours and minutes. From the tim...
Command line arguments example in C
25 Apr, 2022 Prerequisite: Command_line_argument. The problem is to find the largest integer among the three using command line arguments. Notes: Command-line arguments are given after the name of the program in the command-line shell of Operating Systems. To pass command line arguments, we typically define main() with...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Apr, 2022" }, { "code": null, "e": 185, "s": 52, "text": "Prerequisite: Command_line_argument. The problem is to find the largest integer among the three using command line arguments. Notes:" }, { "code": null, "e": 486,...
What is the role of $routeProvider in AngularJS?
23 May, 2022 Routing is allows us create Single Page Applications.To do this, we use ng-view and ng-template directives, and $routeProvider services. We use $routeProvider to configure the routes. The config() takes a function which takes the $routeProvider as parameter and the routing configuration goes inside the fun...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 May, 2022" }, { "code": null, "e": 165, "s": 28, "text": "Routing is allows us create Single Page Applications.To do this, we use ng-view and ng-template directives, and $routeProvider services." }, { "code": null, "e": 2...
GATE | GATE CS 1999 | Question 18
24 Oct, 2018 Consider the join of a relation R with a relation S. If K has m tuples and S has n tuples, then the maximum and minimum sizes of the join respectively are:(A) m+n and 0(B) mn and 0(C) m+n and m-n(D) mn and m+nAnswer: (B)Explanation: When there is no foreign key constraint between two tables then the max an...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 Oct, 2018" }, { "code": null, "e": 444, "s": 53, "text": "Consider the join of a relation R with a relation S. If K has m tuples and S has n tuples, then the maximum and minimum sizes of the join respectively are:(A) m+n and 0(B) mn...
get_screenshot_as_png driver method – Selenium Python
15 May, 2020 Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 May, 2020" }, { "code": null, "e": 767, "s": 28, "text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium ...
Maximum sum in circular array such that no two elements are adjacent
16 Jun, 2022 Given a circular array containing of positive integers value. The task is to find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array.Examples: Input: circular arr = {1, 2, 3, 1} Output : 4 subsequence will be(1, 3), hence 1 + 3 = 4 Inp...
[ { "code": null, "e": 54, "s": 26, "text": "\n16 Jun, 2022" }, { "code": null, "e": 267, "s": 54, "text": "Given a circular array containing of positive integers value. The task is to find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence shoul...
How to Encrypt and Decrypt Strings in Python?
08 Jun, 2022 In this article, we will learn about Encryption, Decryption and implement them with Python. Encryption: Encryption is the process of encoding the data. i.e converting plain text into ciphertext. This conversion is done with a key called an encryption key. Decryption: Decryption is the process of decoding ...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jun, 2022" }, { "code": null, "e": 147, "s": 54, "text": "In this article, we will learn about Encryption, Decryption and implement them with Python. " }, { "code": null, "e": 159, "s": 147, "text": "Encryption:"...
Java Lambda Expression with Collections
24 Jun, 2022 In this article, Lambda Expression with Collections is discussed with examples of sorting different collections like ArrayList, TreeSet, TreeMap, etc. Sorting Collections with Comparator (or without Lambda): We can use Comparator interface to sort, It only contains one abstract method: – compare(). An inte...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2022" }, { "code": null, "e": 456, "s": 52, "text": "In this article, Lambda Expression with Collections is discussed with examples of sorting different collections like ArrayList, TreeSet, TreeMap, etc. Sorting Collections wit...
jQuery UI dialog open() Method
13 Jan, 2021 open() Method is used to open the dialog. This method does not accept any argument Syntax: $( ".selector" ).dialog("open"); Approach: First, add jQuery UI scripts needed for your project. <link href = “https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css” rel = “stylesheet”><script src = “ht...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jan, 2021" }, { "code": null, "e": 111, "s": 28, "text": "open() Method is used to open the dialog. This method does not accept any argument" }, { "code": null, "e": 119, "s": 111, "text": "Syntax:" }, { "...
Top 10 Books That Every Programmer Must Read Once
28 Feb, 2022 If we find a person with a rare intellect, we should ask him about the books he reads. A book can define a person’s nature and intelligence. If you are a coder, you should be also a good reader because it develops the mind and the mind is your weapon. you have to train it daily. Before finding any solution...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Feb, 2022" }, { "code": null, "e": 572, "s": 28, "text": "If we find a person with a rare intellect, we should ask him about the books he reads. A book can define a person’s nature and intelligence. If you are a coder, you should be ...
Variable Arguments (Varargs) in C#
Use the param keyword to get the variable arguments in C#. Let us see an example to multiply integers. We have used params keyword to accept any number of int values − static int Multiply(params int[] b) The above allows us to find multiplication of numbers with one as well as two int values. The fllowing calls the sam...
[ { "code": null, "e": 1246, "s": 1187, "text": "Use the param keyword to get the variable arguments in C#." }, { "code": null, "e": 1355, "s": 1246, "text": "Let us see an example to multiply integers. We have used params keyword to accept any number of int values −" }, { ...
What is Local Host?
02 Nov, 2021 When you call an IP address on your computer, you try to contact another computer on the internet but when you call the IP address 127.0.0.1 then you are communicating with the local host. Localhost is always your own computer. Your computer is talking to itself when you call the local host. Your computer ...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Nov, 2021" }, { "code": null, "e": 713, "s": 52, "text": "When you call an IP address on your computer, you try to contact another computer on the internet but when you call the IP address 127.0.0.1 then you are communicating with t...
Machine Learning - Performance Metrics
There are various metrics which we can use to evaluate the performance of ML algorithms, classification as well as regression algorithms. We must carefully choose the metrics for evaluating ML performance because − How the performance of ML algorithms is measured and compared will be dependent entirely on the metric yo...
[ { "code": null, "e": 2519, "s": 2304, "text": "There are various metrics which we can use to evaluate the performance of ML algorithms, classification as well as regression algorithms. We must carefully choose the metrics for evaluating ML performance because −" }, { "code": null, "e": 2...
C++ Program to Find element at given index after a number of rotations - GeeksforGeeks
19 Jan, 2022 An array consisting of N integers is given. There are several Right Circular Rotations of range[L..R] that we perform. After performing these rotations, we need to find element at a given index.Examples : Input : arr[] : {1, 2, 3, 4, 5} ranges[] = { {0, 2}, {0, 3} } index : 1 Output : 3 E...
[ { "code": null, "e": 26151, "s": 26123, "text": "\n19 Jan, 2022" }, { "code": null, "e": 26358, "s": 26151, "text": "An array consisting of N integers is given. There are several Right Circular Rotations of range[L..R] that we perform. After performing these rotations, we need to...
Django Templates | Set - 1 - GeeksforGeeks
26 Aug, 2019 There are two types of web pages – Static and Dynamic pages. Static webpages are those pages whose content is static i.e. they don’t change with time. Every time you open that page, you see the same content. Their content is independent of time, location, user, etc. Dynamic webpages are those pages whose c...
[ { "code": null, "e": 25533, "s": 25505, "text": "\n26 Aug, 2019" }, { "code": null, "e": 25940, "s": 25533, "text": "There are two types of web pages – Static and Dynamic pages. Static webpages are those pages whose content is static i.e. they don’t change with time. Every time y...
How to switch between multiple windows of Electron JS application ? - GeeksforGeeks
06 Aug, 2021 If you have prior knowledge of Web Application Development and thinking to jump into the building of Desktop Application, you are at the right place to start with. ElectronJS is an open-source framework that helps to develop a cross-platform desktop application using simple HTML, CSS, and JavaScript. Eve...
[ { "code": null, "e": 25244, "s": 25216, "text": "\n06 Aug, 2021" }, { "code": null, "e": 25410, "s": 25244, "text": "If you have prior knowledge of Web Application Development and thinking to jump into the building of Desktop Application, you are at the right place to start with....
Maximum width of a binary tree - GeeksforGeeks
10 Jan, 2022 Given a binary tree, write a function to get the maximum width of the given tree. Width of a tree is maximum of widths of all levels. Let us consider the below example tree. 1 / \ 2 3 / \ \ 4 5 8 / \ 6 7 For the above tree,...
[ { "code": null, "e": 26645, "s": 26617, "text": "\n10 Jan, 2022" }, { "code": null, "e": 26780, "s": 26645, "text": "Given a binary tree, write a function to get the maximum width of the given tree. Width of a tree is maximum of widths of all levels. " }, { "code": null, ...
Rotate a 2D array without using extra space | Practice | GeeksforGeeks
Given a N x N 2D matrix Arr representing an image. Rotate the image by 90 degrees (anti-clockwise). You need to do this in place. Note that if you end up using an additional array, you will only receive partial score. Example 1: Input: N = 3 Arr[][] = {{1, 2, 3} {4, 5, 6} {7, 8, 9}} Output: ...
[ { "code": null, "e": 456, "s": 238, "text": "Given a N x N 2D matrix Arr representing an image. Rotate the image by 90 degrees (anti-clockwise). You need to do this in place. Note that if you end up using an additional array, you will only receive partial score." }, { "code": null, "e": ...
Java Program to Implement Hash Trie
02 Feb, 2021 A trie isn’t something CS students might have spent that much time on in college but it’s really very important for interviews. A trie is a data structure that is actually a type of tree, but it’s often used to store an associative array or a dynamic set where the keys are usually characters or strings, an...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Feb, 2021" }, { "code": null, "e": 810, "s": 28, "text": "A trie isn’t something CS students might have spent that much time on in college but it’s really very important for interviews. A trie is a data structure that is actually a t...
CSS - Using Images
Images play an important role in any webpage. Though it is not recommended to include a lot of images, but it is still important to use good images wherever required. CSS plays a good role to control image display. You can set the following image properties using CSS. The border property is used to set the width of an ...
[ { "code": null, "e": 2927, "s": 2760, "text": "Images play an important role in any webpage. Though it is not recommended to include a lot of images, but it is still important to use good images wherever required." }, { "code": null, "e": 3029, "s": 2927, "text": "CSS plays a goo...
How to Add External Library in Android Studio?
05 May, 2021 Android Studio is the official IDE (Integrated Development Environment) for Android app development and it is based on JetBrains’ IntelliJ IDEA software. Android Studio provides many excellent features that enhance productivity when building Android apps. In this article, we will learn how to add external ...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 May, 2021" }, { "code": null, "e": 395, "s": 54, "text": "Android Studio is the official IDE (Integrated Development Environment) for Android app development and it is based on JetBrains’ IntelliJ IDEA software. Android Studio provi...
Sierpinski Triangle using Graphics
23 Oct, 2019 Sierpinski triangle is a fractal and attractive fixed set with the overall shape of an equilateral triangle. It subdivides recursively into smaller triangles. Approach: In the given segment of codes, a triangle is made and then draws out three other adjacent small triangles till the terminating condition w...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Oct, 2019" }, { "code": null, "e": 187, "s": 28, "text": "Sierpinski triangle is a fractal and attractive fixed set with the overall shape of an equilateral triangle. It subdivides recursively into smaller triangles." }, { "c...
Get the id after INSERT into MySQL database using Python
11 Dec, 2020 Prerequisites: MySQL, mysql-connector for python The task here is to draft a Python program that works with SQL support to connect data. Whenever insertion into the database takes place, the ID of the row inserted will be printed. To connect python with the database we are using MySQL connector. The work ...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Dec, 2020" }, { "code": null, "e": 78, "s": 28, "text": " Prerequisites: MySQL, mysql-connector for python" }, { "code": null, "e": 501, "s": 78, "text": "The task here is to draft a Python program that works with...
Convert Nested Lists to Dataframe in R
15 Nov, 2021 In this article, we will discuss how to Convert Nested Lists to Dataframe in R Programming Language. It can be done with two methods: Convert Nested lists to Data Frame by Column. Convert Nested lists to Data Frame by Row. First, let’s Create a nested list. Code block Output: fig 1: Nested List Method 1: T...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Nov, 2021" }, { "code": null, "e": 129, "s": 28, "text": "In this article, we will discuss how to Convert Nested Lists to Dataframe in R Programming Language." }, { "code": null, "e": 162, "s": 129, "text": "It ca...
Sort an array using Bubble Sort without using loops
22 Jun, 2021 Given an array arr[] consisting of N integers, the task is to sort the given array by using Bubble Sort without using loops. Examples: Input: arr[] = {1, 3, 4, 2, 5}Output: 1 2 3 4 5 Input: arr[] = {1, 3, 4, 2}Output: 1 2 3 4 Approach: The idea to implement Bubble Sort without using loops is based on the f...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Jun, 2021" }, { "code": null, "e": 179, "s": 54, "text": "Given an array arr[] consisting of N integers, the task is to sort the given array by using Bubble Sort without using loops." }, { "code": null, "e": 189, "s"...
Python program to extract Keywords from a list
01 Oct, 2020 Given List of strings, extract all the words that are keywords. Input : test_list = [“Gfg is True”, “Its a global win”, “try Gfg”], Output : [‘is’, ‘True’, ‘global’, ‘try’] Explanation : All strings in result list is valid Python keyword. Input : test_list = [“try Gfg”], Output : [‘try’] Explanation : try ...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Oct, 2020" }, { "code": null, "e": 92, "s": 28, "text": "Given List of strings, extract all the words that are keywords." }, { "code": null, "e": 267, "s": 92, "text": "Input : test_list = [“Gfg is True”, “Its a g...
Iterative approach to print all permutations of an Array
17 Jun, 2019 Given an array arr[] of size N, the task is to generate and print all permutations of the given array. Examples: Input: arr[] = {1, 2}Output:1 22 1 Input: {0, 1, 2}Output:0 1 21 0 20 2 12 0 11 2 02 1 0 Approach: The recursive methods to solve the above problems are discussed here and here. In this post, an...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Jun, 2019" }, { "code": null, "e": 155, "s": 52, "text": "Given an array arr[] of size N, the task is to generate and print all permutations of the given array." }, { "code": null, "e": 165, "s": 155, "text": "Ex...
Download File in Selenium Using Python
04 Jan, 2021 Prerequisite: Selenium Selenium is a powerful tool for controlling web browsers through programs and performing browser automation. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e. Python, Java, C#, etc. We will be working with Python. Selenium ...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Jan, 2021" }, { "code": null, "e": 75, "s": 52, "text": "Prerequisite: Selenium" }, { "code": null, "e": 545, "s": 75, "text": "Selenium is a powerful tool for controlling web browsers through programs and perfor...
PHP | strtotime() Function
31 Jul, 2021 The strtotime() function is a built-in function in PHP which is used to convert an English textual date-time description to a UNIX timestamp. The function accepts a string parameter in English which represents the description of date-time. For e.g., “now” refers to the current date in English date-time des...
[ { "code": null, "e": 52, "s": 24, "text": "\n31 Jul, 2021" }, { "code": null, "e": 518, "s": 52, "text": "The strtotime() function is a built-in function in PHP which is used to convert an English textual date-time description to a UNIX timestamp. The function accepts a string pa...
Matplotlib.figure.Figure.savefig() in Python
03 May, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains all the plot elements. This module is used to control the default spacing of the subplots and top level container for all plot elemen...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 May, 2020" }, { "code": null, "e": 339, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains a...
What is a method signature in Java?
The method signature consists of the method name and the parameter list. Live Demo public class MethodSignature { public int add(int a, int b){ int c = a+b; return c; } public static void main(String args[]){ MethodSignature obj = new MethodSignature(); int result = obj.add(56, 34); ...
[ { "code": null, "e": 1260, "s": 1187, "text": "The method signature consists of the method name and the parameter list." }, { "code": null, "e": 1271, "s": 1260, "text": " Live Demo" }, { "code": null, "e": 1546, "s": 1271, "text": "public class MethodSignatur...