title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
C program to remove the brackets from a given input. | Let’s create a simplified expression by removing brackets from the expressions.
Input: A string expression with bracket is as follows:
(x+y)+(z+q)
The output is as follows:
x+y+z+q
The input is as follows:
(x-y+z)-p+q
The output is as follows:
x-y+z-p+q
Refer an algorithm to remove the brackets from a given input.
Step... | [
{
"code": null,
"e": 1142,
"s": 1062,
"text": "Let’s create a simplified expression by removing brackets from the expressions."
},
{
"code": null,
"e": 1243,
"s": 1142,
"text": "Input: A string expression with bracket is as follows:\n(x+y)+(z+q)\nThe output is as follows:\nx+y+z+... |
Adding two polynomials using Circular Linked List - GeeksforGeeks | 12 Jan, 2022
Given two polynomial numbers represented by a circular linked list, the task is to add these two polynomials by adding the coefficients of the powers of the same variable.
Note: In given polynomials, the term containing the higher power of x will come first.
Examples:
Input: 1st Number = 5x^2 * y^1 + 4x^1... | [
{
"code": null,
"e": 24960,
"s": 24932,
"text": "\n12 Jan, 2022"
},
{
"code": null,
"e": 25133,
"s": 24960,
"text": "Given two polynomial numbers represented by a circular linked list, the task is to add these two polynomials by adding the coefficients of the powers of the same v... |
How to Exclude the Outliers in Pandas DataFrame | by Khuyen Tran | Towards Data Science | Pandas is a common library for data scientists. There are different ways to process a Pandas DataFrame, but some ways are more efficient than others. This article will provide you 4 efficient ways to:
Assign new columns to a DataFrame
Exclude the outliers in a column
Select or drop all columns that start with ‘X’
Filte... | [
{
"code": null,
"e": 373,
"s": 172,
"text": "Pandas is a common library for data scientists. There are different ways to process a Pandas DataFrame, but some ways are more efficient than others. This article will provide you 4 efficient ways to:"
},
{
"code": null,
"e": 407,
"s": 373... |
Kotlin Arrays | Arrays are used to store multiple values in a single variable, instead of
creating separate variables for each
value.
To create an array, use the arrayOf() function, and place the
values in a comma-separated list inside it:
val cars = arrayOf("Volvo", "BMW", "Ford", "Mazda")
You can access an array element by refer... | [
{
"code": null,
"e": 120,
"s": 0,
"text": "Arrays are used to store multiple values in a single variable, instead of \ncreating separate variables for each \nvalue."
},
{
"code": null,
"e": 227,
"s": 120,
"text": "To create an array, use the arrayOf() function, and place the \nva... |
C program to find the unique elements in an array. | Find the non-repeating element in an array by using the two loops. One is for the current element and the other is to check, if an element is already present in an array or not.
Consider an example given below −
15, 15, 16, 15, 13, 15
Here, the non-repeated elements in an array are 16 and 13.
Refer an algorithm given b... | [
{
"code": null,
"e": 1240,
"s": 1062,
"text": "Find the non-repeating element in an array by using the two loops. One is for the current element and the other is to check, if an element is already present in an array or not."
},
{
"code": null,
"e": 1274,
"s": 1240,
"text": "Cons... |
map emplace_hint() function in C++ STL - GeeksforGeeks | 04 Jun, 2020
The map::emplace_hint() is a built-in function in C++ STL which inserts the key and its element in the map container with a given hint. It effectively increases the container size by one as map is the container that stores keys with the element value. The hint provided does not affect the position to be en... | [
{
"code": null,
"e": 24103,
"s": 24075,
"text": "\n04 Jun, 2020"
},
{
"code": null,
"e": 24853,
"s": 24103,
"text": "The map::emplace_hint() is a built-in function in C++ STL which inserts the key and its element in the map container with a given hint. It effectively increases th... |
Rust - A Case of Safe Concurrency - GeeksforGeeks | 15 Feb, 2021
Before looking at Rust itself, let’s go back to 1992. Guido van Rossum, in an attempt to tackle race condition in CPython interpreter, added a lock famously known as the Global Interpreter Lock or GIL for short. Two and a half decades later, this was one of the main shortcomings for the Python interpreter ... | [
{
"code": null,
"e": 23213,
"s": 23185,
"text": "\n15 Feb, 2021"
},
{
"code": null,
"e": 23541,
"s": 23213,
"text": "Before looking at Rust itself, let’s go back to 1992. Guido van Rossum, in an attempt to tackle race condition in CPython interpreter, added a lock famously known ... |
Array Of Objects In AngularJs | Object in AngularJs | AngularJS E | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In the previous example, we saw how to access... | [
{
"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,
... |
PyQt - QSpinBox Widget | A QSpinBox object presents the user with a textbox which displays an integer with up/down button on its right. The value in the textbox increases/decreases if the up/down button is pressed.
By default, the integer number in the box starts with 0, goes upto 99 and changes by step 1. Use QDoubleSpinBox for float values.
... | [
{
"code": null,
"e": 2116,
"s": 1926,
"text": "A QSpinBox object presents the user with a textbox which displays an integer with up/down button on its right. The value in the textbox increases/decreases if the up/down button is pressed."
},
{
"code": null,
"e": 2246,
"s": 2116,
"... |
Absolute and Relative frequency in Pandas - GeeksforGeeks | 20 Apr, 2020
Frequency is the number of occurrences of an outcome in the given sample. It can be termed in two different ways.
1. Absolute Frequency:It is the number of observations in a particular category. It has always an integer value or we can say it has discrete values.
Example:
Following data are given about pas... | [
{
"code": null,
"e": 24563,
"s": 24535,
"text": "\n20 Apr, 2020"
},
{
"code": null,
"e": 24677,
"s": 24563,
"text": "Frequency is the number of occurrences of an outcome in the given sample. It can be termed in two different ways."
},
{
"code": null,
"e": 24827,
"... |
DocumentDB SQL - Quick Guide | DocumentDB is Microsoft's newest NoSQL document database platform that runs on Azure. In this tutorial, we will learn all about querying documents using the special version of SQL supported by DocumentDB.
DocumentDB is Microsoft's newest NoSQL document database, however, when we say NoSQL document database, what precis... | [
{
"code": null,
"e": 2390,
"s": 2185,
"text": "DocumentDB is Microsoft's newest NoSQL document database platform that runs on Azure. In this tutorial, we will learn all about querying documents using the special version of SQL supported by DocumentDB."
},
{
"code": null,
"e": 2553,
"... |
How to clear screen in python? | In Python sometimes we have link the output and we want to clear the screen in the cell prompt we can clear the screen by pressing Control + l . But there are situations when we need to clear the screen programmatically depending on the amount of output from the program and how we want to format the output. In such cas... | [
{
"code": null,
"e": 1497,
"s": 1062,
"text": "In Python sometimes we have link the output and we want to clear the screen in the cell prompt we can clear the screen by pressing Control + l . But there are situations when we need to clear the screen programmatically depending on the amount of output... |
Find Minimum Depth of a Binary Tree - GeeksforGeeks | 12 Apr, 2022
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.
For example, minimum height of below Binary Tree is 2.
Note that the path must end on a leaf node. For example, the minimum height of below Bina... | [
{
"code": null,
"e": 24938,
"s": 24910,
"text": "\n12 Apr, 2022"
},
{
"code": null,
"e": 25099,
"s": 24938,
"text": "Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node. "
... |
issubset() function in Python | In this article, we will learn the implementation and usage of issubset() function available in the Python Standard Library.
The issubset() method returns boolean True when all elements of a set are present in another set (passed as an argument) otherwise, it returns boolean False.
In the figure given below B is a subs... | [
{
"code": null,
"e": 1187,
"s": 1062,
"text": "In this article, we will learn the implementation and usage of issubset() function available in the Python Standard Library."
},
{
"code": null,
"e": 1345,
"s": 1187,
"text": "The issubset() method returns boolean True when all eleme... |
8085 program to sum of two 8 bit numbers without carry - GeeksforGeeks | 30 Jan, 2019
Problem – Write an assembly language program to sum two 8 bit numbers without using carry operation in 8085 microprocessor.
Assumption:
The starting address of the program is 2000.Memory address of the first number is 2050.Memory address of the second number is 2051.Memory address of result is 2052.
The st... | [
{
"code": null,
"e": 24804,
"s": 24776,
"text": "\n30 Jan, 2019"
},
{
"code": null,
"e": 24928,
"s": 24804,
"text": "Problem – Write an assembly language program to sum two 8 bit numbers without using carry operation in 8085 microprocessor."
},
{
"code": null,
"e": 24... |
What are the differences between default constructor and parameterized constructor in Java? | A default constructor is a 0 argument constructor which contains a no-argument call to the super class constructor.
To assign default values to the newly created objects is the main responsibility of default constructor.
Compiler writes a default constructor in the code only if the program does not write any constructo... | [
{
"code": null,
"e": 1178,
"s": 1062,
"text": "A default constructor is a 0 argument constructor which contains a no-argument call to the super class constructor."
},
{
"code": null,
"e": 1283,
"s": 1178,
"text": "To assign default values to the newly created objects is the main ... |
How to display a simple loading indicator between routes in react router ? - GeeksforGeeks | 10 May, 2021
It is a good practice to display a loading screen while you prepare your page to display. It is very easy to display a simple loading indicator between routes in react-router.
Creating React Application:
Step 1: Create a React application using the following command:npx create-react-app foldername
Step 1:... | [
{
"code": null,
"e": 24826,
"s": 24798,
"text": "\n10 May, 2021"
},
{
"code": null,
"e": 25003,
"s": 24826,
"text": "It is a good practice to display a loading screen while you prepare your page to display. It is very easy to display a simple loading indicator between routes in r... |
Access Satellite Imagery with AWS and Google Colab | by Abdishakur | Towards Data Science | Accessing satellite imagery requires a lot of storage when you download it locally. The process can take up all your storage space if you need multiple plots over an extended period. Worse even is that you might need only a subset area of the whole image.
To deal with such problems, the recent advances in Geospatial da... | [
{
"code": null,
"e": 428,
"s": 172,
"text": "Accessing satellite imagery requires a lot of storage when you download it locally. The process can take up all your storage space if you need multiple plots over an extended period. Worse even is that you might need only a subset area of the whole image.... |
Hands-on Time Series Forecasting with Python | by Idil Ismiguzel | Towards Data Science | Time series analysis is the endeavor of extracting meaningful summary and statistical information from data points that are in chronological order. They are widely used in applied science and engineering which involves temporal measurements such as signal processing, pattern recognition, mathematical finance, weather f... | [
{
"code": null,
"e": 590,
"s": 171,
"text": "Time series analysis is the endeavor of extracting meaningful summary and statistical information from data points that are in chronological order. They are widely used in applied science and engineering which involves temporal measurements such as signal... |
HTML | <h1> to <h6> align Attribute - GeeksforGeeks | 25 Feb, 2022
The HTML <h1> to <h6> align Attribute is used to specify the alignment of the <h> element or the content present inside the Heading Element.
Note: This attribute is not supported by HTML5.
Syntax:
<h1 align="left | right | center | justify">
Attribute Values:
left: It sets the content to the left-align. By... | [
{
"code": null,
"e": 25328,
"s": 25300,
"text": "\n25 Feb, 2022"
},
{
"code": null,
"e": 25469,
"s": 25328,
"text": "The HTML <h1> to <h6> align Attribute is used to specify the alignment of the <h> element or the content present inside the Heading Element."
},
{
"code": ... |
Get a random value between two values in MySQL? | To get the random value between two values, use MySQL rand() method with floor(). The syntax is as follows.
select FLOOR( RAND() * (maximumValue-minimumValue) + minimumValue) as anyVariableName;
Let us check with some maximum and minimum value. The maximum value we are considering is 200 and minimum is 100. The random ... | [
{
"code": null,
"e": 1170,
"s": 1062,
"text": "To get the random value between two values, use MySQL rand() method with floor(). The syntax is as follows."
},
{
"code": null,
"e": 1257,
"s": 1170,
"text": "select FLOOR( RAND() * (maximumValue-minimumValue) + minimumValue) as anyV... |
What is the purpose of “NOT NULL WITH DEFAULT” clause used in DB2 table column? | When we define the DB2 table, we can declare any column as “NOT NULL” which means that in any case this column cannot store NULL value.
Now if we try to store a NULL value in this column in our COBOL-DB2 program using -1 value in the NULL indicator then our query will fail. In this case the SQLCODE field of SQLCA will ... | [
{
"code": null,
"e": 1198,
"s": 1062,
"text": "When we define the DB2 table, we can declare any column as “NOT NULL” which means that in any case this column cannot store NULL value."
},
{
"code": null,
"e": 1469,
"s": 1198,
"text": "Now if we try to store a NULL value in this co... |
Java Generics - Multiple Type Parameters | A Generic class can have muliple type parameters. Following example will showcase above mentioned concept.
Create the following java program using any editor of your choice.
GenericsTester.java
package com.tutorialspoint;
public class GenericsTester {
public static void main(String[] args) {
Box<Integer, Stri... | [
{
"code": null,
"e": 2747,
"s": 2640,
"text": "A Generic class can have muliple type parameters. Following example will showcase above mentioned concept."
},
{
"code": null,
"e": 2814,
"s": 2747,
"text": "Create the following java program using any editor of your choice."
},
... |
Python - Select multiple columns from a Pandas dataframe | Let’s say the following are the contents of our CSV file opened in Microsoft Excel −
At first, load data from a CSV file into a Pandas DataFrame −
dataFrame = pd.read_csv("C:\\Users\\amit_\\Desktop\\SalesData.csv")
To select multiple column records, use the square brackets. Mention the columns in the brackets and fetch... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "Let’s say the following are the contents of our CSV file opened in Microsoft Excel −"
},
{
"code": null,
"e": 1209,
"s": 1147,
"text": "At first, load data from a CSV file into a Pandas DataFrame −"
},
{
"code": null,
"e"... |
Feature Flag Hooks for React & Azure App Config | Towards Data Science | There are two things I love, Microsoft Azure (my go-to cloud), and React.js for building scalable web applications.
Recently, I found a need to add dynamic configurations to my app and saw it as an opportunity to explore the Azure App Configuration Service in more detail.
Complementing Azure Key Vault (which is used to... | [
{
"code": null,
"e": 287,
"s": 171,
"text": "There are two things I love, Microsoft Azure (my go-to cloud), and React.js for building scalable web applications."
},
{
"code": null,
"e": 444,
"s": 287,
"text": "Recently, I found a need to add dynamic configurations to my app and s... |
Generating Mock Sales Data with Python Pandas | by Soner Yıldırım | Towards Data Science | There are several software tools and packages in the data science ecosystem. These tools accelerate the routine processes as well as helping us manage, explore, and analyze data.
Whatever tool you use or whatever project you work on, everything in data science starts from data. Without proper data, your data products a... | [
{
"code": null,
"e": 351,
"s": 172,
"text": "There are several software tools and packages in the data science ecosystem. These tools accelerate the routine processes as well as helping us manage, explore, and analyze data."
},
{
"code": null,
"e": 511,
"s": 351,
"text": "Whateve... |
TypeScript - Passing Arrays to Functions | You can pass to the function a pointer to an array by specifying the array's name without an index.
var names:string[] = new Array("Mary","Tom","Jack","Jill")
function disp(arr_names:string[]) {
for(var i = 0;i<arr_names.length;i++) {
console.log(names[i])
}
}
disp(names)
On compiling, it will gen... | [
{
"code": null,
"e": 2148,
"s": 2048,
"text": "You can pass to the function a pointer to an array by specifying the array's name without an index."
},
{
"code": null,
"e": 2343,
"s": 2148,
"text": "var names:string[] = new Array(\"Mary\",\"Tom\",\"Jack\",\"Jill\") \n\nfunction d... |
MongoDB - Quick Guide | MongoDB is a cross-platform, document oriented database that provides, high performance, high availability, and easy scalability. MongoDB works on concept of collection and document.
Database is a physical container for collections. Each database gets its own set of files on the file system. A single MongoDB server typ... | [
{
"code": null,
"e": 2736,
"s": 2553,
"text": "MongoDB is a cross-platform, document oriented database that provides, high performance, high availability, and easy scalability. MongoDB works on concept of collection and document."
},
{
"code": null,
"e": 2904,
"s": 2736,
"text": ... |
HTML - Embed Multimedia | Sometimes you need to add music or video into your web page. The easiest way to add video or sound to your web site is to include the special HTML tag called <embed>. This tag causes the browser itself to include controls for the multimedia automatically provided browser supports <embed> tag and given media type.
You c... | [
{
"code": null,
"e": 2689,
"s": 2374,
"text": "Sometimes you need to add music or video into your web page. The easiest way to add video or sound to your web site is to include the special HTML tag called <embed>. This tag causes the browser itself to include controls for the multimedia automaticall... |
Number of paths from source to destination in a directed acyclic graph | 19 Feb, 2022
Given a Directed Acyclic Graph with n vertices and m edges. The task is to find the number of different paths that exist from a source vertex to destination vertex.
Examples:
Input: source = 0, destination = 4 Output: 3 Explanation: 0 -> 2 -> 3 -> 4 0 -> 3 -> 4 0 -> 4
Input: source = 0, destination = 1 ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Feb, 2022"
},
{
"code": null,
"e": 218,
"s": 52,
"text": "Given a Directed Acyclic Graph with n vertices and m edges. The task is to find the number of different paths that exist from a source vertex to destination vertex. "
},
... |
PyQt5 | How to change the process bar color ? | 22 Apr, 2020
In this article we will see how to change the color of progress bar. By default, the color of process bar is green although PyQt5 allows us to change the color using the style sheets.
In order to do this we will use setStyleSheet method and will edit the CSS chunk file of process bar.
Syntax :
bar.setStyle... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 212,
"s": 28,
"text": "In this article we will see how to change the color of progress bar. By default, the color of process bar is green although PyQt5 allows us to change the color using the style... |
Program to find Prime Numbers Between given Interval in C++ | In this tutorial, we will be discussing a program to find prime numbers between given intervals.
For this we would be provided with two integers. Our task is to find the prime numbers in that particular range.
Live Demo
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, i, j, flag;
//getting lo... | [
{
"code": null,
"e": 1284,
"s": 1187,
"text": "In this tutorial, we will be discussing a program to find prime numbers between given intervals."
},
{
"code": null,
"e": 1397,
"s": 1284,
"text": "For this we would be provided with two integers. Our task is to find the prime number... |
Infosys Interview Experience for Digital Specialist Engineer Through InfyTQ | 04 Mar, 2022
Round 1(Qualifying Round):
The first round consists of MCQs of 10 Aptitude Questions, 10 DBMS (Database Management System) Questions, and 20 Programming questions related to Basic Programming, Object-Oriented Programming, and Data Structures in the programming language which we have selected during the Inf... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n04 Mar, 2022"
},
{
"code": null,
"e": 81,
"s": 54,
"text": "Round 1(Qualifying Round):"
},
{
"code": null,
"e": 379,
"s": 81,
"text": "The first round consists of MCQs of 10 Aptitude Questions, 10 DBMS (Database Man... |
Merge Arrays into a New Object Array in Java | 01 May, 2022
Given two arrays of the same type, they need to be merged into a new object array. The task is to merge the two arrays of the same type into an object array such that the array elements maintain their original order in the newly merged array and the elements of the first array precede the elements of the s... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 May, 2022"
},
{
"code": null,
"e": 399,
"s": 52,
"text": "Given two arrays of the same type, they need to be merged into a new object array. The task is to merge the two arrays of the same type into an object array such that the arr... |
Find n-th term in sequence 1, 1, 2, 1, 2, 3, 1, 2, 3, 4, .... | 22 Jun, 2022
Consider the infinite sequence of integers: 1, 1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5.... The sequence is built in the following way: at first the number 1 is written out, then the numbers from 1 to 2, then the numbers from 1 to 3, then the numbers from 1 to 4 and so on. Find the number on the n-th posit... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 394,
"s": 54,
"text": "Consider the infinite sequence of integers: 1, 1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5.... The sequence is built in the following way: at first the number 1 is written out, ... |
Minimise N such that sum of count of all factors upto N is greater than or equal to X | 31 May, 2021
Given a number X, the task is to find the minimum number N such that the sum of the count of all factors from 1 to N is greater than equal to X.Examples:
Input: X = 10 Output: 5 Explanation: Total factors of 1 = 1 (1) Total factors of 2 = 2 (1, 2) Total factors of 3 = 2 (1, 3) Total factors of 4 = 3 (1, 2,... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 208,
"s": 54,
"text": "Given a number X, the task is to find the minimum number N such that the sum of the count of all factors from 1 to N is greater than equal to X.Examples:"
},
{
"code"... |
How V8 compiles JavaScript code ? | 01 Aug, 2021
V8 is a high-performance, open-source JavaScript and WebAssembly engine used by Google Chrome and Node.js. In this article, we will be going to see what happens behind the scene of V8 Architecture.
There are basically three steps involved in processing the code:
Parsing the code
Compiling the code
Executin... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Aug, 2021"
},
{
"code": null,
"e": 226,
"s": 28,
"text": "V8 is a high-performance, open-source JavaScript and WebAssembly engine used by Google Chrome and Node.js. In this article, we will be going to see what happens behind the sce... |
Python | Removing Initial word from string | 04 Jul, 2019
During programming, sometimes, we can have such a problem in which it is required that first word from the string has to be removed. These kind of problems are common and one should be aware about the solution for such problems. Let’s discuss certain ways in which this problem can be solved.
Method #1 : Us... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Jul, 2019"
},
{
"code": null,
"e": 321,
"s": 28,
"text": "During programming, sometimes, we can have such a problem in which it is required that first word from the string has to be removed. These kind of problems are common and one ... |
Different Ways to Create File in Linux | 03 Mar, 2021
There are mainly six ways of creating files in Linux. All of them have their own purpose and benefits. They are as follows:
It is the most universal command/tool for creating files on Linux systems. We cannot edit a file using the cat command. Major operations that can be done using it are as follows:
To c... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n03 Mar, 2021"
},
{
"code": null,
"e": 177,
"s": 53,
"text": "There are mainly six ways of creating files in Linux. All of them have their own purpose and benefits. They are as follows:"
},
{
"code": null,
"e": 356,
"s":... |
Detect if two integers have opposite signs | 05 Jul, 2022
Given two signed integers, write a function that returns true if the signs of given integers are different, otherwise false. For example, the function should return true -1 and +100, and should return false for -100 and -200. The function should not use any of the arithmetic operators. Let the given intege... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Jul, 2022"
},
{
"code": null,
"e": 641,
"s": 52,
"text": "Given two signed integers, write a function that returns true if the signs of given integers are different, otherwise false. For example, the function should return true -1 a... |
Largest square sub-matrix with equal row, column, and diagonal sum | 06 Jun, 2022
Given a matrix mat[][] of dimensions N*M, the task is to find the size of the largest square submatrix such that the sum of all rows, columns, diagonals in that submatrix are equal.
Examples:
Input: N = 3, M = 4, mat[][] = [[5, 1, 3, 1], [9, 3, 3, 1], [1, 3, 3, 8]]Output: 2Explanation:The submatrix which s... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jun, 2022"
},
{
"code": null,
"e": 210,
"s": 28,
"text": "Given a matrix mat[][] of dimensions N*M, the task is to find the size of the largest square submatrix such that the sum of all rows, columns, diagonals in that submatrix are ... |
Create Quantiles of a Data Set in R Programming – quantile() Function | 19 Jun, 2020
quantile() function in R Language is used to create sample quantiles within a data set with probability[0, 1]. Such as first quantile is at 0.25[25%], second is at 0.50[50%], and third is at 0.75[75%].
Syntax: quantile(x)
Parameters:x: Data set
Example 1:
# R program to create# quantiles of a data set# Cre... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Jun, 2020"
},
{
"code": null,
"e": 230,
"s": 28,
"text": "quantile() function in R Language is used to create sample quantiles within a data set with probability[0, 1]. Such as first quantile is at 0.25[25%], second is at 0.50[50%], ... |
Threaded Binary Tree | Insertion | 10 Mar, 2022
We have already discuss the Binary Threaded Binary Tree.Insertion in Binary threaded tree is similar to insertion in binary tree but we will have to adjust the threads after insertion of each element.C representation of Binary Threaded Node:
struct Node
{
struct Node *left, *right;
int info;
// fal... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Mar, 2022"
},
{
"code": null,
"e": 297,
"s": 54,
"text": "We have already discuss the Binary Threaded Binary Tree.Insertion in Binary threaded tree is similar to insertion in binary tree but we will have to adjust the threads after ... |
Reversible numbers | 21 Jun, 2022
A number is said to be a reversible if sum of the number and its reverse had only odd digits. The problem is to find out if a number is reversible or not.
Examples:
Input: 36
Output: Reversible number
as 36 + 63 = 99 has only odd digits.
Input: 409
Output: Reversible number
as 409 + 904 = 1313 has onl... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 210,
"s": 54,
"text": "A number is said to be a reversible if sum of the number and its reverse had only odd digits. The problem is to find out if a number is reversible or not. "
},
{
"cod... |
Find minimum difference between any two elements | Set 2 | 09 Nov, 2021
Given an unsorted array arr[] of size n, the task is to find the minimum difference between any pair in the given array.
Input: arr[] = {1, 2, 3, 4} Output: 1 The possible absolute differences are: {1, 2, 3, 1, 2, 1}Input: arr[] = {10, 2, 5, 4} Output: 1
Approach:
Traverse through the array and crea... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 174,
"s": 52,
"text": "Given an unsorted array arr[] of size n, the task is to find the minimum difference between any pair in the given array. "
},
{
"code": null,
"e": 310,
"s": 1... |
Reorder array based on condition in JavaScript? | Let’s say we have an array of object that contains the scores of some players in a card game −
const scorecard = [{
name: "Zahir",
score: 23
}, {
name: "Kabir",
score: 13
}, {
name: "Kunal",
score: 29
}, {
name: "Arnav",
score: 42
}, {
name: "Harman",
score: 19
}, {... | [
{
"code": null,
"e": 1282,
"s": 1187,
"text": "Let’s say we have an array of object that contains the scores of some players in a card game −"
},
{
"code": null,
"e": 1591,
"s": 1282,
"text": "const scorecard = [{\n name: \"Zahir\",\n score: 23\n}, {\n name: \"Kabir\",\n... |
numpy.std() in Python | 28 Nov, 2018
numpy.std(arr, axis = None) : Compute the standard deviation of the given data (array elements) along the specified axis(if any)..
Standard Deviation (SD) is measured as the spread of data distribution in the given data set.For example :
x = 1 1 1 1 1
Standard Deviation = 0 .
y = 9, 2, 5, 4, 12, 7, 8, 1... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Nov, 2018"
},
{
"code": null,
"e": 159,
"s": 28,
"text": "numpy.std(arr, axis = None) : Compute the standard deviation of the given data (array elements) along the specified axis(if any).."
},
{
"code": null,
"e": 266,
... |
Python Program for Find sum of even factors of a number | 08 Jun, 2022
Given a number n, the task is to find the even factor sum of a number. Examples:
Input : 30
Output : 48
Even dividers sum 2 + 6 + 10 + 30 = 48
Input : 18
Output : 26
Even dividers sum 2 + 6 + 18 = 26
Let p1, p2, ... pk be prime factors of n. Let a1, a2, .. ak be highest powers of p1, p2, .. pk respectivel... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Jun, 2022"
},
{
"code": null,
"e": 135,
"s": 54,
"text": "Given a number n, the task is to find the even factor sum of a number. Examples:"
},
{
"code": null,
"e": 255,
"s": 135,
"text": "Input : 30\nOutput : 48\... |
Multiline macros in C | 28 May, 2017
In this article, we will discuss how to write a multi-line macro. We can write multi-line macro same like function, but each statement ends with “\”. Let us see with example. Below is simple macro, which accepts input number from user, and prints whether entered number is even or odd.
#include <stdio.h> #... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 May, 2017"
},
{
"code": null,
"e": 338,
"s": 52,
"text": "In this article, we will discuss how to write a multi-line macro. We can write multi-line macro same like function, but each statement ends with “\\”. Let us see with example... |
Python | Difference between Pandas.copy() and copying through variables | 17 Sep, 2018
Pandas .copy() method is used to create a copy of a Pandas object. Variables are also used to generate copy of an object but variables are just pointer to an object and any change in new data will also change the previous data.
The following examples will show the difference between copying through variabl... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Sep, 2018"
},
{
"code": null,
"e": 256,
"s": 28,
"text": "Pandas .copy() method is used to create a copy of a Pandas object. Variables are also used to generate copy of an object but variables are just pointer to an object and any ch... |
How to add a Tab in JTabbedPane with Java? | Let us first create a JTabbedPane −
JTabbedPane tabbedPane = new JTabbedPane();
Create some panels −
JPanel panel1, panel2, panel3, panel4, panel5;
panel1 = new JPanel();
panel2 = new JPanel();
panel3 = new JPanel();
panel4 = new JPanel();
panel5 = new JPanel();
Now, add tabs using the addTab() method and set the panel... | [
{
"code": null,
"e": 1098,
"s": 1062,
"text": "Let us first create a JTabbedPane −"
},
{
"code": null,
"e": 1142,
"s": 1098,
"text": "JTabbedPane tabbedPane = new JTabbedPane();"
},
{
"code": null,
"e": 1163,
"s": 1142,
"text": "Create some panels −"
},
{
... |
Remove all duplicates from a given string in C# | Here is the string.
string str = "ppqqrr";
Now, use Hashset to map the string to char. This will remove the duplicate characters from a string.
var res = new HashSet<char>(str);
Let us see the complete example −
Live Demo
using System;
using System.Linq;
using System.Collections.Generic;
namespace Demo {
class Prog... | [
{
"code": null,
"e": 1082,
"s": 1062,
"text": "Here is the string."
},
{
"code": null,
"e": 1105,
"s": 1082,
"text": "string str = \"ppqqrr\";"
},
{
"code": null,
"e": 1206,
"s": 1105,
"text": "Now, use Hashset to map the string to char. This will remove the d... |
Add similar value multiple times in a Python list | There are occasions when we need to show the same number or string multiple times in a list. We may also generate these numbers or strings for the purpose of some calculations. Python provides some inbuilt functions which can help us achieve this.
This is the most used method. Here we use the * operator which will crea... | [
{
"code": null,
"e": 1310,
"s": 1062,
"text": "There are occasions when we need to show the same number or string multiple times in a list. We may also generate these numbers or strings for the purpose of some calculations. Python provides some inbuilt functions which can help us achieve this."
},... |
TensorFlow: Sarcasm Detection in 20 mins | by Aaditya Bhat | Towards Data Science | This is a quick Natural Language Processing (NLP) tutorial in TensorFlow. NLP is a sub-field of artificial intelligence concerned with understanding, interpreting and manipulating human language by computers. TensorFlow is an open source machine learning library by Google. This tutorial assumes intermediate understandi... | [
{
"code": null,
"e": 679,
"s": 172,
"text": "This is a quick Natural Language Processing (NLP) tutorial in TensorFlow. NLP is a sub-field of artificial intelligence concerned with understanding, interpreting and manipulating human language by computers. TensorFlow is an open source machine learning ... |
Lodash - Quick Guide | Lodash is a popular javascript based library which provides 200+ functions to facilitate web development. It provides helper functions like map, filter, invoke as well as function binding, javascript templating, deep equality checks, creating indexes and so on. Lodash can be used directly inside a browser and also with... | [
{
"code": null,
"e": 2157,
"s": 1827,
"text": "Lodash is a popular javascript based library which provides 200+ functions to facilitate web development. It provides helper functions like map, filter, invoke as well as function binding, javascript templating, deep equality checks, creating indexes an... |
How to Use Pairwise Correlation For Robust Feature Selection | by Bex T. | Towards Data Science | In my last article on the topic of Feature Selection, we focused on a technique to remove features based on their individual properties. In this post, we will look at a more reliable, more robust method that lets us see the connection between features and decide if they are worth keeping. This method, as you have read ... | [
{
"code": null,
"e": 535,
"s": 172,
"text": "In my last article on the topic of Feature Selection, we focused on a technique to remove features based on their individual properties. In this post, we will look at a more reliable, more robust method that lets us see the connection between features and... |
Sales Forecasting: from Traditional Time Series to Modern Deep Learning | by Lucas Soares | Towards Data Science | In any company, there is an embedded desire to predict its future revenue and future sales. The basic recipe is:
Collect historical data related to previous sales and use it to predict expected sales.
Over the last ten years, the rise of deep learning as the driving force behind all imaginable machine learning benchmar... | [
{
"code": null,
"e": 284,
"s": 171,
"text": "In any company, there is an embedded desire to predict its future revenue and future sales. The basic recipe is:"
},
{
"code": null,
"e": 372,
"s": 284,
"text": "Collect historical data related to previous sales and use it to predict e... |
Joining DataFrames in Julia. Learn all the joins — inner, outer... | by Bence Komarniczky | Towards Data Science | What is a join? Why would we do it? And how would we do it using DataFrames.jl? In this post, I’ll show some practical but simple examples on how to join DataFrames.
For full access to all Medium articles — including mine — consider subscribing here.
Last time, we figured out how to index, sort, and aggregate our data ... | [
{
"code": null,
"e": 338,
"s": 172,
"text": "What is a join? Why would we do it? And how would we do it using DataFrames.jl? In this post, I’ll show some practical but simple examples on how to join DataFrames."
},
{
"code": null,
"e": 423,
"s": 338,
"text": "For full access to a... |
Reshape numpy arrays—a visualization | Towards Data Science | How does the numpy reshape() method reshape arrays? Have you been confused or have you struggled understanding how it works? This tutorial will walk you through reshaping in numpy. If you want a pdf copy of the cheatsheet above, you can download it here.
You might also like my tutorial on reshaping pandas dataframes:
t... | [
{
"code": null,
"e": 427,
"s": 172,
"text": "How does the numpy reshape() method reshape arrays? Have you been confused or have you struggled understanding how it works? This tutorial will walk you through reshaping in numpy. If you want a pdf copy of the cheatsheet above, you can download it here."... |
Looping over Objects in R Programming - GeeksforGeeks | 02 Aug, 2020
Prerequisite: Data Structures in R Programming
One of the biggest issues with the “for” loop is its memory consumption and its slowness in executing a repetitive task. And when it comes to dealing with large data set and iterating over it, for loop is not advised. R provides many alternatives to be applied... | [
{
"code": null,
"e": 30289,
"s": 30261,
"text": "\n02 Aug, 2020"
},
{
"code": null,
"e": 30336,
"s": 30289,
"text": "Prerequisite: Data Structures in R Programming"
},
{
"code": null,
"e": 30765,
"s": 30336,
"text": "One of the biggest issues with the “for” lo... |
Program to print binary right angle triangle - GeeksforGeeks | 26 Apr, 2021
Binary right angle triangle consists of only 0’s and 1’s in alternate positions. Examples :
Input : 4
Output :
0
1 0
0 1 0
1 0 1 0
Input : 3
Output :
0
1 0
0 1 0
C++
Java
Python3
C#
PHP... | [
{
"code": null,
"e": 25828,
"s": 25800,
"text": "\n26 Apr, 2021"
},
{
"code": null,
"e": 25922,
"s": 25828,
"text": "Binary right angle triangle consists of only 0’s and 1’s in alternate positions. Examples : "
},
{
"code": null,
"e": 26108,
"s": 25922,
"text... |
IF Function in Tableau - GeeksforGeeks | 24 Oct, 2020
In this article, we will learn about if function and its use in Tableau. For this first look into two terms:
Tableau: Tableau is a very powerful data visualization tool that can be used by data analysts, scientists, statisticians, etc. to visualize the data and get a clear opinion based on the data analysi... | [
{
"code": null,
"e": 25149,
"s": 25121,
"text": "\n24 Oct, 2020"
},
{
"code": null,
"e": 25258,
"s": 25149,
"text": "In this article, we will learn about if function and its use in Tableau. For this first look into two terms:"
},
{
"code": null,
"e": 25578,
"s": 2... |
How to catch all JavaScript errors and send them to server? - GeeksforGeeks | 08 Jun, 2020
Today there are a large number of Web APIs available. One of which is GlobalEventHandlers, an OnErrorEventHandler to be called when the error is raised.
The onerror property of the GlobalEventHandlers is an EventHandler that processes error events. This is great for catching exceptions that never occur whi... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n08 Jun, 2020"
},
{
"code": null,
"e": 26698,
"s": 26545,
"text": "Today there are a large number of Web APIs available. One of which is GlobalEventHandlers, an OnErrorEventHandler to be called when the error is raised."
},
{
... |
Sum over Subsets | Dynamic Programming - GeeksforGeeks | CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data ScienceExplore MoreSelf-PacedDSA- Self PacedCIPJAVA / Python / C+... | [
{
"code": null,
"e": 419,
"s": 0,
"text": "CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data Sc... |
Insertion Sort Visualization using JavaScript - GeeksforGeeks | 23 Feb, 2021
Insertion sort is a simple sorting algorithm in which values from the unsorted part are picked and placed at the correct position in the sorted part.
In order to know more about it. Please refer Insertion Sort.
An algorithm like Insertion Sort can be easily understood by visualizing instead of long codes. ... | [
{
"code": null,
"e": 25325,
"s": 25297,
"text": "\n23 Feb, 2021"
},
{
"code": null,
"e": 25475,
"s": 25325,
"text": "Insertion sort is a simple sorting algorithm in which values from the unsorted part are picked and placed at the correct position in the sorted part."
},
{
... |
How to split a column of list in different rows using bootstrap? - GeeksforGeeks | 21 May, 2020
BootStrap is the most popular, free, and open-source CSS framework used for front-end web development. BootStrap 4 is the latest version being used. BootStrap 4 offers a wide range of components, content, layout, and utilities to work with. Bootstrap 4 offers a grid system that uses a series of containers,... | [
{
"code": null,
"e": 26675,
"s": 26647,
"text": "\n21 May, 2020"
},
{
"code": null,
"e": 27629,
"s": 26675,
"text": "BootStrap is the most popular, free, and open-source CSS framework used for front-end web development. BootStrap 4 is the latest version being used. BootStrap 4 of... |
Number of subsets with sum divisible by m - GeeksforGeeks | 04 Feb, 2022
Given an array of integers, find a number of subsequences such that the sum of the subsequence is divisible by m. It is given that sum of array elements is small. Examples:
Input : arr[] = {1, 2, 3};
m = 3;
Output : 3
Subsequence of given set are
{1}, {2}, {3}, {1, 2}, {2, 3}, {1, 3} and {1, 2, 3}... | [
{
"code": null,
"e": 26087,
"s": 26059,
"text": "\n04 Feb, 2022"
},
{
"code": null,
"e": 26261,
"s": 26087,
"text": "Given an array of integers, find a number of subsequences such that the sum of the subsequence is divisible by m. It is given that sum of array elements is small. ... |
Python - Data visualization using covid19 India API - GeeksforGeeks | 06 Aug, 2021
API (Application Programming Interface) is a computing interface that interacts between multiple software.
JSON (JavaScript Object Notation) is a lightweight format for storing and transporting data. It is used to send data from server to web.
Required modules:
matplotlib
requests
pandas
json
Commands to... | [
{
"code": null,
"e": 25983,
"s": 25955,
"text": "\n06 Aug, 2021"
},
{
"code": null,
"e": 26091,
"s": 25983,
"text": "API (Application Programming Interface) is a computing interface that interacts between multiple software. "
},
{
"code": null,
"e": 26228,
"s": 26... |
What are label statements in JavaScript? | JavaScript label statements are used to prefix a label to an identifier. A label can be used with break and continue statement to control the flow more precisely. A label is simply an identifier followed by a colon (:) that is applied to a statement or a block of code. We will see two different examples to understand h... | [
{
"code": null,
"e": 1424,
"s": 1062,
"text": "JavaScript label statements are used to prefix a label to an identifier. A label can be used with break and continue statement to control the flow more precisely. A label is simply an identifier followed by a colon (:) that is applied to a statement or ... |
Standard header files in C | In C language, header files contain the set of predefined standard library functions. The “#include” preprocessing directive is used to include the header files with “.h” extension in the program.
Here is the table that displays some of the header files in C language,
Here is an example of header files in C language,
... | [
{
"code": null,
"e": 1259,
"s": 1062,
"text": "In C language, header files contain the set of predefined standard library functions. The “#include” preprocessing directive is used to include the header files with “.h” extension in the program."
},
{
"code": null,
"e": 1331,
"s": 1259... |
Penguins Dataset Overview — iris alternative | by AbdulMajedRaja RS | Towards Data Science | If there’s a dataset that’s been used most by data scientists/data analysts while they’re learning something or coaching someone— it’s either iris (more R users) or titanic (more Python users).
The iris dataset isn’t used just because it’s easily accessible. It’s also something that you can use to demonstrate many data... | [
{
"code": null,
"e": 366,
"s": 172,
"text": "If there’s a dataset that’s been used most by data scientists/data analysts while they’re learning something or coaching someone— it’s either iris (more R users) or titanic (more Python users)."
},
{
"code": null,
"e": 703,
"s": 366,
"... |
Turing Machine for L = {a^n b^n | n>=1} - GeeksforGeeks | 11 Nov, 2020
Prerequisite – Turing Machine
Task :
We have to design a Turing machine for anbn where n>=1.
Analysis :
We can analyze that we have equal no of a’s and b’s and in some order i.e., first all a’s will come and then all b’s will come.
Example :
Input-1:aabb
Output-1:YES
Input-2:aabbbb
Output-2:NO
Input-3:ab... | [
{
"code": null,
"e": 25769,
"s": 25741,
"text": "\n11 Nov, 2020"
},
{
"code": null,
"e": 25799,
"s": 25769,
"text": "Prerequisite – Turing Machine"
},
{
"code": null,
"e": 25806,
"s": 25799,
"text": "Task :"
},
{
"code": null,
"e": 25862,
"s": ... |
Vector isEmpty() Method in Java - GeeksforGeeks | 14 Aug, 2018
The Java.util.Vector.isEmpty() method in Java is used to check and verify if a Vector is empty or not. It returns True if the Vector is empty else it returns False.
Syntax:
Vector.isEmpty()
Parameters: This method does not take any parameter.
Return Value: This function returns True if the Vectoris empty e... | [
{
"code": null,
"e": 24811,
"s": 24783,
"text": "\n14 Aug, 2018"
},
{
"code": null,
"e": 24976,
"s": 24811,
"text": "The Java.util.Vector.isEmpty() method in Java is used to check and verify if a Vector is empty or not. It returns True if the Vector is empty else it returns False... |
How to format the current date in MM/DD/YYYY HH:MM:SS format using Node.js? - GeeksforGeeks | 17 Mar, 2021
The current date can be formatted by using the Nodejs modules like Date Object or libraries like moment.js, dayjs.
Method 1: Using Node.js Date Object
The JavaScript Date Object can be used in the program by using the following command.
const date = new Date();
Now on this variable date, we can apply meth... | [
{
"code": null,
"e": 26267,
"s": 26239,
"text": "\n17 Mar, 2021"
},
{
"code": null,
"e": 26383,
"s": 26267,
"text": "The current date can be formatted by using the Nodejs modules like Date Object or libraries like moment.js, dayjs. "
},
{
"code": null,
"e": 26419,
... |
Queue.Peek Method in C# - GeeksforGeeks | 04 Feb, 2019
This method returns the object at the beginning of the Queue without removing it. This method is similar to the Dequeue method, but Peek does not modify the Queue and is an O(1) operation. This method comes under System.Collections namespace.
Syntax:
public virtual object Peek ();
Return Value: The object ... | [
{
"code": null,
"e": 24453,
"s": 24425,
"text": "\n04 Feb, 2019"
},
{
"code": null,
"e": 24696,
"s": 24453,
"text": "This method returns the object at the beginning of the Queue without removing it. This method is similar to the Dequeue method, but Peek does not modify the Queue ... |
Static Methods in JavaScript - GeeksforGeeks | 19 Aug, 2020
The JavaScript allows static methods that belong to the class rather than an instance of that class. Hence, an instance is not needed to call such static methods. Static methods are called on the class directly. It can be of any name. A class can contain more than one static method. If we define more than ... | [
{
"code": null,
"e": 26569,
"s": 26541,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 27049,
"s": 26569,
"text": "The JavaScript allows static methods that belong to the class rather than an instance of that class. Hence, an instance is not needed to call such static methods. ... |
Intuition of Adam Optimizer - GeeksforGeeks | 24 Oct, 2020
Prerequisites : Optimization techniques in Gradient Descent
Adam Optimizer
Adaptive Moment Estimation is an algorithm for optimization technique for gradient descent. The method is really efficient when working with large problem involving a lot of data or parameters. It requires less memory and is effic... | [
{
"code": null,
"e": 25795,
"s": 25767,
"text": "\n24 Oct, 2020"
},
{
"code": null,
"e": 25856,
"s": 25795,
"text": "Prerequisites : Optimization techniques in Gradient Descent"
},
{
"code": null,
"e": 25872,
"s": 25856,
"text": "Adam Optimizer "
},
{
... |
Java Program to Demonstrate How User Authentication is Done - GeeksforGeeks | 04 Nov, 2020
Authentication is the process of verifying the identity of users or information. User authentication is the process of verifying the identity of the user when that user logs in to a computer system. The main objective of authentication is to allow authorized users to access the computer and to deny access ... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n04 Nov, 2020"
},
{
"code": null,
"e": 25555,
"s": 25225,
"text": "Authentication is the process of verifying the identity of users or information. User authentication is the process of verifying the identity of the user when that... |
Why does sizeof(x++) not increment x in C? - GeeksforGeeks | 10 Oct, 2018
According to C99 Standards, the sizeof() operator only takes into account the type of the operand, which may be an expression or the name of a type (i.e int, double, float etc) and not the value obtained on evaluating the expression. Hence, the operand inside the sizeof() operator is not evaluated. It is e... | [
{
"code": null,
"e": 25477,
"s": 25449,
"text": "\n10 Oct, 2018"
},
{
"code": null,
"e": 25939,
"s": 25477,
"text": "According to C99 Standards, the sizeof() operator only takes into account the type of the operand, which may be an expression or the name of a type (i.e int, doubl... |
Find total number of distinct years from a string - GeeksforGeeks | 19 Jan, 2022
Given a string containing the words and dates, the task is to find the total number of distinct years mentioned in that string. Note: Assuming that the date will be in ‘DD-MM-YYYY’ format.
Examples:
Input: str = "UN was established on 24-10-1945.
India got freedom on 15-08-1947."
Output... | [
{
"code": null,
"e": 26099,
"s": 26071,
"text": "\n19 Jan, 2022"
},
{
"code": null,
"e": 26289,
"s": 26099,
"text": "Given a string containing the words and dates, the task is to find the total number of distinct years mentioned in that string. Note: Assuming that the date will b... |
ML | T-distributed Stochastic Neighbor Embedding (t-SNE) Algorithm - GeeksforGeeks | 10 Nov, 2021
T-distributed Stochastic Neighbor Embedding (t-SNE) is a nonlinear dimensionality reduction technique well-suited for embedding high-dimensional data for visualization in a low-dimensional space of two or three dimensions.
What is Dimensionality Reduction? Dimensionality Reduction is the technique of repre... | [
{
"code": null,
"e": 25589,
"s": 25561,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 25812,
"s": 25589,
"text": "T-distributed Stochastic Neighbor Embedding (t-SNE) is a nonlinear dimensionality reduction technique well-suited for embedding high-dimensional data for visualiza... |
PyQtGraph – Setting Font to the Image View - GeeksforGeeks | 08 Dec, 2021
In this article, we will see how we can set the font to the image view object in PyQTGraph. PyQtGraph is a graphics and user interface library for Python that provides functionality commonly required in designing and science applications. Its primary goals are to provide fast, interactive graphics for disp... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n08 Dec, 2021"
},
{
"code": null,
"e": 26520,
"s": 25537,
"text": "In this article, we will see how we can set the font to the image view object in PyQTGraph. PyQtGraph is a graphics and user interface library for Python that prov... |
How to check user authentication in GET method using Node.js ? - GeeksforGeeks | 22 Apr, 2021
There are so many authentication methods like web token authentication, cookies based authentication, and many more. In this article, we will discuss one of the simplest authentication methods using express.js during handling clients get a request in node.js with the help of the HTTP headers.
Approach: HT... | [
{
"code": null,
"e": 26267,
"s": 26239,
"text": "\n22 Apr, 2021"
},
{
"code": null,
"e": 26562,
"s": 26267,
"text": "There are so many authentication methods like web token authentication, cookies based authentication, and many more. In this article, we will discuss one of the si... |
Instant isAfter() method in Java with Examples - GeeksforGeeks | 27 Nov, 2018
isAfter() method of an Instant class is used to check if this instant is after the instant passed as parameter or not. This method returns a boolean value showing the same.
Syntax:
public boolean isAfter(Instant otherInstant)
Parameter: This method takes a parameter otherInstant which is the other instant... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n27 Nov, 2018"
},
{
"code": null,
"e": 25398,
"s": 25225,
"text": "isAfter() method of an Instant class is used to check if this instant is after the instant passed as parameter or not. This method returns a boolean value showing ... |
Nullity of a Matrix - GeeksforGeeks | 03 Jun, 2019
Prerequisite – Mathematics | System of Linear EquationsLet A be a matrix. Since, number of non-zero rows in the row reduced form of a matrix A is called the rank of A, denoted as rank(A) and Nullity is the complement to the rank of a matrix .Please go through the Prerequisite first and read the rank topic,... | [
{
"code": null,
"e": 24325,
"s": 24297,
"text": "\n03 Jun, 2019"
},
{
"code": null,
"e": 24658,
"s": 24325,
"text": "Prerequisite – Mathematics | System of Linear EquationsLet A be a matrix. Since, number of non-zero rows in the row reduced form of a matrix A is called the rank o... |
How to set font size of Matplotlib axis Legend? - GeeksforGeeks | 05 Nov, 2021
Prerequisite: Matplotlib
In this article, we will see how to set the font size of matplotlib axis legend using Python. For this, we will use rcParams() methods to increase/decrease the font size. To use this we have to override the matplotlib.rcParams[‘legend.fontsize’] method.
Syntax: matplotlib.rcParams[... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 25562,
"s": 25537,
"text": "Prerequisite: Matplotlib"
},
{
"code": null,
"e": 25816,
"s": 25562,
"text": "In this article, we will see how to set the font size of matplotl... |
Minimum number of jumps to reach end | Set 2 (O(n) solution) - GeeksforGeeks | 11 Mar, 2022
Given an array of integers where each element represents the max number of steps that can be made forward from that element. Write a function to return the minimum number of jumps to reach the end of the array (starting from the first element). If an element is 0, then we cannot move through that element. ... | [
{
"code": null,
"e": 25969,
"s": 25941,
"text": "\n11 Mar, 2022"
},
{
"code": null,
"e": 26324,
"s": 25969,
"text": "Given an array of integers where each element represents the max number of steps that can be made forward from that element. Write a function to return the minimum... |
How to implement our own Dynamic Array class in Java? - GeeksforGeeks | 23 Apr, 2020
Given task is to implement a class in Java which behaves just like the Dynamic array using ArrayList.
ArrayList is same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatically by the container.
ArrayList elemen... | [
{
"code": null,
"e": 24217,
"s": 24189,
"text": "\n23 Apr, 2020"
},
{
"code": null,
"e": 24319,
"s": 24217,
"text": "Given task is to implement a class in Java which behaves just like the Dynamic array using ArrayList."
},
{
"code": null,
"e": 24508,
"s": 24319,
... |
Applying Gaussian Blur to an image using the Pillow library | In this program, we will blur an image using a Gaussian filter. The ImageFilter class in the pillow library contains a function called GaussianBlur() which helps to apply the gaussian blur filter. It takes only one parameter that is blur radius.
Step 1: Import Image and ImageFilter from Pillow.
Step 2: Open the image.
... | [
{
"code": null,
"e": 1308,
"s": 1062,
"text": "In this program, we will blur an image using a Gaussian filter. The ImageFilter class in the pillow library contains a function called GaussianBlur() which helps to apply the gaussian blur filter. It takes only one parameter that is blur radius."
},
... |
Spring Boot Soap WebServices Example | Soap Web Services Spring Boot | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, we are going to see how to ... | [
{
"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,
... |
Finding Duplicate Files with Python - GeeksforGeeks | 24 Oct, 2021
In this article, we will code a python script to find duplicate files in the file system or inside a particular folder.
The python module filecmp offers functions to compare directories and files. The cmp function compares the files and returns True if they appear identical otherwise False.
Syntax: filecm... | [
{
"code": null,
"e": 23925,
"s": 23897,
"text": "\n24 Oct, 2021"
},
{
"code": null,
"e": 24046,
"s": 23925,
"text": "In this article, we will code a python script to find duplicate files in the file system or inside a particular folder. "
},
{
"code": null,
"e": 24218... |
Automating data collection with Python on GCP | Towards Data Science | This article will show you one of the ways you can host a Python script on Google Cloud Platform. Learning to do so can be especially useful for anyone who wishes to automate the process of collecting financial data from APIs, and is looking for an efficient and secure way to store the whole process on a cloud platform... | [
{
"code": null,
"e": 493,
"s": 171,
"text": "This article will show you one of the ways you can host a Python script on Google Cloud Platform. Learning to do so can be especially useful for anyone who wishes to automate the process of collecting financial data from APIs, and is looking for an effici... |
How to reconfigure Tkinter canvas items? | Using the Canvas widget, we can create text, images, graphics, and visual content to add to the Canvas widget. If you need to configure the Canvas item dynamically, then tkinter provides itemconfig(**options) method. You can use this method to configure the properties and attributes of the Canvas items. For example, if... | [
{
"code": null,
"e": 1489,
"s": 1062,
"text": "Using the Canvas widget, we can create text, images, graphics, and visual content to add to the Canvas widget. If you need to configure the Canvas item dynamically, then tkinter provides itemconfig(**options) method. You can use this method to configure... |
Python Design Patterns - Prototype | Prototype design pattern helps to hide the complexity of the instances created by the class. The concept of the existing object will differ with that of the new object, which is created from scratch.
The newly copied object may have some changes in the properties if required. This approach saves time and resources that... | [
{
"code": null,
"e": 2679,
"s": 2479,
"text": "Prototype design pattern helps to hide the complexity of the instances created by the class. The concept of the existing object will differ with that of the new object, which is created from scratch."
},
{
"code": null,
"e": 2840,
"s": 2... |
Top features in Tabular Editor 3 to boost your Power BI development | by Nikola Ilic | Towards Data Science | Beginning this year, Microsoft’s announcement on the general availability of Read/Write XMLA endpoints, widely opened the door to many external tools intended to provide additional modeling capabilities supported by the Analysis Services engine, but not natively supported in Power BI Desktop.
Among many great tools, Ta... | [
{
"code": null,
"e": 466,
"s": 172,
"text": "Beginning this year, Microsoft’s announcement on the general availability of Read/Write XMLA endpoints, widely opened the door to many external tools intended to provide additional modeling capabilities supported by the Analysis Services engine, but not n... |
Replacing upperCase and LowerCase in a string - JavaScript | We are required to write a JavaScript function that takes in a string and constructs a new string with all the uppercase characters converted to lowercase and all the lowercase characters converted to uppercase.
Let’s write the code for this function −
Following is the code −
const str = 'The Case OF tHis StrinG Will B... | [
{
"code": null,
"e": 1274,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a string and constructs a new string with all the uppercase characters converted to lowercase and all the lowercase characters converted to uppercase."
},
{
"code": null,
"e": 1315... |
Find Columns Shared By Two Data Frames - GeeksforGeeks | 27 May, 2021
Pandas is the open-source Python library used for Data analysis and manipulation. It is fast, powerful, flexible, and easy to use. In this article, we will discuss how to find columns that are common between two Data Frames. Below is the different approach that can be used to find common columns.
Method 1:... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n27 May, 2021"
},
{
"code": null,
"e": 24590,
"s": 24292,
"text": "Pandas is the open-source Python library used for Data analysis and manipulation. It is fast, powerful, flexible, and easy to use. In this article, we will discuss... |
Machine Learning on AWS SageMaker | by Mahsa Mir | Towards Data Science | In this tutorial, we’re going to create an ML model on AWS SageMaker using Amazon SageMaker Studio to predict employee salary based on years of experience.
Imagine a potential employee who has passed the interview process and now HR want to make them an offer. What would the salary be?
Assumptions: The only factor that... | [
{
"code": null,
"e": 328,
"s": 172,
"text": "In this tutorial, we’re going to create an ML model on AWS SageMaker using Amazon SageMaker Studio to predict employee salary based on years of experience."
},
{
"code": null,
"e": 459,
"s": 328,
"text": "Imagine a potential employee w... |
JavaFX | Font Class - GeeksforGeeks | 18 Sep, 2018
Font class is a part of JavaFX. The Font class represents fonts, which are used to render text on the screen. The size of a Font is described as being specified in points which are a real world measurement of approximately 1/72 inch. Font class inherits Object class.
Constructors of the class:
Font(double ... | [
{
"code": null,
"e": 24030,
"s": 24002,
"text": "\n18 Sep, 2018"
},
{
"code": null,
"e": 24298,
"s": 24030,
"text": "Font class is a part of JavaFX. The Font class represents fonts, which are used to render text on the screen. The size of a Font is described as being specified in... |
MySQL - Handling Duplicates | Generally, tables or result sets sometimes contain duplicate records. Most of the times it is allowed but sometimes it is required to stop duplicate records. It is required to identify duplicate records and remove them from the table. This chapter will describe how to prevent the occurrence of duplicate records in a ta... | [
{
"code": null,
"e": 2715,
"s": 2333,
"text": "Generally, tables or result sets sometimes contain duplicate records. Most of the times it is allowed but sometimes it is required to stop duplicate records. It is required to identify duplicate records and remove them from the table. This chapter will ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.