title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Console.Read() Method in C#
28 Feb, 2019 Console.Read() Method is used to read the next character from the standard input stream. This method basically blocks its return when the user types some input characters. As soon as the user press ENTER key it terminates. Syntax: public static int Read (); Return Value: It returns the next character from ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Feb, 2019" }, { "code": null, "e": 251, "s": 28, "text": "Console.Read() Method is used to read the next character from the standard input stream. This method basically blocks its return when the user types some input characters. As ...
Internal Working of TreeMap in Java
05 Jul, 2021 TreeMap class is like HashMap. TreeMap stores key-value pairs. The main difference is that TreeMap sorts the key in ascending order. TreeMap is sorted as the ordering of its keys, or by a Comparator provided at map creation time, depending on which constructor is used. Pre-requisite: Let’s go through pre-r...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 Jul, 2021" }, { "code": null, "e": 322, "s": 52, "text": "TreeMap class is like HashMap. TreeMap stores key-value pairs. The main difference is that TreeMap sorts the key in ascending order. TreeMap is sorted as the ordering of its ...
How to Use PRDownloader Library in Android App?
22 Feb, 2022 PRDownloader library is a file downloader library for android. It comes with pause and resumes support while downloading a file. This library is capable of downloading large files from the internet and can download any type of file like image, video, pdf, apk and etc. It provides many features that can hel...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Feb, 2022" }, { "code": null, "e": 802, "s": 52, "text": "PRDownloader library is a file downloader library for android. It comes with pause and resumes support while downloading a file. This library is capable of downloading large ...
Inheritance in Java
25 May, 2022 Inheritance is an important pillar of OOP(Object-Oriented Programming). It is the mechanism in java by which one class is allowed to inherit the features(fields and methods) of another class. Important terminology: Super Class: The class whose features are inherited is known as superclass(or a base class...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 May, 2022" }, { "code": null, "e": 245, "s": 52, "text": "Inheritance is an important pillar of OOP(Object-Oriented Programming). It is the mechanism in java by which one class is allowed to inherit the features(fields and methods) ...
Delete nodes which have a greater value on right side
14 Jan, 2022 Given a singly linked list, remove all the nodes which have a greater value on the right side. Examples: a) The list 12->15->10->11->5->6->2->3->NULL should be changed to 15->11->6->3->NULL. Note that 12, 10, 5 and 2 have been deleted because there is a greater value on the right side. When we examine 12,...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Jan, 2022" }, { "code": null, "e": 150, "s": 54, "text": "Given a singly linked list, remove all the nodes which have a greater value on the right side. " }, { "code": null, "e": 840, "s": 150, "text": "Examples:...
Ways to choose three points with distance between the most distant points <= L
06 May, 2021 Given a set of n distinct points x1, x2, x3... xn all lying on the X-axis and an integer L, the task is to find the number of ways of selecting three points such that the distance between the most distant points is less than or equal to LNote: Order is not important i.e the points {3, 2, 1} and {1, 2, 3} r...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 May, 2021" }, { "code": null, "e": 397, "s": 52, "text": "Given a set of n distinct points x1, x2, x3... xn all lying on the X-axis and an integer L, the task is to find the number of ways of selecting three points such that the dis...
Machine Learning - Jupyter Notebook
Jupyter notebooks basically provides an interactive computational environment for developing Python based Data Science applications. They are formerly known as ipython notebooks. The following are some of the features of Jupyter notebooks that makes it one of the best components of Python ML ecosystem − Jupyter noteboo...
[ { "code": null, "e": 2609, "s": 2304, "text": "Jupyter notebooks basically provides an interactive computational environment for developing Python based Data Science applications. They are formerly known as ipython notebooks. The following are some of the features of Jupyter notebooks that makes it ...
AWS IAM Introduction. An overview of AWS identity and access... | by Evan Kozliner | Towards Data Science
The first thing to both shock (and frustrate) many people moving into cloud-based environments is how complicated permissions can be. Typically, after years of becoming acclimated to being the God — sudo— of whatever code you have been writing prior, you are introduced to an environment where nearly everything is locke...
[ { "code": null, "e": 511, "s": 172, "text": "The first thing to both shock (and frustrate) many people moving into cloud-based environments is how complicated permissions can be. Typically, after years of becoming acclimated to being the God — sudo— of whatever code you have been writing prior, you ...
Geospatial Operations at Scale with Dask and Geopandas | by Ravi Shekhar | Towards Data Science
In this post, I will give a motivating example of a spatial join, and then describe how to perform spatial joins at scale with GeoPandas and Dask. Note: To condense and simplify this post for Medium, I removed interactive graphics and most code. You can view the original Jupyter notebook on nbviewer. One problem I came...
[ { "code": null, "e": 318, "s": 171, "text": "In this post, I will give a motivating example of a spatial join, and then describe how to perform spatial joins at scale with GeoPandas and Dask." }, { "code": null, "e": 473, "s": 318, "text": "Note: To condense and simplify this pos...
Java JColorChooser Example - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws In this example, I am going to show you how t...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
Median of BST | Practice | GeeksforGeeks
Given a Binary Search Tree of size N, find the Median of its Node values. Example 1: Input: 6 / \ 3 8 / \ / \ 1 4 7 9 Output: 6 Explanation: Inorder of Given BST will be: 1, 3, 4, 6, 7, 8, 9. So, here median will 6. Example 2: Input: 6 / \ 3 8 / \ /...
[ { "code": null, "e": 312, "s": 238, "text": "Given a Binary Search Tree of size N, find the Median of its Node values." }, { "code": null, "e": 323, "s": 312, "text": "Example 1:" }, { "code": null, "e": 493, "s": 323, "text": "Input:\n 6\n / \\\n ...
How to convert JSON Array to normal Java Array?
The get method of the JSONArray class returns the element at a particular index. Using this method, you can get the elements of the JSONArray object and populate the array with them. import java.util.Arrays; import org.json.JSONArray; public class JsonToArray { public static void main(String args[]) throws Exceptio...
[ { "code": null, "e": 1245, "s": 1062, "text": "The get method of the JSONArray class returns the element at a particular index. Using this method, you can get the elements of the JSONArray object and populate the array with them." }, { "code": null, "e": 1849, "s": 1245, "text": ...
C - Pointers
Pointers in C are easy and fun to learn. Some C programming tasks are performed more easily with pointers, and other tasks, such as dynamic memory allocation, cannot be performed without using pointers. So it becomes necessary to learn pointers to become a perfect C programmer. Let's start learning them in simple and e...
[ { "code": null, "e": 2415, "s": 2084, "text": "Pointers in C are easy and fun to learn. Some C programming tasks are performed more easily with pointers, and other tasks, such as dynamic memory allocation, cannot be performed without using pointers. So it becomes necessary to learn pointers to becom...
How to find the sum of squared values of an R data frame column?
To find the sum of squared values of an R data frame column, we can simply square the column with ^ sign and take the sum using sum function. For example, if we have a data frame called df that contains a column say V then the sum of squared values of V can be found by using the command sum(df$V^2). Consider the below ...
[ { "code": null, "e": 1363, "s": 1062, "text": "To find the sum of squared values of an R data frame column, we can simply square the column with ^ sign and take the sum using sum function. For example, if we have a data frame called df that contains a column say V then the sum of squared values of V...
SymPy - Function class
Sympy package has Function class, which is defined in sympy.core.function module. It is a base class for all applied mathematical functions, as also a constructor for undefined function classes. Following categories of functions are inherited from Function class − Functions for complex number Trigonometric functions Fu...
[ { "code": null, "e": 2214, "s": 2019, "text": "Sympy package has Function class, which is defined in sympy.core.function module. It is a base class for all applied mathematical functions, as also a constructor for undefined function classes." }, { "code": null, "e": 2284, "s": 2214, ...
How to Optimize a Deep Learning Model | by Zachary Warnes | Towards Data Science
Hyperparameter optimization is a critical part of any machine learning pipeline. Just selecting a model is not enough to achieve exceptional performance. You also need to tune your model to better perform on the problem. This post will discuss hyperparameter tuning for deep learning architectures. There are code chunks...
[ { "code": null, "e": 393, "s": 172, "text": "Hyperparameter optimization is a critical part of any machine learning pipeline. Just selecting a model is not enough to achieve exceptional performance. You also need to tune your model to better perform on the problem." }, { "code": null, "e...
Max Odd Sum | Practice | GeeksforGeeks
Given an array of integers, check whether there is a subsequence with odd sum and if yes, then finding the maximum odd sum. If no subsequence contains odd sum, print -1. Example 1: Input: N=4 arr[] = {4, -3, 3, -5} Output: 7 Explanation: The subsequence with maximum odd sum is 4 + 3 = 7 Example 2: Input: N=5 arr[] = ...
[ { "code": null, "e": 408, "s": 238, "text": "Given an array of integers, check whether there is a subsequence with odd sum and if yes, then finding the maximum odd sum. If no subsequence contains odd sum, print -1." }, { "code": null, "e": 420, "s": 408, "text": "\nExample 1:" ...
break command in Linux with examples - GeeksforGeeks
15 May, 2019 break command is used to terminate the execution of for loop, while loop and until loop. It can also take one parameter i.e.[N]. Here n is the number of nested loops to break. The default number is 1. Syntax: break [n] Example 1: Using break statement in for loop Example 2: Using break statement in while ...
[ { "code": null, "e": 24039, "s": 24011, "text": "\n15 May, 2019" }, { "code": null, "e": 24240, "s": 24039, "text": "break command is used to terminate the execution of for loop, while loop and until loop. It can also take one parameter i.e.[N]. Here n is the number of nested loo...
Higher-Order Functions with Spark 3.1 | by David Vrba | Towards Data Science
Complex data structures, such as arrays, structs, and maps are very common in big data processing, especially in Spark. The situation occurs each time we want to represent in one column more than a single value on each row, this can be a list of values in the case of array data type or a list of key-value pairs in the ...
[ { "code": null, "e": 509, "s": 172, "text": "Complex data structures, such as arrays, structs, and maps are very common in big data processing, especially in Spark. The situation occurs each time we want to represent in one column more than a single value on each row, this can be a list of values in...
Count of subarrays for each Array element in which arr[i] is first and least - GeeksforGeeks
04 Apr, 2022 Given an array arr[], the task is to find the count of subarrays starting from the current element that has a minimum element as the current element itself. Examples: Input: arr[] = {2, 4, 2, 1, 3} Output: {3, 1, 1, 2, 1}Explanation: For the first element we can form 3 valid subarrays with the given condi...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n04 Apr, 2022" }, { "code": null, "e": 26094, "s": 25937, "text": "Given an array arr[], the task is to find the count of subarrays starting from the current element that has a minimum element as the current element itself." }, ...
How to create new Mongodb database using Node.js ? - GeeksforGeeks
20 Nov, 2020 mongodb module: This Module is used to performing CRUD(Create Read Update Read) Operations in MongoDb using Node.js. We cannot make a database only. We have to make a new Collection to see the database. The connect() method is used for connecting the MongoDb server with the Node.js project. Please refer th...
[ { "code": null, "e": 24534, "s": 24506, "text": "\n20 Nov, 2020" }, { "code": null, "e": 24826, "s": 24534, "text": "mongodb module: This Module is used to performing CRUD(Create Read Update Read) Operations in MongoDb using Node.js. We cannot make a database only. We have to mak...
Cleaning Financial Time Series data with Python | by Ronald Wahome | Towards Data Science
A hypothetical company, ABC Financial Services Corp makes financial investments decisions on behalf of it’s clients based on the company’s economic research. A lot of these decisions involve speculating on future prices of financial instruments. ABC Corp utilizes several economic indicators but there is one in particul...
[ { "code": null, "e": 612, "s": 172, "text": "A hypothetical company, ABC Financial Services Corp makes financial investments decisions on behalf of it’s clients based on the company’s economic research. A lot of these decisions involve speculating on future prices of financial instruments. ABC Corp ...
Python os.read() Method
Python method read() reads at most n bytes from file desciptor fd, return a string containing the bytes read. If the end of file referred to by fd has been reached, an empty string is returned. Following is the syntax for read() method − os.read(fd,n) fd − This is the file descriptor of the file. fd − This is the file...
[ { "code": null, "e": 2438, "s": 2244, "text": "Python method read() reads at most n bytes from file desciptor fd, return a string containing the bytes read. If the end of file referred to by fd has been reached, an empty string is returned." }, { "code": null, "e": 2482, "s": 2438, ...
JavaFX - UI Controls
Every user interface considers the following three main aspects − UI elements − These are the core visual elements which the user eventually sees and interacts with. JavaFX provides a huge list of widely used and common elements varying from basic to complex, which we will cover in this tutorial. UI elements − These ar...
[ { "code": null, "e": 1966, "s": 1900, "text": "Every user interface considers the following three main aspects −" }, { "code": null, "e": 2198, "s": 1966, "text": "UI elements − These are the core visual elements which the user eventually sees and interacts with. JavaFX provides ...
Check if a number can be written as a sum of 'k' prime numbers - GeeksforGeeks
10 Mar, 2022 Given two numbers N and K. We need to find out if ‘N’ can be written as sum of ‘K’ prime numbers. Given N <= 10^9 Examples : Input : N = 10 K = 2 Output : Yes 10 can be written as 5 + 5 Input : N = 2 K = 2 Output : No The idea is to use Goldbach’s conjecture which says that every even integer ...
[ { "code": null, "e": 24748, "s": 24720, "text": "\n10 Mar, 2022" }, { "code": null, "e": 24862, "s": 24748, "text": "Given two numbers N and K. We need to find out if ‘N’ can be written as sum of ‘K’ prime numbers. Given N <= 10^9" }, { "code": null, "e": 24874, "...
Binary Search functions in C++ STL (binary_search, lower_bound and upper_bound) - GeeksforGeeks
31 May, 2021 Binary search is an important component in competitive programming or any algorithmic competition, having knowledge of shorthand functions reduces the time to code them. This searching only works when container is sorted. Related functions are discussed below.1.binary_search(start_ptr, end_ptr, num) : This...
[ { "code": null, "e": 24320, "s": 24292, "text": "\n31 May, 2021" }, { "code": null, "e": 24723, "s": 24320, "text": "Binary search is an important component in competitive programming or any algorithmic competition, having knowledge of shorthand functions reduces the time to code...
Python String lstrip() method - GeeksforGeeks
19 Aug, 2021 Python String lstrip() method returns a copy of the string with leading characters removed (based on the string argument passed). If no argument is passed, it removes leading spaces. Syntax: string.lstrip(characters) Parameters: characters [optional]: A set of characters to remove as leading characters. ...
[ { "code": null, "e": 25139, "s": 25111, "text": "\n19 Aug, 2021" }, { "code": null, "e": 25322, "s": 25139, "text": "Python String lstrip() method returns a copy of the string with leading characters removed (based on the string argument passed). If no argument is passed, it remo...
Naive Bayes Classifiers for Text Classification | by Pınar Ersoy | Towards Data Science
Text classification can be described as one of the major subdivisions of the Natural Language Processing field. The text-based datasets composed of unstructured formatted content. This nature causes them to extract meaningful pieces in a difficult way. To be able to cope with this task, it is critical to choose the cor...
[ { "code": null, "e": 641, "s": 172, "text": "Text classification can be described as one of the major subdivisions of the Natural Language Processing field. The text-based datasets composed of unstructured formatted content. This nature causes them to extract meaningful pieces in a difficult way. To...
AWT Image Class
Image control is superclass for all image classes representing graphical images. Following is the declaration for java.awt.Image class: public abstract class Image extends Object Following are the fields for java.awt.Image class: protected float accelerationPriority -- Priority for accelerating this image. protect...
[ { "code": null, "e": 1829, "s": 1747, "text": "Image control is superclass for all image classes representing graphical images. " }, { "code": null, "e": 1884, "s": 1829, "text": "Following is the declaration for java.awt.Image class:" }, { "code": null, "e": 1930, ...
Compare two files using Hashing in Python - GeeksforGeeks
10 Jun, 2021 In this article, we would be creating a program that would determine, whether two files provided to it are the same or not. By the same means that their contents are the same or not (excluding any metadata). We would be using Cryptographic Hashes for this purpose. A cryptographic hash function is a functio...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n10 Jun, 2021" }, { "code": null, "e": 26156, "s": 25555, "text": "In this article, we would be creating a program that would determine, whether two files provided to it are the same or not. By the same means that their contents a...
How to create a Dictionary in PowerShell?
To create a dictionary in the PowerShell we need to use the class Dictionary from the .Net namespace System.Collections.Generic. It has TKey and TValue. Its basic syntax is Dictionary<TKey,TValue> To learn more about this .Net namespace check the link below. https://docs.microsoft.com/en-us/dotnet/api/system.collection...
[ { "code": null, "e": 1235, "s": 1062, "text": "To create a dictionary in the PowerShell we need to use the class Dictionary from the .Net namespace System.Collections.Generic. It has TKey and TValue. Its basic syntax is" }, { "code": null, "e": 1259, "s": 1235, "text": "Dictionar...
C# Program To Remove Duplicates From A Given String - GeeksforGeeks
11 Dec, 2021 Given a string S, the task is to remove all the duplicates in the given string. Below are the different methods to remove duplicates in a string. METHOD 1 (Simple) C# // C# program to remove duplicate character// from character array and print in sorted// orderusing System;using System.Collections.Generic...
[ { "code": null, "e": 25028, "s": 25000, "text": "\n11 Dec, 2021" }, { "code": null, "e": 25174, "s": 25028, "text": "Given a string S, the task is to remove all the duplicates in the given string. Below are the different methods to remove duplicates in a string." }, { "co...
Java - Access Modifiers
Java provides a number of access modifiers to set access levels for classes, variables, methods, and constructors. The four access levels are − Visible to the package, the default. No modifiers are needed. Visible to the class only (private). Visible to the world (public). Visible to the package and all subclasses (pro...
[ { "code": null, "e": 2521, "s": 2377, "text": "Java provides a number of access modifiers to set access levels for classes, variables, methods, and constructors. The four access levels are −" }, { "code": null, "e": 2583, "s": 2521, "text": "Visible to the package, the default. N...
GATE | GATE-CS-2015 (Set 1) | Question 21 - GeeksforGeeks
28 Jun, 2021 The output of the following C program is __________. void f1 (int a, int b){ int c; c=a; a=b; b=c;}void f2 (int *a, int *b){ int c; c=*a; *a=*b;*b=c;}int main(){ int a=4, b=5, c=6; f1(a, b); f2(&b, &c); printf (“%d”, c-a-b); return 0;} (A) -5(B) -4(C) 5(D) 3Answer: (A)Explanation: The function cal...
[ { "code": null, "e": 24466, "s": 24438, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24519, "s": 24466, "text": "The output of the following C program is __________." }, { "code": "void f1 (int a, int b){ int c; c=a; a=b; b=c;}void f2 (int *a, int *b){ int c; c=*a...
3 Divisors | Practice | GeeksforGeeks
You have given a list of q queries and for every query, you are given an integer N. The task is to find how many numbers(less than or equal to N) have number of divisors exactly equal to 3. Example 1: Input: q = 1 query[0] = 6 Output: 1 Explanation: There is only one number 4 which has exactly three divisors 1, 2 and...
[ { "code": null, "e": 430, "s": 238, "text": "You have given a list of q queries and for every query, you are given an integer N. The task is to find how many numbers(less than or equal to N) have number of divisors exactly equal to 3. " }, { "code": null, "e": 441, "s": 430, "te...
Seeing the random forest from the decision trees: An explanation of Random Forest | by Michelle Jane Tat | Towards Data Science
Over this past weekend, I got a little bored and decided to brush up on my R a bit. I have been programming in Python almost exclusively as a fellow at Insight, but I actually not had done much predictive analytics in R, save for pretty vanilla linear regressions. I wanted a somewhat clean data source where I can play ...
[ { "code": null, "e": 630, "s": 172, "text": "Over this past weekend, I got a little bored and decided to brush up on my R a bit. I have been programming in Python almost exclusively as a fellow at Insight, but I actually not had done much predictive analytics in R, save for pretty vanilla linear reg...
How to Implement a Strategy Pattern using Enum in Java? - GeeksforGeeks
22 Feb, 2021 The strategy design pattern is intended to provide a way to choose from a variety of interchangeable strategies. Classic implementation includes an architecture to be implemented by each technique and offers a concrete implementation for execution. The method is chosen from an interface reference, and the ...
[ { "code": null, "e": 24952, "s": 24924, "text": "\n22 Feb, 2021" }, { "code": null, "e": 25287, "s": 24952, "text": "The strategy design pattern is intended to provide a way to choose from a variety of interchangeable strategies. Classic implementation includes an architecture to...
Dot notation in JavaScript
The dot notation is used to access the object properties in JavaScript. Following is the code to implement dot notation − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> body { f...
[ { "code": null, "e": 1184, "s": 1062, "text": "The dot notation is used to access the object properties in JavaScript. Following is the code\nto implement dot notation −" }, { "code": null, "e": 1195, "s": 1184, "text": " Live Demo" }, { "code": null, "e": 2337, "...
Redis - Server Slaveof Command
Redis SLAVEOF command can change the replication settings of a slave on the fly. If a Redis server is already acting as a slave, the command SLAVEOF NO ONE will turn off the replication, turning the Redis server into a MASTER. In the proper form SLAVEOF hostname port will make the server a slave of another server liste...
[ { "code": null, "e": 2603, "s": 2045, "text": "Redis SLAVEOF command can change the replication settings of a slave on the fly. If a Redis server is already acting as a slave, the command SLAVEOF NO ONE will turn off the replication, turning the Redis server into a MASTER. In the proper form SLAVEOF...
Tryit Editor v3.7
Tryit: A navigation menu
[]
pause method - Action Chains in Selenium Python - GeeksforGeeks
15 May, 2020 Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and drop. Acti...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n15 May, 2020" }, { "code": null, "e": 26309, "s": 25537, "text": "Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mous...
What does buffer flush means in C++ ? - GeeksforGeeks
08 Oct, 2021 A buffer flush is the transfer of computer data from a temporary storage area to the computer’s permanent memory. For instance, if we make any changes in a file, the changes we see on one computer screen are stored temporarily in a buffer. Usually, a temporary file comes into existence when we open any wor...
[ { "code": null, "e": 26183, "s": 26155, "text": "\n08 Oct, 2021" }, { "code": null, "e": 26732, "s": 26183, "text": "A buffer flush is the transfer of computer data from a temporary storage area to the computer’s permanent memory. For instance, if we make any changes in a file, t...
Python | Get indices of True values in a binary list - GeeksforGeeks
02 Jan, 2019 Boolean lists are often used by the developers to check for True values during hashing. Boolean list is also used in certain dynamic programming paradigms in dynamic programming. Let’s discuss certain ways to get indices of true values in list in Python. Method #1 : Using enumerate() and list comprehension...
[ { "code": null, "e": 25557, "s": 25529, "text": "\n02 Jan, 2019" }, { "code": null, "e": 25812, "s": 25557, "text": "Boolean lists are often used by the developers to check for True values during hashing. Boolean list is also used in certain dynamic programming paradigms in dynam...
Info Edge India Interview Experience for Software Engineer Role 2021 (Off-Campus) - GeeksforGeeks
26 Feb, 2021 Round 1: Online Test (24 Jan 2021) 15 Aptitude MCQs (20 Minutes): Medium difficulty. 20 Technical MCQs (20 Minutes): Easy to medium difficulty. Round 2: Tech Interview 1 (3 Feb 2021) IntroductionProject 1 discussion (Web Development based)Project 2 discussion (ML/DL based)Coding Ques: https://www.google.co...
[ { "code": null, "e": 26695, "s": 26667, "text": "\n26 Feb, 2021" }, { "code": null, "e": 26730, "s": 26695, "text": "Round 1: Online Test (24 Jan 2021)" }, { "code": null, "e": 26780, "s": 26730, "text": "15 Aptitude MCQs (20 Minutes): Medium difficulty." },...
AngularJS | ng-keypress Directive - GeeksforGeeks
26 Mar, 2019 The ng-keypress Directive in AngluarJS is used to apply custom behavior on a keypress event. It is supported by <input>, <select> and <textarea> element. Syntax: <element ng-keypress="expression"> Contents... </element> Where expression tells what to do when key is pressed. Example: This example uses ng-ke...
[ { "code": null, "e": 26354, "s": 26326, "text": "\n26 Mar, 2019" }, { "code": null, "e": 26508, "s": 26354, "text": "The ng-keypress Directive in AngluarJS is used to apply custom behavior on a keypress event. It is supported by <input>, <select> and <textarea> element." }, {...
Merge Two data.table Objects in R - GeeksforGeeks
23 Aug, 2021 data.table is a package that is used for working with tabular data in R. It provides an enhanced version of “data.frames”, which are the standard data structure for storing data in base R. Installing “data.table” package is no different from other R packages. Its recommended to run “install.packages()” to ...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n23 Aug, 2021" }, { "code": null, "e": 26676, "s": 26487, "text": "data.table is a package that is used for working with tabular data in R. It provides an enhanced version of “data.frames”, which are the standard data structure fo...
Convert Array to LinkedList in Java - GeeksforGeeks
31 Mar, 2022 Array is contiguous memory allocation while LinkedList is a block of elements randomly placed in the memory which are linked together where a block is holding the address of another block in memory. Sometimes as per requirement or because of space issues in memory where there are bigger chunks of code in t...
[ { "code": null, "e": 25249, "s": 25221, "text": "\n31 Mar, 2022" }, { "code": null, "e": 25683, "s": 25249, "text": "Array is contiguous memory allocation while LinkedList is a block of elements randomly placed in the memory which are linked together where a block is holding the ...
Basic Graphic Programming in C++ - GeeksforGeeks
06 Jan, 2017 IntroductionSo far we have been using C language for simple console output only. Most of us are unaware that using C++, low level graphics program can also be made. This means we can incorporate shapes,colors and designer fonts in our program. This article deals with the steps to enable the DevC++ compile...
[ { "code": null, "e": 25886, "s": 25858, "text": "\n06 Jan, 2017" }, { "code": null, "e": 26236, "s": 25886, "text": "IntroductionSo far we have been using C language for simple console output only. Most of us are unaware that using C++, low level graphics program can also be mad...
Stack search() Method in Java - GeeksforGeeks
13 Aug, 2019 The java.util.Stack.search(Object element) method in Java is used to search for an element in the stack and get its distance from the top. This method starts the count of the position from 1 and not from 0. The element that is on the top of the stack is considered to be at position 1. If more than one elem...
[ { "code": null, "e": 25719, "s": 25691, "text": "\n13 Aug, 2019" }, { "code": null, "e": 26209, "s": 25719, "text": "The java.util.Stack.search(Object element) method in Java is used to search for an element in the stack and get its distance from the top. This method starts the c...
Sum of f(a[i], a[j]) over all pairs in an array of n integers - GeeksforGeeks
29 May, 2021 Given an array of n integers, find the sum of f(a[i], a[j]) of all pairs (i, j) such that (1 <= i < j <= n). f(a[i], a[j]): If |a[j]-a[i]| > 1 f(a[i], a[j]) = a[j] - a[i] Else // if |a[j]-a[i]| <= 1 f(a[i], a[j]) = 0 Examples: Input : 6 6 4 4 Output : -8 Explanation: All pairs are: (6 - 6) + ...
[ { "code": null, "e": 26449, "s": 26421, "text": "\n29 May, 2021" }, { "code": null, "e": 26560, "s": 26449, "text": "Given an array of n integers, find the sum of f(a[i], a[j]) of all pairs (i, j) such that (1 <= i < j <= n). " }, { "code": null, "e": 26576, "s":...
Open Applications using Python - GeeksforGeeks
07 Apr, 2022 In this article, we are going to create a menu of system applications using Python3. We are going to include the below applications in the menu: GOOGLE CHROME MS EDGE MS EXCEL MS POWERPOINT MS WORD VLC PLAYER NOTEPAD ILLUSTRATOR PHOTOSHOP TELEGRAM You can chat with it or type number of applications to be ...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n07 Apr, 2022" }, { "code": null, "e": 25707, "s": 25561, "text": "In this article, we are going to create a menu of system applications using Python3. We are going to include the below applications in the menu: " }, { "co...
How to format a float in JavaScript ? - GeeksforGeeks
25 Sep, 2019 Format a float number means to round off a number up to the given decimal place, ceiling, flooring, etc. There are many operations used to format the float number which are given below: Math.ceil() Method float.toFixed() Method Math.round() Method Math.floor() Method float.toExponential() Method number.toP...
[ { "code": null, "e": 26201, "s": 26173, "text": "\n25 Sep, 2019" }, { "code": null, "e": 26387, "s": 26201, "text": "Format a float number means to round off a number up to the given decimal place, ceiling, flooring, etc. There are many operations used to format the float number ...
Horizontal Boxplots with Seaborn in Python - GeeksforGeeks
12 Nov, 2020 Prerequisite: seaborn The Boxplots are used to visualize the distribution of data which is useful when a comparison of data is required. Sometimes, Boxplot is also known as a box-and-whisker plot. The box shows the quartiles of dataset and whiskers extend to show rest of the distribution. In this article, ...
[ { "code": null, "e": 28005, "s": 27977, "text": "\n12 Nov, 2020" }, { "code": null, "e": 28027, "s": 28005, "text": "Prerequisite: seaborn" }, { "code": null, "e": 28388, "s": 28027, "text": "The Boxplots are used to visualize the distribution of data which is...
C++ Array Library - empty() Function
The C++ function std::array::empty() tests whether size of array is zero or not. Following is the declaration for std::array::empty() function form std::array header. constexpr bool empty() noexcept; None Returns true if array size is 0 otherwise false. This member function never throws exception. Constant i.e. O(1) In...
[ { "code": null, "e": 2684, "s": 2603, "text": "The C++ function std::array::empty() tests whether size of array is zero or not." }, { "code": null, "e": 2770, "s": 2684, "text": "Following is the declaration for std::array::empty() function form std::array header." }, { "...
Implementing Counting Sort using map in C++ - GeeksforGeeks
09 Sep, 2019 Counting Sort is one of the best sorting algorithms which can sort in O(n) time complexity but the disadvantage with the counting sort is it’s space complexity, for a small collection of values, it will also require a huge amount of unused space. So, we need two things to overcome this: A data structure wh...
[ { "code": null, "e": 24299, "s": 24271, "text": "\n09 Sep, 2019" }, { "code": null, "e": 24546, "s": 24299, "text": "Counting Sort is one of the best sorting algorithms which can sort in O(n) time complexity but the disadvantage with the counting sort is it’s space complexity, fo...
Flutter - Named Routes - GeeksforGeeks
30 Jun, 2021 An app has to display multiple screens depending upon the user’s needs. A user needs to back and forth from the multiple screens to the home screen. In, Flutter this is done with the help of Navigator. Note: In Flutter, screens and pages are called routes. In this article, we will explore the process of n...
[ { "code": null, "e": 25523, "s": 25495, "text": "\n30 Jun, 2021" }, { "code": null, "e": 25725, "s": 25523, "text": "An app has to display multiple screens depending upon the user’s needs. A user needs to back and forth from the multiple screens to the home screen. In, Flutter th...
Program for diamond pattern with different layers - GeeksforGeeks
28 May, 2021 Given a number n and using 0-n numbers you have to print such a pattern.Examples: Input : n = 5 Output : 0 0 1 0 0 1 2 1 0 0 1 2 3 2 1 0 0 1 2 3 4 3 2 1 0 0 1 2 3 4 5 4 3 2 1 0 0 1 2 3 4 3 2 1 0 0 1 2 3 2 1 0 0 1 2 1 0 0 1 0 0 Input : n = 3 Out...
[ { "code": null, "e": 25573, "s": 25545, "text": "\n28 May, 2021" }, { "code": null, "e": 25657, "s": 25573, "text": "Given a number n and using 0-n numbers you have to print such a pattern.Examples: " }, { "code": null, "e": 25960, "s": 25657, "text": "Input ...
Find whether a subarray is in form of a mountain or not - GeeksforGeeks
25 Aug, 2021 We are given an array of integers and a range, we need to find whether the subarray which falls in this range has values in the form of a mountain or not. All values of the subarray are said to be in the form of a mountain if either all values are increasing or decreasing or first increasing and then decre...
[ { "code": null, "e": 26521, "s": 26493, "text": "\n25 Aug, 2021" }, { "code": null, "e": 27024, "s": 26521, "text": "We are given an array of integers and a range, we need to find whether the subarray which falls in this range has values in the form of a mountain or not. All valu...
Queries for maximum difference between prime numbers in given ranges - GeeksforGeeks
01 Jun, 2021 Given n queries of the form range [L, R]. The task is to find the maximum difference between two prime numbers in the range for each query. If there are no prime in the range then print 0. All ranges are below 100005. Examples: Input : Q = 3 query1 = [2, 5] query2 = [2, 2] query3 =...
[ { "code": null, "e": 26073, "s": 26045, "text": "\n01 Jun, 2021" }, { "code": null, "e": 26291, "s": 26073, "text": "Given n queries of the form range [L, R]. The task is to find the maximum difference between two prime numbers in the range for each query. If there are no prime i...
Practice questions on Height balanced/AVL Tree - GeeksforGeeks
07 Feb, 2018 AVL tree is binary search tree with additional property that difference between height of left sub-tree and right sub-tree of any node can’t be more than 1. Here are some key points about AVL trees: If there are n nodes in AVL tree, minimum height of AVL tree is floor(log2n). If there are n nodes in AVL tr...
[ { "code": null, "e": 24582, "s": 24554, "text": "\n07 Feb, 2018" }, { "code": null, "e": 24781, "s": 24582, "text": "AVL tree is binary search tree with additional property that difference between height of left sub-tree and right sub-tree of any node can’t be more than 1. Here a...
Find K distinct positive odd integers with sum N - GeeksforGeeks
21 Apr, 2021 Given two integers N and K, the task is to find K distinct positive odd integers such that their sum is equal to the given number N.Examples: Input: N = 10, K = 2 Output: 1 9 Explanation: Two odd positive integers such that their sum is 10 can be (1, 9) or (3, 7).Input: N = 10, K = 4 Output: NO Explanati...
[ { "code": null, "e": 24944, "s": 24916, "text": "\n21 Apr, 2021" }, { "code": null, "e": 25088, "s": 24944, "text": "Given two integers N and K, the task is to find K distinct positive odd integers such that their sum is equal to the given number N.Examples: " }, { "code...
How to get the IP address of the Android device programmatically using Kotlin?
This example demonstrates how to get the IP address of the Android device programmatically using Kotlin. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" e...
[ { "code": null, "e": 1167, "s": 1062, "text": "This example demonstrates how to get the IP address of the Android device programmatically using Kotlin." }, { "code": null, "e": 1296, "s": 1167, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and...
Count prime numbers in range [L, R] whose single digit sum is also prime - GeeksforGeeks
19 Jan, 2022 Given two integers L and R. The task is to count the prime numbers in the range [L, R], whose single sum is also a prime number. A single sum is obtained by adding the digits of a number until a single digit is left. Examples Input: L = 5, R = 20 Output: 3Explanation: Prime numbers in the range L = 5 to R ...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n19 Jan, 2022" }, { "code": null, "e": 26154, "s": 25937, "text": "Given two integers L and R. The task is to count the prime numbers in the range [L, R], whose single sum is also a prime number. A single sum is obtained by adding...
Valid String | Practice | GeeksforGeeks
Given binary string str of size N the task is to check if the given string is valid or not. A string is called valid if the number of 0's equals the number of 1's and at any moment starting from the left of the string number 0's must be greater than or equals to the number of 1's. Input: 1. The first line of the inpu...
[ { "code": null, "e": 509, "s": 226, "text": "Given binary string str of size N the task is to check if the given string is valid or not. A string is called valid if the number of 0's equals the number of 1's and at any moment starting from the left of the string number 0's must be greater than or eq...
Fuzzy matching at scale. From 3.7 hours to 0.2 seconds. How to... | by Josh Taylor | Towards Data Science
### Update December 2020: A faster, simpler way of fuzzy matching is now included at the end of this post with the full code to implement it on any dataset### Data in the real world is messy. Dealing with messy data sets is painful and burns through time which could be spent analysing the data itself. This article focu...
[ { "code": null, "e": 330, "s": 171, "text": "### Update December 2020: A faster, simpler way of fuzzy matching is now included at the end of this post with the full code to implement it on any dataset###" }, { "code": null, "e": 474, "s": 330, "text": "Data in the real world is m...
Error handling in PHP - GeeksforGeeks
21 Nov, 2021 Prerequisite: Types of Error PHP is used for web development. Error handling in PHP is almost similar to error handling in all programming languages. The default error handling in PHP will give file name line number and error type. Ways to handle PHP Errors: Using die() method Custom Error Handling Basi...
[ { "code": null, "e": 40529, "s": 40501, "text": "\n21 Nov, 2021" }, { "code": null, "e": 40762, "s": 40529, "text": "Prerequisite: Types of Error PHP is used for web development. Error handling in PHP is almost similar to error handling in all programming languages. The default e...
Write a Python program to separate a series of alphabets and digits and convert them to a dataframe
Assume you have a series and the result for separating alphabets and digits and store it in dataframe as, series is: 0 abx123 1 bcd25 2 cxy30 dtype: object Dataframe is 0 1 0 abx 123 1 bcd 25 2 cxy 30 To solve this, we will follow the below approach, Define a series. Define a series. Apple series extract ...
[ { "code": null, "e": 1168, "s": 1062, "text": "Assume you have a series and the result for separating alphabets and digits and store it in dataframe as," }, { "code": null, "e": 1277, "s": 1168, "text": "series is:\n0 abx123\n1 bcd25\n2 cxy30\ndtype: object\nDataframe is...
MySQL - UNIX_TIMESTAMP() Function
The DATE, DATETIME and TIMESTAMP datatypes in MySQL are used to store the date, date and time, time stamp values respectively. Where a time stamp is a numerical value representing the number of milliseconds from '1970-01-01 00:00:01' UTC (epoch) to the specified time. MySQL provides a set of functions to manipulate the...
[ { "code": null, "e": 2664, "s": 2333, "text": "The DATE, DATETIME and TIMESTAMP datatypes in MySQL are used to store the date, date and time, time stamp values respectively. Where a time stamp is a numerical value representing the number of milliseconds from '1970-01-01 00:00:01' UTC (epoch) to the ...
Program for Christmas Tree in C
Here we will see one interesting problem. In this problem, we will see how to print Christmas tree randomly. So the tree will be flickering like Christmas tree lights. To print a Christmas tree, we will print pyramids of various sizes just one beneath another. For the decorative leaves a random character is printed fro...
[ { "code": null, "e": 1230, "s": 1062, "text": "Here we will see one interesting problem. In this problem, we will see how to print Christmas tree randomly. So the tree will be flickering like Christmas tree lights." }, { "code": null, "e": 1453, "s": 1230, "text": "To print a Chr...
Construct ∈-NFA of Regular Language L = {ab,ba}
The ε transitions in Non-deterministic finite automata (NFA) are used to move from one state to another without having any symbol from input set Σ ε-NFA is defined in five tuple representation {Q, q0, Σ, δ, F} Where, δ − Q × (Σ∪ε)→2Q δ − Q × (Σ∪ε)→2Q Q − Finite set of states Q − Finite set of states Σ − Finite set of t...
[ { "code": null, "e": 1209, "s": 1062, "text": "The ε transitions in Non-deterministic finite automata (NFA) are used to move from one state to another without having any symbol from input set Σ" }, { "code": null, "e": 1255, "s": 1209, "text": "ε-NFA is defined in five tuple repr...
Java Examples - New File Creation
How to create a new file ? This example demonstrates the way of creating a new file by using File() constructor and file.createNewFile() method of File class. import java.io.File; import java.io.IOException; public class Main { public static void main(String[] args) { try { File file = new File("C:/m...
[ { "code": null, "e": 2095, "s": 2068, "text": "How to create a new file ?" }, { "code": null, "e": 2227, "s": 2095, "text": "This example demonstrates the way of creating a new file by using File() constructor and file.createNewFile() method of File class." }, { "code": n...
Introduction to Linux Shell and Shell Scripting - GeeksforGeeks
26 Sep, 2017 If you are using any major operating system you are indirectly interacting to shell. If you are running Ubuntu, Linux Mint or any other Linux distribution, you are interacting to shell every time you use terminal. In this article I will discuss about linux shells and shell scripting so before understanding...
[ { "code": null, "e": 24271, "s": 24243, "text": "\n26 Sep, 2017" }, { "code": null, "e": 24650, "s": 24271, "text": "If you are using any major operating system you are indirectly interacting to shell. If you are running Ubuntu, Linux Mint or any other Linux distribution, you are...
How to apply machine learning and deep learning methods to audio analysis | by Gideon Mendels | Towards Data Science
Author: Niko Laskaris, Customer Facing Data Scientist, Comet.ml To view the code, training visualizations, and more information about the python example at the end of this post, visit the Comet project page. While much of the writing and literature on deep learning concerns computer vision and natural language processi...
[ { "code": null, "e": 236, "s": 172, "text": "Author: Niko Laskaris, Customer Facing Data Scientist, Comet.ml" }, { "code": null, "e": 380, "s": 236, "text": "To view the code, training visualizations, and more information about the python example at the end of this post, visit th...
Medical Image Analysis using probabilistic layers and Grad-Cam | by Rik Kraan | Towards Data Science
Interest in artificial intelligence applications for image analysis in healthcare is increasing fast. The number of publications in academic journals concerning machine learning is growing exponentially and consequently several image-recognition applications have been implemented in daily clinical practice. Accurate al...
[ { "code": null, "e": 679, "s": 172, "text": "Interest in artificial intelligence applications for image analysis in healthcare is increasing fast. The number of publications in academic journals concerning machine learning is growing exponentially and consequently several image-recognition applicati...
Inline Functions in C++ - GeeksforGeeks
07 Sep, 2018 Inline function is one of the important feature of C++. So, let’s first understand why inline functions are used and what is the purpose of inline function? When the program executes the function call instruction the CPU stores the memory address of the instruction following the function call, copies the a...
[ { "code": null, "e": 26571, "s": 26543, "text": "\n07 Sep, 2018" }, { "code": null, "e": 26728, "s": 26571, "text": "Inline function is one of the important feature of C++. So, let’s first understand why inline functions are used and what is the purpose of inline function?" }, ...
Find minimum speed to finish all Jobs - GeeksforGeeks
26 May, 2021 Given an array A and an integer H where and . Each element A[i] represents remaining pending jobs to be done and H represents hours left to complete all of the jobs. The task is to find the minimum speed in jobs per Hour at which person needs to work to complete all jobs in H hours.Note: If A[i] has less j...
[ { "code": null, "e": 24718, "s": 24690, "text": "\n26 May, 2021" }, { "code": null, "e": 25157, "s": 24718, "text": "Given an array A and an integer H where and . Each element A[i] represents remaining pending jobs to be done and H represents hours left to complete all of the job...
Angular 2 - Modules
Modules are used in Angular JS to put logical boundaries in your application. Hence, instead of coding everything into one application, you can instead build everything into separate modules to separate the functionality of your application. Let’s inspect the code which gets added to the demo application. In Visual Stu...
[ { "code": null, "e": 2604, "s": 2297, "text": "Modules are used in Angular JS to put logical boundaries in your application. Hence, instead of coding everything into one application, you can instead build everything into separate modules to separate the functionality of your application. Let’s inspe...
Tagged Template Literals in JavaScript
Template literals also allow us to create tagged template literals. The tagged literal is just like a function definition and allows us to parse template literals. The tagged literal doesn’t contain the parenthesis and the tag function gets the array of string values as first argument.The rest of the arguments are then...
[ { "code": null, "e": 1423, "s": 1062, "text": "Template literals also allow us to create tagged template literals. The tagged literal is just like a function definition and allows us to parse template literals. The tagged literal doesn’t contain the parenthesis and the tag function gets the array of...
How to get the local Administrators group members using PowerShell?
To get the local Administrators group members using PowerShell, you need to use the GetLocalGroupMember command. This command is available in PowerShell version 5.1 onwards and the module for it is Microsoft.PowerShell.LocalAccounts. This module is not available in the 32-bit PowerShell version but on a 64-bit system. ...
[ { "code": null, "e": 1382, "s": 1062, "text": "To get the local Administrators group members using PowerShell, you need to use the GetLocalGroupMember command. This command is available in PowerShell version 5.1 onwards and the module for it is Microsoft.PowerShell.LocalAccounts. This module is not ...
Ruby/TK - Fonts, Colors and Images
Several Tk widgets, such as the label, text, and canvas, allow you to specify the fonts used to display text, typically via a font configuration option. There is already a default list of fonts, which can be used for different requirements − TkDefaultFont The default for all GUI items not otherwise specified. TkTextFon...
[ { "code": null, "e": 2447, "s": 2294, "text": "Several Tk widgets, such as the label, text, and canvas, allow you to specify the fonts used to display text, typically via a font configuration option." }, { "code": null, "e": 2536, "s": 2447, "text": "There is already a default li...
Object.ReferenceEquals() Method in C# - GeeksforGeeks
10 Apr, 2019 Object.ReferenceEquals() Method is used to determine whether the specified Object instances are the same instance or not. This method cannot be overridden. So, if a user is going to test the two objects references for equality and he is not sure about the implementation of the Equals method, then he can ca...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n10 Apr, 2019" }, { "code": null, "e": 24249, "s": 23911, "text": "Object.ReferenceEquals() Method is used to determine whether the specified Object instances are the same instance or not. This method cannot be overridden. So, if ...
PyQt5 QDockWidget – Setting Features of it - GeeksforGeeks
28 Jul, 2020 In this article we will see how we can set features to the QDockWidget. QDockWidget provides the concept of dock widgets, also know as tool palettes or utility windows. Dock windows are secondary windows placed in the dock widget area around the central widget in a QMainWindow(original window). There are m...
[ { "code": null, "e": 24481, "s": 24453, "text": "\n28 Jul, 2020" }, { "code": null, "e": 24777, "s": 24481, "text": "In this article we will see how we can set features to the QDockWidget. QDockWidget provides the concept of dock widgets, also know as tool palettes or utility win...
HTML | onselect Event Attribute - GeeksforGeeks
03 Aug, 2021 The onselect event attribute works when some text has been selected in an element. It is the part of event attribute. It is supported by many HTML elements such as <input type = “file”>, <input type = “password”>, <input type = “text”>, and <textarea>. Supported Tags: <input type=”file”> <input type=”pas...
[ { "code": null, "e": 23769, "s": 23741, "text": "\n03 Aug, 2021" }, { "code": null, "e": 24022, "s": 23769, "text": "The onselect event attribute works when some text has been selected in an element. It is the part of event attribute. It is supported by many HTML elements such as...
ByteBuffer order() method in Java with Examples - GeeksforGeeks
17 Jun, 2019 The order() method of java.nio.ByteBuffer class is used to retrieve this buffer’s byte order. The byte order is used when reading or writing multibyte values, and when creating buffers that are views of this byte buffer. The order of a newly-created byte buffer is always BIG_ENDIAN. Syntax: public final By...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n17 Jun, 2019" }, { "code": null, "e": 24232, "s": 23948, "text": "The order() method of java.nio.ByteBuffer class is used to retrieve this buffer’s byte order. The byte order is used when reading or writing multibyte values, and ...
perform method - Action Chains in Selenium Python - GeeksforGeeks
15 May, 2020 Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and drop. Acti...
[ { "code": null, "e": 25871, "s": 25843, "text": "\n15 May, 2020" }, { "code": null, "e": 26473, "s": 25871, "text": "Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mous...
HTML | DOM Style order Property - GeeksforGeeks
03 Nov, 2021 The DOM Style order property specifies the order of a flexible element relative to the rest of the flexible elements inside the same container element. Syntax: To set the property:object.style.order = "number | initial | inherit" object.style.order = "number | initial | inherit" To get the property:object....
[ { "code": null, "e": 25171, "s": 25143, "text": "\n03 Nov, 2021" }, { "code": null, "e": 25323, "s": 25171, "text": "The DOM Style order property specifies the order of a flexible element relative to the rest of the flexible elements inside the same container element." }, { ...
Priority Queue of Vectors in C++ STL with Examples - GeeksforGeeks
17 Mar, 2020 Priority Queue in STL Priority queues are a type of container adapters, specifically designed such that the first element of the queue is the greatest of all elements in the queue and elements are in non increasing order(hence we can see that each element of the queue has a priority{fixed order}) Vector in...
[ { "code": null, "e": 25877, "s": 25849, "text": "\n17 Mar, 2020" }, { "code": null, "e": 26175, "s": 25877, "text": "Priority Queue in STL Priority queues are a type of container adapters, specifically designed such that the first element of the queue is the greatest of all eleme...
Preprocessor output of cpp file - GeeksforGeeks
19 Jan, 2021 Preprocessing is a stage where preprocessor directives are expanded or processed before source code is sent to the compiler. The most common example of such directive is #include or #define. A preprocessor output has “.i” extension. Two files are created here: C++ MyHeader.h // C++ program for the test.cpp...
[ { "code": null, "e": 25343, "s": 25315, "text": "\n19 Jan, 2021" }, { "code": null, "e": 25576, "s": 25343, "text": "Preprocessing is a stage where preprocessor directives are expanded or processed before source code is sent to the compiler. The most common example of such direct...
Find largest prime factor of a number - GeeksforGeeks
13 Jan, 2022 Given a positive integer ‘n'( 1 <= n <= 1015). Find the largest prime factor of a number. Input: 6 Output: 3 Explanation Prime factor of 6 are- 2, 3 Largest of them is '3' Input: 15 Output: 5 The approach is simple, just factorise the given number by dividing it with the divisor of a number and keep u...
[ { "code": null, "e": 25861, "s": 25833, "text": "\n13 Jan, 2022" }, { "code": null, "e": 25953, "s": 25861, "text": "Given a positive integer ‘n'( 1 <= n <= 1015). Find the largest prime factor of a number. " }, { "code": null, "e": 26056, "s": 25953, "text":...
Convert Python datetime to epoch - GeeksforGeeks
23 Aug, 2021 In this article, we are going to discuss various ways by which we can convert Python DateTime to epoch. The epoch time is also known as POSIX time which will indicate the number of seconds passed from January 1, 1970, 00:00:00 (UTC) in most windows and Unix systems. Note: Epoch is platform-dependent which ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n23 Aug, 2021" }, { "code": null, "e": 25804, "s": 25537, "text": "In this article, we are going to discuss various ways by which we can convert Python DateTime to epoch. The epoch time is also known as POSIX time which will indic...
MongoDB - Bulk.insert() Method - GeeksforGeeks
21 Jul, 2021 In MongoDB, the Bulk.insert() method is used to perform insert operations in bulk. Or in other words, the Bulk.insert() method is used to insert multiple documents in one go. To use Bulk.insert() method the collection in which data has to be inserted must already exist. Syntax: Bulk.insert(<document>); Pa...
[ { "code": null, "e": 25517, "s": 25489, "text": "\n21 Jul, 2021" }, { "code": null, "e": 25789, "s": 25517, "text": "In MongoDB, the Bulk.insert() method is used to perform insert operations in bulk. Or in other words, the Bulk.insert() method is used to insert multiple documents...
Matplotlib.figure.Figure.draw() in Python - GeeksforGeeks
30 Apr, 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": 25580, "s": 25552, "text": "\n30 Apr, 2020" }, { "code": null, "e": 25891, "s": 25580, "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, whic...
Instant toEpochMilli() method in Java with Examples - GeeksforGeeks
17 Feb, 2021 The toEpochMilli() method of an Instant class is used to convert this instant to the number of milliseconds from the epoch of 1970-01-01T00:00:00Z to a long value. This method returns that long value.Syntax: public long toEpochMilli() Returns: This method returns number of milliseconds since the epoch of...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n17 Feb, 2021" }, { "code": null, "e": 25435, "s": 25225, "text": "The toEpochMilli() method of an Instant class is used to convert this instant to the number of milliseconds from the epoch of 1970-01-01T00:00:00Z to a long value....
io.TeeReader() Function in Golang with Examples - GeeksforGeeks
03 May, 2020 In Go language, io packages supply fundamental interfaces to the I/O primitives. And its principal job is to enclose the ongoing implementations of such king of primitives. The TeeReader() function in Go language is used to return a “Reader” that reads from the stated “r” and then writes it to the stated “...
[ { "code": null, "e": 25703, "s": 25675, "text": "\n03 May, 2020" }, { "code": null, "e": 26372, "s": 25703, "text": "In Go language, io packages supply fundamental interfaces to the I/O primitives. And its principal job is to enclose the ongoing implementations of such king of pr...
How to create mat-button-toggle-group as read only mode in AngularJS ? - GeeksforGeeks
30 Nov, 2020 Angular Material is a UI component library developed by the Angular team to build design components for desktop and mobile web applications. In order to install it, we need to have angular installed in our project, once you have it, you can enter the below command and can download it. Installation syntax:...
[ { "code": null, "e": 26354, "s": 26326, "text": "\n30 Nov, 2020" }, { "code": null, "e": 26496, "s": 26354, "text": "Angular Material is a UI component library developed by the Angular team to build design components for desktop and mobile web applications. " }, { "code":...
Mean, Median and Mode in R Programming - GeeksforGeeks
18 Jan, 2022 The measure of central tendency in R Language represents the whole set of data by a single value. It gives us the location of central points. There are three main measures of central tendency: Mean Median Mode Prerequisite: Before doing any computation, first of all, we need to prepare our data, save our...
[ { "code": null, "e": 30313, "s": 30285, "text": "\n18 Jan, 2022" }, { "code": null, "e": 30507, "s": 30313, "text": "The measure of central tendency in R Language represents the whole set of data by a single value. It gives us the location of central points. There are three main ...
Automatic Resource Management in Java ( try with resource statements ) - GeeksforGeeks
24 Jan, 2022 Java provides a feature to make the code more robust and to cut down the lines of code. This feature is known as Automatic Resource Management(ARM) using try-with-resources from Java 7 onwards. The try-with-resources statement is a try statement that declares one or more resources. This statement ensures ...
[ { "code": null, "e": 25771, "s": 25743, "text": "\n24 Jan, 2022" }, { "code": null, "e": 26055, "s": 25771, "text": "Java provides a feature to make the code more robust and to cut down the lines of code. This feature is known as Automatic Resource Management(ARM) using try-with-...
Java Program to Calculate Sum of Two Byte Values Using Type Casting - GeeksforGeeks
11 Nov, 2020 The addition of two-byte values in java is the same as normal integer addition. The byte data type is 8-bit signed two’s complement integer. It has a minimum value of -128 and a maximum value of 127 (inclusive). The Sum of two-byte values might cross the given limit of byte, this condition can be handled u...
[ { "code": null, "e": 25251, "s": 25223, "text": "\n11 Nov, 2020" }, { "code": null, "e": 25623, "s": 25251, "text": "The addition of two-byte values in java is the same as normal integer addition. The byte data type is 8-bit signed two’s complement integer. It has a minimum value...
#define vs #undef in C language - GeeksforGeeks
04 May, 2021 In this article, we will discuss the difference between #define and #undef pre-processor in C language. Pre-Processor: Pre-processor is a program that performs before the compilation. It only notices the # started statement. # is called preprocessor directive. Each preprocessing directive must be on its ow...
[ { "code": null, "e": 25478, "s": 25450, "text": "\n04 May, 2021" }, { "code": null, "e": 25582, "s": 25478, "text": "In this article, we will discuss the difference between #define and #undef pre-processor in C language." }, { "code": null, "e": 25597, "s": 25582,...
Overview of Kalman Filter for Self-Driving Car - GeeksforGeeks
18 Oct, 2021 A Kalman Filter is an optimal estimation algorithm. It can help us predict/estimate the position of an object when we are in a state of doubt due to different limitations such as accuracy or physical constraints which we will discuss in a short while. Application of Kalman filter:Kalman filters are used wh...
[ { "code": null, "e": 25697, "s": 25669, "text": "\n18 Oct, 2021" }, { "code": null, "e": 25949, "s": 25697, "text": "A Kalman Filter is an optimal estimation algorithm. It can help us predict/estimate the position of an object when we are in a state of doubt due to different limi...