title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
hwclock command in Linux with examples | 21 May, 2019
hwclock also called Real Time Clock (RTC), is a utility for accessing the hardware clock. The hardware clock is independent of the OS(operating system) you use and works even when the machine is shut down. The hardware clock is also called a BIOS clock. A user can also change the date and time of the hardw... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 May, 2019"
},
{
"code": null,
"e": 587,
"s": 54,
"text": "hwclock also called Real Time Clock (RTC), is a utility for accessing the hardware clock. The hardware clock is independent of the OS(operating system) you use and works even... |
Rust vs C++: Will Rust Replace C++ in Future ? | 17 Aug, 2021
We have seen many programming languages trending according to their functionality and popularity but languages are not meant to be used according to their popularity. We should consider the overall efficiency and productivity when it comes to using a programming language. Speaking of efficiency and popular... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n17 Aug, 2021"
},
{
"code": null,
"e": 943,
"s": 53,
"text": "We have seen many programming languages trending according to their functionality and popularity but languages are not meant to be used according to their popularity. We shou... |
fseek() vs rewind() in C | 28 May, 2017
In C, fseek() should be preferred over rewind().
Note the following text C99 standard:The rewind function sets the file position indicator for the stream pointed to by stream to the beginning of the file. It is equivalent to
(void)fseek(stream, 0L, SEEK_SET)
except that the error indicator for the stream i... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 May, 2017"
},
{
"code": null,
"e": 103,
"s": 54,
"text": "In C, fseek() should be preferred over rewind()."
},
{
"code": null,
"e": 279,
"s": 103,
"text": "Note the following text C99 standard:The rewind function... |
Hide legend entries in a plotly figure in Python | 22 Nov, 2021
In this article, we are going to see how to hide legend entries in a plotly figure using Python.
The Fig below shows the plot without hiding the legend entries:
Here we are going to set showlegend property to remove the legend entries in a plotly figure.
Python3
import pandas as pdimport plotly.offline as ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 125,
"s": 28,
"text": "In this article, we are going to see how to hide legend entries in a plotly figure using Python."
},
{
"code": null,
"e": 189,
"s": 125,
"text": "The Fig b... |
Program for Chocolate and Wrapper Puzzle | 16 Jul, 2021
Given the following three values, the task is to find the total number of maximum chocolates you can eat.
money: Money you have to buy chocolatesprice: Price of a chocolatewrap: Number of wrappers to be returned for getting one extra chocolate.
money: Money you have to buy chocolates
price: Price of a cho... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Jul, 2021"
},
{
"code": null,
"e": 161,
"s": 54,
"text": "Given the following three values, the task is to find the total number of maximum chocolates you can eat. "
},
{
"code": null,
"e": 300,
"s": 161,
"text":... |
How to determine if a number is odd or even in JavaScript? | Use the modulus % operator to determine if a number if odd or even in JavaScript.
You can try to run the following code to check if a number is odd or even −
Live Demo
<!DOCTYPE html>
<html>
<body>
<script>
var num = 5;
document.write("Number = "+num+"<br>");
if(num % 2 == 0) {
document.write('Number is ... | [
{
"code": null,
"e": 1269,
"s": 1187,
"text": "Use the modulus % operator to determine if a number if odd or even in JavaScript."
},
{
"code": null,
"e": 1345,
"s": 1269,
"text": "You can try to run the following code to check if a number is odd or even −"
},
{
"code": nu... |
std::upper_bound and std::lower_bound for Vector in C++ STL | 29 Jun, 2022
Click here for Set 1 and Set 2 of Vectors.
Iterator lower_bound (Iterator first, Iterator last, const val) Iterator upper_bound (Iterator first, Iterator last, const val) lower_bound returns an iterator pointing to the first element in the range [first,last) which has a value not less than ‘val’.
and i... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Jun, 2022"
},
{
"code": null,
"e": 98,
"s": 52,
"text": "Click here for Set 1 and Set 2 of Vectors. "
},
{
"code": null,
"e": 354,
"s": 98,
"text": "Iterator lower_bound (Iterator first, Iterator last, const va... |
Arrays in Julia | 05 Jul, 2021
Arrays in Julia are a collection of elements just like other collections like Sets, Dictionaries, etc. Arrays are different from Sets because arrays are ordered collection of elements, and can hold duplicate values, unlike sets which require all the elements to be unique. Arrays are N-Dimensional container... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Jul, 2021"
},
{
"code": null,
"e": 883,
"s": 28,
"text": "Arrays in Julia are a collection of elements just like other collections like Sets, Dictionaries, etc. Arrays are different from Sets because arrays are ordered collection of ... |
Pandas – Plot multiple time series DataFrame into a single plot | 17 Oct, 2021
In this article, we are going to see how to plot multiple time series Dataframe into single plot.
If there are multiple time series in a single DataFrame, you can still use the plot() method to plot a line chart of all the time series. To Plot multiple time series into a single plot first of all we have t... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Oct, 2021"
},
{
"code": null,
"e": 153,
"s": 54,
"text": "In this article, we are going to see how to plot multiple time series Dataframe into single plot. "
},
{
"code": null,
"e": 561,
"s": 153,
"text": "If the... |
Excel DAX - Quick Guide | DAX stands for Data Analysis Expressions. DAX is a formula language and is a collection of functions, operators, and constants that can be used in a formula or expression to calculate and return one or more values. DAX is the formula language associated with the Data Model of Excel Power Pivot.
It is not a programming ... | [
{
"code": null,
"e": 2545,
"s": 2249,
"text": "DAX stands for Data Analysis Expressions. DAX is a formula language and is a collection of functions, operators, and constants that can be used in a formula or expression to calculate and return one or more values. DAX is the formula language associated... |
Convert Hexadecimal value String to ASCII value String - GeeksforGeeks | 17 Feb, 2022
Given the Hexadecimal value string as input, the task is to convert the given hexadecimal value string into their corresponding ASCII format string.
Examples:
Input: 6765656b73
Output: geeks
Input: 6176656e67657273
Output: avengers
The “Hexadecimal” or simply “Hex” numbering system uses the Base of 16 ... | [
{
"code": null,
"e": 24760,
"s": 24732,
"text": "\n17 Feb, 2022"
},
{
"code": null,
"e": 24909,
"s": 24760,
"text": "Given the Hexadecimal value string as input, the task is to convert the given hexadecimal value string into their corresponding ASCII format string."
},
{
... |
Smallest range in K lists | Practice | GeeksforGeeks | Given K sorted lists of integers, KSortedArray[] of size N each. The task is to find the smallest range that includes at least one element from each of the K lists. If more than one such range's are found, return the first such range found.
Example 1:
Input:
N = 5, K = 3
KSortedArray[][] = {{1 3 5 7 9},
... | [
{
"code": null,
"e": 479,
"s": 238,
"text": "Given K sorted lists of integers, KSortedArray[] of size N each. The task is to find the smallest range that includes at least one element from each of the K lists. If more than one such range's are found, return the first such range found."
},
{
... |
How to get the index value in C#? - GeeksforGeeks | 28 Nov, 2019
The Index Structure is introduced in C# 8.0. It represents a type that can be used to index a collection or sequence and it can be started from the start or the end. You are allowed to get the index value with the help of Value Property provided by the Index struct.
Syntax:
public int Value { int get(); };... | [
{
"code": null,
"e": 24222,
"s": 24194,
"text": "\n28 Nov, 2019"
},
{
"code": null,
"e": 24489,
"s": 24222,
"text": "The Index Structure is introduced in C# 8.0. It represents a type that can be used to index a collection or sequence and it can be started from the start or the en... |
tex - Tutorial | MathJax is a javascript based platform to draw mathematical expressions and symbols in web applications.
This tutorial will cover TEX Commands available in MathJax project.
This tutorial is designed for all those individuals who are looking for a starting point of learning TEX commands using MathJax and we cover topics... | [
{
"code": null,
"e": 8091,
"s": 7986,
"text": "MathJax is a javascript based platform to draw mathematical expressions and symbols in web applications."
},
{
"code": null,
"e": 8159,
"s": 8091,
"text": "This tutorial will cover TEX Commands available in MathJax project."
},
{... |
Create Maximum Number in C++ | Suppose we have two arrays of length m and n with digits 0-9 representing two numbers. We have to create the maximum number of length k that is less than m + n from digits of the two. We have to keep in mind that the relative order of the digits from the same array must be preserved. We have to find the array of the k ... | [
{
"code": null,
"e": 1493,
"s": 1062,
"text": "Suppose we have two arrays of length m and n with digits 0-9 representing two numbers. We have to create the maximum number of length k that is less than m + n from digits of the two. We have to keep in mind that the relative order of the digits from th... |
Cluster analysis: theory and implementation of unsupervised algorithms | by Mahbubul Alam | Towards Data Science | In simple terms, clustering is nothing but separating observations based on certain properties. In a more technical term, clustering is an unsupervised machine learning algorithm, a process, by which observations (data) are grouped in a way that similar observations are put closer to each other. It is an “unsupervised”... | [
{
"code": null,
"e": 838,
"s": 172,
"text": "In simple terms, clustering is nothing but separating observations based on certain properties. In a more technical term, clustering is an unsupervised machine learning algorithm, a process, by which observations (data) are grouped in a way that similar o... |
Counting Sort | Practice | GeeksforGeeks | Given a string arr consisting of lowercase english letters, arrange all its letters in lexicographical order using Counting Sort.
Example 1:
Input:
N = 5
S = "edsab"
Output:
abdes
Explanation:
In lexicographical order, string will be
abdes.
Example 2:
Input:
N = 13
S = "geeksforgeeks"
Output:
eeeefggkkorss
Explanati... | [
{
"code": null,
"e": 368,
"s": 238,
"text": "Given a string arr consisting of lowercase english letters, arrange all its letters in lexicographical order using Counting Sort."
},
{
"code": null,
"e": 379,
"s": 368,
"text": "Example 1:"
},
{
"code": null,
"e": 482,
... |
Transformations with OpenCV. A guide on how to transform images with... | by Thiago Carvalho | Towards Data Science | If you ever had to use an image enhancer that could bitmap, you probably know the struggle. In this article, we’ll get a look at transformations and explore things like moving, rotating, cropping, and resizing.
We’ll use OpenCV, NumPy, and Matplotlib for the examples.
import cv2import numpy as npimport matplotlib.pyplo... | [
{
"code": null,
"e": 382,
"s": 171,
"text": "If you ever had to use an image enhancer that could bitmap, you probably know the struggle. In this article, we’ll get a look at transformations and explore things like moving, rotating, cropping, and resizing."
},
{
"code": null,
"e": 440,
... |
The White Noise Model. The most important statistical model | by Sachin Date | Towards Data Science | White noise are variations in your data that cannot be explained by any regression model.
And yet, there happens to be a statistical model for white noise. It goes like this for time series data:
The observed value Y_i at time step i is the sum of the current level L_i and a random component N_i around the current leve... | [
{
"code": null,
"e": 262,
"s": 172,
"text": "White noise are variations in your data that cannot be explained by any regression model."
},
{
"code": null,
"e": 368,
"s": 262,
"text": "And yet, there happens to be a statistical model for white noise. It goes like this for time ser... |
Tryit Editor v3.7 | Tryit: Set height and width in percent | [] |
How to access an array element in C language? | An array is a group of related data items that share a common name. A particular value in an array is identified by using its "index number" or "subscript".
The advantage of an array is as follows −
The ability to use a single name to represent a collection of items and to refer to an item by specifying the item number... | [
{
"code": null,
"e": 1219,
"s": 1062,
"text": "An array is a group of related data items that share a common name. A particular value in an array is identified by using its \"index number\" or \"subscript\"."
},
{
"code": null,
"e": 1261,
"s": 1219,
"text": "The advantage of an a... |
How to implement a long click listener on a Android listview? | This example demonstrates about How to implement a long click listener on a Android listview.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="ut... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "This example demonstrates about How to implement a long click listener on a Android listview."
},
{
"code": null,
"e": 1285,
"s": 1156,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all r... |
Wi-Fi QR Code Generator Using Python - GeeksforGeeks | 31 May, 2021
Prerequisite: Getting Saved Wifi Passwords using Python
We know the wireless network is the most common network adapter for today, Because of its supports portability and User friendly. In this article, we will see how we can get the current saved Wi-Fi name and passwords and generate QR code to connect ot... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 23957,
"s": 23901,
"text": "Prerequisite: Getting Saved Wifi Passwords using Python"
},
{
"code": null,
"e": 24234,
"s": 23957,
"text": "We know the wireless network is th... |
Make a div horizontally scrollable using CSS - GeeksforGeeks | 05 Nov, 2021
In this article, we will know to design the horizontally scrollable div using CSS, & will see its implementation through the example. We can make a div horizontally scrollable by using the CSS overflow property. There are different values in the overflow property. For eg, the overflow: auto; is used for ad... | [
{
"code": null,
"e": 31369,
"s": 31341,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 32158,
"s": 31369,
"text": "In this article, we will know to design the horizontally scrollable div using CSS, & will see its implementation through the example. We can make a div horizontall... |
MS SQL Server - Create Users | User refers to an account in MS SQL Server database which is used to access database.
Users can be created using either of the following two methods.
Create user <username> for login <loginname>
To create user name 'TestUser' with mapping to Login name 'TestLogin' in TestDB database, run the following query.
create us... | [
{
"code": null,
"e": 2321,
"s": 2235,
"text": "User refers to an account in MS SQL Server database which is used to access database."
},
{
"code": null,
"e": 2385,
"s": 2321,
"text": "Users can be created using either of the following two methods."
},
{
"code": null,
... |
What is New in Python 3 | Python 3.x introduced some Python 2-incompatible keywords and features that can be
imported via the in-built __future__ module in Python 2. It is recommended to use __future__ imports, if you are planning Python 3.x support for your code.
For example, if we want Python 3.x's integer division behavior in Python 2, add t... | [
{
"code": null,
"e": 2579,
"s": 2340,
"text": "Python 3.x introduced some Python 2-incompatible keywords and features that can be\nimported via the in-built __future__ module in Python 2. It is recommended to use __future__ imports, if you are planning Python 3.x support for your code."
},
{
... |
Fuzzy String Matching. Introduction to Fuzzywuzzy in Python | by Catherine Gitau | Towards Data Science | As a data scientist, you are forced to retrieve information from various sources by either leveraging publicly available API’s, asking for data, or by simply scraping your own data from a web page. All this information is useful if we are able to combine it and not have any duplicates in the data. But how do we make su... | [
{
"code": null,
"e": 524,
"s": 171,
"text": "As a data scientist, you are forced to retrieve information from various sources by either leveraging publicly available API’s, asking for data, or by simply scraping your own data from a web page. All this information is useful if we are able to combine ... |
Write an Efficient Method to Check if a Number is Multiple of 3 - GeeksforGeeks | 23 Mar, 2022
The very first solution that comes to our mind is the one that we learned in school. If sum of digits in a number is multiple of 3 then number is multiple of 3 e.g., for 612 sum of digits is 9 so it’s a multiple of 3. But this solution is not efficient. You have to get all decimal digits one by one, add th... | [
{
"code": null,
"e": 34516,
"s": 34488,
"text": "\n23 Mar, 2022"
},
{
"code": null,
"e": 34867,
"s": 34516,
"text": "The very first solution that comes to our mind is the one that we learned in school. If sum of digits in a number is multiple of 3 then number is multiple of 3 e.g... |
How to set an object key inside a state object in React Hooks? - GeeksforGeeks | 14 Jan, 2021
We can update a React hooks state object that has a nested object containing objects with index keys with the following approach, Before doing so, consider the following example:
Example: Following is the default state object:
const [data, setData] = useState({
name:'',
contact:'',
address:{
... | [
{
"code": null,
"e": 25218,
"s": 25190,
"text": "\n14 Jan, 2021"
},
{
"code": null,
"e": 25397,
"s": 25218,
"text": "We can update a React hooks state object that has a nested object containing objects with index keys with the following approach, Before doing so, consider the fol... |
A beginner’s Guide to Google’s BigQuery GIS | by Abdishakur | Towards Data Science | Cloud computing in this era of big data is ubiquitous. However, many cloud services do not provide a location component to analyze and visualize geospatial data. Big Query, has built-in capabilities to ingest, process and analyze geospatial data.
In this tutorial, I will guide you through setting BigQuery Sandbox for f... | [
{
"code": null,
"e": 419,
"s": 172,
"text": "Cloud computing in this era of big data is ubiquitous. However, many cloud services do not provide a location component to analyze and visualize geospatial data. Big Query, has built-in capabilities to ingest, process and analyze geospatial data."
},
... |
Python | Output using print() function - GeeksforGeeks | 29 Oct, 2021
Python print() function prints the message to the screen or any other standard output device.
Syntax: print(value(s), sep= ‘ ‘, end = ‘\n’, file=file, flush=flush)
Parameters:
value(s) : Any value, and as many as you like. Will be converted to string before printed
sep=’separator’ : (Optional) Specify how... | [
{
"code": null,
"e": 41472,
"s": 41444,
"text": "\n29 Oct, 2021"
},
{
"code": null,
"e": 41566,
"s": 41472,
"text": "Python print() function prints the message to the screen or any other standard output device."
},
{
"code": null,
"e": 41636,
"s": 41566,
"text... |
How to adjust the line spacing in the text node in JavaFX? | The line spacing property of the javafx.scene.text.The text class specifies the line spacing between the lines of the text (node) vertically.
You can set the value to this property using the setLineSpacing() method. This method accepts a boolean value as a parameter and sets the specified space between the lines (verti... | [
{
"code": null,
"e": 1204,
"s": 1062,
"text": "The line spacing property of the javafx.scene.text.The text class specifies the line spacing between the lines of the text (node) vertically."
},
{
"code": null,
"e": 1390,
"s": 1204,
"text": "You can set the value to this property u... |
How to change the font size of main title of boxplot in base R? | The font size of the main title of boxplot can be changed by defining the font size value using par(cex.main=”size”), here size value can be changed based on our requirement. This needs to be done before creating the boxplot, otherwise, there will be no effect on the size of the main title.
Live Demo
x<−rnorm(50)
par(... | [
{
"code": null,
"e": 1354,
"s": 1062,
"text": "The font size of the main title of boxplot can be changed by defining the font size value using par(cex.main=”size”), here size value can be changed based on our requirement. This needs to be done before creating the boxplot, otherwise, there will be no... |
Manipulate PDF Files, Extract Information from Text Files | Towards Data Science | Undoubtedly, modern technology has made our life easy. Even we can not think of a day without the usages of modern techniques and technologies. Natural language processing is one of the most used technologies in the recent time. Basically, natural language processing plays a significant role in our daily communication.... | [
{
"code": null,
"e": 634,
"s": 172,
"text": "Undoubtedly, modern technology has made our life easy. Even we can not think of a day without the usages of modern techniques and technologies. Natural language processing is one of the most used technologies in the recent time. Basically, natural languag... |
How xticks and xticklabels Really Work: a Walkthrough | by Henry Alpert | Towards Data Science | I was recently creating visualizations in Seaborn, which is based on Matplotlib, and when labeling the x-axis, I wasn’t getting the results I was expecting. I decided to take a step back and experiment to see what xticks and xticklabels actually do in a visualization.
Let’s break it down.
First, I created a dataframe w... | [
{
"code": null,
"e": 441,
"s": 172,
"text": "I was recently creating visualizations in Seaborn, which is based on Matplotlib, and when labeling the x-axis, I wasn’t getting the results I was expecting. I decided to take a step back and experiment to see what xticks and xticklabels actually do in a v... |
How to remove an element from Array List in C#? | Declare a new ArrayList and add elements to it.
ArrayList arr = new ArrayList();
arr.Add( "One" );
arr.Add( "Two" );
arr.Add( "Three" );
arr.Add( "Four" );
Now let’s say you need to remove the element “Three”. For that, use the Remove() method.
arr.Remove("Three");
The following is the complete example to remove an ele... | [
{
"code": null,
"e": 1110,
"s": 1062,
"text": "Declare a new ArrayList and add elements to it."
},
{
"code": null,
"e": 1218,
"s": 1110,
"text": "ArrayList arr = new ArrayList();\narr.Add( \"One\" );\narr.Add( \"Two\" );\narr.Add( \"Three\" );\narr.Add( \"Four\" );"
},
{
... |
How to create a pandas DataFrame using a list of tuples? | The pandas DataFrame constructor will create a pandas DataFrame object using a python list of tuples. We need to send this list of tuples as a parameter to the pandas.DataFrame() function.
The Pandas DataFrame object will store the data in a tabular format, Here the tuple element of the list object will become the row ... | [
{
"code": null,
"e": 1251,
"s": 1062,
"text": "The pandas DataFrame constructor will create a pandas DataFrame object using a python list of tuples. We need to send this list of tuples as a parameter to the pandas.DataFrame() function."
},
{
"code": null,
"e": 1410,
"s": 1251,
"t... |
Fortran - Numeric Precision | We have already discussed that, in older versions of Fortran, there were two real types: the default real type and double precision type.
However, Fortran 90/95 provides more control over the precision of real and integer data types through the kind specifie.
Different kind of numbers are stored differently inside the ... | [
{
"code": null,
"e": 2284,
"s": 2146,
"text": "We have already discussed that, in older versions of Fortran, there were two real types: the default real type and double precision type."
},
{
"code": null,
"e": 2406,
"s": 2284,
"text": "However, Fortran 90/95 provides more control... |
In-Place Algorithm | 23 Jun, 2022
In-place has more than one definition. One strict definition is.
An in-place algorithm is an algorithm that does not need an extra space and produces an output in the same memory that contains the data by transforming the input ‘in-place’. However, a small constant extra space used for variables is allowe... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 118,
"s": 52,
"text": "In-place has more than one definition. One strict definition is. "
},
{
"code": null,
"e": 362,
"s": 118,
"text": "An in-place algorithm is an algorithm t... |
Camera Access in Flutter | 30 Aug, 2020
To add images from the camera in flutter, we’ll use the image_picker package. For this, you’ll need to use your real device.
Follow the below steps to display the images from the camera:
Step 1: Create a new flutter application.
flutter create <APP_NAME>
Step 2: Delete the default code from the main.dart... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Aug, 2020"
},
{
"code": null,
"e": 179,
"s": 54,
"text": "To add images from the camera in flutter, we’ll use the image_picker package. For this, you’ll need to use your real device."
},
{
"code": null,
"e": 241,
"s"... |
Program for Derivative of a Polynomial | 18 Nov, 2021
Given a polynomial as a string and a value. Evaluate polynomial’s derivative for the given value. Note: The input format is such that there is a white space between a term and the ‘+’ symbol
The derivative of p(x) = ax^n is p'(x) = a*n*x^(n-1)Also, if p(x) = p1(x) + p2(x) Here p1 and p2 are polynomials too... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Nov, 2021"
},
{
"code": null,
"e": 245,
"s": 54,
"text": "Given a polynomial as a string and a value. Evaluate polynomial’s derivative for the given value. Note: The input format is such that there is a white space between a term an... |
Null Space and Nullity of a Matrix | 18 May, 2022
Null Space and Nullity are concepts in linear algebra which are used to identify the linear relationship among attributes.
The null space of any matrix A consists of all the vectors B such that AB = 0 and B is not zero. It can also be thought as the solution obtained from AB = 0 where A is known matrix of ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 May, 2022"
},
{
"code": null,
"e": 175,
"s": 52,
"text": "Null Space and Nullity are concepts in linear algebra which are used to identify the linear relationship among attributes."
},
{
"code": null,
"e": 520,
"s": ... |
Understanding Density Independence Pixel: sp, dp, dip in Android | 26 Apr, 2021
One of the most crucial factors to consider while developing an Android Application is the Responsiveness of the UI. It’s very important that your app looks good on all kinds of devices. Mobile devices can have different screen sizes as well as different pixel densities. Using constant values to define the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Apr, 2021"
},
{
"code": null,
"e": 711,
"s": 28,
"text": "One of the most crucial factors to consider while developing an Android Application is the Responsiveness of the UI. It’s very important that your app looks good on all kinds ... |
Destructuring Assignment in JavaScript | 31 May, 2022
Destructuring Assignment is a JavaScript expression that allows to unpack values from arrays, or properties from objects, into distinct variables data can be extracted from arrays, objects, nested objects and assigning to variables. In Destructuring Assignment on the left-hand side defined that which value... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 May, 2022"
},
{
"code": null,
"e": 498,
"s": 54,
"text": "Destructuring Assignment is a JavaScript expression that allows to unpack values from arrays, or properties from objects, into distinct variables data can be extracted from a... |
How to download Google Images using Python | 22 Jul, 2021
Python is a multi-purpose language and widely used for scripting. We can write Python scripts to automate day-to-day things. Let’s say we want to download google images with multiple search queries. Instead of doing it manually we can automate the process.
How to install needed Module :
pip install google_... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jul, 2021"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "Python is a multi-purpose language and widely used for scripting. We can write Python scripts to automate day-to-day things. Let’s say we want to download google images with m... |
Java AWT | GridBagLayout Class - GeeksforGeeks | 17 Aug, 2021
GridBagLayout class is a flexible layout manager. It is used to aligns the components horizontally, vertically, or along their baseline. It doesn’t require the components of the same size. Each GridBagLayout object manages a rectangular grid of cells, dynamic with each component occupying one or more cells... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n17 Aug, 2021"
},
{
"code": null,
"e": 26027,
"s": 25225,
"text": "GridBagLayout class is a flexible layout manager. It is used to aligns the components horizontally, vertically, or along their baseline. It doesn’t require the com... |
final, finally and finalize in Java - GeeksforGeeks | 13 Jan, 2022
This is an important question concerning the interview point of view.
final keyword
final(lowercase) is a reserved keyword in java. We can’t use it as an identifier as it is reserved. We can use this keyword with variables, methods and also with classes. The final keyword in java has different meaning depe... | [
{
"code": null,
"e": 25455,
"s": 25427,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 25525,
"s": 25455,
"text": "This is an important question concerning the interview point of view."
},
{
"code": null,
"e": 25539,
"s": 25525,
"text": "final keyword"
},
... |
How to Use rbind in Python? - GeeksforGeeks | 28 Nov, 2021
In this article, we will discuss rbind() in python.
Here we have to take 2 dataframes with equal columns and apply concat() function. This will combine the rows based on columns.
Syntax:
pandas.concat([dataframe1, dataframe2])
where
dataframe1 is the first dataframe
dataframe2 is the second dataframe
Examp... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 25589,
"s": 25537,
"text": "In this article, we will discuss rbind() in python."
},
{
"code": null,
"e": 25716,
"s": 25589,
"text": "Here we have to take 2 dataframes with... |
PHP | rename( ) Function - GeeksforGeeks | 29 May, 2018
The rename() function in PHP is an inbuilt function which is used to rename a file or directory. It makes an attempt to change an old name of a file or directory with a new name specified by the user and it may move between directories if necessary.If the new name specified by the user already exists, the ... | [
{
"code": null,
"e": 25681,
"s": 25653,
"text": "\n29 May, 2018"
},
{
"code": null,
"e": 26188,
"s": 25681,
"text": "The rename() function in PHP is an inbuilt function which is used to rename a file or directory. It makes an attempt to change an old name of a file or directory w... |
Area of the Largest square that can be inscribed in an ellipse - GeeksforGeeks | 15 Mar, 2021
Given an ellipse, with major axis length 2a & 2b, the task is to find the area of the largest rectangle that can be inscribed in it.Examples:
Input: a = 4, b = 2
Output: 1.25
Input: a = 5, b= 3
Output: 0.604444
Approach: If a square is inscribed in an ellipse, the distance from the centre of the squ... | [
{
"code": null,
"e": 26561,
"s": 26533,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 26705,
"s": 26561,
"text": "Given an ellipse, with major axis length 2a & 2b, the task is to find the area of the largest rectangle that can be inscribed in it.Examples: "
},
{
"code... |
NCHAR() Function in SQL Server - GeeksforGeeks | 30 Dec, 2020
NCHAR() function :This function in SQL Server is used to return the Unicode character that is based on the number code.For example, if the specified number is 65 then this function will return A.
Features :
This function is used to find the Unicode character of a given number.
This function accepts only po... | [
{
"code": null,
"e": 25513,
"s": 25485,
"text": "\n30 Dec, 2020"
},
{
"code": null,
"e": 25709,
"s": 25513,
"text": "NCHAR() function :This function in SQL Server is used to return the Unicode character that is based on the number code.For example, if the specified number is 65 t... |
Sum of squares of differences between all pairs of an array - GeeksforGeeks | 29 Jan, 2022
Given an array arr[] of size N, the task is to compute the sum of squares of differences of all possible pairs.
Examples:
Input: arr[] = {2, 8, 4}Output: 56Explanation: Sum of squared differences of all possible pairs = (2 – 8)2 + (2 – 4)2 + (8 – 4)2 = 56
Input: arr[] = {-5, 8, 9, -4, -3}Output: 950
Naive ... | [
{
"code": null,
"e": 26085,
"s": 26057,
"text": "\n29 Jan, 2022"
},
{
"code": null,
"e": 26197,
"s": 26085,
"text": "Given an array arr[] of size N, the task is to compute the sum of squares of differences of all possible pairs."
},
{
"code": null,
"e": 26207,
"s"... |
turtle.filling() function in Python - GeeksforGeeks | 28 Jul, 2020
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
This function is used to return fillstate (True if filling, False else). It doesn’t requir... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 25754,
"s": 25537,
"text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it... |
Finding Minimum Element of Java ArrayList - GeeksforGeeks | 04 Jan, 2021
For finding the minimum element in the ArrayList(This class is found in java.util package), complete traversal of the ArrayList is required. There is an inbuilt function in ArrayList class to find minimum element in the ArrayList, i.e. Time Complexity is O(N), where N is the size of ArrayList, Let’s discus... | [
{
"code": null,
"e": 25495,
"s": 25467,
"text": "\n04 Jan, 2021"
},
{
"code": null,
"e": 25822,
"s": 25495,
"text": "For finding the minimum element in the ArrayList(This class is found in java.util package), complete traversal of the ArrayList is required. There is an inbuilt fu... |
Skewness and Kurtosis in R Programming - GeeksforGeeks | 25 Jan, 2022
In statistics, skewness and kurtosis are the measures which tell about the shape of the data distribution or simply, both are numerical methods to analyze the shape of data set unlike, plotting graphs and histograms which are graphical methods. These are normality tests to check the irregularity and asymme... | [
{
"code": null,
"e": 30315,
"s": 30287,
"text": "\n25 Jan, 2022"
},
{
"code": null,
"e": 30728,
"s": 30315,
"text": "In statistics, skewness and kurtosis are the measures which tell about the shape of the data distribution or simply, both are numerical methods to analyze the shap... |
JavaScript window.close() Method - GeeksforGeeks | 15 Dec, 2021
In this article, we will learn about the JavaScript window.close() method, which is used for closing a certain window or tab of the browser which was previously opened by the window.open() method. The window.close() method does not require any parameter. We will have some examples to completely understand ... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 26873,
"s": 26545,
"text": "In this article, we will learn about the JavaScript window.close() method, which is used for closing a certain window or tab of the browser which was previously op... |
PHP | ltrim() Function - GeeksforGeeks | 10 Apr, 2018
The ltrim() function is a built-in function in PHP which removes whitespaces or other characters (if specified) from the left side of a string.
Syntax:
ltrim( $string, $charlist )
Parameters: The function ltrim() accepts two parameters as shown in the above syntax. Out of these two parameters, one is manda... | [
{
"code": null,
"e": 26285,
"s": 26257,
"text": "\n10 Apr, 2018"
},
{
"code": null,
"e": 26429,
"s": 26285,
"text": "The ltrim() function is a built-in function in PHP which removes whitespaces or other characters (if specified) from the left side of a string."
},
{
"code... |
Convert string to datetime in Python with timezone - GeeksforGeeks | 14 Sep, 2021
Prerequisite: Datetime module
In this article, we will learn how to get datetime object from time string using Python.
To convert a time string into datetime object, datetime.strptime() function of datetime module is used. This function returns datetime object.
Syntax : datetime.strptime(date_string, for... | [
{
"code": null,
"e": 23973,
"s": 23942,
"text": " \n14 Sep, 2021\n"
},
{
"code": null,
"e": 24003,
"s": 23973,
"text": "Prerequisite: Datetime module"
},
{
"code": null,
"e": 24092,
"s": 24003,
"text": "In this article, we will learn how to get datetime object... |
JavaScript to push value in empty index in array | We have an array that contains some empty values inside it like this −
const arr = [43,534534,645,64,,645,64,,645,,645,,65,,645,,64];
We are required to write an Array function pushAtEmpty() which takes in an element and
pushes it at the first empty index it finds in the array it is used in context of. If there are no ... | [
{
"code": null,
"e": 1133,
"s": 1062,
"text": "We have an array that contains some empty values inside it like this −"
},
{
"code": null,
"e": 1196,
"s": 1133,
"text": "const arr = [43,534534,645,64,,645,64,,645,,645,,65,,645,,64];"
},
{
"code": null,
"e": 1451,
"... |
Python program for sum of consecutive numbers with overlapping in lists | When it is required to sum the consecutive numbers with overlapping elements in lists, a list comprehension, list slicing, concatenation operator and ‘zip’ methods are used.
Below is a demonstration of the same −
my_list = [41, 27, 53, 12, 29, 32, 16]
print("The list is :")
print(my_list)
my_result = [a + b for a, b ... | [
{
"code": null,
"e": 1236,
"s": 1062,
"text": "When it is required to sum the consecutive numbers with overlapping elements in lists, a list comprehension, list slicing, concatenation operator and ‘zip’ methods are used."
},
{
"code": null,
"e": 1275,
"s": 1236,
"text": "Below is... |
Simplification - Solved Examples | Q 1 - 2- [3- {6-(5-4-3)}] = ?
A - 0
B - 1
C - 2
D - 3
Answer - B
Explanation
Given exp. =2- [3-{6-(5-4+3)}] [ Removing viranaculam]
= 2 - [3-{6-(5-4+3)}] [ Removing ( )]
= 2-[ 3- {6-4}] [ Removing {}]
= 2-[3-2] [ Removing [ ]]
=2-1 = 1
Q 2 - (4.8 *1.8 / 3.6... | [
{
"code": null,
"e": 3922,
"s": 3892,
"text": "Q 1 - 2- [3- {6-(5-4-3)}] = ?"
},
{
"code": null,
"e": 3928,
"s": 3922,
"text": "A - 0"
},
{
"code": null,
"e": 3934,
"s": 3928,
"text": "B - 1"
},
{
"code": null,
"e": 3940,
"s": 3934,
"text":... |
Cassandra - Quick Guide | Apache Cassandra is a highly scalable, high-performance distributed database designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. It is a type of NoSQL database. Let us first understand what a NoSQL database does.
A NoSQL database (sometime... | [
{
"code": null,
"e": 2581,
"s": 2287,
"text": "Apache Cassandra is a highly scalable, high-performance distributed database designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. It is a type of NoSQL database. Let us firs... |
How to remove consonants from a string using regular expressions in Java? | The simple character class “[ ]” matches all the specified characters in it. The meta character ^ acts as negation within the above character class i.e. the following expression matches all the characters except b (including spaces and special characters)
"[^b]"
Similarly, the following expression matches all the conso... | [
{
"code": null,
"e": 1318,
"s": 1062,
"text": "The simple character class “[ ]” matches all the specified characters in it. The meta character ^ acts as negation within the above character class i.e. the following expression matches all the characters except b (including spaces and special character... |
bitset size() in C++ STL - GeeksforGeeks | 16 Jun, 2021
bitset::size() is a built-in STL in C++ which returns the total number of bits.
Syntax:
bitset_name.size()
Parameter: The function accepts no parameter.
Return Value: The function returns an integral value which signifies the number of bits. It eventually returns the size that has been given while init... | [
{
"code": null,
"e": 24098,
"s": 24070,
"text": "\n16 Jun, 2021"
},
{
"code": null,
"e": 24179,
"s": 24098,
"text": "bitset::size() is a built-in STL in C++ which returns the total number of bits. "
},
{
"code": null,
"e": 24189,
"s": 24179,
"text": "Syntax: ... |
C++ nested if statements | It is always legal to nest if-else statements, which means you can use one if or else if statement inside another if or else if statement(s).
The syntax for a nested if statement is as follows −
if( boolean_expression 1) {
// Executes when the boolean expression 1 is true
if(boolean_expression 2) {
// Exec... | [
{
"code": null,
"e": 2460,
"s": 2318,
"text": "It is always legal to nest if-else statements, which means you can use one if or else if statement inside another if or else if statement(s)."
},
{
"code": null,
"e": 2514,
"s": 2460,
"text": "The syntax for a nested if statement is... |
Drupwn - Drupal Enumeration Tool and Security Scanner in Kali Linux - GeeksforGeeks | 23 Sep, 2021
Drupal is content management software used for making many of the websites and applications you use every day. Along with its cool features, there can be some risks that are linked with Drupal CMS. The outdated version can lead to Security Compromise on the web application. We can test the Drupal CMS consi... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 26345,
"s": 25651,
"text": "Drupal is content management software used for making many of the websites and applications you use every day. Along with its cool features, there can be some risk... |
How to convert matrix to list of vectors in R ? - GeeksforGeeks | 08 May, 2021
In this article, we will learn how to convert a matrix into a list of vectors in R Programming Language.
Method 1: Using as.list() function
To convert columns of the matrix into a list of vectors, we first need to convert the matrix to a dataframe object, which can be done by using as.data.frame(matrix_nam... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n08 May, 2021"
},
{
"code": null,
"e": 26592,
"s": 26487,
"text": "In this article, we will learn how to convert a matrix into a list of vectors in R Programming Language."
},
{
"code": null,
"e": 26627,
"s": 26592... |
Array setByte() method in Java - GeeksforGeeks | 28 Mar, 2022
The java.lang.reflect.Array.setByte() is an inbuilt method in Java and is used to set a specified byte value to a specified index of a given object array. Syntax:
Array.setByte(Object []array, int index, byte value)
Parameter: This method takes 3 parameters:
array: This is an array of type Object which is ... | [
{
"code": null,
"e": 25567,
"s": 25539,
"text": "\n28 Mar, 2022"
},
{
"code": null,
"e": 25730,
"s": 25567,
"text": "The java.lang.reflect.Array.setByte() is an inbuilt method in Java and is used to set a specified byte value to a specified index of a given object array. Syntax:"... |
Compiler Theory | Set 1 - GeeksforGeeks | 07 Nov, 2019
Following questions have been asked in GATE CS exam.
1. Which of the following derivations does a top-down parser use while parsing an input string? The input is assumed to be scanned in left to right order (GATE CS 2000).(a) Leftmost derivation(b) Leftmost derivation traced out in reverse(c) Rightmost der... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n07 Nov, 2019"
},
{
"code": null,
"e": 26540,
"s": 26487,
"text": "Following questions have been asked in GATE CS exam."
},
{
"code": null,
"e": 26848,
"s": 26540,
"text": "1. Which of the following derivations... |
How to disable a link using only CSS? - GeeksforGeeks | 06 Jan, 2020
To disable a link using CSS, pointer-events property can be used, which sets whether the element in the page has to respond or not while clicking on elements. The pointer-events property is used to specify whether element show to pointer events and whether not show on the pointer.
Below example illustrate ... | [
{
"code": null,
"e": 25989,
"s": 25961,
"text": "\n06 Jan, 2020"
},
{
"code": null,
"e": 26271,
"s": 25989,
"text": "To disable a link using CSS, pointer-events property can be used, which sets whether the element in the page has to respond or not while clicking on elements. The ... |
How to validate input field while focusout ? - GeeksforGeeks | 17 Jul, 2019
The focusout() method in jQuery is used to remove the focus from the selected element. Now we will use focusout() method to validate the input field while focussing out. This method checks whether the input field is empty or not. Also, use some CSS property to display input field validation. If the input f... | [
{
"code": null,
"e": 26978,
"s": 26950,
"text": "\n17 Jul, 2019"
},
{
"code": null,
"e": 27391,
"s": 26978,
"text": "The focusout() method in jQuery is used to remove the focus from the selected element. Now we will use focusout() method to validate the input field while focussin... |
Program to check idempotent matrix - GeeksforGeeks | 05 Jul, 2021
Given a N * N matrix and the task is to check matrix is idempotent matrix or not.Idempotent matrix: A matrix is said to be idempotent matrix if matrix multiplied by itself return the same matrix. The matrix M is said to be idempotent matrix if and only if M * M = M. In idempotent matrix M is a square matri... | [
{
"code": null,
"e": 26165,
"s": 26137,
"text": "\n05 Jul, 2021"
},
{
"code": null,
"e": 26476,
"s": 26165,
"text": "Given a N * N matrix and the task is to check matrix is idempotent matrix or not.Idempotent matrix: A matrix is said to be idempotent matrix if matrix multiplied b... |
Template matching using OpenCV in Python - GeeksforGeeks | 03 May, 2021
Template matching is a technique for finding areas of an image that are similar to a patch (template). A patch is a small image with certain features. The goal of template matching is to find the patch/template in an image. To find it, the user has to give two input images: Source Image (S) – The image to ... | [
{
"code": null,
"e": 25753,
"s": 25725,
"text": "\n03 May, 2021"
},
{
"code": null,
"e": 26159,
"s": 25753,
"text": "Template matching is a technique for finding areas of an image that are similar to a patch (template). A patch is a small image with certain features. The goal of ... |
Find sum of digits in factorial of a number - GeeksforGeeks | 27 Apr, 2021
Given a number n, write code to find the sum of digits in the factorial of the number. Given n ≤ 5000
Examples:
Input : 10
Output : 27
Input : 100
Output : 648
It is not possible to store a number as large as 100! under some data types so, idea is to store an extremely large number in a vector.
1) Cre... | [
{
"code": null,
"e": 26721,
"s": 26693,
"text": "\n27 Apr, 2021"
},
{
"code": null,
"e": 26824,
"s": 26721,
"text": "Given a number n, write code to find the sum of digits in the factorial of the number. Given n ≤ 5000 "
},
{
"code": null,
"e": 26835,
"s": 26824,
... |
Bash Scripting - Write Output of Bash Command into Log File - GeeksforGeeks | 28 Nov, 2021
Let there are some situations in which you have to save your output in a file ( generally called log file). Output can be user details ( username, password, Gmail, etc. ), products record ( buying or selling any goods ), or simply any kind of data that you can store in a log file.
Example 1 :
In this exam... | [
{
"code": null,
"e": 24406,
"s": 24378,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 24689,
"s": 24406,
"text": "Let there are some situations in which you have to save your output in a file ( generally called log file). Output can be user details ( username, password, Gmail,... |
Yet Another an End-to-End Time Series Project Tutorial | by George Vinogradov | Towards Data Science | Time series analysis is one of the most common and at the same time most requested tasks of the classical data science area. You can observe this type of data everywhere: stocks and financial trading, data generated by IoT, online and offline retail sales and even medical records such as heart rate, EKG, EEG, and MRI.
... | [
{
"code": null,
"e": 492,
"s": 172,
"text": "Time series analysis is one of the most common and at the same time most requested tasks of the classical data science area. You can observe this type of data everywhere: stocks and financial trading, data generated by IoT, online and offline retail sales... |
Background removal with deep learning | by Gidi Shperber | Towards Data Science | This post describes our work and research on the greenScreen.AI. We’ll be happy to hear thoughts and comments -On Twitter, Linkedin
Also check out our website — www.shibumi-ai.com
Throughout the last few years in machine learning, I’ve always wanted to build real machine learning products.A few months ago, after taking... | [
{
"code": null,
"e": 304,
"s": 172,
"text": "This post describes our work and research on the greenScreen.AI. We’ll be happy to hear thoughts and comments -On Twitter, Linkedin"
},
{
"code": null,
"e": 352,
"s": 304,
"text": "Also check out our website — www.shibumi-ai.com"
},
... |
Bootstrap 4 .justify-content-*-center class | Use the justify-content-*-center class in Bootstrap 4 to center content on different screen sizes.
For different screen sizes −
justify-content-sm-center: Small Screen Size
justify-content-md-center: Medium Screen Size
justify-content-lg-center: Large Screen Size
justify-content-xl-center: Extra Large Screen Size
Let u... | [
{
"code": null,
"e": 1161,
"s": 1062,
"text": "Use the justify-content-*-center class in Bootstrap 4 to center content on different screen sizes."
},
{
"code": null,
"e": 1190,
"s": 1161,
"text": "For different screen sizes −"
},
{
"code": null,
"e": 1377,
"s": 11... |
Fabric.js Textbox textAlign Property - GeeksforGeeks | 01 Feb, 2021
In this article, we are going to see how to set the text alignment of the canvas textbox using FabricJS. The canvas means textbox written is movable, rotatable, resizable, and can be stretched. In this article, we will set the text alignment.
Approach: To make it possible, we are going to use a JavaScript ... | [
{
"code": null,
"e": 24909,
"s": 24881,
"text": "\n01 Feb, 2021"
},
{
"code": null,
"e": 25152,
"s": 24909,
"text": "In this article, we are going to see how to set the text alignment of the canvas textbox using FabricJS. The canvas means textbox written is movable, rotatable, re... |
How to know testcases where code fails? | 19 Oct, 2020
In Competitive Programming, it’s quite often to write code that works on the given sample test cases but on submitting its end up with a WA(Wrong answer) verdict. This is where things get frustrating and not know on which test case the solution fails. In such situations there are a few things that a progra... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Oct, 2020"
},
{
"code": null,
"e": 372,
"s": 52,
"text": "In Competitive Programming, it’s quite often to write code that works on the given sample test cases but on submitting its end up with a WA(Wrong answer) verdict. This is whe... |
Reduce the fraction to its lowest form | 18 Mar, 2022
Given two integers x and y and where x is divisible by y. It can be represented in the form of a fraction x/y. The task is to reduce the fraction to its lowest form.Examples:
Input : x = 16, y = 10
Output : x = 8, y = 5
Input : x = 10, y = 8
Output : x = 5, y = 4
Approach: Both of the values x and y w... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Mar, 2022"
},
{
"code": null,
"e": 229,
"s": 52,
"text": "Given two integers x and y and where x is divisible by y. It can be represented in the form of a fraction x/y. The task is to reduce the fraction to its lowest form.Examples:... |
Quine – A self-reproducing program | 09 Aug, 2018
A quine is a program which prints a copy of its own as the only output. A quine takes no input. Quines are named after the American mathematician and logician Willard Van Orman Quine (1908–2000). The interesting thing is you are not allowed to use open and then print file of the program.
To the best of our... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Aug, 2018"
},
{
"code": null,
"e": 341,
"s": 52,
"text": "A quine is a program which prints a copy of its own as the only output. A quine takes no input. Quines are named after the American mathematician and logician Willard Van Orm... |
C# | Tuple<T1,T2> Class | 23 Nov, 2021
The Tuple<T1, T2> class is used to create a 2-tuple or pair. It represents a tuple which contains the two elements in it. You can instantiate a Tuple<T1, T2> object by calling either the Tuple<T1, T2>(T1, T2) constructor or by the static Tuple.Create method. You can retrieve the value of the tuple’s elemen... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 414,
"s": 28,
"text": "The Tuple<T1, T2> class is used to create a 2-tuple or pair. It represents a tuple which contains the two elements in it. You can instantiate a Tuple<T1, T2> object by calling... |
How to get the first and last date of current month using JavaScript ? | 30 May, 2019
Given a month and the task is to determine the first and last day of that month in proper format using JavaScript.
JavaScript getDate() Method: This method returns the day of the month (from 1 to 31) for the defined date.Syntax:Date.getDate()Return value: It returns a number from 1 to 31, representing the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 May, 2019"
},
{
"code": null,
"e": 143,
"s": 28,
"text": "Given a month and the task is to determine the first and last day of that month in proper format using JavaScript."
},
{
"code": null,
"e": 353,
"s": 143,
... |
C# | Constructor Overloading | 26 Aug, 2020
It is quite similar to the Method Overloading. It is the ability to redefine a Constructor in more than one form. A user can implement constructor overloading by defining two or more constructors in a class sharing the same name. C# can distinguish the constructors with different signatures. i.e. the const... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Aug, 2020"
},
{
"code": null,
"e": 402,
"s": 28,
"text": "It is quite similar to the Method Overloading. It is the ability to redefine a Constructor in more than one form. A user can implement constructor overloading by defining two ... |
Print last character of each word in a string | 31 May, 2021
Given string str, the task is to print the last character of each word in the string.
Examples:
Input: str = “Geeks for Geeks” Output: s r s
Input: str = “computer applications” Output: r s
Approach: Append a space i.e. ” “ at the end of the given string so that the last word in the string is also follo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 114,
"s": 28,
"text": "Given string str, the task is to print the last character of each word in the string."
},
{
"code": null,
"e": 126,
"s": 114,
"text": "Examples: "
},
... |
Builder Method – Python Design Patterns | 20 Jun, 2022
Builder Method is a Creation Design Pattern which aims to “Separate the construction of a complex object from its representation so that the same construction process can create different representations.” It allows you to construct complex objects step by step. Here using the same construction code, we ca... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 562,
"s": 54,
"text": "Builder Method is a Creation Design Pattern which aims to “Separate the construction of a complex object from its representation so that the same construction process can cre... |
Collect.js | zip() Function | 10 Jun, 2020
The zip() function is used to combine the values of given array with the values of original collection at a given index. In JavaScript, the array is first converted to a collection and then the function is applied to the collection.
Syntax:
data.zip(value)
Parameters: This function accept a single parame... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jun, 2020"
},
{
"code": null,
"e": 261,
"s": 28,
"text": "The zip() function is used to combine the values of given array with the values of original collection at a given index. In JavaScript, the array is first converted to a colle... |
Minimum Initial Points to Reach Destination | 07 Jul, 2022
Given a grid with each cell consisting of positive, negative or no points i.e, zero points. We can move across a cell only if we have positive points ( > 0 ). Whenever we pass through a cell, points in that cell are added to our overall points. We need to find minimum initial points to reach cell (m-1, n-1... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 374,
"s": 52,
"text": "Given a grid with each cell consisting of positive, negative or no points i.e, zero points. We can move across a cell only if we have positive points ( > 0 ). Whenever we pas... |
Time based Access-List | 09 Aug, 2019
Prerequisite – Access-lists (ACL)An access-list is used mainly for packet filtering. It is a sequential series of various permit or deny conditions in which if one of the condition matches, it is executed and no other condition is matched further. Also, it contains an implicit deny at the end therefore the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Aug, 2019"
},
{
"code": null,
"e": 425,
"s": 28,
"text": "Prerequisite – Access-lists (ACL)An access-list is used mainly for packet filtering. It is a sequential series of various permit or deny conditions in which if one of the cond... |
fromtimestamp() Function Of Datetime.date Class In Python | 28 Jul, 2021
The fromtimestamp() function is used to return the date corresponding to a specified timestamp.
Note: Here the timestamp is ranging from the year 1970 to the year 2038, and this function does not consider leap seconds if any present in the timestamp. This function is a class method.
Syntax: @classmethod fr... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 149,
"s": 53,
"text": "The fromtimestamp() function is used to return the date corresponding to a specified timestamp."
},
{
"code": null,
"e": 337,
"s": 149,
"text": "Note: Her... |
Target Corporation Interview Experience | 01 Aug, 2021
I’m an EE student.
Pre Placement Talk :
There Will be a Pre Placement talk for about 50 min. They’ll talk about what their company is about and work culture, CTC and benefits, etc
If you are serious about the company you should pay attention to talk and try to note some points so that you can ask them in t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Aug, 2021"
},
{
"code": null,
"e": 47,
"s": 28,
"text": "I’m an EE student."
},
{
"code": null,
"e": 68,
"s": 47,
"text": "Pre Placement Talk :"
},
{
"code": null,
"e": 208,
"s": 68,
"text": "T... |
Python | Pandas Reverse split strings into two List/Columns using str.rsplit() | 25 Jun, 2020
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas provide a method to split string around a passed separator or delimiter. After that, t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2020"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes imp... |
Python EasyGUI – Continue Cancel Box | 05 Sep, 2020
Continue Cancel Box : It is used to display a window having a two option continue or cancel in EasyGUI, it can be used where there is a need to display two option continue or cancel for example when we want to confirm the option if continue is pressed application will move forward else it will get terminat... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n05 Sep, 2020"
},
{
"code": null,
"e": 412,
"s": 53,
"text": "Continue Cancel Box : It is used to display a window having a two option continue or cancel in EasyGUI, it can be used where there is a need to display two option continue or... |
Explain nesting and grouping in CSS | 31 Aug, 2021
The Nesting & Grouping concept is very important for a web developer to write precise codes. You can group and nest items to reduce the amount of code that you write, which will reduce the length of your code and allow pages to load faster. It is a way to simplify your code. With the help of Nesting and Gr... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 530,
"s": 54,
"text": "The Nesting & Grouping concept is very important for a web developer to write precise codes. You can group and nest items to reduce the amount of code that you write, which w... |
chmod command in Linux with examples | 19 Feb, 2021
In Unix-like operating systems, the chmod command is used to change the access mode of a file.The name is an abbreviation of change mode.
Syntax :
chmod [reference][operator][mode] file...
The references are used to distinguish the users to whom the permissions apply i.e. they are list of letters that sp... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 190,
"s": 52,
"text": "In Unix-like operating systems, the chmod command is used to change the access mode of a file.The name is an abbreviation of change mode."
},
{
"code": null,
"e":... |
Responsive images in Bootstrap with Examples | 28 Apr, 2022
Bootstrap offers different classes for images to make their appearance better and also to make them responsive. Making an image responsive means that it should scale according to its parent element. That is, the size of the image should not overflow its parent and will grow and shrink according to the chan... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Apr, 2022"
},
{
"code": null,
"e": 397,
"s": 28,
"text": "Bootstrap offers different classes for images to make their appearance better and also to make them responsive. Making an image responsive means that it should scale according... |
Python – Constant Multiplication over List | 14 Aug, 2021
While working with the python lists, we can come over a situation in which we require to multiply constant to each element in the list. We possibly need to iterate and multiply constant to each element but that would increase the line of code. Let’s discuss certain shorthands to perform this task.
Method #... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Aug, 2021"
},
{
"code": null,
"e": 327,
"s": 28,
"text": "While working with the python lists, we can come over a situation in which we require to multiply constant to each element in the list. We possibly need to iterate and multipl... |
Shell Script to Check Disk Space Usage | 20 Apr, 2021
Disk usage is a report generated by the Linux system about different disks available or created on the secondary memory. These disks are also known as partitions, they have their isolated filesystem. This facility provides us the measurements of different labels or features like Used space, Free space, Fil... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Apr, 2021"
},
{
"code": null,
"e": 579,
"s": 52,
"text": "Disk usage is a report generated by the Linux system about different disks available or created on the secondary memory. These disks are also known as partitions, they have t... |
How to access elements of a Square Matrix | 23 Jan, 2022
A square matrix is a matrix which includes elements in the form of Rows and Columns. Below is an example of a 5×5 matrix.
A 5×5 Square Matrix
A Matrix is accessed by: Matrix_Name[row_index][column_index]Below are the various ways to access a Square Matrix in different forms:
1. Elements on the main diag... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jan, 2022"
},
{
"code": null,
"e": 175,
"s": 52,
"text": "A square matrix is a matrix which includes elements in the form of Rows and Columns. Below is an example of a 5×5 matrix. "
},
{
"code": null,
"e": 196,
"s": ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.