title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Program to find maximum number of boxes we can fit inside another boxes in python | Suppose we have a list of boxes where each row represents the height and width of given boxes. We can put a box in another box if first box is smaller than the second one (when both of its width and height are smaller than the other box), we have to find the maximum number of boxes we can fit into a box.
So, if the inp... | [
{
"code": null,
"e": 1368,
"s": 1062,
"text": "Suppose we have a list of boxes where each row represents the height and width of given boxes. We can put a box in another box if first box is smaller than the second one (when both of its width and height are smaller than the other box), we have to fin... |
JavaScript Array find() function | The find() method of JavaScript is used to return the first elements value in an array, if the condition is passed, otherwise the return value is undefined. The syntax is as follows −
array.find(function(val, index, arr),thisValue)
Here, function is a function with val, which is the value of the current element. The in... | [
{
"code": null,
"e": 1246,
"s": 1062,
"text": "The find() method of JavaScript is used to return the first elements value in an array, if the condition is passed, otherwise the return value is undefined. The syntax is as follows −"
},
{
"code": null,
"e": 1294,
"s": 1246,
"text":... |
Find the minimum number of steps to reach M from N in C++ | Suppose we have two integers N and M. We have to find minimum number of steps to reach M from N, by performing given operations −
Multiply the number x by 2, so x will be 2*x
Subtract one from the number x, so the number will be x – 1
If N = 4 and M = 6, then output will be 2. So if we perform operation number 2 on N, ... | [
{
"code": null,
"e": 1192,
"s": 1062,
"text": "Suppose we have two integers N and M. We have to find minimum number of steps to reach M from N, by performing given operations −"
},
{
"code": null,
"e": 1237,
"s": 1192,
"text": "Multiply the number x by 2, so x will be 2*x"
},
... |
Find all Autobiographical Numbers with given number of digits - GeeksforGeeks | 24 Nov, 2021
Given N as the number of digits, the task is to find all the Autobiographical Numbers whose length is equal to N.
An autobiographical number is a number such that the first digit of it counts how many zeroes are there in it, the second digit counts how many ones are there and so on. For example, 1210 has... | [
{
"code": null,
"e": 24574,
"s": 24546,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 24690,
"s": 24574,
"text": "Given N as the number of digits, the task is to find all the Autobiographical Numbers whose length is equal to N. "
},
{
"code": null,
"e": 24920,
... |
MathML - Overview | MathML stands for Mathematical Markup Language and is an XML based application. It is used to describe mathematical and scientific notations. It's 1 and 2 version were created and developed by The Math Working Group which is one of the oldest W3C Working Groups during 1996-2004. MathML version 3 was created during Math... | [
{
"code": null,
"e": 2652,
"s": 2257,
"text": "MathML stands for Mathematical Markup Language and is an XML based application. It is used to describe mathematical and scientific notations. It's 1 and 2 version were created and developed by The Math Working Group which is one of the oldest W3C Workin... |
How add files to S3 Bucket using 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
Here we will see how to add files to S3 Bucke... | [
{
"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,
... |
Math.Round() Method in C# | The Math.Round() method in C# rounds a value to the nearest integer or to the specified number of fractional digits.
The following are the methods overloaded by Math.Round() −
Math.Round(Double)
Math.Round(Double, Int32)
Math.Round(Double, Int32, MidpointRounding)
Math.Round(Double, MidpointRounding)
Math.Round(Decimal... | [
{
"code": null,
"e": 1179,
"s": 1062,
"text": "The Math.Round() method in C# rounds a value to the nearest integer or to the specified number of fractional digits."
},
{
"code": null,
"e": 1238,
"s": 1179,
"text": "The following are the methods overloaded by Math.Round() −"
},
... |
How to use BroadcastReceiver in Android? | This example demonstrates how do I use BroadcastReceiver in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xm... | [
{
"code": null,
"e": 1131,
"s": 1062,
"text": "This example demonstrates how do I use BroadcastReceiver in android."
},
{
"code": null,
"e": 1260,
"s": 1131,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create... |
Plotting time-series with Date labels on X-axis in R - GeeksforGeeks | 30 Jun, 2021
In this article, we will discuss how to plot time-series with date labels on the x-axis in R Programming Language supportive examples.
The plot() method in base R is a generic plotting function. It plots the corresponding coordinates of the x and y axes respectively. The plot can be customized to add the l... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 25377,
"s": 25242,
"text": "In this article, we will discuss how to plot time-series with date labels on the x-axis in R Programming Language supportive examples."
},
{
"code": null,
... |
Functional Programming - Function Types | Functions are of two types −
Predefined functions
User-defined functions
In this chapter, we will discuss in detail about functions.
These are the functions that are built into Language to perform operations & are stored in the Standard Function Library.
For Example − ‘Strcat’ in C++ & ‘concat’ in Haskell are used to a... | [
{
"code": null,
"e": 1850,
"s": 1821,
"text": "Functions are of two types −"
},
{
"code": null,
"e": 1871,
"s": 1850,
"text": "Predefined functions"
},
{
"code": null,
"e": 1894,
"s": 1871,
"text": "User-defined functions"
},
{
"code": null,
"e": 1... |
Filling byte array in Java | The byte array in Java can be filled by using the method java.util.Arrays.fill(). This method assigns the required byte value to the byte array in Java. The two parameters required for java.util.Arrays.fill() are the array name and the value that is to be stored in the array elements.
A program that demonstrates this i... | [
{
"code": null,
"e": 1348,
"s": 1062,
"text": "The byte array in Java can be filled by using the method java.util.Arrays.fill(). This method assigns the required byte value to the byte array in Java. The two parameters required for java.util.Arrays.fill() are the array name and the value that is to ... |
Lodash - toString method | _.toString(value)
Converts value to a string. An empty string is returned for null and undefined values. The sign of -0 is preserved.
value (*) − The value to convert.
value (*) − The value to convert.
(string) − Returns the converted string.
(string) − Returns the converted string.
var _ = require('lodash');
consol... | [
{
"code": null,
"e": 1846,
"s": 1827,
"text": "_.toString(value)\n"
},
{
"code": null,
"e": 1962,
"s": 1846,
"text": "Converts value to a string. An empty string is returned for null and undefined values. The sign of -0 is preserved."
},
{
"code": null,
"e": 1996,
... |
What is C++ Standard Output Stream (cout)? | std::cout is an object of class ostream that represents the standard output stream oriented to narrow characters (of type char). It corresponds to the C stream stdout. The standard output stream is the default destination of characters determined by the environment. This destination may be shared with more standard obj... | [
{
"code": null,
"e": 1411,
"s": 1062,
"text": "std::cout is an object of class ostream that represents the standard output stream oriented to narrow characters (of type char). It corresponds to the C stream stdout. The standard output stream is the default destination of characters determined by the... |
CSS - z-index | The z-index sets the stacking level of an element.
auto − The stack level of the element is the same as that of its parent element.
auto − The stack level of the element is the same as that of its parent element.
integer − The stack level of the element is set to the given value, and it establishes a new stacking conte... | [
{
"code": null,
"e": 2677,
"s": 2626,
"text": "The z-index sets the stacking level of an element."
},
{
"code": null,
"e": 2758,
"s": 2677,
"text": "auto − The stack level of the element is the same as that of its parent element."
},
{
"code": null,
"e": 2839,
"s"... |
Python | sympy.apart() method - GeeksforGeeks | 25 Jun, 2019
With the help of sympy.apart() method, we can performs a partial fraction decomposition on a rational mathematical expression.
Syntax: apart(expression)
Parameters:expression – It is a rational mathematical expression.
Returns: Returns an expression after the partial decomposition.
Example #1:In this examp... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n25 Jun, 2019"
},
{
"code": null,
"e": 24028,
"s": 23901,
"text": "With the help of sympy.apart() method, we can performs a partial fraction decomposition on a rational mathematical expression."
},
{
"code": null,
"e":... |
JavaScript string.slice() Method - GeeksforGeeks | 06 Oct, 2021
Below is the example of the string.slice() Method.
Example:
javascript
<script> var A = 'Geeks for Geeks'; b = A.slice(0,5); c = A.slice(6,9); d = A.slice(10); document.write(b +"<br>"); document.write(c +"<br>"); document.write(d +"<br>"); </script>
Outp... | [
{
"code": null,
"e": 24554,
"s": 24526,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 24607,
"s": 24554,
"text": "Below is the example of the string.slice() Method. "
},
{
"code": null,
"e": 24618,
"s": 24607,
"text": "Example: "
},
{
"code": null... |
Convert Column Classes of Data Table in R - GeeksforGeeks | 26 May, 2021
The data.table package is used to ease the data manipulation operations such as sub-setting, grouping, and updating operations of the data table in R Programming Language.
sapply() method in R programming language is used to apply a function over the specified R object, a data frame, or a matrix. If we sp... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 25024,
"s": 24851,
"text": "The data.table package is used to ease the data manipulation operations such as sub-setting, grouping, and updating operations of the data table in R Programming L... |
Math.DivRem() Method in C# | The Math.DivRem() method in C# is used to divide and calculate the quotient of two numbers and also returns the remainder in an output parameter.
public static int DivRem (int dividend, int divisor, out int remainder);
public static long DivRem (long dividend, long divisor, long remainder);
Let us now see an example to... | [
{
"code": null,
"e": 1208,
"s": 1062,
"text": "The Math.DivRem() method in C# is used to divide and calculate the quotient of two numbers and also returns the remainder in an output parameter."
},
{
"code": null,
"e": 1354,
"s": 1208,
"text": "public static int DivRem (int divide... |
numpy.swapaxes | This function interchanges the two axes of an array. For NumPy versions after 1.10, a view of the swapped array is returned. The function takes the following parameters.
numpy.swapaxes(arr, axis1, axis2)
Where,
arr
Input array whose axes are to be swapped
axis1
An int corresponding to the first axis
axis2
An int corre... | [
{
"code": null,
"e": 2413,
"s": 2243,
"text": "This function interchanges the two axes of an array. For NumPy versions after 1.10, a view of the swapped array is returned. The function takes the following parameters."
},
{
"code": null,
"e": 2448,
"s": 2413,
"text": "numpy.swapax... |
Matplotlib - PyLab module | PyLab is a procedural interface to the Matplotlib object-oriented plotting library. Matplotlib is the whole package; matplotlib.pyplot is a module in Matplotlib; and PyLab is a module that gets installed alongside Matplotlib.
PyLab is a convenience module that bulk imports matplotlib.pyplot (for plotting) and NumPy (fo... | [
{
"code": null,
"e": 2742,
"s": 2516,
"text": "PyLab is a procedural interface to the Matplotlib object-oriented plotting library. Matplotlib is the whole package; matplotlib.pyplot is a module in Matplotlib; and PyLab is a module that gets installed alongside Matplotlib."
},
{
"code": null,... |
Java Applet | How to display a Digital Clock | 14 Dec, 2021
In this article, we shall be animating the applet window with a 1-second delay. The idea is to display the system time of every instance.
Approach: Here 6 seven-segment displays are created using the Java Applet library to print the system time in HH:MM:SS format. Each segment of the seven-segment display,... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Dec, 2021"
},
{
"code": null,
"e": 166,
"s": 28,
"text": "In this article, we shall be animating the applet window with a 1-second delay. The idea is to display the system time of every instance."
},
{
"code": null,
"e": ... |
Python – Remove Duplicate Dictionaries characterized by Key | 01 Aug, 2020
Given a list of dictionaries, remove all the dictionaries which are duplicate with respect to K key.
Input : test_list = [{“Gfg” : 6, “is” : 9, “best” : 10}, {“Gfg” : 8, “is” : 11, “best” : 10}, {“Gfg” : 2, “is” : 16, “best” : 10}], K = “best”Output : [{“Gfg” : 6, “is” : 9, “best” : 10}]Explanation : All k... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Aug, 2020"
},
{
"code": null,
"e": 129,
"s": 28,
"text": "Given a list of dictionaries, remove all the dictionaries which are duplicate with respect to K key."
},
{
"code": null,
"e": 383,
"s": 129,
"text": "Input... |
Vue.js | v-text directive | 25 Jun, 2020
The v-text directive is a Vue.js directive used to update a element’s textContent with our data. It is just a nice alternative to Mustache syntax. First, we will create a div element with id as app and let’s apply the v-text directive to this element with data as a message. Now we will create this message ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2020"
},
{
"code": null,
"e": 409,
"s": 28,
"text": "The v-text directive is a Vue.js directive used to update a element’s textContent with our data. It is just a nice alternative to Mustache syntax. First, we will create a div ... |
Find all combinations that add upto given number | 31 Mar, 2021
Given a positive number, find out all combinations of positive numbers that adds upto that number. The program should print only combinations, not permutations. For example, for input 3, either 1, 2 or 2, 1 should be printed.Examples :
Input: N = 3
Output:
1 1 1
1 2
3
Input: N = 5
Output:
1 1 1 1 1
1 1 1... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n31 Mar, 2021"
},
{
"code": null,
"e": 289,
"s": 52,
"text": "Given a positive number, find out all combinations of positive numbers that adds upto that number. The program should print only combinations, not permutations. For example, ... |
Convert a Roman Number to Decimal using Hashmap in Java | 30 Mar, 2022
Given a Roman numeral, the task is to find the corresponding decimal value.
Note: Roman numerals are represented by seven different symbols: I, V, X, L, C, D, and M.
Examples:
Input: “III”
Output: 3
Input: “MDCCLX”
Output: 1760
Approach:
Loop through each character in the string containing the Roman numera... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Mar, 2022"
},
{
"code": null,
"e": 128,
"s": 52,
"text": "Given a Roman numeral, the task is to find the corresponding decimal value."
},
{
"code": null,
"e": 218,
"s": 128,
"text": "Note: Roman numerals are repr... |
Python | Visualizing image in different color spaces | 06 Jun, 2018
OpenCV (Open Source Computer Vision) is a computer vision library that contains various functions to perform operations on pictures or videos. It was originally developed by Intel but was later maintained by Willow Garage and is now maintained by Itseez. This library is cross-platform that is it is availab... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jun, 2018"
},
{
"code": null,
"e": 421,
"s": 52,
"text": "OpenCV (Open Source Computer Vision) is a computer vision library that contains various functions to perform operations on pictures or videos. It was originally developed by ... |
Requests - File Upload | In this chapter, we will upload a file using request and read the contents of the file uploaded. We can do it using the files param as shown in the example below.
We will use the http://httpbin.org/post to upload the file.
import requests
myurl = 'https://httpbin.org/post'
files = {'file': open('test.txt', 'rb')}
getda... | [
{
"code": null,
"e": 2485,
"s": 2322,
"text": "In this chapter, we will upload a file using request and read the contents of the file uploaded. We can do it using the files param as shown in the example below."
},
{
"code": null,
"e": 2545,
"s": 2485,
"text": "We will use the htt... |
C program to display month by month calendar for a given year | 22 Apr, 2020
Prerequisite: Find day of the week for a given dateGiven a year N, the task is to print the calendar for every month of the given year.
Implementation:
// C program to print the month by month// calendar for the given year #include <stdio.h> // Function that returns the index of the// day for date DD/MM/... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 188,
"s": 52,
"text": "Prerequisite: Find day of the week for a given dateGiven a year N, the task is to print the calendar for every month of the given year."
},
{
"code": null,
"e": 2... |
Problem of initialization in C++ | 18 Apr, 2022
In this article, we will discuss the problem of initialization in C++, the data members of a class have private scope by default, so they are not accessible outside the class directly. Therefore, when objects are created, the members of the object cannot be initialized directly and this problem of not bein... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Apr, 2022"
},
{
"code": null,
"e": 412,
"s": 28,
"text": "In this article, we will discuss the problem of initialization in C++, the data members of a class have private scope by default, so they are not accessible outside the class ... |
Subset Sum Problem | Practice | GeeksforGeeks | Given an array of non-negative integers, and a value sum, determine if there is a subset of the given set with sum equal to given sum.
Example 1:
Input:
N = 6
arr[] = {3, 34, 4, 12, 5, 2}
sum = 9
Output: 1
Explanation: Here there exists a subset with
sum = 9, 4+3+2 = 9.
Example 2:
Input:
N = 6
arr[] = {3, 34, 4, 12... | [
{
"code": null,
"e": 374,
"s": 238,
"text": "Given an array of non-negative integers, and a value sum, determine if there is a subset of the given set with sum equal to given sum. "
},
{
"code": null,
"e": 386,
"s": 374,
"text": "\nExample 1:"
},
{
"code": null,
"e": ... |
Trigonometric Functions of Sum and Difference of Two Angles | 20 Dec, 2021
Trigonometry is a branch of mathematics, which deal with the angles, lengths, and heights of triangles and their relationships. It had played an important role to calculate complex functions or large distances which were not possible to calculate without trigonometry. While solving problems with trigonomet... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Dec, 2021"
},
{
"code": null,
"e": 502,
"s": 52,
"text": "Trigonometry is a branch of mathematics, which deal with the angles, lengths, and heights of triangles and their relationships. It had played an important role to calculate c... |
Josephus problem | Set 2 (A Simple Solution when k = 2) | 02 Dec, 2021
There are n people standing in a circle waiting to be executed. The counting out begins at some point in the circle and proceeds around the circle in a fixed direction. In each step, a certain number of people are skipped and the next person is executed. The elimination proceeds around the circle (which is... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 877,
"s": 54,
"text": "There are n people standing in a circle waiting to be executed. The counting out begins at some point in the circle and proceeds around the circle in a fixed direction. In ea... |
Java Equivalent of C++’s lower_bound() Method | 29 Apr, 2022
The lower_bound() method of C++ returns the index of the first element in the array which has a value not less than the key. This means that the function returns the index of the next smallest number just greater than or equal to that number. If there are multiple values that are equal to the number, lower... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Apr, 2022"
},
{
"code": null,
"e": 387,
"s": 28,
"text": "The lower_bound() method of C++ returns the index of the first element in the array which has a value not less than the key. This means that the function returns the index of ... |
SQL | Union Clause | 02 Sep, 2019
The Union Clause is used to combine two separate select statements and produce the result set as a union of both the select statements.NOTE:
The fields to be used in both the select statements must be in same order, same number and same data type.The Union clause produces distinct values in the result set,... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Sep, 2019"
},
{
"code": null,
"e": 193,
"s": 52,
"text": "The Union Clause is used to combine two separate select statements and produce the result set as a union of both the select statements.NOTE:"
},
{
"code": null,
"... |
Python – Loop through files of certain extensions | 10 Jul, 2022
A directory is capable of storing multiple files and python can support a mechanism to loop over them. In this article, we will see different methods to iterate over certain files in a given directory or subdirectory.
Path containing different files: This will be used for all methods.
Method 1: Using listd... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Jul, 2022"
},
{
"code": null,
"e": 272,
"s": 54,
"text": "A directory is capable of storing multiple files and python can support a mechanism to loop over them. In this article, we will see different methods to iterate over certain ... |
Decrypt the String according to given algorithm | 18 Aug, 2021
Given encrypted string str consisting of alphabets and numeric characters, the task is to decrypt the string and find the encrypted message. In order to decrypt the message, find every cluster of numeric characters representing a single alphabetic character which can be obtained by calculating the modulus ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 680,
"s": 28,
"text": "Given encrypted string str consisting of alphabets and numeric characters, the task is to decrypt the string and find the encrypted message. In order to decrypt the message, f... |
Interning of String in Java | 06 Nov, 2019
String Interning is a method of storing only one copy of each distinct String Value, which must be immutable.By applying String.intern() on a couple of strings will ensure that all strings having the same contents share the same memory. For example, if a name ‘Amy’ appears 100 times, by interning you ensur... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n06 Nov, 2019"
},
{
"code": null,
"e": 407,
"s": 53,
"text": "String Interning is a method of storing only one copy of each distinct String Value, which must be immutable.By applying String.intern() on a couple of strings will ensure th... |
Subtraction of two numbers using 2’s Complement | 13 Jun, 2022
Given two numbers a and b. The task is to subtract b from a by using 2’s Complement method.Note: Negative numbers represented as 2’s Complement of Positive Numbers.For example, -5 can be represented in binary form as 2’s Complement of 5. Look at the image below:
Examples:
Input : a = 2, b = 3
Output : -1... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 316,
"s": 52,
"text": "Given two numbers a and b. The task is to subtract b from a by using 2’s Complement method.Note: Negative numbers represented as 2’s Complement of Positive Numbers.For exampl... |
Statistical Database Security - GeeksforGeeks | 24 Aug, 2020
Prerequisite – Control Methods of Database Security
Certain databases may contain confidential or secret data of individuals of country like (Aadhar numbers, PAN card numbers) and this database should not be accessed by attackers. So, therefore it should be protected from user access.
The database which co... | [
{
"code": null,
"e": 24250,
"s": 24222,
"text": "\n24 Aug, 2020"
},
{
"code": null,
"e": 24302,
"s": 24250,
"text": "Prerequisite – Control Methods of Database Security"
},
{
"code": null,
"e": 24536,
"s": 24302,
"text": "Certain databases may contain confiden... |
Kth Smallest Element in a Sorted Matrix in Python | Suppose we have a n x n matrix where each of the rows and columns are sorted in increasing order, we have to find the kth smallest element in the matrix. Note that it is the kth smallest element in the sorted order, not the kth unique element. So if the input is like [[1,5,9],[10,11,13],[12,13,15]], if k = 8, then the ... | [
{
"code": null,
"e": 1401,
"s": 1062,
"text": "Suppose we have a n x n matrix where each of the rows and columns are sorted in increasing order, we have to find the kth smallest element in the matrix. Note that it is the kth smallest element in the sorted order, not the kth unique element. So if the... |
Maximum sum combination from two arrays - GeeksforGeeks | 04 Sep, 2021
Given two arrays arr1[] and arr2[] each of size N. The task is to choose some elements from both the arrays such that no two elements have the same index and no two consecutive numbers can be selected from a single array. Find the maximum sum possible of above-chosen numbers.
Examples:
Input : arr1[] = {... | [
{
"code": null,
"e": 24939,
"s": 24911,
"text": "\n04 Sep, 2021"
},
{
"code": null,
"e": 25217,
"s": 24939,
"text": "Given two arrays arr1[] and arr2[] each of size N. The task is to choose some elements from both the arrays such that no two elements have the same index and no tw... |
A Basic Introduction to TensorFlow Lite | by Renu Khandelwal | Towards Data Science | In this article, we will understand the features required to deploy a deep learning model at the Edge, what is TensorFlow Lite, and how the different components of TensorFlow Lite can be used to make an inference at the Edge.
You are trying to deploy your deep learning model in an area where they don’t have a good netw... | [
{
"code": null,
"e": 398,
"s": 172,
"text": "In this article, we will understand the features required to deploy a deep learning model at the Edge, what is TensorFlow Lite, and how the different components of TensorFlow Lite can be used to make an inference at the Edge."
},
{
"code": null,
... |
Conversational AI: Design & Build a Contextual AI Assistant | by Mady Mantha | Towards Data Science | Though Conversational AI has been around since the 1960s, it’s experiencing a renewed focus in recent years. While we’re still in the early days of the design and development of intelligent conversational AI, Google quite rightly announced that we were moving from a mobile-first to an AI- first world, where we expect t... | [
{
"code": null,
"e": 647,
"s": 172,
"text": "Though Conversational AI has been around since the 1960s, it’s experiencing a renewed focus in recent years. While we’re still in the early days of the design and development of intelligent conversational AI, Google quite rightly announced that we were mo... |
How to select only non - numeric values from varchar column in MySQL? | You need to use REGEXP for this. The syntax is as follows
SELECT *FROM yourTableName WHERE yourColumnName REGEXP '[a-zA-Z]';
To understand the concept, let us create a table. The query to create a table is as follows
mysql> create table SelectNonNumericValue
-> (
-> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,
... | [
{
"code": null,
"e": 1120,
"s": 1062,
"text": "You need to use REGEXP for this. The syntax is as follows"
},
{
"code": null,
"e": 1187,
"s": 1120,
"text": "SELECT *FROM yourTableName WHERE yourColumnName REGEXP '[a-zA-Z]';"
},
{
"code": null,
"e": 1279,
"s": 1187,... |
Node.js url.parse(urlString, parseQueryString, slashesDenoteHost) API | 14 Oct, 2021
The url.parse() method takes a URL string, parses it, and it will return a URL object with each part of the address as properties.
Syntax:
url.parse( urlString, parseQueryString, slashesDenoteHost)
Parameters: This method accepts three parameters as mentioned above and described below:
urlString: It hol... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Oct, 2021"
},
{
"code": null,
"e": 160,
"s": 28,
"text": "The url.parse() method takes a URL string, parses it, and it will return a URL object with each part of the address as properties. "
},
{
"code": null,
"e": 169,
... |
Node.js util.inherits() Method | 13 Aug, 2020
The “util” module provides ‘utility’ functions that are used for debugging purposes. For accessing those functions we need to call them (by ‘require(‘util’)‘).
The util.inherits() (Added in v0.3.0) method is an inbuilt application programming interface of the util module in which the constructor inherits t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Aug, 2020"
},
{
"code": null,
"e": 188,
"s": 28,
"text": "The “util” module provides ‘utility’ functions that are used for debugging purposes. For accessing those functions we need to call them (by ‘require(‘util’)‘)."
},
{
"... |
How to Fix: KeyError in Pandas | 28 Nov, 2021
In this article, we will discuss how to fix the KeyError in pandas. Pandas KeyError occurs when we try to access some column/row label in our DataFrame that doesn’t exist. Usually, this error occurs when you misspell a column/row name or include an unwanted space before or after the column/row name.
The li... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 329,
"s": 28,
"text": "In this article, we will discuss how to fix the KeyError in pandas. Pandas KeyError occurs when we try to access some column/row label in our DataFrame that doesn’t exist. Usu... |
Difference between LOOK and C-LOOK Disk scheduling algorithms | 05 Jun, 2020
1. LOOK disk scheduling algorithm :Look Algorithm is actually an improves version of SCAN Algorithm. In this algorithm, the head starts from first request at one side of disk and moves towards the other end by serving all requests in between. After reaching the last request of one end, the head reverse its... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 556,
"s": 52,
"text": "1. LOOK disk scheduling algorithm :Look Algorithm is actually an improves version of SCAN Algorithm. In this algorithm, the head starts from first request at one side of disk... |
How to check if mod_rewrite is enabled in PHP ? | 20 Dec, 2019
In PHP, there is an inbuilt function called ‘phpinfo’. By using this function, we can output all the Loaded Modules and see the ‘mod_rewrite’ is enabled or not.
Syntax:
phpinfo();
Here is a process to check the ‘mod_rewrite’ load module is enabled or not.
Note: The local server used here is XAMPP.
Create ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n20 Dec, 2019"
},
{
"code": null,
"e": 214,
"s": 53,
"text": "In PHP, there is an inbuilt function called ‘phpinfo’. By using this function, we can output all the Loaded Modules and see the ‘mod_rewrite’ is enabled or not."
},
{
... |
Time Series Analysis using ARIMA model in R Programming | 08 Jul, 2020
In R programming, data analysis and visualization is so easy to learn the behaviour of the data. Moreover, the R language is used mostly in the data science field after Python. Time series analysis is a type of analysis of data used to check the behaviour of data over a period of time. The data is collecte... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jul, 2020"
},
{
"code": null,
"e": 621,
"s": 28,
"text": "In R programming, data analysis and visualization is so easy to learn the behaviour of the data. Moreover, the R language is used mostly in the data science field after Python... |
HTML | lang Attribute | 19 Jul, 2019
This attribute is used to specify the language of the element content. Some examples of languages are en for English, es for Spanish, etc.
Syntax:
<element lang = "language_code">
Attribute Value: This attribute contains single value language_code which is used to specify the language of content.
Differenc... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n19 Jul, 2019"
},
{
"code": null,
"e": 192,
"s": 53,
"text": "This attribute is used to specify the language of the element content. Some examples of languages are en for English, es for Spanish, etc."
},
{
"code": null,
"e"... |
Count of distinct substrings of a string using Suffix Trie | 06 Jul, 2022
Given a string of length n of lowercase alphabet characters, we need to count total number of distinct substrings of this string. Examples:
Input : str = “ababa”
Output : 10
Total number of distinct substring are 10, which are,
"", "a", "b", "ab", "ba", "aba", "bab", "abab", "baba"
and "ababa"
The idea is... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 192,
"s": 52,
"text": "Given a string of length n of lowercase alphabet characters, we need to count total number of distinct substrings of this string. Examples:"
},
{
"code": null,
"e... |
Regression and Classification | Supervised Machine Learning | 28 Jun, 2022
What is Regression and Classification in Machine Learning?
Data scientists use many different kinds of machine learning algorithms to discover patterns in big data that lead to actionable insights. At a high level, these different algorithms can be classified into two groups based on the way they “learn” a... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 111,
"s": 52,
"text": "What is Regression and Classification in Machine Learning?"
},
{
"code": null,
"e": 428,
"s": 111,
"text": "Data scientists use many different kinds of ma... |
GATE | GATE-CS-2005 | Question 55 | 11 Sep, 2017
Consider the languages:
L1 = {anbncm | n, m > 0}
L2 = {anbmcm | n, m > 0}
Which one of the following statements is FALSE?(A) L1 ∩ L2 is a context-free language(B) L1 U L2 is a context-free language(C) L1 and L2 are context-free language(D) L1 ∩ L2 is a context sensitive languageAnswer: (A)Explanation: We... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Sep, 2017"
},
{
"code": null,
"e": 78,
"s": 54,
"text": "Consider the languages:"
},
{
"code": null,
"e": 130,
"s": 78,
"text": "L1 = {anbncm | n, m > 0} \nL2 = {anbmcm | n, m > 0} "
},
{
"code": null,
... |
Xv6 Operating System -add a user program | 14 Aug, 2020
Xv6 is a re-implementation of the Unix sixth edition in order to use as a learning tool. xv6 was developed by MIT as a teaching operating system for their “6.828” course. A vital fact about xv6 is that it contains all the core Unix concepts and has a similar structure to Unix even though it lacks some func... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Aug, 2020"
},
{
"code": null,
"e": 538,
"s": 54,
"text": "Xv6 is a re-implementation of the Unix sixth edition in order to use as a learning tool. xv6 was developed by MIT as a teaching operating system for their “6.828” course. A v... |
How to Remove Salt and Pepper Noise from Image Using MATLAB? | 22 Nov, 2021
Impulse noise is a unique form of noise that can have many different origins. Images are frequently corrupted through impulse noise due to transmission errors, defective memory places, or timing mistakes in analog-to-digital conversion. Salt-and-pepper noise is one form of impulse noise that can corrupt th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 771,
"s": 28,
"text": "Impulse noise is a unique form of noise that can have many different origins. Images are frequently corrupted through impulse noise due to transmission errors, defective memor... |
Scala Constructors | 11 Aug, 2021
Constructors are used to initializing the object’s state. Like methods, a constructor also contains a collection of statements(i.e. instructions) that are executed at the time of Object creation. Scala supports two types of constructors:
When our Scala program contains only one constructor, then that cons... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 293,
"s": 54,
"text": "Constructors are used to initializing the object’s state. Like methods, a constructor also contains a collection of statements(i.e. instructions) that are executed at the tim... |
Check duplicates in a stream of strings - GeeksforGeeks | 25 May, 2021
Given an array arr[] of strings containing the names of employees in a company. Assuming that the names are being entered in a system one after another, the task is to check whether the current name is entered for the first time or not.Examples:
Input: arr[] = {“geeks”, “for”, “geeks”} Output: No No YesI... | [
{
"code": null,
"e": 25156,
"s": 25128,
"text": "\n25 May, 2021"
},
{
"code": null,
"e": 25404,
"s": 25156,
"text": "Given an array arr[] of strings containing the names of employees in a company. Assuming that the names are being entered in a system one after another, the task i... |
Pedestrian Detection using OpenCV-Python - GeeksforGeeks | 26 Mar, 2020
OpenCV is an open-source library, which is aimed at real-time computer vision. This library is developed by Intel and is cross-platform – it can support Python, C++, Java, etc. Computer Vision is a cutting edge field of Computer Science that aims to enable computers to understand what is being seen in an i... | [
{
"code": null,
"e": 24243,
"s": 24215,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 24694,
"s": 24243,
"text": "OpenCV is an open-source library, which is aimed at real-time computer vision. This library is developed by Intel and is cross-platform – it can support Python, C+... |
How to perform mouseover action on an element in Selenium? | We can perform mouseover action on elements in Selenium with the help of Actions class. In order to perform the mouse movement we will use moveToElement () method of the Actions class. Finally use build().perform() to execute all the steps.
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.open... | [
{
"code": null,
"e": 1303,
"s": 1062,
"text": "We can perform mouseover action on elements in Selenium with the help of Actions class. In order to perform the mouse movement we will use moveToElement () method of the Actions class. Finally use build().perform() to execute all the steps."
},
{
... |
Tryit Editor v3.7 | Tryit: HTML comment to hide content | [] |
C# | Union of two HashSet - GeeksforGeeks | 01 Feb, 2019
A HashSet is an unordered collection of the unique elements. It comes under the System.Collections.Generic namespace. It is used in a situation where we want to prevent duplicates from being inserted in the collection. As far as performance is concerned, it is better in comparison to the list. For the Unio... | [
{
"code": null,
"e": 23999,
"s": 23971,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24371,
"s": 23999,
"text": "A HashSet is an unordered collection of the unique elements. It comes under the System.Collections.Generic namespace. It is used in a situation where we want to pr... |
Convert String to Integer in R Programming - strtoi() Function - GeeksforGeeks | 01 Jun, 2020
strtoi() function in R Language is used to convert the specified string to integers.
Syntax: strtoi(x, base=0L)
Parameters:x: character vectorbase: integer between 2 and 36 inclusive, default is 0
Example 1:
# R program to illustrate# strtoi function # Initializing some string vectorx <- c("A", "B", "C")y... | [
{
"code": null,
"e": 24622,
"s": 24594,
"text": "\n01 Jun, 2020"
},
{
"code": null,
"e": 24707,
"s": 24622,
"text": "strtoi() function in R Language is used to convert the specified string to integers."
},
{
"code": null,
"e": 24734,
"s": 24707,
"text": "Synta... |
How to get the diagonal length of the device screen using JavaScript ? - GeeksforGeeks | 27 Apr, 2020
Knowing the width and height of a browser window helps a web developer to enhancing the user experience. It can help in improving browser animations and the relative positioning of divisions and containers. Javascript provides a window object that represent an open browser window. It provides the various p... | [
{
"code": null,
"e": 24503,
"s": 24475,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 24893,
"s": 24503,
"text": "Knowing the width and height of a browser window helps a web developer to enhancing the user experience. It can help in improving browser animations and the relati... |
Putting semicolons after while and if statements in C++ | When you have a statement like −
while (expression);
the while loop runs no matter if the expression is true or not. However, if you put −
if (expression);
the statement runs no matter if the expression is true or not. This is because the syntax for if and while is −
if (<expr>) <statement>
// or
while (<expr>) <statem... | [
{
"code": null,
"e": 1095,
"s": 1062,
"text": "When you have a statement like −"
},
{
"code": null,
"e": 1115,
"s": 1095,
"text": "while (expression);"
},
{
"code": null,
"e": 1201,
"s": 1115,
"text": "the while loop runs no matter if the expression is true or... |
Generate a permutation of first N natural numbers having count of unique adjacent differences equal to K | Set 2 - GeeksforGeeks | 24 Feb, 2022
Given two positive integers N and K, the task is to construct a permutation of the first N natural numbers such that all possible absolute differences between adjacent elements are K.
Examples:
Input: N = 3, K = 1Output: 1 2 3Explanation: Considering the permutation {1, 2, 3}, all possible unique absolute ... | [
{
"code": null,
"e": 24405,
"s": 24377,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 24589,
"s": 24405,
"text": "Given two positive integers N and K, the task is to construct a permutation of the first N natural numbers such that all possible absolute differences between adja... |
Lua - Operating System Facilities | In any application, it is often required for to access Operating System level functions and it is made available with Operating System library. The list of functions available are listed in the following table.
os.clock ()
Returns an approximation of the amount in seconds of CPU time used by the program.
os.date ([form... | [
{
"code": null,
"e": 2314,
"s": 2103,
"text": "In any application, it is often required for to access Operating System level functions and it is made available with Operating System library. The list of functions available are listed in the following table."
},
{
"code": null,
"e": 2326,... |
How to implement the search functionality of a JTable in Java? | A JTable is a subclass of JComponent for displaying complex data structures. A JTable component can follow the Model View Controller (MVC) design pattern for displaying the data in rows and columns. A JTable can generate TableModelListener, TableColumnModelListener, ListSelectionListener, CellEditorListener, RowSorterL... | [
{
"code": null,
"e": 1697,
"s": 1062,
"text": "A JTable is a subclass of JComponent for displaying complex data structures. A JTable component can follow the Model View Controller (MVC) design pattern for displaying the data in rows and columns. A JTable can generate TableModelListener, TableColumnM... |
Java Packages | A package in Java is used to group related classes. Think of it as
a folder in a file directory. We use packages to avoid name conflicts, and
to write a better maintainable code. Packages are divided into two categories:
Built-in Packages (packages from the Java API)
User-defined Packages (create your own packages)
Th... | [
{
"code": null,
"e": 222,
"s": 0,
"text": "A package in Java is used to group related classes. Think of it as\na folder in a file directory. We use packages to avoid name conflicts, and \nto write a better maintainable code. Packages are divided into two categories:"
},
{
"code": null,
"... |
ReactJS MDBootstrap Switch Component - GeeksforGeeks | 07 Jan, 2022
MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Switch Component in ReactJS MDBootstrap.The switch component is used to indicate the on/off state of the com... | [
{
"code": null,
"e": 24397,
"s": 24369,
"text": "\n07 Jan, 2022"
},
{
"code": null,
"e": 24712,
"s": 24397,
"text": "MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In th... |
How to sort a list alphabetically using jQuery ? - GeeksforGeeks | 29 May, 2019
Given a list of elements, The task is to sort them alphabetically and put each element in the list with the help of jQuery.
jQuery text() Method: This method set/return the text content of the selected elements. If this method is used to return content, it provides the text content of all matched elements ... | [
{
"code": null,
"e": 25067,
"s": 25039,
"text": "\n29 May, 2019"
},
{
"code": null,
"e": 25191,
"s": 25067,
"text": "Given a list of elements, The task is to sort them alphabetically and put each element in the list with the help of jQuery."
},
{
"code": null,
"e": 26... |
How to change the target of a link in HTML? | To change the target of a link in HTML, use the target attribute of the <a>...</a> tag. The target attribute can be used to open any link in a new tab, or the same tab, etc.
Here are the values of the target attribute:
You can try to run the following code to change the target of a link in HTML. We will set it to open ... | [
{
"code": null,
"e": 1236,
"s": 1062,
"text": "To change the target of a link in HTML, use the target attribute of the <a>...</a> tag. The target attribute can be used to open any link in a new tab, or the same tab, etc."
},
{
"code": null,
"e": 1281,
"s": 1236,
"text": "Here are... |
How to convert a string to a Python class object? | Given a string as user input to a python function, I'd like to get a class object out of it if there's a class with that name in the currently defined namespace.
class Foobar:
pass
print eval("Foobar")
print type(Foobar)
__main__.Foobar
<type 'classobj'>
Another way to convert a string to class object is as foll... | [
{
"code": null,
"e": 1224,
"s": 1062,
"text": "Given a string as user input to a python function, I'd like to get a class object out of it if there's a class with that name in the currently defined namespace."
},
{
"code": null,
"e": 1287,
"s": 1224,
"text": "class Foobar:\n p... |
Test if a function throws an exception in Python - GeeksforGeeks | 20 Aug, 2020
The unittest unit testing framework is used to validate that the code performs as designed. To achieve this, unittest supports some important methods in an object-oriented way:
test fixture
test case
test suite
test runner
A deeper insight for the above terms can be gained from https://www.geeksforgeeks.... | [
{
"code": null,
"e": 24173,
"s": 24145,
"text": "\n20 Aug, 2020"
},
{
"code": null,
"e": 24352,
"s": 24173,
"text": "The unittest unit testing framework is used to validate that the code performs as designed. To achieve this, unittest supports some important methods in an object-... |
What are union, intersect and except operators in Linq C#? | Union combines multiple collections into a single collection and returns a resultant collection with unique elements
Intersect returns sequence elements which are common in both the input sequences
Except returns sequence elements from the first input sequence that are not present in the second input sequence
class Pro... | [
{
"code": null,
"e": 1179,
"s": 1062,
"text": "Union combines multiple collections into a single collection and returns a resultant collection with unique elements"
},
{
"code": null,
"e": 1260,
"s": 1179,
"text": "Intersect returns sequence elements which are common in both the ... |
C# - Nested Loops | C# allows to use one loop inside another loop. Following section shows few examples to illustrate the concept.
The syntax for a nested for loop statement in C# is as follows −
for ( init; condition; increment ) {
for ( init; condition; increment ) {
statement(s);
}
statement(s);
}
The syntax for a neste... | [
{
"code": null,
"e": 2381,
"s": 2270,
"text": "C# allows to use one loop inside another loop. Following section shows few examples to illustrate the concept."
},
{
"code": null,
"e": 2446,
"s": 2381,
"text": "The syntax for a nested for loop statement in C# is as follows −"
},
... |
New '=' Operator in Python3.8 f-string - GeeksforGeeks | 03 Jun, 2020
Python have introduced the new = operator in f-string for self documenting the strings in Python 3.8.2 version. Now with the help of this expression we can specify names in the string to get the exact value in the strings despite the position of the variable. Now f-string can be defined as f'{expr=}' expre... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n03 Jun, 2020"
},
{
"code": null,
"e": 24266,
"s": 23901,
"text": "Python have introduced the new = operator in f-string for self documenting the strings in Python 3.8.2 version. Now with the help of this expression we can specify... |
Data Scraping and Analysis using Python | by Jasmeet Singh | Towards Data Science | Data Scraping is a technique to retrieve large amounts of data from the internet. This technique is highly useful in competitive pricing. To check what our product’s optimal price should be we can compare the similar products that are already in the market. These prices can vary a lot. So, in this blog, I’m going to sh... | [
{
"code": null,
"e": 549,
"s": 172,
"text": "Data Scraping is a technique to retrieve large amounts of data from the internet. This technique is highly useful in competitive pricing. To check what our product’s optimal price should be we can compare the similar products that are already in the marke... |
Restaurant Revenue Prediction. Developing classical models for... | by Allen Kong | Towards Data Science | Restaurants are an essential part of a country’s economy and society. Whether it may be for social gatherings or a quick bite, most of us have experienced at least one visit. With the recent rise in pop up restaurants and food trucks, it’s imperative for the business owner to figure out when and where to open new resta... | [
{
"code": null,
"e": 796,
"s": 46,
"text": "Restaurants are an essential part of a country’s economy and society. Whether it may be for social gatherings or a quick bite, most of us have experienced at least one visit. With the recent rise in pop up restaurants and food trucks, it’s imperative for t... |
Foreign key in MS SQL Server - GeeksforGeeks | 31 Jul, 2020
Prerequisite – Primary key in MS SQL ServerSQL Server has different keys which serve a different purpose. In this article, the foreign key will be discussed in brief.
The foreign key has a similar purpose as the primary key yet, the foreign key is used for two tables. In a few cases, the foreign key is use... | [
{
"code": null,
"e": 25549,
"s": 25521,
"text": "\n31 Jul, 2020"
},
{
"code": null,
"e": 25716,
"s": 25549,
"text": "Prerequisite – Primary key in MS SQL ServerSQL Server has different keys which serve a different purpose. In this article, the foreign key will be discussed in bri... |
C++ Classes Introduction | Practice | GeeksforGeeks | Create class named CollegeCourse with fields courseID, grade, credits, gradePoints and honorPoints. Calculate honorpoints as the product of gradepoints and credits. GradePoints are calculated as (A-10),(B-9),(C-8),(D-7),(E-6) & (F-5).
Class CollegeCourse contains following functions:
1. set_CourseID( string CID): sets ... | [
{
"code": null,
"e": 817,
"s": 226,
"text": "Create class named CollegeCourse with fields courseID, grade, credits, gradePoints and honorPoints. Calculate honorpoints as the product of gradepoints and credits. GradePoints are calculated as (A-10),(B-9),(C-8),(D-7),(E-6) & (F-5).\nClass CollegeCourse... |
HashSet iterator() Method in Java - GeeksforGeeks | 26 Nov, 2018
The Java.util.HashSet.iterator() method is used to return an iterator of the same elements as the hash set. The elements are returned in random order from what present in the hash set.
Syntax:
Iterator iterate_value = Hash_Set.iterator();
Parameters: The function does not take any parameter.
Return Value:... | [
{
"code": null,
"e": 25439,
"s": 25411,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 25624,
"s": 25439,
"text": "The Java.util.HashSet.iterator() method is used to return an iterator of the same elements as the hash set. The elements are returned in random order from what pre... |
MongoDB NOR operator ( $nor ) - GeeksforGeeks | 22 Apr, 2020
MongoDB provides different types of logical query operators and $nor operator is one of them. This operator is used to perform logical NOR operation on the array of one or more expressions and select or retrieve only those documents that do not match all the given expression in the array. You can use this ... | [
{
"code": null,
"e": 25407,
"s": 25379,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 25794,
"s": 25407,
"text": "MongoDB provides different types of logical query operators and $nor operator is one of them. This operator is used to perform logical NOR operation on the array o... |
ML - Different Regression types - GeeksforGeeks | 22 Jul, 2021
Regression Analysis:It is a form of predictive modelling technique which investigates the relationship between a dependent (target) and independent variable (s) (predictor).To establish the possible relationship among different variables, various modes of statistical approaches are implemented, known as re... | [
{
"code": null,
"e": 25613,
"s": 25585,
"text": "\n22 Jul, 2021"
},
{
"code": null,
"e": 26453,
"s": 25613,
"text": "Regression Analysis:It is a form of predictive modelling technique which investigates the relationship between a dependent (target) and independent variable (s) (p... |
ffuf - Fast Web Fuzzer Linux Tool Written in Go - GeeksforGeeks | 14 Sep, 2021
Fuzzing is the automatic process of giving random input to an application to look for any errors or any unexpected behavior. But finding any hidden directories and files on any web server can also be categorized under fuzzing. If we try to perform this process manually then it can take dozens of months to ... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 26365,
"s": 25651,
"text": "Fuzzing is the automatic process of giving random input to an application to look for any errors or any unexpected behavior. But finding any hidden directories and... |
JavaScript Basic Array Methods - GeeksforGeeks | 28 Mar, 2022
It’s recommended to go through Arrays in JavaScript . We would be discussing the following array function:
Array.push() : Adding Element at the end of an Array. As array in JavaScript are mutable object, we can easily add or remove elements from the Array. And it dynamically changes as we modify the elemen... | [
{
"code": null,
"e": 31327,
"s": 31299,
"text": "\n28 Mar, 2022"
},
{
"code": null,
"e": 31434,
"s": 31327,
"text": "It’s recommended to go through Arrays in JavaScript . We would be discussing the following array function:"
},
{
"code": null,
"e": 35773,
"s": 314... |
Find Characteristic Polynomial of a Square Matrix - GeeksforGeeks | 04 Apr, 2022
In linear algebra, the characteristic polynomial of a square matrix is a polynomial that is invariant under matrix similarity and has the eigenvalues as roots. It has the determinant and the trace of the matrix among its coefficients.
The characteristic polynomial of the 3×3 matrix can be calculated using... | [
{
"code": null,
"e": 27535,
"s": 27507,
"text": "\n04 Apr, 2022"
},
{
"code": null,
"e": 27771,
"s": 27535,
"text": "In linear algebra, the characteristic polynomial of a square matrix is a polynomial that is invariant under matrix similarity and has the eigenvalues as roots. It ... |
How to create Shopping Cart Button in ReactJS? - GeeksforGeeks | 21 Mar, 2022
We can create a Shopping Cart-like button with the feature of adding items count and decreasing item count in ReactJS using the following approach. Material UI for React has this component available for us, and it is very easy to integrate.
Creating React Application And Installing Module:
Step 1: Create ... | [
{
"code": null,
"e": 26071,
"s": 26043,
"text": "\n21 Mar, 2022"
},
{
"code": null,
"e": 26313,
"s": 26071,
"text": "We can create a Shopping Cart-like button with the feature of adding items count and decreasing item count in ReactJS using the following approach. Material UI for... |
Kotlin Collections - GeeksforGeeks | 29 Jan, 2022
Similar to Java Collections, Kotlin also introduced the concept of collections. A collection usually contains a number of objects of the same type and these objects in the collection are called elements or items. Kotlin Standard Library provides a rich set of tools for managing collections.
In Kotlin colle... | [
{
"code": null,
"e": 25261,
"s": 25233,
"text": "\n29 Jan, 2022"
},
{
"code": null,
"e": 25553,
"s": 25261,
"text": "Similar to Java Collections, Kotlin also introduced the concept of collections. A collection usually contains a number of objects of the same type and these object... |
jQuery UI Dialog focus Event - GeeksforGeeks | 02 Dec, 2021
The Dialog box is the way to inform the user about something. It is a nice way to popup on the user window to show the information that will happen in the next or any kind of information the developer wants to clarify to the user should know. jQueryUI dialog method is used to create a basic dialog window i... | [
{
"code": null,
"e": 26392,
"s": 26364,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 26883,
"s": 26392,
"text": "The Dialog box is the way to inform the user about something. It is a nice way to popup on the user window to show the information that will happen in the next or ... |
What are Long-Polling, Websockets, Server-Sent Events (SSE) and Comet? - GeeksforGeeks | 29 Jan, 2019
There are different ways for client-side to interact with the server-side in real time, i.e., Long-Polling, Websockets, Server-Sent Events (SSE) and Comet. These are explained as following below.
1. Long Polling:It is a technology where the client requests information from the server without expecting an i... | [
{
"code": null,
"e": 25781,
"s": 25753,
"text": "\n29 Jan, 2019"
},
{
"code": null,
"e": 25977,
"s": 25781,
"text": "There are different ways for client-side to interact with the server-side in real time, i.e., Long-Polling, Websockets, Server-Sent Events (SSE) and Comet. These a... |
Count of array elements which are greater than all elements on its left - GeeksforGeeks | 21 Apr, 2021
Given an array arr[] of size N, the task is to count the number of array elements such that all the elements to its left are strictly smaller than it.Note: The first element of the array will be considered to be always satisfying the condition.
Examples :
Input: arr[] = { 2, 4, 5, 6 }Output: 4Explanation:S... | [
{
"code": null,
"e": 26163,
"s": 26135,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 26408,
"s": 26163,
"text": "Given an array arr[] of size N, the task is to count the number of array elements such that all the elements to its left are strictly smaller than it.Note: The fir... |
Difference between WCF and Web Service - GeeksforGeeks | 03 Jun, 2021
WCF (Windows Communication Foundation): WCF, as the name suggests, is a unified .NET framework that is used to develop service-oriented applications. It allows you to develop applications that can communicate using different communication mechanisms. It is founded for other Microsoft Distributed Technologi... | [
{
"code": null,
"e": 26105,
"s": 26077,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 26837,
"s": 26105,
"text": "WCF (Windows Communication Foundation): WCF, as the name suggests, is a unified .NET framework that is used to develop service-oriented applications. It allows you... |
Geometric Median - GeeksforGeeks | 13 May, 2021
In normal median, we find a point that has minimum sum of distances. Similar concept applies in 2-D space. Given N points in 2-D space, the task is to find out a single point (x, y) from which the sum of distances to the input points are minimized (also known as the centre of minimum distance).Examples:
... | [
{
"code": null,
"e": 26485,
"s": 26457,
"text": "\n13 May, 2021"
},
{
"code": null,
"e": 26792,
"s": 26485,
"text": "In normal median, we find a point that has minimum sum of distances. Similar concept applies in 2-D space. Given N points in 2-D space, the task is to find out a s... |
Pure Functions | 29 May, 2017
A function is called pure function if it always returns the same result for same argument values and it has no side effects like modifying an argument (or global variable) or outputting something. The only result of calling a pure function is the return value. Examples of pure functions are strlen(), pow()... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 May, 2017"
},
{
"code": null,
"e": 439,
"s": 54,
"text": "A function is called pure function if it always returns the same result for same argument values and it has no side effects like modifying an argument (or global variable) or... |
Python MongoDB – Find | 20 Jun, 2022
MongoDB is a cross-platform document-oriented database program and the most popular NoSQL database program. The term NoSQL means non-relational. MongoDB stores the data in the form of key-value pairs. It is an Open Source, Document Database which provides high performance and scalability along with data mo... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 571,
"s": 53,
"text": "MongoDB is a cross-platform document-oriented database program and the most popular NoSQL database program. The term NoSQL means non-relational. MongoDB stores the data in th... |
Python | Get the first key in dictionary | 18 May, 2020
Many times, while working with Python, we can have a situation in which we require to get the initial key of the dictionary. There can be many specific uses of it, either for checking the indexing and many more of these kinds. Let’s discuss certain ways in which this task can be performed.
Method #1 : Usin... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 May, 2020"
},
{
"code": null,
"e": 319,
"s": 28,
"text": "Many times, while working with Python, we can have a situation in which we require to get the initial key of the dictionary. There can be many specific uses of it, either for ... |
Matplotlib.ticker.FuncFormatter class in Python | 07 Oct, 2021
Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack.
The matplotlib.ticker.FuncFormatter class uses a user defined function for formatting. This us... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 241,
"s": 28,
"text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed t... |
Find all possible binary trees with given Inorder Traversal | 20 Jan, 2022
Given an array that represents Inorder Traversal, find all possible Binary Trees with the given Inorder traversal and print their preorder traversals.Examples:
Input: in[] = {3, 2};
Output: Preorder traversals of different possible Binary Trees are:
3 2
2 3
Below are different possib... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Jan, 2022"
},
{
"code": null,
"e": 214,
"s": 52,
"text": "Given an array that represents Inorder Traversal, find all possible Binary Trees with the given Inorder traversal and print their preorder traversals.Examples: "
},
{
... |
How to Make a Custom Exit Dialog in Android? | 06 Apr, 2021
In this tutorial, we are going to create a Custom Exit Dialog in Android. By default, android doesn’t provide any exit dialog, but we can create it using the dialog class in java. But most of the developers and also the user doesn’t like the default dialog box and also we can’t do any modification in the d... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n06 Apr, 2021"
},
{
"code": null,
"e": 623,
"s": 53,
"text": "In this tutorial, we are going to create a Custom Exit Dialog in Android. By default, android doesn’t provide any exit dialog, but we can create it using the dialog class in ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.