title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Java Program for Extended Euclidean algorithms
05 Dec, 2018 GCD of two numbers is the largest number that divides both of them. A simple way to find GCD is to factorize both numbers and multiply common factors. // Java program to demonstrate working of extended// Euclidean Algorithm import java.util.*;import java.lang.*; class GFG { // extended Euclidean Algor...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Dec, 2018" }, { "code": null, "e": 179, "s": 28, "text": "GCD of two numbers is the largest number that divides both of them. A simple way to find GCD is to factorize both numbers and multiply common factors." }, { "code": "/...
Java Program for compound interest
07 Feb, 2018 Compound Interest formula: Formula to calculate compound interest annually is given by:Compound Interest = P(1 + R/100)rWhere,P is principle amountR is the rate andT is the time span Example: Input : Principle (amount): 1200 Time: 2 Rate: 5.4 Output : Compound Interest = 1333.099243 // Jav...
[ { "code": null, "e": 53, "s": 25, "text": "\n07 Feb, 2018" }, { "code": null, "e": 80, "s": 53, "text": "Compound Interest formula:" }, { "code": null, "e": 236, "s": 80, "text": "Formula to calculate compound interest annually is given by:Compound Interest = ...
Command Line Arguments in Java
08 Jun, 2022 Java command-line argument is an argument i.e. passed at the time of running the Java program. In the command line, the arguments passed from the console can be received in the java program and they can be used as input. The users can pass the arguments during the execution bypassing the command-line argum...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jun, 2022" }, { "code": null, "e": 390, "s": 52, "text": "Java command-line argument is an argument i.e. passed at the time of running the Java program. In the command line, the arguments passed from the console can be received in t...
Top 10 Cybersecurity Challenges in 2021
15 Jun, 2021 Cybersecurity is something that can help organizations grow their businesses competitively. There is an enormous potential in cybersecurity through which the small and medium businesses i.e. SMBs can confidently maintain their reputation plus prevent themselves from viruses and other malicious cyberattacks...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Jun, 2021" }, { "code": null, "e": 1610, "s": 28, "text": "Cybersecurity is something that can help organizations grow their businesses competitively. There is an enormous potential in cybersecurity through which the small and medium...
Difference between BSS and ESS
10 Nov, 2020 1. Basic Service Set (BSS) :Basic Service Set (BSS), as name suggests, is a group or set of all stations that communicate with each together. Here, stations are considered as computers or components connected to wired network. 2. Extended Service Set (ESS) :Extended Service Set (ESS), as name suggests, is ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Nov, 2020" }, { "code": null, "e": 255, "s": 28, "text": "1. Basic Service Set (BSS) :Basic Service Set (BSS), as name suggests, is a group or set of all stations that communicate with each together. Here, stations are considered as ...
Python | math.tan() function
20 Mar, 2019 In Python, math module contains a number of mathematical operations, which can be performed with ease using the module. math.tan() function returns the tangent of value passed as argument. The value passed in this function should be in radians. Syntax: math.tan(x) Parameter:x : value to be passed to tan() ...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Mar, 2019" }, { "code": null, "e": 273, "s": 28, "text": "In Python, math module contains a number of mathematical operations, which can be performed with ease using the module. math.tan() function returns the tangent of value passed...
Understanding ShellExecute function and it’s application to open a list of URLs present in a file using C++ code
07 Jul, 2017 Given a URL as a string open it using a C++ code in Microsoft Windows OS.Example: Input : https://www.geeksforgeeks.org/ Output : The site opened in your browser. // C++ program to open a URL in browser.// This program is written on for Microsoft// Windows OS#include <bits/stdc++.h>#include <windows.h>usi...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jul, 2017" }, { "code": null, "e": 136, "s": 54, "text": "Given a URL as a string open it using a C++ code in Microsoft Windows OS.Example:" }, { "code": null, "e": 218, "s": 136, "text": "Input : https://www.gee...
T-SQL - Date Functions
Following is the list of date functions in MS SQL Server. It will return the current date along with time. Syntax for the above function − GETDATE() The following query will return the current date along with time in MS SQL Server. Select getdate() as currentdatetime It will return the part of date or time. Syntax for...
[ { "code": null, "e": 2252, "s": 2194, "text": "Following is the list of date functions in MS SQL Server." }, { "code": null, "e": 2301, "s": 2252, "text": "It will return the current date along with time." }, { "code": null, "e": 2333, "s": 2301, "text": "Synt...
How to convert rgb() color string into an object in JavaScript ?
06 Apr, 2021 Given a color in the form of rgb( ) or rgba() and the task is to convert it into an object where the keys are the color names and values are the color values. Input: rgb(242, 52, 110) Output: { red: 242, green: 52, blue: 110 } Input: rgba(255, 99, 71, 0.5) Output: { red: 255, green: 99,...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Apr, 2021" }, { "code": null, "e": 187, "s": 28, "text": "Given a color in the form of rgb( ) or rgba() and the task is to convert it into an object where the keys are the color names and values are the color values." }, { "c...
Russian Peasant (Multiply two numbers using bitwise operators)
28 Oct, 2021 Given two integers, write a function to multiply them without using multiplication operator.There are many other ways to multiply two numbers (For example, see this). One interesting method is the Russian peasant algorithm. The idea is to double the first number and halve the second number repeatedly till ...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Oct, 2021" }, { "code": null, "e": 549, "s": 52, "text": "Given two integers, write a function to multiply them without using multiplication operator.There are many other ways to multiply two numbers (For example, see this). One int...
Find the geometric mean of a given Pandas DataFrame
05 Sep, 2020 In this article, we will discuss how to find the geometric mean of a given DataFrame. Generally geometric mean of nth numbers is the nth root of their product. It can found using the scipy.stats.gmean() method. This function calculates the geometric mean of the array elements along the specified axis of th...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Sep, 2020" }, { "code": null, "e": 188, "s": 28, "text": "In this article, we will discuss how to find the geometric mean of a given DataFrame. Generally geometric mean of nth numbers is the nth root of their product." }, { "...
Flight-price checker using Python and Selenium
16 Jul, 2020 Python is a scripting language with many extended libraries and frameworks. It is used in various fields of computer science such as web development and data science. Also, Python can be used to automate some minor tasks which can be really helpful in the long run. The Python script mentioned in this artic...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jul, 2020" }, { "code": null, "e": 294, "s": 28, "text": "Python is a scripting language with many extended libraries and frameworks. It is used in various fields of computer science such as web development and data science. Also, Py...
How to create button to open SMS compose to a phone number using HTML ?
08 Jun, 2020 Sometimes, when you search for a number on the web, you might want to SMS to it directly from the web page instead of noting it down and then messaging to it. It becomes quite convenient for the user. Making an SMS link is very easy in HTML. Here, we will see how to make the SMS link on a webpage. Approach...
[ { "code": null, "e": 53, "s": 25, "text": "\n08 Jun, 2020" }, { "code": null, "e": 352, "s": 53, "text": "Sometimes, when you search for a number on the web, you might want to SMS to it directly from the web page instead of noting it down and then messaging to it. It becomes quit...
Python | Carousel Widget In Kivy using .kv file
12 Apr, 2022 Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, Linux and Windows, etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications. ???????? Kivy Tutorial – Learn Kivy with Examples. The Carousel widget...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Apr, 2022" }, { "code": null, "e": 265, "s": 28, "text": "Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, Linux and Windows, etc. It is basically used to develop the Android application, but it do...
How to set vertical alignment in Bootstrap ?
30 Nov, 2021 Vertical Alignment changes the alignment of elements vertically with the help of vertical-alignment utilities. The vertical-align utilities only affect inline(Present in one Line), inline-block(Present as blocks in one line), inline-table, and table cell(Elements in a cell of a table) elements. Vertical Al...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Nov, 2021" }, { "code": null, "e": 750, "s": 54, "text": "Vertical Alignment changes the alignment of elements vertically with the help of vertical-alignment utilities. The vertical-align utilities only affect inline(Present in one ...
Namespaces in Ruby
22 Oct, 2021 A namespace is a container for multiple items which includes classes, constants, other modules, and more. It is ensured in a namespace that all the objects have unique names for easy identification. Generally, they are structured in a hierarchical format so, that names can be reused. Namespace in Ruby al...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Oct, 2021" }, { "code": null, "e": 315, "s": 28, "text": "A namespace is a container for multiple items which includes classes, constants, other modules, and more. It is ensured in a namespace that all the objects have unique names f...
How to make elements float to center?
19 May, 2022 The CSS float property is used to set or return the horizontal alignment of elements. But this property allows an element to float only right or left side of the parent body with rest of the elements wrapped around it. There is no way to float center in CSS layout. So, we can center the elements by using p...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 May, 2022" }, { "code": null, "e": 377, "s": 52, "text": "The CSS float property is used to set or return the horizontal alignment of elements. But this property allows an element to float only right or left side of the parent body ...
Short Variable Declaration Operator(:=) in Go
17 May, 2021 Short Variable Declaration Operator(:=) in Golang is used to create the variables having a proper name and initial value. The main purpose of using this operator to declare and initialize the local variables inside the functions and to narrowing the scope of the variables. The type of the variable is deter...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 May, 2021" }, { "code": null, "e": 526, "s": 28, "text": "Short Variable Declaration Operator(:=) in Golang is used to create the variables having a proper name and initial value. The main purpose of using this operator to declare an...
Class Type Casting in Java
17 Sep, 2021 Typecasting is the assessment of the value of one primitive data type to another type. In java, there are two types of casting namely upcasting and downcasting as follows: Upcasting is casting a subtype to a super type in an upward direction to the inheritance tree. It is an automatic procedure for which t...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Sep, 2021" }, { "code": null, "e": 226, "s": 54, "text": "Typecasting is the assessment of the value of one primitive data type to another type. In java, there are two types of casting namely upcasting and downcasting as follows:" ...
Matplotlib.pyplot.subplot2grid() in python
19 Apr, 2020 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.pyplot.subplot2grid() function give additional flexibility in creating axes obje...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2020" }, { "code": null, "e": 240, "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...
sklearn.cross_decomposition.PLSRegression() function in Python
03 Jun, 2021 PLS regression is a Regression method that takes into account the latent structure in both datasets. Partial least squares regression performed well in MRI-based assessments for both single-label and multi-label learning reasons. PLSRegression acquires from PLS with mode=”A” and deflation_mode=”regression”...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jun, 2021" }, { "code": null, "e": 413, "s": 28, "text": "PLS regression is a Regression method that takes into account the latent structure in both datasets. Partial least squares regression performed well in MRI-based assessments f...
Python PIL | UnsharpMask() method
08 Sep, 2021 PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The ImageFilter module contains definitions for a pre-defined set of filters, which can be used with the Image.filter() method.PIL.ImageFilter.UnsharpMask() method applies the Unsahrp mask filter to the...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Sep, 2021" }, { "code": null, "e": 349, "s": 28, "text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The ImageFilter module contains definitions for a pre-defined set of f...
numpy.fix() in Python
04 Dec, 2020 The numpy.fix() is a mathematical function that rounds elements of the array to the nearest integer towards zero. The rounded values are returned as floats. Syntax : numpy.fix(a, b = None)Parameters : a : [array_like] Input array to be floated.b : [ndarray, optional] Output array. Return : The array of rou...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Dec, 2020" }, { "code": null, "e": 185, "s": 28, "text": "The numpy.fix() is a mathematical function that rounds elements of the array to the nearest integer towards zero. The rounded values are returned as floats." }, { "cod...
Timeit in Python with Examples
07 Mar, 2022 This article will introduce you to a method of measuring the execution time of your python code snippets. We will be using an in-built python library timeit.This module provides a simple way to find the execution time of small bits of Python code. Why timeit? Well, how about using a simple time module? J...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Mar, 2022" }, { "code": null, "e": 302, "s": 54, "text": "This article will introduce you to a method of measuring the execution time of your python code snippets. We will be using an in-built python library timeit.This module provi...
Structures in Golang
19 Nov, 2019 A structure or struct in Golang is a user-defined type that allows to group/combine items of possibly different types into a single type. Any real-world entity which has some set of properties/fields can be represented as a struct. This concept is generally compared with the classes in object-oriented prog...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Nov, 2019" }, { "code": null, "e": 470, "s": 54, "text": "A structure or struct in Golang is a user-defined type that allows to group/combine items of possibly different types into a single type. Any real-world entity which has some...
Evaluation of Prefix Expressions
06 Sep, 2021 Prefix and Postfix expressions can be evaluated faster than an infix expression. This is because we don’t need to process any brackets or follow operator precedence rule. In postfix and prefix expressions which ever operator comes before will be evaluated first, irrespective of its priority. Also, there ar...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Sep, 2021" }, { "code": null, "e": 825, "s": 54, "text": "Prefix and Postfix expressions can be evaluated faster than an infix expression. This is because we don’t need to process any brackets or follow operator precedence rule. In ...
Ints contains() function | Guava | Java
26 Jul, 2021 Guava’s Ints.contains() returns true if target is present as an element anywhere in array.Syntax: public static boolean contains(int[] array, int target) Parameters: This method accepts following parameters: array: An array of int values, possibly empty. target: A primitive int value. Return Value: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Jul, 2021" }, { "code": null, "e": 128, "s": 28, "text": "Guava’s Ints.contains() returns true if target is present as an element anywhere in array.Syntax: " }, { "code": null, "e": 187, "s": 128, "text": "public...
Horizontal or Vertical Progress Bar in Excel
27 May, 2021 The progress bar is a pictorial representation that tells about the details of any goal or task. By seeing the progress bar one can judge how much work is completed and how much is left to be covered. By default, there is no such Progress Chart in Excel but it can be made manually using the existing vertic...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 May, 2021" }, { "code": null, "e": 493, "s": 54, "text": "The progress bar is a pictorial representation that tells about the details of any goal or task. By seeing the progress bar one can judge how much work is completed and how m...
PHP | implode() Function
17 Jan, 2018 The implode() is a builtin function in PHP and is used to join the elements of an array. implode() is an alias for PHP | join() function and works exactly same as that of join() function. If we have an array of elements, we can use the implode() function to join them all to form one string. We basically jo...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jan, 2018" }, { "code": null, "e": 216, "s": 28, "text": "The implode() is a builtin function in PHP and is used to join the elements of an array. implode() is an alias for PHP | join() function and works exactly same as that of join...
R vs Python
12 Oct, 2021 R programming Language and Python are both used extensively for Data Sciences. Both are very useful and open source languages as well. R Programming Language Python Programming Language Difference between R Programming and Python Programming Ecosystem in R Programming and Python Programming Advantages in ...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Oct, 2021" }, { "code": null, "e": 164, "s": 28, "text": "R programming Language and Python are both used extensively for Data Sciences. Both are very useful and open source languages as well. " }, { "code": null, "e": 18...
How to Change the Whole App Language in Android Programmatically?
06 Jan, 2021 Android 7.0(API level 24) provides support for multilingual users, allowing the users to select multiple locales in the setting. A Locale object represents a specific geographical, political, or cultural region. Operations that required these Locale to perform a task are called locale-sensitive and uses th...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jan, 2021" }, { "code": null, "e": 559, "s": 28, "text": "Android 7.0(API level 24) provides support for multilingual users, allowing the users to select multiple locales in the setting. A Locale object represents a specific geograph...
Python – Concatenate values with same keys in a list of dictionaries
19 Jan, 2022 Sometimes, while working with Python dictionaries, we can have a problem in which we need to perform concatenation of all the key values list that is like in dictionary list. This is quite a common problem and has applications in domains such as day-day programming and web development domain. Let’s discuss...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Jan, 2022" }, { "code": null, "e": 414, "s": 52, "text": "Sometimes, while working with Python dictionaries, we can have a problem in which we need to perform concatenation of all the key values list that is like in dictionary list....
Python Random – random() Function
13 Jun, 2022 There are certain situations that involve games or simulations which work on non-deterministic approach. In these types of situations, random numbers are extensively used in the following applications: Creating pseudo-random numbers on Lottery scratch cards reCAPTCHA on login forms uses a random number gen...
[ { "code": null, "e": 53, "s": 25, "text": "\n13 Jun, 2022" }, { "code": null, "e": 255, "s": 53, "text": "There are certain situations that involve games or simulations which work on non-deterministic approach. In these types of situations, random numbers are extensively used in ...
Python | Relative Layout in Kivy using .kv file
06 Jul, 2020 Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications. Kivy Tutorial – Learn Kivy with Examples. Relative Layout: This layout...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jul, 2020" }, { "code": null, "e": 264, "s": 28, "text": "Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it doe...
Python | Check if all elements in list follow a condition
02 Oct, 2019 Sometimes, while working with Python list, we can have a problem in which we need to check if all the elements in list abide to a particular condition. This can have application in filtering in web development domain. Let’s discuss certain ways in which this task can be performed. Method #1 : Using all()We...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Oct, 2019" }, { "code": null, "e": 334, "s": 52, "text": "Sometimes, while working with Python list, we can have a problem in which we need to check if all the elements in list abide to a particular condition. This can have applicat...
Numpy ufunc | Universal functions
21 Jul, 2021 Universal functions in Numpy are simple mathematical functions. It is just a term that we gave to mathematical functions in the Numpy library. Numpy provides various universal functions that cover a wide variety of operations. These functions include standard trigonometric functions, functions for arithmet...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jul, 2021" }, { "code": null, "e": 477, "s": 28, "text": "Universal functions in Numpy are simple mathematical functions. It is just a term that we gave to mathematical functions in the Numpy library. Numpy provides various universal...
Time Series Modeling using Scikit, Pandas, and Numpy | by Dr. Varshita Sher | Towards Data Science
Welcome to Part 2 of Time Series Analysis! In this post, we will be working our way through modeling time series data. This is a continuation of my previous post on Time Series Data. In our previous blog post, we talked about what time series data is, how to format such data to maximize its utility, and how to handle m...
[ { "code": null, "e": 355, "s": 172, "text": "Welcome to Part 2 of Time Series Analysis! In this post, we will be working our way through modeling time series data. This is a continuation of my previous post on Time Series Data." }, { "code": null, "e": 888, "s": 355, "text": "In ...
What is C++ Standard Error Stream (cerr)?
std::cerr is an object of class ostream that represents the standard error stream oriented to narrow characters (of type char). It corresponds to the C stream stderr. The standard error stream is a destination of characters determined by the environment. This destination may be shared by more than one standard object (...
[ { "code": null, "e": 1405, "s": 1062, "text": "std::cerr is an object of class ostream that represents the standard error stream oriented to narrow characters (of type char). It corresponds to the C stream stderr. The standard error stream is a destination of characters determined by the environment...
Print cousins of a given node in Binary Tree
04 Jul, 2022 Given a binary tree and a node, print all cousins of given node. Note that siblings should not be printed.Example: Input : root of below tree 1 / \ 2 3 / \ / \ 4 5 6 7 and pointer to a node say 5. Output : 6, 7 The idea to first fi...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jul, 2022" }, { "code": null, "e": 171, "s": 54, "text": "Given a binary tree and a node, print all cousins of given node. Note that siblings should not be printed.Example: " }, { "code": null, "e": 341, "s": 171, ...
Logistic Regression in Julia
15 Dec, 2020 Logistic Regression, as the name suggests is completely opposite in functionality. Logistic Regression is basically a predictive algorithm in Machine Learning used for binary classification. It predicts the probability of a class and then classifies it based on the predictor variables’ values. The dependen...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Dec, 2020" }, { "code": null, "e": 323, "s": 28, "text": "Logistic Regression, as the name suggests is completely opposite in functionality. Logistic Regression is basically a predictive algorithm in Machine Learning used for binary ...
Minimum Spanning Tree using Priority Queue and Array List
05 Nov, 2021 Given a bi-directed weighted (positive) graph without self-loops, the task is to generate the minimum spanning tree of the graph.Examples: Input: N = 9, E = 14, edges = {{0, 1, 4}, {0, 7, 8}, {1, 2, 8}, {1, 7, 11}, {2, 3, 7}, {2, 8, 2}, {2, 5, 4}, {3, 4, 9}, {3, 5, 14}, {4, 5, 10}, {5, 6, 2}, {6, 7, 1}, ...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 Nov, 2021" }, { "code": null, "e": 193, "s": 52, "text": "Given a bi-directed weighted (positive) graph without self-loops, the task is to generate the minimum spanning tree of the graph.Examples: " }, { "code": null, "...
JRE in Java
26 Oct, 2021 Java Runtime Environment (JRE) is an open-access software distribution that has a Java class library, specific tools, and a separate JVM. JRE is one of the interrelated components in the Java Development Kit (JDK). It is the most common environment available on devices for running Java programs. Java sourc...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Oct, 2021" }, { "code": null, "e": 605, "s": 54, "text": "Java Runtime Environment (JRE) is an open-access software distribution that has a Java class library, specific tools, and a separate JVM. JRE is one of the interrelated compo...
vnstat command in Linux with Examples
29 Nov, 2021 vnstat is a command-line tool in Linux that is generally used by system administrators in order to monitor network parameters such as bandwidth consumption or maybe some traffic flowing in or out. It monitors the traffic on the network interfaces of the system. In case of RedHat based Linux yum install...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2021" }, { "code": null, "e": 292, "s": 28, "text": "vnstat is a command-line tool in Linux that is generally used by system administrators in order to monitor network parameters such as bandwidth consumption or maybe some traff...
Different ways to print elements of vector
03 Aug, 2021 Vectors are the same as dynamic arrays with the ability to resize themselves automatically when an element is inserted or deleted, with their storage being handled automatically by the container. The elements of vectors are placed in contiguous storage so that they can be accessed and traversed using itera...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Aug, 2021" }, { "code": null, "e": 640, "s": 28, "text": "Vectors are the same as dynamic arrays with the ability to resize themselves automatically when an element is inserted or deleted, with their storage being handled automatical...
How to calculate the number of days between two dates in javascript?
20 Jul, 2021 Calculating the number of days between two dates in JavaScript required to use date object for any kind of calculation. For that, first, get the internal millisecond value of the date using the in-built JavaScript getTime() function. As soon as both the dates get converted, proceed further by subtracting t...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Jul, 2021" }, { "code": null, "e": 615, "s": 54, "text": "Calculating the number of days between two dates in JavaScript required to use date object for any kind of calculation. For that, first, get the internal millisecond value of...
const_cast in C++ | Type Casting operators
23 Aug, 2018 C++ supports following 4 types of casting operators: 1. const_cast2. static_cast3. dynamic_cast4. reinterpret_cast 1. const_castconst_cast is used to cast away the constness of variables. Following are some interesting facts about const_cast. 1) const_cast can be used to change non-const class members insi...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Aug, 2018" }, { "code": null, "e": 105, "s": 52, "text": "C++ supports following 4 types of casting operators:" }, { "code": null, "e": 167, "s": 105, "text": "1. const_cast2. static_cast3. dynamic_cast4. reinter...
Jython – Introduction and Installation
10 May, 2020 It’s not hidden that Java is a powerful and Python is a simple and easy language. To get them both together, Jython was introduced so it is both powerful and simple. It is a pure Java implementation of Python. It uses Python’s syntax and Java’s environment. It allows using features of Python in Java enviro...
[ { "code": null, "e": 53, "s": 25, "text": "\n10 May, 2020" }, { "code": null, "e": 585, "s": 53, "text": "It’s not hidden that Java is a powerful and Python is a simple and easy language. To get them both together, Jython was introduced so it is both powerful and simple. It is a ...
Python – API.get_user() in Tweepy
08 Jun, 2020 Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secret from twitte...
[ { "code": null, "e": 53, "s": 25, "text": "\n08 Jun, 2020" }, { "code": null, "e": 453, "s": 53, "text": "Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be twe...
Sort given Array using at most N cyclic shift on any subarray - GeeksforGeeks
21 Dec, 2021 Given an array arr[] containing N integers, with duplicates. The task is to sort the array in increasing order using at most N cyclic shift on any sub-array. Cyclic shift on any sub-array means cut out any subarray from the given array, use cyclic shift (rotate) in it by any offset, and put it back into t...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n21 Dec, 2021" }, { "code": null, "e": 26200, "s": 26041, "text": "Given an array arr[] containing N integers, with duplicates. The task is to sort the array in increasing order using at most N cyclic shift on any sub-array. " }...
unordered_set clear() function in C++ STL - GeeksforGeeks
20 Aug, 2021 The unordered_set::clear() function is a built-in function in C++ STL which is used to clear an unordered_set container. That is, this function removes all of the elements from an unordered_set and empties it. All of the iterators, pointers, and references to the container are invalidated. This reduces the...
[ { "code": null, "e": 25759, "s": 25731, "text": "\n20 Aug, 2021" }, { "code": null, "e": 26099, "s": 25759, "text": "The unordered_set::clear() function is a built-in function in C++ STL which is used to clear an unordered_set container. That is, this function removes all of the ...
How to turn off PHP Notices ? - GeeksforGeeks
16 Oct, 2019 In PHP, Notices are the undefined variables indicated in the PHP project on a set of lines or particular lines. It usually does not affect or break the functionality of the code written. When PHP notices detect errors, it will display like this: PHP Notice: Use of undefined constant name - assumed 'name' i...
[ { "code": null, "e": 26103, "s": 26075, "text": "\n16 Oct, 2019" }, { "code": null, "e": 26349, "s": 26103, "text": "In PHP, Notices are the undefined variables indicated in the PHP project on a set of lines or particular lines. It usually does not affect or break the functionali...
C# Hashtable with Examples - GeeksforGeeks
29 Jul, 2021 A Hashtable is a collection of key/value pairs that are arranged based on the hash code of the key. Or in other words, a Hashtable is used to create a collection which uses a hash table for storage. It generally optimized the lookup by calculating the hash code of every key and store into another basket au...
[ { "code": null, "e": 26551, "s": 26523, "text": "\n29 Jul, 2021" }, { "code": null, "e": 27075, "s": 26551, "text": "A Hashtable is a collection of key/value pairs that are arranged based on the hash code of the key. Or in other words, a Hashtable is used to create a collection w...
How to add two Hexadecimal numbers? - GeeksforGeeks
27 Jan, 2021 Given two numeric Hexadecimal numbers str1 and str2, the task is to add the two hexadecimal numbers. Hexadecimal Number system, often shortened to “hex”, is a number system made up from 16 symbols. it uses 10 symbols from decimal number system which are represented by 0-9 and six extra symbols A – F which...
[ { "code": null, "e": 26123, "s": 26095, "text": "\n27 Jan, 2021" }, { "code": null, "e": 26225, "s": 26123, "text": "Given two numeric Hexadecimal numbers str1 and str2, the task is to add the two hexadecimal numbers. " }, { "code": null, "e": 26458, "s": 26225, ...
Edit distance and LCS (Longest Common Subsequence) - GeeksforGeeks
12 May, 2021 In standard Edit Distance where we are allowed 3 operations, insert, delete, and replace. Consider a variation of edit distance where we are allowed only two operations insert and delete, find edit distance in this variation. Examples: Input : str1 = "cat", st2 = "cut" Output : 2 We are allowed to inse...
[ { "code": null, "e": 25943, "s": 25915, "text": "\n12 May, 2021" }, { "code": null, "e": 26171, "s": 25943, "text": "In standard Edit Distance where we are allowed 3 operations, insert, delete, and replace. Consider a variation of edit distance where we are allowed only two opera...
jQuery UI dialog destroy() Method - GeeksforGeeks
13 Jan, 2021 destroy() Method is used to destroy the dialog. This method does not accept any argument Syntax: $( ".selector" ).dialog("destroy"); Approach: First, add jQuery UI scripts needed for your project. <link href = “https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css” rel = “stylesheet”><script ...
[ { "code": null, "e": 52596, "s": 52568, "text": "\n13 Jan, 2021" }, { "code": null, "e": 52685, "s": 52596, "text": "destroy() Method is used to destroy the dialog. This method does not accept any argument" }, { "code": null, "e": 52693, "s": 52685, "text": "S...
How to sorting an array without using loops in Node.js ? - GeeksforGeeks
31 Aug, 2020 The setInterval() method repeats or re-schedules the given function at every given time-interval. It is somewhat like window.setInterval() Method of JavaScript API, however, a string of code can’t be passed to get it executed. Syntax: setInterval(timerFunction, millisecondsTime); Parameter: It accepts two ...
[ { "code": null, "e": 26805, "s": 26777, "text": "\n31 Aug, 2020" }, { "code": null, "e": 27032, "s": 26805, "text": "The setInterval() method repeats or re-schedules the given function at every given time-interval. It is somewhat like window.setInterval() Method of JavaScript API...
React-Bootstrap Spinner Component - GeeksforGeeks
30 Apr, 2021 React-Bootstrap is a front-end framework that was designed keeping react in mind. Spinner Component provides a way to show the loading effect. We can use it to show the loading state, whenever required in our application. We can use the following approach in ReactJS to use the react-bootstrap Spinner Compo...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n30 Apr, 2021" }, { "code": null, "e": 26384, "s": 26071, "text": "React-Bootstrap is a front-end framework that was designed keeping react in mind. Spinner Component provides a way to show the loading effect. We can use it to sho...
DoubleAdder reset() method in Java with Examples - GeeksforGeeks
28 Jan, 2019 The java.DoubleAdder.reset() is an inbuilt method in java that resets variables maintaining the sum to zero. When the object of the class is created its initial value is zero. Syntax: public void reset() Parameters: This method does not accepts any parameter. Return Value: The method returns the reset val...
[ { "code": null, "e": 26161, "s": 26133, "text": "\n28 Jan, 2019" }, { "code": null, "e": 26337, "s": 26161, "text": "The java.DoubleAdder.reset() is an inbuilt method in java that resets variables maintaining the sum to zero. When the object of the class is created its initial va...
Usage of Enum and Switch Keyword in Java - GeeksforGeeks
28 Feb, 2022 An Enum is a unique type of data type in java which is generally a collection (set) of constants. More specifically, a Java Enum type is a unique kind of Java class. An Enum can hold constants, methods, etc. An Enum keyword can be used with if statement, switch statement, iteration, etc. enum constants ar...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n28 Feb, 2022" }, { "code": null, "e": 25515, "s": 25225, "text": "An Enum is a unique type of data type in java which is generally a collection (set) of constants. More specifically, a Java Enum type is a unique kind of Java clas...
Setting up Java Competitive Programming Environment - GeeksforGeeks
10 May, 2022 An operating system is required to be installed on your system. here we will be discussing the setup in windows. However, you can choose any operating system. Install JDK (Java Development Kit) JDK, is a program that allows you to write Java code from the comfort of your desktop. It contains a variety of t...
[ { "code": null, "e": 26255, "s": 26227, "text": "\n10 May, 2022" }, { "code": null, "e": 26676, "s": 26255, "text": "An operating system is required to be installed on your system. here we will be discussing the setup in windows. However, you can choose any operating system. Inst...
atexit() function in C/C++ - GeeksforGeeks
04 Feb, 2021 The function pointed by atexit() is automatically called without arguments when the program terminates normally. In case more than one function has been specified by different calls to the atexit() function, all are executed in the order of a stack (i.e. the last function specified is the first to be execu...
[ { "code": null, "e": 25453, "s": 25425, "text": "\n04 Feb, 2021" }, { "code": null, "e": 25860, "s": 25453, "text": "The function pointed by atexit() is automatically called without arguments when the program terminates normally. In case more than one function has been specified ...
How to create Chess pattern background using HTML and CSS ? - GeeksforGeeks
18 Aug, 2020 Chess patterns are simply certain tactical positions which regularly occur in games. It can be easily design by using the pseudo selector of CSS. This type of pattern can be used to create confusing illusions. Approach: The approach is to use repeating linear gradient property to create a pattern that will...
[ { "code": null, "e": 26819, "s": 26791, "text": "\n18 Aug, 2020" }, { "code": null, "e": 27029, "s": 26819, "text": "Chess patterns are simply certain tactical positions which regularly occur in games. It can be easily design by using the pseudo selector of CSS. This type of patt...
Perl - Arrays vs Lists - GeeksforGeeks
22 Jun, 2020 Perl is a general-purpose, interpreted, dynamic programming languages. Perl has three basic data types namely, scalars, arrays and hashes. The list is a sequence of scalar values. However, the list is not a data structure in Perl. There are limited operations that can be performed on the list in Perl. Sinc...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n22 Jun, 2020" }, { "code": null, "e": 25506, "s": 25367, "text": "Perl is a general-purpose, interpreted, dynamic programming languages. Perl has three basic data types namely, scalars, arrays and hashes." }, { "code": nu...
Python | Vowel indices in String - GeeksforGeeks
22 Apr, 2020 Sometimes, while working with Python Strings, we can have a problem in which we need to extract indices of vowels in it. This kind of application is common in day-day programming. Lets discuss certain ways in which this task can be performed. Method #1 : Using loopThis is one way in which this task can be ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n22 Apr, 2020" }, { "code": null, "e": 25780, "s": 25537, "text": "Sometimes, while working with Python Strings, we can have a problem in which we need to extract indices of vowels in it. This kind of application is common in day-...
Weighted sum of the characters of a string in an array | Set 2 - GeeksforGeeks
28 May, 2021 You are given an array of strings str[], the task is to find the score of a given string s from the array. The score of a string is defined as the product of the sum of its characters’s alphabetical values with the position of the string in the array.Examples: Input: str[] = {“sahil”, “shashanak”, “sanji...
[ { "code": null, "e": 26769, "s": 26741, "text": "\n28 May, 2021" }, { "code": null, "e": 27032, "s": 26769, "text": "You are given an array of strings str[], the task is to find the score of a given string s from the array. The score of a string is defined as the product of the s...
Permutation of numbers such that sum of two consecutive numbers is a perfect square - GeeksforGeeks
27 Nov, 2018 Prerequisite: Hamiltonian Cycle Given an integer n(>=2), find a permutation of numbers from 1 to n such that the sum of two consecutive numbers of that permutation is a perfect square. If that kind of permutation is not possible to print “No Solution”. Examples: Input : 17 Output : [16, 9, 7, 2, 14, 11, 5,...
[ { "code": null, "e": 26335, "s": 26307, "text": "\n27 Nov, 2018" }, { "code": null, "e": 26367, "s": 26335, "text": "Prerequisite: Hamiltonian Cycle" }, { "code": null, "e": 26588, "s": 26367, "text": "Given an integer n(>=2), find a permutation of numbers fro...
Number Theory | Generators of finite cyclic group under addition - GeeksforGeeks
19 Apr, 2021 Given a number n, find all generators of cyclic additive group under modulo n. Generator of a set {0, 1, ... n-1} is an element x such that x is smaller than n, and using x (and addition operation), we can generate all elements of the set.Examples: Input : 10 Output : 1 3 7 9 The set to be generated is {...
[ { "code": null, "e": 24319, "s": 24291, "text": "\n19 Apr, 2021" }, { "code": null, "e": 24570, "s": 24319, "text": "Given a number n, find all generators of cyclic additive group under modulo n. Generator of a set {0, 1, ... n-1} is an element x such that x is smaller than n, an...
How to get the count of each distinct value in a column in MySQL?
Let us see an example to get the count of each distinct value in a column. Firstly, we will create a table. The CREATE command is used to create a table. mysql> create table DistinctDemo1 - > ( - > id int, - > name varchar(100) - > ); Query OK, 0 rows affected (0.43 sec) mysql> insert into DistinctDemo1 val...
[ { "code": null, "e": 1170, "s": 1062, "text": "Let us see an example to get the count of each distinct value in a column. Firstly, we will create a table." }, { "code": null, "e": 1216, "s": 1170, "text": "The CREATE command is used to create a table." }, { "code": null, ...
How to Measure Statistical Causality: A Transfer Entropy Approach with Financial Applications | by Thársis Souza, PhD | Towards Data Science
We’ve all heard the say “correlation does not imply causation”, but how can we quantify causation? This is an extremely difficult and often misleading task, particularly when trying to infer causality from observational data and we cannot perform controlled trials or A/B testing. Take for example the 2-dimensional syst...
[ { "code": null, "e": 453, "s": 172, "text": "We’ve all heard the say “correlation does not imply causation”, but how can we quantify causation? This is an extremely difficult and often misleading task, particularly when trying to infer causality from observational data and we cannot perform controll...
Android - Spelling Checker
The Android platform offers a spelling checker framework that lets you implement and access spell checking in your application. In order to use spelling checker , you need to implement SpellCheckerSessionListener interface and override its methods. Its syntax is given below − public class HelloSpellCheckerActivity exte...
[ { "code": null, "e": 3735, "s": 3607, "text": "The Android platform offers a spelling checker framework that lets you implement and access spell checking in your application." }, { "code": null, "e": 3884, "s": 3735, "text": "In order to use spelling checker , you need to impleme...
Find the smallest after deleting given elements - GeeksforGeeks
28 May, 2021 Given an array of integers, find the smallest number after deleting given elements. In case of repeating elements, we delete one instance (from the original array) for every instance present in the array containing elements to be deleted.Examples: Input : Array = {5, 12, 33, 4, 56, 12, 20} To Delete = {1...
[ { "code": null, "e": 26065, "s": 26037, "text": "\n28 May, 2021" }, { "code": null, "e": 26315, "s": 26065, "text": "Given an array of integers, find the smallest number after deleting given elements. In case of repeating elements, we delete one instance (from the original array)...
Tensorflow.js tf.argMax() Function - GeeksforGeeks
18 May, 2021 Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.argMax() function is used to return the indices for the maximum values of the specified Tensor along an axis. The output result has th...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n18 May, 2021" }, { "code": null, "e": 26711, "s": 26545, "text": "Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environmen...
array::begin() and array::end() in C++ STL - GeeksforGeeks
10 Feb, 2021 Array classes are generally more efficient, light-weight and reliable than C-style arrays. The introduction of array class from C++11 has offered a better alternative for C-style arrays. begin() function is used to return an iterator pointing to the first element of the array container. begin() function re...
[ { "code": null, "e": 25343, "s": 25315, "text": "\n10 Feb, 2021" }, { "code": null, "e": 25530, "s": 25343, "text": "Array classes are generally more efficient, light-weight and reliable than C-style arrays. The introduction of array class from C++11 has offered a better alternat...
File opening modes(r versus r+) - GeeksforGeeks
14 Aug, 2019 A file has to be opened before the beginning of reading and writing operations. Opening a file creates a link between the operating system and the file function. Syntax for opening a file: FILE *fp; fp = fopen( " filename with extension ", " mode " ); Opening of file in detail:FILE: structure defined i...
[ { "code": null, "e": 26175, "s": 26147, "text": "\n14 Aug, 2019" }, { "code": null, "e": 26337, "s": 26175, "text": "A file has to be opened before the beginning of reading and writing operations. Opening a file creates a link between the operating system and the file function." ...
Print matrix in diagonal pattern - GeeksforGeeks
07 Feb, 2022 Given a matrix of n*n size, the task is to print its elements in a diagonal pattern. Input : mat[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}} Output : 1 2 4 7 5 3 6 8 9. Explanation: Start from 1 Then from upward to downward diagonally i.e. 2 and 4 Then from down...
[ { "code": null, "e": 26263, "s": 26235, "text": "\n07 Feb, 2022" }, { "code": null, "e": 26350, "s": 26263, "text": "Given a matrix of n*n size, the task is to print its elements in a diagonal pattern. " }, { "code": null, "e": 27201, "s": 26352, "text": "Inp...
How to divide a polynomial to another using NumPy in Python? - GeeksforGeeks
29 Aug, 2020 In this article, we will make a NumPy program to divide one polynomial to another. Two polynomials are given as input and the result is the quotient and remainder of the division. The polynomial p(x) = C3 x2 + C2 x + C1 is represented in NumPy as : ( C1, C2, C3 ) { the coefficients (constants)}. Let take ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n29 Aug, 2020" }, { "code": null, "e": 25717, "s": 25537, "text": "In this article, we will make a NumPy program to divide one polynomial to another. Two polynomials are given as input and the result is the quotient and remainder ...
Adjacent JSX elements must be wrapped in an enclosing tag - GeeksforGeeks
12 Oct, 2020 If anyone uses multiple HTML elements inside a render method in the React library, it shows an error specifying that Adjacent JSX elements must be wrapped in an enclosing tag. The reason for the error is that when we use the render method it can only take a single HTML element. That means if you have two o...
[ { "code": null, "e": 26543, "s": 26515, "text": "\n12 Oct, 2020" }, { "code": null, "e": 27108, "s": 26543, "text": "If anyone uses multiple HTML elements inside a render method in the React library, it shows an error specifying that Adjacent JSX elements must be wrapped in an en...
Find if there is a path of more than k length from a source - GeeksforGeeks
08 Apr, 2022 Given a graph, a source vertex in the graph and a number k, find if there is a simple path (without any cycle) starting from given source and ending at any other vertex such that the distance from source to that vertex is atleast ‘k’ length. Example: Input : Source s = 0, k = 58 Output : True There exist...
[ { "code": null, "e": 26371, "s": 26343, "text": "\n08 Apr, 2022" }, { "code": null, "e": 26614, "s": 26371, "text": "Given a graph, a source vertex in the graph and a number k, find if there is a simple path (without any cycle) starting from given source and ending at any other v...
Number of ways to partition a string into two balanced subsequences - GeeksforGeeks
21 Oct, 2021 Given a string ‘S’ consisting of open and closed brackets, the task is find the number of ways in which each character of ‘S’ can be assigned to either a string ‘X’ or string ‘Y’ (both initially empty) such that the strings formed by X and Y are balanced. It can be assumed that ‘S’ is itself balanced.Examp...
[ { "code": null, "e": 26257, "s": 26229, "text": "\n21 Oct, 2021" }, { "code": null, "e": 26571, "s": 26257, "text": "Given a string ‘S’ consisting of open and closed brackets, the task is find the number of ways in which each character of ‘S’ can be assigned to either a string ‘X...
length vs length() in Java - GeeksforGeeks
04 Aug, 2021 array.length: length is a final variable applicable for arrays. With the help of the length variable, we can obtain the size of the array. string.length() : length() method is a final variable which is applicable for string objects. The length() method returns the number of characters present in the strin...
[ { "code": null, "e": 26291, "s": 26263, "text": "\n04 Aug, 2021" }, { "code": null, "e": 26431, "s": 26291, "text": "array.length: length is a final variable applicable for arrays. With the help of the length variable, we can obtain the size of the array. " }, { "code": n...
Java Program to Print Summation of Numbers - GeeksforGeeks
21 Oct, 2020 Given an array of integers, print the sum of all the elements in an array. Input: arr[] = {1,2,3,4,5} Output: 15 Input: arr[] = {2, 9, -10, -1, 5, -12} Output: -7 Create a variable named sum and initialize it to 0.Traverse the array through a loop and add the value of each element into sum.Print sum as the...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n21 Oct, 2020" }, { "code": null, "e": 25300, "s": 25225, "text": "Given an array of integers, print the sum of all the elements in an array." }, { "code": null, "e": 25327, "s": 25300, "text": "Input: arr[] = ...
How to Select a Range of Elements using jQuery ? - GeeksforGeeks
02 Mar, 2020 Given an HTML document with a range of similar elements and the task is to select a range of those elements with the help of JavaScript. There are two approaches that are discussed below with an example. Approach 1: First, select all elements of class = ‘child’ by jQuery selector then use slice() method to...
[ { "code": null, "e": 26206, "s": 26178, "text": "\n02 Mar, 2020" }, { "code": null, "e": 26410, "s": 26206, "text": "Given an HTML document with a range of similar elements and the task is to select a range of those elements with the help of JavaScript. There are two approaches t...
Longest subsequence with consecutive English alphabets - GeeksforGeeks
13 Aug, 2021 Given string S, the task is to find the length of the longest subsequence of the consecutive lowercase alphabets. Examples: Input: S = “acbdcfhg”Output: 3Explanation: String “abc” is the longest subsequence of consecutive lowercase alphabets.Therefore, print 3 as it is the length of the subsequence “abc”. ...
[ { "code": null, "e": 26073, "s": 26045, "text": "\n13 Aug, 2021" }, { "code": null, "e": 26187, "s": 26073, "text": "Given string S, the task is to find the length of the longest subsequence of the consecutive lowercase alphabets." }, { "code": null, "e": 26197, "...
Sprinklr Interview Experience | On-Campus - GeeksforGeeks
30 Jul, 2021 Round One Coding test of 1.5 Hours: It was an online coding test conducted on HackerRank. A test consisting of 3 coding questions. A medical team wants to send a minimum number of workers for vaccinating people in the city, each worker can vaccinate people in an area whose radius is D, and can start from ...
[ { "code": null, "e": 26421, "s": 26393, "text": "\n30 Jul, 2021" }, { "code": null, "e": 26553, "s": 26421, "text": "Round One Coding test of 1.5 Hours: It was an online coding test conducted on HackerRank. A test consisting of 3 coding questions. " }, { "code": null, ...
Introduction to Object Detection Model Evaluation | by Déborah Mesquita | Towards Data Science
Evaluating object detection models is not straightforward because each image can have many objects and each object can belong to different classes. This means that we need to measure if the model found all the objects and also a way to verify if the found objects belong to the correct class. This means that an object d...
[ { "code": null, "e": 465, "s": 172, "text": "Evaluating object detection models is not straightforward because each image can have many objects and each object can belong to different classes. This means that we need to measure if the model found all the objects and also a way to verify if the found...
User-defined Custom Exception with class in C++ - GeeksforGeeks
16 Apr, 2021 We can use Exception handling with class too. Even we can throw an exception of user defined class types. For throwing an exception of say demo class type within try block we may write throw demo(); Example 1: Program to implement exception handling with single class CPP14 #include <iostream>using name...
[ { "code": null, "e": 24407, "s": 24379, "text": "\n16 Apr, 2021" }, { "code": null, "e": 24594, "s": 24407, "text": "We can use Exception handling with class too. Even we can throw an exception of user defined class types. For throwing an exception of say demo class type within t...
Convert files from jpg to gif and vice versa using Python - GeeksforGeeks
26 Jul, 2021 Sometimes it is required to attach the Image where we required image file with the specified extension. And we have the image with the different extension which needs to be converted with a specified extension like in this we will convert the image having Extension of .jpg to .gif and Vice-Versa And Also w...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n26 Jul, 2021" }, { "code": null, "e": 24589, "s": 24292, "text": "Sometimes it is required to attach the Image where we required image file with the specified extension. And we have the image with the different extension which ne...
How do I create child windows with Python tkinter?
The child window can be referred to as the independent window which is separated from the root or main window. In order to create a child window, we have to define a toplevel window which can be created manually using the Toplevel(win) method. In the method toplevel(root), we have to pass the main window as the paramet...
[ { "code": null, "e": 1427, "s": 1062, "text": "The child window can be referred to as the independent window which is separated from the root or main window. In order to create a child window, we have to define a toplevel window which can be created manually using the Toplevel(win) method. In the me...
How to install gnome desktop on centos rhel 7 using yum command
GNOME is a totally intuitive and user friendly desktop environment for CentOS and RHEL 7.x based system. The latest version of GNOME Desktops are GNOME 2 to GNOME 3 and the GNOME Shell desktop. Most of the users who prefer traditional desktop environments can get it via GNOME’s classic mode. It is also fully configurab...
[ { "code": null, "e": 1555, "s": 1062, "text": "GNOME is a totally intuitive and user friendly desktop environment for CentOS and RHEL 7.x based system. The latest version of GNOME Desktops are GNOME 2 to GNOME 3 and the GNOME Shell desktop. Most of the users who prefer traditional desktop environmen...
Exploring Exploratory Data Analysis | by Aamodini Gupta | Towards Data Science
The whole point of Exploratory Data Analysis (EDA) is to just take a step back and look at the dataset before doing anything with it. EDA is just as important as any part of a data project because real datasets are really messy and lots of things can go wrong. If you don’t know your data well enough, how are you going ...
[ { "code": null, "e": 555, "s": 172, "text": "The whole point of Exploratory Data Analysis (EDA) is to just take a step back and look at the dataset before doing anything with it. EDA is just as important as any part of a data project because real datasets are really messy and lots of things can go w...
Q Programming Language
Kdb+ comes with its built-in programming language that is known as q. It incorporates a superset of standard SQL which is extended for time-series analysis and offers many advantages over the standard version. Anyone familiar with SQL can learn q in a matter of days and be able to quickly write her own ad-hoc queries. ...
[ { "code": null, "e": 2478, "s": 2158, "text": "Kdb+ comes with its built-in programming language that is known as q. It incorporates a superset of standard SQL which is extended for time-series analysis and offers many advantages over the standard version. Anyone familiar with SQL can learn q in a m...
How to group and aggregate data using SQL | by Kate Marie Lewis | Towards Data Science
I have been so enjoying engaging with my friends to share my love of data science. We are powering through learning SQL, with three lessons under our belt already. If you would like to start at the beginning here is a link to the first lesson. All of the lessons can also be found here. Otherwise, get stuck into this le...
[ { "code": null, "e": 540, "s": 171, "text": "I have been so enjoying engaging with my friends to share my love of data science. We are powering through learning SQL, with three lessons under our belt already. If you would like to start at the beginning here is a link to the first lesson. All of the ...
Deep embedding’s for categorical variables (Cat2Vec) | by Prajwal Shreyas | Towards Data Science
In this blog I am going to take you through the steps involved in creating a embedding for categorical variables using a deep learning network on top of keras. The concept was originally introduced by Jeremy Howard in his fastai course. Please see the link for more details. Across most of the data sources that we work ...
[ { "code": null, "e": 447, "s": 172, "text": "In this blog I am going to take you through the steps involved in creating a embedding for categorical variables using a deep learning network on top of keras. The concept was originally introduced by Jeremy Howard in his fastai course. Please see the lin...
Eigenfaces — Face Classification in Python | by Dario Radečić | Towards Data Science
Nowadays we can use neural networks to perform state of the art image classification, or face classification in this case. But what about taking a simpler approach? That’s what this article aims to cover. Official repo: access it here to get data and code. The idea of taking raw pixel values as input features might see...
[ { "code": null, "e": 377, "s": 172, "text": "Nowadays we can use neural networks to perform state of the art image classification, or face classification in this case. But what about taking a simpler approach? That’s what this article aims to cover." }, { "code": null, "e": 429, "s":...
C++ Program to Find LCM
The Least Common Multiple (LCM) of two numbers is the smallest number that is a multiple of both. For example: Let’s say we have the following two numbers: 15 and 9. 15 = 5 * 3 9 = 3 * 3 So, the LCM of 15 and 9 is 45. A program to find the LCM of two numbers is given as follows − Live Demo #include <iostream> using na...
[ { "code": null, "e": 1160, "s": 1062, "text": "The Least Common Multiple (LCM) of two numbers is the smallest number that is a multiple of both." }, { "code": null, "e": 1228, "s": 1160, "text": "For example: Let’s say we have the following two numbers: 15 and 9." }, { "c...
How can we return null from a generic method in C#?
Generics allows us to define a class with placeholders for the type of its fields, methods, parameters, etc. Generics replace these placeholders with some specific type at compile time. A generic can be defined using angle brackets <>. A primary limitation of collections is the absence of effective type checking. This ...
[ { "code": null, "e": 1518, "s": 1062, "text": "Generics allows us to define a class with placeholders for the type of its fields, methods, parameters, etc. Generics replace these placeholders with some specific type at compile time. A generic can be defined using angle brackets <>. A primary limitat...
AI with Python – Machine Learning
Learning means the acquisition of knowledge or skills through study or experience. Based on this, we can define machine learning (ML) as follows − It may be defined as the field of computer science, more specifically an application of artificial intelligence, which provides computer systems the ability to learn with da...
[ { "code": null, "e": 2352, "s": 2205, "text": "Learning means the acquisition of knowledge or skills through study or experience. Based on this, we can define machine learning (ML) as follows −" }, { "code": null, "e": 2593, "s": 2352, "text": "It may be defined as the field of c...
How to make a 3D scatter plot in Python?
To get a 3D plot, we can use fig.add_subplot(111, projection='3d') method to instantiate the axis. After that, we can use the scatter method to draw different data points on the x, y, and z axes. Create a new figure, or activate an existing figure. Create a new figure, or activate an existing figure. Add an `~.axes.Axe...
[ { "code": null, "e": 1258, "s": 1062, "text": "To get a 3D plot, we can use fig.add_subplot(111, projection='3d') method to instantiate the axis. After that, we can use the scatter method to draw different data points on the x, y, and z axes." }, { "code": null, "e": 1311, "s": 1258,...
GWT - FileUpload Widget
The FileUpload widget wraps the HTML <input type = 'file'> element. This widget must be used with FormPanel if it is to be submitted to a server. Following is the declaration for com.google.gwt.user.client.ui.FileUpload class − public class FileUpload extends Widget implements HasName, HasChangeHandlers Foll...
[ { "code": null, "e": 2170, "s": 2023, "text": "The FileUpload widget wraps the HTML <input type = 'file'> element. This widget must be used with FormPanel if it is to be submitted to a server. " }, { "code": null, "e": 2252, "s": 2170, "text": "Following is the declaration for co...
How to Fix: No module named plotly - GeeksforGeeks
22 Nov, 2021 In this article, we are going to see how to fix the no module error of plotly. This type of error is seen when we don’t have a particular module installed in our Python environment. In this tutorial, we will try to reproduce the error and solve it using screenshots. Example: It can be done with pip command...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n22 Nov, 2021" }, { "code": null, "e": 24559, "s": 24292, "text": "In this article, we are going to see how to fix the no module error of plotly. This type of error is seen when we don’t have a particular module installed in our P...