title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Jump Search - GeeksforGeeks
18 Feb, 2022 Like Binary Search, Jump Search is a searching algorithm for sorted arrays. The basic idea is to check fewer elements (than linear search) by jumping ahead by fixed steps or skipping some elements in place of searching all elements.For example, suppose we have an array arr[] of size n and block (to be jump...
[ { "code": null, "e": 25735, "s": 25707, "text": "\n18 Feb, 2022" }, { "code": null, "e": 27200, "s": 25735, "text": "Like Binary Search, Jump Search is a searching algorithm for sorted arrays. The basic idea is to check fewer elements (than linear search) by jumping ahead by fixe...
C++ Stream Classes Structure - GeeksforGeeks
24 Jun, 2021 In C++ there are number of stream classes for defining various streams related with files and for doing input-output operations. All these classes are defined in the file iostream.h. Figure given below shows the hierarchy of these classes. ios class is topmost class in the stream classes hierarchy. It i...
[ { "code": null, "e": 24220, "s": 24192, "text": "\n24 Jun, 2021" }, { "code": null, "e": 24461, "s": 24220, "text": "In C++ there are number of stream classes for defining various streams related with files and for doing input-output operations. All these classes are defined in t...
rm command in Linux with examples - GeeksforGeeks
19 Feb, 2021 rm stands for remove here. rm command is used to remove objects such as files, directories, symbolic links and so on from the file system like UNIX. To be more precise, rm removes references to objects from the filesystem, where those objects might have had multiple references (for example, a file with tw...
[ { "code": null, "e": 25346, "s": 25315, "text": " \n19 Feb, 2021\n" }, { "code": null, "e": 25716, "s": 25346, "text": "rm stands for remove here. rm command is used to remove objects such as files, directories, symbolic links and so on from the file system like UNIX. To be more ...
PostgreSQL – SELF JOIN
28 Aug, 2020 PostgreSQL has a special type of join called the SELF JOIN which is used to join a table with itself. It comes in handy when comparing the column of rows within the same table. As, using the same table name for comparison is not allowed in PostgreSQL, we use aliases to set different names of the same table...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 354, "s": 28, "text": "PostgreSQL has a special type of join called the SELF JOIN which is used to join a table with itself. It comes in handy when comparing the column of rows within the same table...
Correlation Matrix in R Programming
12 Jan, 2022 Correlation refers to the relationship between two variables. It refers to the degree of linear correlation between any two random variables. This relation can be expressed as a range of values expressed within the interval [-1, 1]. The value -1 indicates a perfect non-linear (negative) relationship, 1 is ...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jan, 2022" }, { "code": null, "e": 733, "s": 28, "text": "Correlation refers to the relationship between two variables. It refers to the degree of linear correlation between any two random variables. This relation can be expressed as...
Python Strings encode() method
06 Jul, 2022 In today’s world, security holds the key in many applications. Thus the need for secure storage of passwords in the database is required and hence there is to save encoded versions of strings. To achieve this, python in its language has defined “encode()” that encodes strings with the specified encoding sc...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jul, 2022" }, { "code": null, "e": 534, "s": 28, "text": "In today’s world, security holds the key in many applications. Thus the need for secure storage of passwords in the database is required and hence there is to save encoded ver...
Median
02 Jul, 2022 Median is the middle value of a set of data. To determine the median value in a sequence of numbers, the numbers must first be arranged in ascending order. If there is an odd amount of numbers, the median value is the number that is in the middle, with the same amount of numbers below and above. If there...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Jul, 2022" }, { "code": null, "e": 210, "s": 52, "text": "Median is the middle value of a set of data. To determine the median value in a sequence of numbers, the numbers must first be arranged in ascending order. " }, { "c...
How to use Bootstrap to align labels with content into 4 columns ?
08 Jul, 2019 <!DOCTYPE html><html> <head> <title> How to use Bootstrap to align labels with content into 4 columns ? </title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="https://stac...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Jul, 2019" }, { "code": "<!DOCTYPE html><html> <head> <title> How to use Bootstrap to align labels with content into 4 columns ? </title> <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/...
Minimum Sum Path in a Triangle
14 Jun, 2022 Given a triangular structure of numbers, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. Examples : Input : 2 3 7 8 5 6 6 1 9 3 Output : 11 Explanation : 2 + 3 + 5 + 1 = 11 Input : 3 6 4 5 2 7 9 1 8 6 Output : 10 Explanation : 3 + 4 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jun, 2022" }, { "code": null, "e": 200, "s": 52, "text": "Given a triangular structure of numbers, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below." }, { "code": null...
Excel String Functions – LEFT, RIGHT, MID, LEN, and FIND
21 Aug, 2021 Excel is mostly about numerical, however, we often have data of text data type. Here are a few functions we should know to handle text data. LEFT RIGHT MID LEN FIND The LEFT function returns a given text from the left of our text string based on the number of characters specified. Syntax: LEFT(text, [num_c...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Aug, 2021" }, { "code": null, "e": 169, "s": 28, "text": "Excel is mostly about numerical, however, we often have data of text data type. Here are a few functions we should know to handle text data." }, { "code": null, "e...
The Skyline Problem | Set 2
09 Feb, 2022 Given n rectangular buildings in a 2-dimensional city, computes the skyline of these buildings, eliminating hidden lines. The main task is to view buildings from aside and remove all sections that are not visible. All buildings share common bottom and every building is represented by a triplet (left, ht, ...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Feb, 2022" }, { "code": null, "e": 269, "s": 54, "text": "Given n rectangular buildings in a 2-dimensional city, computes the skyline of these buildings, eliminating hidden lines. The main task is to view buildings from aside and re...
Should I join a mass recruiter or a startup?
01 Oct, 2018 A Startup as the name suggests, is a young company that is just beginning to develop and usually small in size and have bare minimum finances. These companies generally offer a product or service that is not currently being offered elsewhere in the market, means based on new ideas or that the founders beli...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Oct, 2018" }, { "code": null, "e": 715, "s": 52, "text": "A Startup as the name suggests, is a young company that is just beginning to develop and usually small in size and have bare minimum finances. These companies generally offer...
JavaFX | Insets Class
14 Aug, 2018 Insets class is a part of JavaFX. Insets class stores the inside offsets for the four sides of the rectangular area. Insets class inherits java.lang.Object class. Constructors of the class: Insets(double a): Constructs a new Insets instance with same value for all four offsets.Insets(double top, double rig...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Aug, 2018" }, { "code": null, "e": 191, "s": 28, "text": "Insets class is a part of JavaFX. Insets class stores the inside offsets for the four sides of the rectangular area. Insets class inherits java.lang.Object class." }, { ...
List removeAll() method in Java with Examples
02 Jan, 2019 This method is used to remove all the elements present in the collection from the specified list. Syntax: boolean removeAll(Collection c) Parameters: This method has only argument, collection of which elements are to be removed from the given list. Returns: This method returns True if elements are removed ...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Jan, 2019" }, { "code": null, "e": 126, "s": 28, "text": "This method is used to remove all the elements present in the collection from the specified list." }, { "code": null, "e": 134, "s": 126, "text": "Syntax:"...
set::rbegin() and set::rend() in C++ STL
19 Jun, 2018 set::rbegin() is a built-in function in C++ STL which returns a reverse iterator pointing to the last element in the container.Syntax:reverse_iterator set_name.rbegin() Parameters: The function does not take any parameter.Return value: The function returns a reverse iterator pointing to the last element in...
[ { "code": null, "e": 53, "s": 25, "text": "\n19 Jun, 2018" }, { "code": null, "e": 1815, "s": 53, "text": "set::rbegin() is a built-in function in C++ STL which returns a reverse iterator pointing to the last element in the container.Syntax:reverse_iterator set_name.rbegin()\nPar...
Implementing Deep Q-Learning using Tensorflow
18 Jun, 2019 Prerequisites: Deep Q-Learning This article will demonstrate how to do reinforcement learning on a larger environment than previously demonstrated. We will be implementing Deep Q-Learning technique using Tensorflow. Note: A graphics rendering library is required for the following demonstration. For Windows...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jun, 2019" }, { "code": null, "e": 59, "s": 28, "text": "Prerequisites: Deep Q-Learning" }, { "code": null, "e": 244, "s": 59, "text": "This article will demonstrate how to do reinforcement learning on a larger en...
KnockoutJS - push() Method
The KnockoutJS Observable push('value') method inserts a new item at the end of an array. arrayName.push('value') Accepts only one parameter, that is the value to be inserted. <!DOCTYPE html> <head> <title>KnockoutJS Observable Array push() Method</title> <script src = "https://ajax.aspnetcdn.com/ajax/k...
[ { "code": null, "e": 1942, "s": 1852, "text": "The KnockoutJS Observable push('value') method inserts a new item at the end of an array." }, { "code": null, "e": 1967, "s": 1942, "text": "arrayName.push('value')\n" }, { "code": null, "e": 2029, "s": 1967, "tex...
A Practical Guide to ARIMA Models using PyCaret — Part 3 | by Nikhil Gupta | Towards Data Science
In the previous article in this series, we saw the impact of the trend term on the output of an ARIMA model. This article will look at the “difference” term “d” and see how this is modeled and what it represents. The previous articles in this series can be found below. I would recommend that readers go through them fir...
[ { "code": null, "e": 385, "s": 172, "text": "In the previous article in this series, we saw the impact of the trend term on the output of an ARIMA model. This article will look at the “difference” term “d” and see how this is modeled and what it represents." }, { "code": null, "e": 641, ...
Activity Recognition in Android - GeeksforGeeks
15 Oct, 2021 In this article, we are going to learn about an API called the Activity Recognition Transition API or Transition API which is intended for detecting the activity of a particular user such as driving, walking or running, etc. There are many applications that use this Activity Recognition Transition API. Fo...
[ { "code": null, "e": 25116, "s": 25088, "text": "\n15 Oct, 2021" }, { "code": null, "e": 25790, "s": 25116, "text": "In this article, we are going to learn about an API called the Activity Recognition Transition API or Transition API which is intended for detecting the activity ...
Evolution of Software Economics - GeeksforGeeks
28 Jul, 2020 Software Economics in Software Engineering is mature research area that generally deals with most difficult and challenging problems and issues of valuing software and determining or estimation costs usually involved in its production. Boehm and Sullivan outline these difficulties and challenges and also p...
[ { "code": null, "e": 24973, "s": 24945, "text": "\n28 Jul, 2020" }, { "code": null, "e": 25394, "s": 24973, "text": "Software Economics in Software Engineering is mature research area that generally deals with most difficult and challenging problems and issues of valuing software...
How do I get the height and width of the Android Navigation Bar programmatically?
This example demonstrates how do I get the height and width of the android navigation bar programmatically. 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...
[ { "code": null, "e": 1170, "s": 1062, "text": "This example demonstrates how do I get the height and width of the android navigation bar programmatically." }, { "code": null, "e": 1299, "s": 1170, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project ...
Instance Control Flow in Java - GeeksforGeeks
17 Dec, 2021 This article will explain how Instance Control Flow takes place whenever objects are created. Whenever we are executing a java .class file, 1st Static Control Flow will be executed. In the Static Control Flow, if we are creating an object the following sequence of steps will be executed as part of Instance...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n17 Dec, 2021" }, { "code": null, "e": 24042, "s": 23948, "text": "This article will explain how Instance Control Flow takes place whenever objects are created." }, { "code": null, "e": 24270, "s": 24042, "text...
TestNG - Basic Annotations - DataProvider
@DataProvider annotation helps us write data-driven test cases. The @DataProvider annotation enables us to run a test method multiple times by passing different data-sets. The following is a list of attributes supported by the @DataProvider annotation: name The name of this data provider. If it's not supplied, the name...
[ { "code": null, "e": 2232, "s": 2060, "text": "@DataProvider annotation helps us write data-driven test cases. The @DataProvider annotation enables us to run a test method multiple times by passing different data-sets." }, { "code": null, "e": 2313, "s": 2232, "text": "The follow...
PHP mysqli_num_rows() Function
A PHP result object (of the class mysqli_result) represents the MySQL result, returned by the SELECT or, DESCRIBE or, EXPLAIN queries. The mysqli_num_rows() function accepts a result object as a parameter, retrieves the number of rows in the given result. mysqli_num_rows($result); result(Mandatory) This is an identifi...
[ { "code": null, "e": 2892, "s": 2757, "text": "A PHP result object (of the class mysqli_result) represents the MySQL result, returned by the SELECT or, DESCRIBE or, EXPLAIN queries." }, { "code": null, "e": 3013, "s": 2892, "text": "The mysqli_num_rows() function accepts a result...
Java NIO - Selector
As we know that Java NIO supports multiple transaction from and to channels and buffer.So in order to examine one or more NIO Channel's, and determine which channels are ready for data transaction i.e reading or writing Java NIO provide Selector. With Selector we can make a thread to know that which channel is ready fo...
[ { "code": null, "e": 2231, "s": 1984, "text": "As we know that Java NIO supports multiple transaction from and to channels and buffer.So in order to examine one or more NIO Channel's, and determine which channels are ready for data transaction i.e reading or writing Java NIO provide Selector." }, ...
Purpose of Unions in C/ C++
Union is a user-defined datatype. All the members of union share same memory location. Size of union is decided by the size of largest member of union. If you want to use same memory location for two or more members, union is the best for that. Unions are similar to structures. Union variables are created in same manne...
[ { "code": null, "e": 1307, "s": 1062, "text": "Union is a user-defined datatype. All the members of union share same memory location. Size of union is decided by the size of largest member of union. If you want to use same memory location for two or more members, union is the best for that." }, ...
C++ Program For Adding Two Polynomials Using Linked List - GeeksforGeeks
06 Jan, 2022 Given two polynomial numbers represented by a linked list. Write a function that add these lists means add the coefficients who have same variable powers.Example: Input: 1st number = 5x2 + 4x1 + 2x0 2nd number = -5x1 - 5x0 Output: 5x2-1x1-3x0 Input: 1st number = 5x3 + 4x2 + 2x0 ...
[ { "code": null, "e": 24606, "s": 24578, "text": "\n06 Jan, 2022" }, { "code": null, "e": 24771, "s": 24606, "text": "Given two polynomial numbers represented by a linked list. Write a function that add these lists means add the coefficients who have same variable powers.Example: ...
QTP - Automation Object Model
QTP itself can be automated using the COM interface that is provided by HP-QTP. Automation object model is a set of objects, methods, and properties that helps the testers to control the configuration settings and execute the scripts using the QTP interface. The Key Configurations/actions that can be controlled (but no...
[ { "code": null, "e": 2475, "s": 2122, "text": "QTP itself can be automated using the COM interface that is provided by HP-QTP. Automation object model is a set of objects, methods, and properties that helps the testers to control the configuration settings and execute the scripts using the QTP inter...
How to convert Matplotlib figure to PIL Image object?
To convert matplotlib figure to PIL image object, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Create a new figure or activate an existing figure. Plot a list using plot() method. Initialize the in-memory buffer. Save the buffered image. Use PIL image to ...
[ { "code": null, "e": 1146, "s": 1062, "text": "To convert matplotlib figure to PIL image object, we can take the following steps −" }, { "code": null, "e": 1222, "s": 1146, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code": ...
C# program to convert a list of characters into a string
Firstly, declare the character array and set the value of each character − char[] ch = new char[5]; ch[0] = 'H'; ch[1] = 'e'; ch[2] = 'l'; ch[3] = 'l'; ch[4] = 'o'; Now, use the string class constructor and create a new string from the above array of characters − string myChar = new string(ch); Let us see the code to ...
[ { "code": null, "e": 1137, "s": 1062, "text": "Firstly, declare the character array and set the value of each character −" }, { "code": null, "e": 1228, "s": 1137, "text": "char[] ch = new char[5];\n\nch[0] = 'H';\nch[1] = 'e';\nch[2] = 'l';\nch[3] = 'l';\nch[4] = 'o';" }, { ...
Python Program to Create a List of Tuples with the First Element as the Number and Second Element as the Square of the Number
When it is required to create a list of tuple, and have the first element as the number, and the second element as the square of the element, list comprehension can be used. Below is the demonstration of the same − Live Demo my_list = [23, 42, 67, 89, 11, 32] print(“The list is “) print(my_list) print(“The resultant t...
[ { "code": null, "e": 1236, "s": 1062, "text": "When it is required to create a list of tuple, and have the first element as the number, and the second element as the square of the element, list comprehension can be used." }, { "code": null, "e": 1277, "s": 1236, "text": "Below is...
Clock Speed - GeeksforGeeks
29 Dec, 2020 A CPU can not operate alone when we give huge amount of data and instructions to it simultaneously. It needs other components to work for it and for this it requires a clock which synchronizes all the components of the system. Rate at which a processor completes its total processing cycle in one second is ...
[ { "code": null, "e": 24806, "s": 24778, "text": "\n29 Dec, 2020" }, { "code": null, "e": 25033, "s": 24806, "text": "A CPU can not operate alone when we give huge amount of data and instructions to it simultaneously. It needs other components to work for it and for this it requir...
Core Dump (Segmentation fault) in C/C++
In this tutorial, we will be discussing a program to understand core dump (segmentation fault) in C/C++. It happens due to reasons like when code tries to write on read only memory or tries to access corrupt memory location. int main(){ char *str; str = "GfG"; *(str+1) = 'n'; return 0; } #include <iostream>...
[ { "code": null, "e": 1167, "s": 1062, "text": "In this tutorial, we will be discussing a program to understand core dump (segmentation fault) in C/C++." }, { "code": null, "e": 1287, "s": 1167, "text": "It happens due to reasons like when code tries to write on read only memory o...
How to use Consumer and BiConsumer interfaces in lambda expression in Java?
A Consumer interface is a predefined functional interface that can be used when creating lambda expressions or method references. This interface represents an operation that accepts a single input parameter and doesn't return anything. It contains only one method named accept(). The BiConsumer interface is similar to a...
[ { "code": null, "e": 1464, "s": 1062, "text": "A Consumer interface is a predefined functional interface that can be used when creating lambda expressions or method references. This interface represents an operation that accepts a single input parameter and doesn't return anything. It contains only ...
Speed Up your Algorithms Part 2— Numba | by Puneet Grover | Towards Data Science
This is the third post in a series I am writing. All posts are here: Speed Up your Algorithms Part 1 — PyTorchSpeed Up your Algorithms Part 2 — NumbaSpeed Up your Algorithms Part 3 — ParallelizationSpeed Up your Algorithms Part 4 — Dask Speed Up your Algorithms Part 1 — PyTorch Speed Up your Algorithms Part 2 — Numba S...
[ { "code": null, "e": 241, "s": 172, "text": "This is the third post in a series I am writing. All posts are here:" }, { "code": null, "e": 409, "s": 241, "text": "Speed Up your Algorithms Part 1 — PyTorchSpeed Up your Algorithms Part 2 — NumbaSpeed Up your Algorithms Part 3 — Par...
Find number of solutions of a linear equation of n variables - GeeksforGeeks
05 Jan, 2022 Given a linear equation of n variables, find number of non-negative integer solutions of it. For example, let the given equation be “x + 2y = 5”, solutions of this equation are “x = 1, y = 2”, “x = 5, y = 0” and “x = 3, y = 1”. It may be assumed that all coefficients in given equation are positive integers...
[ { "code": null, "e": 24878, "s": 24850, "text": "\n05 Jan, 2022" }, { "code": null, "e": 25198, "s": 24878, "text": "Given a linear equation of n variables, find number of non-negative integer solutions of it. For example, let the given equation be “x + 2y = 5”, solutions of this...
Matplotlib.pyplot.fill() function in Python - GeeksforGeeks
25 Nov, 2020 Matplotlib.pyplot.fill() function is used to fill the area enclosed by polygon /curve. Syntax: matplotlib.pyplot.fill(*args, data=None, **kwargs) Parameters:*args: sequence of x, y, [color] sequence of x,y = To traverse the boundaries of the polygon or curve defined by lists of x and y positions of it...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n25 Nov, 2020" }, { "code": null, "e": 23988, "s": 23901, "text": "Matplotlib.pyplot.fill() function is used to fill the area enclosed by polygon /curve." }, { "code": null, "e": 24047, "s": 23988, "text": "Syn...
How to get the row count of a Pandas DataFrame?
To get the row count of a Pandas DataFrame, we can use the length of DataFrame index. Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df. Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df. Print the input DataFrame. Print the input DataFrame. Print the le...
[ { "code": null, "e": 1148, "s": 1062, "text": "To get the row count of a Pandas DataFrame, we can use the length of DataFrame index." }, { "code": null, "e": 1232, "s": 1148, "text": "Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df." }, { ...
Modular Multiplicative Inverse | Practice | GeeksforGeeks
Given two integers ‘a’ and ‘m’. The task is to find the smallest modular multiplicative inverse of ‘a’ under modulo ‘m’. Example 1: Input: a = 3 m = 11 Output: 4 Explanation: Since (4*3) mod 11 = 1, 4 is modulo inverse of 3. One might think, 15 also as a valid output as "(15*3) mod 11" is also 1, but 15 is not in ...
[ { "code": null, "e": 399, "s": 278, "text": "Given two integers ‘a’ and ‘m’. The task is to find the smallest modular multiplicative inverse of ‘a’ under modulo ‘m’." }, { "code": null, "e": 412, "s": 401, "text": "Example 1:" }, { "code": null, "e": 636, "s": 412...
Setting Up Twitter for Text mining in R. | by Lorna Maria A | Towards Data Science
Over the years, social media has become a hot spot for data mining. Every day there are always topics trending, campaigns running and groups of people discussing different global, continental or national issues.This is a major target to harness data. In this article, we focus on Twitter as a centre of opinions and sent...
[ { "code": null, "e": 422, "s": 171, "text": "Over the years, social media has become a hot spot for data mining. Every day there are always topics trending, campaigns running and groups of people discussing different global, continental or national issues.This is a major target to harness data." }...
Java Program to enable drag and drop between two text fields in Java
Yes, we can enable drag and drop between two text fields in Java. Let us first create two JTextFields and set content in it as shown below − JTextField one = new JTextField(20); one.setText("You can drag!"); JTextField two = new JTextField(20); two.setText("Drag here or there"); Now, we will enable and drag and drop fo...
[ { "code": null, "e": 1203, "s": 1062, "text": "Yes, we can enable drag and drop between two text fields in Java. Let us first create two JTextFields and set content in it as shown below −" }, { "code": null, "e": 1342, "s": 1203, "text": "JTextField one = new JTextField(20);\none...
Python - Create a Time Series Plot with multiple columns using Line Plot
To create a Time Series Plot with multiple columns using Line Plot, use the lineplot(). At first, import the required libraries − import seaborn as sb import pandas as pd import matplotlib.pyplot as plt Create a DataFrame. We have multiple columns in our DataFrame − dataFrame = pd.DataFrame({'Date_of_Purchase': ['2018-...
[ { "code": null, "e": 1192, "s": 1062, "text": "To create a Time Series Plot with multiple columns using Line Plot, use the lineplot(). At first, import the required libraries −" }, { "code": null, "e": 1265, "s": 1192, "text": "import seaborn as sb\nimport pandas as pd\nimport ma...
HTML | DOM Input Image value Property - GeeksforGeeks
31 Mar, 2022 The Input Image value Property in HTML DOM is used to sets or returns the value of the value attribute of the Input Image. Syntax: It returns the value Property.imageObject.value imageObject.value It sets the value Property.imageObject.value = value; imageObject.value = value; Property Value It contains th...
[ { "code": null, "e": 24797, "s": 24769, "text": "\n31 Mar, 2022" }, { "code": null, "e": 24920, "s": 24797, "text": "The Input Image value Property in HTML DOM is used to sets or returns the value of the value attribute of the Input Image." }, { "code": null, "e": 249...
Check if a number can be represented as difference of two positive perfect cubes
16 Jul, 2021 Given a positive integer N, the task is to check whether N can be represented as the difference between two positive perfect cubes or not. If found to be true, then print “Yes”. Otherwise, print “No”. Examples: Input: N = 124Output: YesExplanation: Since 124 can be represented as (125 – 1) = (53 – 13). The...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jul, 2021" }, { "code": null, "e": 253, "s": 52, "text": "Given a positive integer N, the task is to check whether N can be represented as the difference between two positive perfect cubes or not. If found to be true, then print “Ye...
wxPython – Change labels using button
10 May, 2020 In this article we are going to learn how to make button interactive with the frame. In this article we will change the text label on the pressing button. So let’s start with the steps. Step 1: Create a static text on the frame.Step 2: Add button to the frame.Step 3: Create event function for the button.St...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 May, 2020" }, { "code": null, "e": 214, "s": 28, "text": "In this article we are going to learn how to make button interactive with the frame. In this article we will change the text label on the pressing button. So let’s start with ...
How to measure elapsed time in Python?
07 Jul, 2022 In Python, we have three modules that help us find the execution time of a program. We would explore each of these in this article and also some of its functions that might help us to execute the programs. The modules we would be using are timeit, time, and Datetime. We are going to cover Python Program to...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jul, 2022" }, { "code": null, "e": 372, "s": 28, "text": "In Python, we have three modules that help us find the execution time of a program. We would explore each of these in this article and also some of its functions that might he...
LocalDate parse() method in Java with Examples
27 Jan, 2022 In LocalTime class, there are two types of parse() method depending upon the parameters passed to it. parse() method of a LocalTime class used to get an instance of LocalTime from a string such as ‘2018-10-23’ passed as parameter.The string must have a valid date-time and is parsed using DateTimeFormatter...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Jan, 2022" }, { "code": null, "e": 131, "s": 28, "text": "In LocalTime class, there are two types of parse() method depending upon the parameters passed to it. " }, { "code": null, "e": 361, "s": 131, "text": "par...
ObjectAnimator in Android with Example
15 Dec, 2021 ObjectAnimator is a Subclass of ValueAnimator, which allows us to set a target object and object property to animate. It is an easy way to change the properties of a view with a specified duration. We can provide the end position and duration of the animation. Let us create a simple version of the Glass Br...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Dec, 2021" }, { "code": null, "e": 385, "s": 28, "text": "ObjectAnimator is a Subclass of ValueAnimator, which allows us to set a target object and object property to animate. It is an easy way to change the properties of a view with...
How to check if a variable exists in JavaScript?
To check if a variable exists in JavaScript, you need to check it against null as in the following code. Here, we’re checking the existence of variable myVar − <html> <body> <script> var myVar = 20; if(myVar !== undefined && myVar !== null) { document.write("Variable exists"); ...
[ { "code": null, "e": 1347, "s": 1187, "text": "To check if a variable exists in JavaScript, you need to check it against null as in the following code. Here, we’re checking the existence of variable myVar −" }, { "code": null, "e": 1550, "s": 1347, "text": "<html>\n <body>\n ...
How to change font size using jQuery ?
30 Sep, 2021 In this article, we will see how to change the font size of an element using jQuery. To change the font size of an element, we will use css() method. The css() method is used to change the style property of the selected element. Syntax: $(selector).css(property) Return value: It will return the value of t...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Sep, 2021" }, { "code": null, "e": 179, "s": 28, "text": "In this article, we will see how to change the font size of an element using jQuery. To change the font size of an element, we will use css() method. " }, { "code": nu...
How to click a link whose href has a certain substring in Selenium?
We can click a link whose href has a certain substring in the Selenium webdriver. There are multiple ways to perform this action. We can use find_element_by_partial_link_text() method to click on a link having a substring. The find_element_by_partial_link_text() method is used to identify an element by partially matchi...
[ { "code": null, "e": 1410, "s": 1187, "text": "We can click a link whose href has a certain substring in the Selenium webdriver. There are multiple ways to perform this action. We can use find_element_by_partial_link_text() method to click on a link having a substring." }, { "code": null, ...
Libraries in Python
18 Oct, 2021 Normally, a library is a collection of books or is a room or place where many books are stored to be used later. Similarly, in the programming world, a library is a collection of precompiled codes that can be used later on in a program for some specific well-defined operations. Other than pre-compiled code...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 Oct, 2021" }, { "code": null, "e": 466, "s": 54, "text": "Normally, a library is a collection of books or is a room or place where many books are stored to be used later. Similarly, in the programming world, a library is a collectio...
HTML canvas clearRect() Method
The clearRect() method in HTML canvas is used to clear the pixels in a given rectangle. The <canvas> element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the canvas i.e. height and width respectively. Following is the syntax − ctx.clear...
[ { "code": null, "e": 1347, "s": 1062, "text": "The clearRect() method in HTML canvas is used to clear the pixels in a given rectangle. The <canvas> element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the canvas i.e....
Java Program to Check if a Given Integer is Odd or Even - GeeksforGeeks
01 Nov, 2021 A number that is divisible by 2 and generates a remainder of 0 is called an even number. All the numbers ending with 0, 2, 4, 6, and 8 are even numbers. On the other hand, number that is not divisible by 2 and generates a remainder of 1 is called an odd number. All the numbers ending with 1, 3, 5,7, and 9 ...
[ { "code": null, "e": 23974, "s": 23946, "text": "\n01 Nov, 2021" }, { "code": null, "e": 24471, "s": 23974, "text": "A number that is divisible by 2 and generates a remainder of 0 is called an even number. All the numbers ending with 0, 2, 4, 6, and 8 are even numbers. On the oth...
Hadoop - Command Reference
There are many more commands in "$HADOOP_HOME/bin/hadoop fs" than are demonstrated here, although these basic operations will get you started. Running ./bin/hadoop dfs with no additional arguments will list all the commands that can be run with the FsShell system. Furthermore, $HADOOP_HOME/bin/hadoop fs -help commandN...
[ { "code": null, "e": 2259, "s": 1851, "text": "There are many more commands in \"$HADOOP_HOME/bin/hadoop fs\" than are demonstrated here, although these basic operations will get you started. Running ./bin/hadoop dfs with no additional arguments will list all the commands that can be run with the Fs...
How to do conditional update in MongoDB?
Use update() for conditional update in MongoDB. Let us first create a collection with documents − > db.demo402.insertOne({id:101,"Name":"Chris"}); { "acknowledged" : true, "insertedId" : ObjectId("5e61214efac4d418a0178585") } > db.demo402.insertOne({id:102,"Name":"David"}); { "acknowledged" : true, "inserte...
[ { "code": null, "e": 1160, "s": 1062, "text": "Use update() for conditional update in MongoDB. Let us first create a collection with documents −" }, { "code": null, "e": 1561, "s": 1160, "text": "> db.demo402.insertOne({id:101,\"Name\":\"Chris\"});\n{\n \"acknowledged\" : true,...
CNTK - Recurrent Neural Network
Now, let us understand how to construct a Recurrent Neural Network (RNN) in CNTK. We learned how to classify images with a neural network, and it is one of the iconic jobs in deep learning. But, another area where neural network excels at and lot of research happening is Recurrent Neural Networks (RNN). Here, we are go...
[ { "code": null, "e": 2301, "s": 2219, "text": "Now, let us understand how to construct a Recurrent Neural Network (RNN) in CNTK." }, { "code": null, "e": 2644, "s": 2301, "text": "We learned how to classify images with a neural network, and it is one of the iconic jobs in deep le...
C# program to get max occurred character in a String
To get the maximum occurred character in a string, loop until the length of the given string and find the occurrence. With that, set a new array to calculate − for (int i = 0; i < s.Length; i++) a[s[i]]++; } The values we used above − String s = "livelife!"; int[] a = new int[maxCHARS]; Now display the character and...
[ { "code": null, "e": 1180, "s": 1062, "text": "To get the maximum occurred character in a string, loop until the length of the given string and find the occurrence." }, { "code": null, "e": 1222, "s": 1180, "text": "With that, set a new array to calculate −" }, { "code": ...
Real-time Object Detection on CPU | by Praneet Bomma | Towards Data Science
Real-time Object Detection on CPU using OpenVino. Sounds magical right? Well, let’s actually do it to believe it. The first time someone asked me if it was possible to do real-time object detection on a CPU, I shrugged off the question, thinking, “Must be kidding?”. Well, that’s possible! I tried it to actually believe...
[ { "code": null, "e": 286, "s": 172, "text": "Real-time Object Detection on CPU using OpenVino. Sounds magical right? Well, let’s actually do it to believe it." }, { "code": null, "e": 439, "s": 286, "text": "The first time someone asked me if it was possible to do real-time objec...
How to Detect ARP Spoof Attack using Scapy in Python? - GeeksforGeeks
15 Mar, 2021 ARP Spoofing is also known as ARP Poisoning which is a type of cyberattack in which a malicious user sends falsified ARP (Address Resolution Protocol) messages over a LAN (Local Area Network). This results in the linking of an attacker’s MAC Address with the IP Address of a legitimate computer or server on...
[ { "code": null, "e": 24318, "s": 24290, "text": "\n15 Mar, 2021" }, { "code": null, "e": 24639, "s": 24318, "text": "ARP Spoofing is also known as ARP Poisoning which is a type of cyberattack in which a malicious user sends falsified ARP (Address Resolution Protocol) messages ove...
Elixir - Lists and Tuples
A linked list is a heterogeneous list of elements that are stored at different locations in memory and are kept track of by using references. Linked lists are data structures especially used in functional programming. Elixir uses square brackets to specify a list of values. Values can be of any type − [1, 2, true, 3] W...
[ { "code": null, "e": 2400, "s": 2182, "text": "A linked list is a heterogeneous list of elements that are stored at different locations in memory and are kept track of by using references. Linked lists are data structures especially used in functional programming." }, { "code": null, "e"...
How to Schedule Flights in Python | by Khuyen Tran | Towards Data Science
Imagine you are an owner of an airline. Your airline needs to assign its airplanes based in New York to cover all the upcoming scheduled flights. There are 10 flights and 8 sequences of flights. Each sequence of flights consists of multiple flights. For example, a sequence of flights can consist of flights from New Yor...
[ { "code": null, "e": 317, "s": 171, "text": "Imagine you are an owner of an airline. Your airline needs to assign its airplanes based in New York to cover all the upcoming scheduled flights." }, { "code": null, "e": 421, "s": 317, "text": "There are 10 flights and 8 sequences of ...
How to plot two dotted lines and set marker using Matplotlib?
In this program, we will plot two lines using the matplot library. Before starting to code, we need to first import the matplotlib library using the following command − Import matplotlib.pyplot as plt Pyplot is a collection of command style functions that make matplotlib work like MATLAB. Step 1: Import matplotlib.pypl...
[ { "code": null, "e": 1231, "s": 1062, "text": "In this program, we will plot two lines using the matplot library. Before starting to code, we need to first import the matplotlib library using the following command −" }, { "code": null, "e": 1263, "s": 1231, "text": "Import matplo...
How to Access the Fantasy Premier League API, Build a Dataframe, and Analyze Using Jupyter, Python, and Pandas | by David Allen | Towards Data Science
As of the writing of this tutorial, before match week 30+, I’m ranked #3,919 in the world in Fantasy Premier League Soccer (team: Yin Aubameyang), which equates to the top 0.05% in the world. It didn’t happen by accident, and it wasn’t all luck. It’s taken several years of playing this game to learn the patience, skill...
[ { "code": null, "e": 364, "s": 172, "text": "As of the writing of this tutorial, before match week 30+, I’m ranked #3,919 in the world in Fantasy Premier League Soccer (team: Yin Aubameyang), which equates to the top 0.05% in the world." }, { "code": null, "e": 418, "s": 364, "te...
Tk - Mega Widgets
Mega widgets include many complex widgets which is often required in some large scale Tk applications. The list of available mega widgets are as shown below − Widget for displaying dialog boxes. Widget that allows users to choose numbers. Widget that combines an entry with a list of choices available to the use. Tabbed...
[ { "code": null, "e": 2360, "s": 2201, "text": "Mega widgets include many complex widgets which is often required in some large scale Tk applications. The list of available mega widgets are as shown below −" }, { "code": null, "e": 2396, "s": 2360, "text": "Widget for displaying d...
How to prevent browser to remember password in HTML ? - GeeksforGeeks
24 Feb, 2022 Browsers remember information which is submitted through <input fields on websites for the first time when we use that particular website in that browser. So another time when we again submit data on that website through that browser then there is a suggestion list of submitted values in that field. Many t...
[ { "code": null, "e": 25370, "s": 25342, "text": "\n24 Feb, 2022" }, { "code": null, "e": 25970, "s": 25370, "text": "Browsers remember information which is submitted through <input fields on websites for the first time when we use that particular website in that browser. So anoth...
BabylonJS - Mesh
In this chapter, we will learn to create different shapes using the mesh builder. We have already learnt how to create shapes in one of our previous chapters. The difference is that with meshbuilder gives you the flexibility to add color, images to the shapes. Let us now see how to create box using MeshBuilder. <!docty...
[ { "code": null, "e": 2342, "s": 2183, "text": "In this chapter, we will learn to create different shapes using the mesh builder. We have already learnt how to create shapes in one of our previous chapters." }, { "code": null, "e": 2444, "s": 2342, "text": "The difference is that ...
How to Fix Race Condition using Atomic Functions in Golang? - GeeksforGeeks
19 May, 2020 Two or more processes executing in a system with an illusion of concurrency and accessing shared data may try to change the shared data at the same time. This condition in the system is known as a race condition. To see the sample code for Race Condition in Golang, you can refer to this article.Atomic pack...
[ { "code": null, "e": 24370, "s": 24342, "text": "\n19 May, 2020" }, { "code": null, "e": 24858, "s": 24370, "text": "Two or more processes executing in a system with an illusion of concurrency and accessing shared data may try to change the shared data at the same time. This cond...
Tryit Editor v3.7
Tryit: HTML elements can also refer to more than one class
[]
Reluctant quantifiers Java Regular expressions
Greedy quantifiers are the default quantifiers. A greedy quantifier matches as much as possible from the input string (longest match possible) if match not occurred it leaves the last character and matches again. Whereas a reluctant or, non-greedy quantifier matches as little as possible, initially the non-greedy quant...
[ { "code": null, "e": 1275, "s": 1062, "text": "Greedy quantifiers are the default quantifiers. A greedy quantifier matches as much as possible from the input string (longest match possible) if match not occurred it leaves the last character and matches again." }, { "code": null, "e": 150...
Clojure - Loop Statement
The loop special form is not like a ‘for’ loop. The usage of loop is the same as the let binding. However, loop sets a recursion point. The recursion point is designed to use with recur, which means loop is always used with recur. To make a loop happen, the number of arguments (arity) specified for recurs must coincide...
[ { "code": null, "e": 2776, "s": 2374, "text": "The loop special form is not like a ‘for’ loop. The usage of loop is the same as the let binding. However, loop sets a recursion point. The recursion point is designed to use with recur, which means loop is always used with recur. To make a loop happen,...
An Overview of Monte Carlo Methods | by Christopher Pease | Towards Data Science
Monte Carlo (MC) methods are a subset of computational algorithms that use the process of repeated random sampling to make numerical estimations of unknown parameters. They allow for the modeling of complex situations where many random variables are involved, and assessing the impact of risk. The uses of MC are incredi...
[ { "code": null, "e": 931, "s": 171, "text": "Monte Carlo (MC) methods are a subset of computational algorithms that use the process of repeated random sampling to make numerical estimations of unknown parameters. They allow for the modeling of complex situations where many random variables are invol...
Huffman Decoding-1 | Practice | GeeksforGeeks
Given a string S, implement Huffman Encoding and Decoding. Example 1: Input : abc Output : abc Example 2: Input : geeksforgeeks Output : geeksforgeeks Your task: You don't need to read input or print anything. Your task is to complete the function decode_file(), which takes root of the tree formed while encoding an...
[ { "code": null, "e": 297, "s": 238, "text": "Given a string S, implement Huffman Encoding and Decoding." }, { "code": null, "e": 308, "s": 297, "text": "Example 1:" }, { "code": null, "e": 333, "s": 308, "text": "Input : abc\nOutput : abc" }, { "code":...
C++ Mathematical Functions
Mathematical calculations can be done in C++ programming language using the mathematical functions which are included in math or cmath library. These mathematical functions are defined to do complex mathematical calculations. Let’s learn each of them one by one − The sin method is used to calculate the sin of the angle...
[ { "code": null, "e": 1326, "s": 1062, "text": "Mathematical calculations can be done in C++ programming language using the mathematical functions which are included in math or cmath library. These mathematical functions are defined to do complex mathematical calculations. Let’s learn each of them on...
How to Choose the Best Keras Pre-Trained Model for Image Classification | by Marie Stephen Leo | Towards Data Science
Deciding which pre-trained model to use in your Deep Learning task ranks at the same level of classical dilemmas like what movie to watch on Netflix and what cereal to buy at the supermarket (P.S. buy the one with the least sugar and highest fiber content). This post will use a data-driven approach in Python to find ou...
[ { "code": null, "e": 677, "s": 172, "text": "Deciding which pre-trained model to use in your Deep Learning task ranks at the same level of classical dilemmas like what movie to watch on Netflix and what cereal to buy at the supermarket (P.S. buy the one with the least sugar and highest fiber content...
MongoEngine - Fields
A MongoEngine document class has one or more attributes. Each attribute is an object of Field class. BaseField is the base class or all field types. The BaseField class constructor has the following arguments − BaseField(db_field, required, default, unique, primary_key) The db_field represents name of database field. ...
[ { "code": null, "e": 2521, "s": 2310, "text": "A MongoEngine document class has one or more attributes. Each attribute is an object of Field class. BaseField is the base class or all field types. The BaseField class constructor has the following arguments −" }, { "code": null, "e": 2582,...
How to Create a Simple Program in C++?
To get a very simple program in C++, you'll first need to set it up and then create programs for it. The following steps list how to get started in C++ using a very simple program. This is the first step you'd want to do before starting learning to program in C++. There are good free C++ compilers available for all maj...
[ { "code": null, "e": 1243, "s": 1062, "text": "To get a very simple program in C++, you'll first need to set it up and then create programs for it. The following steps list how to get started in C++ using a very simple program." }, { "code": null, "e": 1550, "s": 1243, "text": "T...
Designing the Star Schema in Data Warehousing - GeeksforGeeks
16 Nov, 2021 Star schema is the fundamental schema among the data mart schema and it is simplest. This schema is widely used to develop or build a data warehouse and dimensional data marts. It includes one or more fact tables indexing any number of dimensional tables. The star schema is a necessary cause of the snowfla...
[ { "code": null, "e": 23837, "s": 23809, "text": "\n16 Nov, 2021" }, { "code": null, "e": 24205, "s": 23837, "text": "Star schema is the fundamental schema among the data mart schema and it is simplest. This schema is widely used to develop or build a data warehouse and dimensiona...
Here’s how you can accelerate your Data Science on GPU | by George Seif | Towards Data Science
Want to be inspired? Come join my Super Quotes newsletter. 😎 Data Scientists need computing power. Whether you’re processing a big dataset with Pandas or running some computation on a massive matrix with Numpy, you’ll need a powerful machine to get the job done in a reasonable amount of time. Over the past several yea...
[ { "code": null, "e": 232, "s": 171, "text": "Want to be inspired? Come join my Super Quotes newsletter. 😎" }, { "code": null, "e": 465, "s": 232, "text": "Data Scientists need computing power. Whether you’re processing a big dataset with Pandas or running some computation on a m...
How to Install Scipy in Python on Windows? - GeeksforGeeks
09 Sep, 2021 Scipy is a python library that is useful in solving many mathematical equations and algorithms. It is designed on the top of Numpy library that gives more extension of finding scientific mathematical formulae like Matrix Rank, Inverse, polynomial equations, LU Decomposition, etc. Using its high-level funct...
[ { "code": null, "e": 24421, "s": 24393, "text": "\n09 Sep, 2021" }, { "code": null, "e": 24826, "s": 24421, "text": "Scipy is a python library that is useful in solving many mathematical equations and algorithms. It is designed on the top of Numpy library that gives more extensio...
How do you pass a command line argument in Java program?
After writing a Java program you need to compile it using the command javac and run it using the command java. Consider the following code − public class Sample{ public static void main(String[] args){ int a = 20; int b = 30; int c = a+b; System.out.println("Sum of the two numbers is "+c); ...
[ { "code": null, "e": 1203, "s": 1062, "text": "After writing a Java program you need to compile it using the command javac and run it using the command java. Consider the following code −" }, { "code": null, "e": 1387, "s": 1203, "text": "public class Sample{\n public static vo...
Policy and Value Iteration. An Introduction to Reinforcement... | by Steve Roberts | Towards Data Science
Baby Robot has been steadily making his way back to his mum. So far he has: Overcome the Bandit Problem to recharge his batteries Solved the Prediction Problem to evaluate the relative value of states in an environment, letting him escape from a simple grid level. Seen how an environment can be represented as a Markov ...
[ { "code": null, "e": 248, "s": 172, "text": "Baby Robot has been steadily making his way back to his mum. So far he has:" }, { "code": null, "e": 302, "s": 248, "text": "Overcome the Bandit Problem to recharge his batteries" }, { "code": null, "e": 437, "s": 302, ...
Facial Data-Based Deep Learning: Emotion, Age and Gender Prediction | by Abhijit Roy | Towards Data Science
Deep Learning has found huge applications in the fields of Computer vision. Some of the most important applications of computer vision are in the fields that deal with facial data. Face Detection and recognition are being widely used in security-based applications. If you want to explore these two areas feel free to go...
[ { "code": null, "e": 502, "s": 172, "text": "Deep Learning has found huge applications in the fields of Computer vision. Some of the most important applications of computer vision are in the fields that deal with facial data. Face Detection and recognition are being widely used in security-based app...
C# Hexadecimal ("X") Format Specifier
The hexadecimal ("X") format specifier is used to convert a number to a string of hexadecimal digits. Set the case of the format specifier for uppercase or lowercase characters to be worked on hexadecimal digits greater than 9. Let us understand this with an example − “X” for PQR, whereas “x” for pqr Live Demo using S...
[ { "code": null, "e": 1164, "s": 1062, "text": "The hexadecimal (\"X\") format specifier is used to convert a number to a string of hexadecimal digits." }, { "code": null, "e": 1290, "s": 1164, "text": "Set the case of the format specifier for uppercase or lowercase characters to ...
How to resolve - Relative path is not supported in PowerShell DSC?
“Relative path is not supported” error generally occurs with the PowerShell DSC when we download a file from online or Website and we use “File” DscResource for that. In the below example, we are downloading the PowerShell 7.1.4 version from GitHub using DSC to the local computer and we get the error below. Configurati...
[ { "code": null, "e": 1229, "s": 1062, "text": "“Relative path is not supported” error generally occurs with the PowerShell DSC when we download a file from online or Website and we use “File” DscResource for that." }, { "code": null, "e": 1371, "s": 1229, "text": "In the below ex...
How can I filter string value with starting letter?
Let’s say the following is our String List − List list = Arrays.asList("Jonny", "David", "Tony", "Jacob", "Smith", "Bravo", "Gayle", "John"); Now filter the string value with starting letter − Stream stream = list.stream().filter(name -> name.startsWith("J")); The following is an example to filter string value with sta...
[ { "code": null, "e": 1107, "s": 1062, "text": "Let’s say the following is our String List −" }, { "code": null, "e": 1204, "s": 1107, "text": "List list = Arrays.asList(\"Jonny\", \"David\", \"Tony\", \"Jacob\", \"Smith\", \"Bravo\", \"Gayle\", \"John\");" }, { "code": nu...
Capture picture from iOS camera using Swift
To capture pictures from a camera in swift we can use AVFoundation which is a framework in iOS SDK, but we should try to avoid using it until we need a lot of custom features in our camera application. In this example, we’ll only capture a picture from the camera and display it on the view. We’ll be using image picker ...
[ { "code": null, "e": 1423, "s": 1062, "text": "To capture pictures from a camera in swift we can use AVFoundation which is a framework in iOS SDK, but we should try to avoid using it until we need a lot of custom features in our camera application. In this example, we’ll only capture a picture from ...
Parenthesis Checker | Practice | GeeksforGeeks
Given an expression string x. Examine whether the pairs and the orders of “{“,”}”,”(“,”)”,”[“,”]” are correct in exp. For example, the function should return 'true' for exp = “[()]{}{[()()]()}” and 'false' for exp = “[(])”. Example 1: Input: {([])} Output: true Explanation: { ( [ ] ) }. Same colored brackets can form...
[ { "code": null, "e": 462, "s": 238, "text": "Given an expression string x. Examine whether the pairs and the orders of “{“,”}”,”(“,”)”,”[“,”]” are correct in exp.\nFor example, the function should return 'true' for exp = “[()]{}{[()()]()}” and 'false' for exp = “[(])”." }, { "code": null, ...
Fortran - If-then-else construct
An if... then statement can be followed by an optional else statement, which executes when the logical expression is false. The basic syntax of an if... then... else statement is − if (logical expression) then statement(s) else other_statement(s) end if However, if you give a name to the if block, then th...
[ { "code": null, "e": 2270, "s": 2146, "text": "An if... then statement can be followed by an optional else statement, which executes when the logical expression is false." }, { "code": null, "e": 2327, "s": 2270, "text": "The basic syntax of an if... then... else statement is −" ...
Android | Android Application File Structure - GeeksforGeeks
05 Mar, 2021 It is very important to know about the basics of Android Studio’s file structure. In this article, some important files/folders, and their significance is explained for the easy understanding of the Android studio work environment. In the below image, several important files are marked: All of the files ma...
[ { "code": null, "e": 24664, "s": 24636, "text": "\n05 Mar, 2021" }, { "code": null, "e": 24896, "s": 24664, "text": "It is very important to know about the basics of Android Studio’s file structure. In this article, some important files/folders, and their significance is explaine...
Simple Calculator via UDP in Java - GeeksforGeeks
07 Jan, 2022 Networking is two-way communication between a host and a server, rather than an exchange of information. Any server is set up to respond to specific queries as requested by a client. There are many different kinds of servers based on the utility they provide to the users. Some examples include File Server,...
[ { "code": null, "e": 24502, "s": 24474, "text": "\n07 Jan, 2022" }, { "code": null, "e": 25969, "s": 24502, "text": "Networking is two-way communication between a host and a server, rather than an exchange of information. Any server is set up to respond to specific queries as req...
Eye Tracking Metrics - Machine Learning - GeeksforGeeks
09 Mar, 2021 Eye-tracking is an important and essential field researchers sought after. Eye-tracking is also an emerging field and has its benefits and is used in multiple ways. Fixation and Saccade are two basic components of eye movements used in Eye tracking. A saccade is the quick or immediate eye movement between...
[ { "code": null, "e": 24344, "s": 24316, "text": "\n09 Mar, 2021" }, { "code": null, "e": 24509, "s": 24344, "text": "Eye-tracking is an important and essential field researchers sought after. Eye-tracking is also an emerging field and has its benefits and is used in multiple ways...
Word Boggle | Practice | GeeksforGeeks
Given a dictionary of distinct words and an M x N board where every cell has one character. Find all possible words from the dictionary that can be formed by a sequence of adjacent characters on the board. We can move to any of 8 adjacent characters Note: While forming a word we can move to any of the 8 adjacent cells....
[ { "code": null, "e": 488, "s": 238, "text": "Given a dictionary of distinct words and an M x N board where every cell has one character. Find all possible words from the dictionary that can be formed by a sequence of adjacent characters on the board. We can move to any of 8 adjacent characters" },...
Date yyyymmdd format in Shell Script - 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 Getting date yyyymmdd format in Shell Script ...
[ { "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, ...
IBM Placement Paper | Verbal Reasoning Set - 1 - GeeksforGeeks
21 May, 2019 This is an IBM model paper for Verbal Aptitude. This placement paper will cover aptitude that is asked in IBM placements and also strictly follows the pattern of questions asked in IBM papers. It is recommended to solve each one of the following questions to increase your chances of clearing the IBM placem...
[ { "code": null, "e": 24759, "s": 24731, "text": "\n21 May, 2019" }, { "code": null, "e": 25071, "s": 24759, "text": "This is an IBM model paper for Verbal Aptitude. This placement paper will cover aptitude that is asked in IBM placements and also strictly follows the pattern of q...
Sum of subset differences in C++
In this problem, we are given a set S of n number. Our task is to create a program to find the sum of subset difference which is the difference of last and first elements of subset. The formula is, sumSubsetDifference = Σ [last(s) - first(s)] s are subsets of the set S. Let’s take an example to understand the problem, ...
[ { "code": null, "e": 1244, "s": 1062, "text": "In this problem, we are given a set S of n number. Our task is to create a program to find the sum of subset difference which is the difference of last and first elements of subset." }, { "code": null, "e": 1260, "s": 1244, "text": "...
Deep Q-Network (DQN)-I. OpenAI Gym Pong and Wrappers | by Jordi TORRES.AI | Towards Data Science
In the previous post, we have presented solution methods that represent the action-values in a small table. We referred to this table as a Q-table. In the next three posts of the “Deep Reinforcement Learning Explained” series, we will introduce the reader to the idea of using neural networks to expand the size of the p...
[ { "code": null, "e": 850, "s": 172, "text": "In the previous post, we have presented solution methods that represent the action-values in a small table. We referred to this table as a Q-table. In the next three posts of the “Deep Reinforcement Learning Explained” series, we will introduce the reader...
Objective-C Type Casting
Type casting is a way to convert a variable from one data type to another data type. For example, if you want to store a long value into a simple integer then you can type cast long to int. You can convert values from one type to another explicitly using the cast operator as follows − (type_name) expression In Object...
[ { "code": null, "e": 2848, "s": 2560, "text": "Type casting is a way to convert a variable from one data type to another data type. For example, if you want to store a long value into a simple integer then you can type cast long to int. You can convert values from one type to another explicitly us...
JavaScript Comparison and Logical Operators
Comparison and Logical operators are used to test for true or false. Comparison operators are used in logical statements to determine equality or difference between variables or values. Given that x = 5, the table below explains the comparison operators: Comparison operators can be used in conditional statements to c...
[ { "code": null, "e": 70, "s": 0, "text": "Comparison and Logical operators are used to test for true or \nfalse." }, { "code": null, "e": 188, "s": 70, "text": "Comparison operators are used in logical statements to determine equality or difference between variables or values. " ...
PHP DivisionByZeroError
DivisionByZeroError class is a subclass of ArithmeticError class. This type of error occurs when division operation involves value of denominator as zero. This can also occur when a modulo operator (%) has 0 as second operator, and intdiv() function having second argument as 0. In first example, we try to perform modul...
[ { "code": null, "e": 1341, "s": 1062, "text": "DivisionByZeroError class is a subclass of ArithmeticError class. This type of error occurs when division operation involves value of denominator as zero. This can also occur when a modulo operator (%) has 0 as second operator, and intdiv() function hav...