title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Top 20 Data Science Discord servers to join in 2020 | by Benedict Neo | Towards Data Science | If you’ve never heard of Discord before, then you’re most likely not a gamer. But that’s about to change. Initially, Discord was constructed to be a real-time social platform where gamers unite and communicate with each other. But now, Discord has grown into an essential tool for influencers, YouTubers, memers, and bas... | [
{
"code": null,
"e": 538,
"s": 171,
"text": "If you’ve never heard of Discord before, then you’re most likely not a gamer. But that’s about to change. Initially, Discord was constructed to be a real-time social platform where gamers unite and communicate with each other. But now, Discord has grown i... |
Machine Learning Models For Improved Startup Valuation. | by flo.tausend | Towards Data Science | Determining the valuation of an early-stage Startup is in most cases very challenging due limited historical data, little to no existing revenues, market uncertainty and many more. Traditional valuation techniques, such as Discounted Cash Flow (DCF) or Multiples (CCA), therefore often lead to inappropriate results. On ... | [
{
"code": null,
"e": 622,
"s": 172,
"text": "Determining the valuation of an early-stage Startup is in most cases very challenging due limited historical data, little to no existing revenues, market uncertainty and many more. Traditional valuation techniques, such as Discounted Cash Flow (DCF) or Mu... |
A Comprehensive Guide to Convolutional Neural Networks — the ELI5 way | by Sumit Saha | Towards Data Science | Artificial Intelligence has been witnessing a monumental growth in bridging the gap between the capabilities of humans and machines. Researchers and enthusiasts alike, work on numerous aspects of the field to make amazing things happen. One of many such areas is the domain of Computer Vision.
The agenda for this field ... | [
{
"code": null,
"e": 466,
"s": 172,
"text": "Artificial Intelligence has been witnessing a monumental growth in bridging the gap between the capabilities of humans and machines. Researchers and enthusiasts alike, work on numerous aspects of the field to make amazing things happen. One of many such a... |
Matplotlib.pyplot.semilogx() in Python - GeeksforGeeks | 29 May, 2021
Data Visualization Is an important part of analyzing the data as plotting graphs helps in providing better insight and understanding of the problem. Matplotlib.pyplot is one of the most commonly used libraries to do the same. It helps in creating attractive data and is super easy to use.
This function is... | [
{
"code": null,
"e": 23769,
"s": 23741,
"text": "\n29 May, 2021"
},
{
"code": null,
"e": 24059,
"s": 23769,
"text": "Data Visualization Is an important part of analyzing the data as plotting graphs helps in providing better insight and understanding of the problem. Matplotlib.pyp... |
Symmetric Tree in Python | Suppose we have one binary tree. We have to check whether the tree is a symmetric tree or not. A tree will be said to be symmetric if it is the same when we take the mirror image of it. From these two trees, the first one is symmetric, but the second one is not.
To solve this, we will follow these steps.
We will call f... | [
{
"code": null,
"e": 1325,
"s": 1062,
"text": "Suppose we have one binary tree. We have to check whether the tree is a symmetric tree or not. A tree will be said to be symmetric if it is the same when we take the mirror image of it. From these two trees, the first one is symmetric, but the second on... |
Connecting to an ec2 instance in a private subnet on AWS | by Harry Daniels | Towards Data Science | If you’d like to skip ahead, all the code discussed in this post is available on my GitHub here.
Amazon Virtual Private Cloud (Amazon VPC) enables you to launch AWS resources into a virtual network that you’ve defined. A subnet is a range of IP addresses within the VPC. Subnets can be either public with a gateway to th... | [
{
"code": null,
"e": 269,
"s": 172,
"text": "If you’d like to skip ahead, all the code discussed in this post is available on my GitHub here."
},
{
"code": null,
"e": 979,
"s": 269,
"text": "Amazon Virtual Private Cloud (Amazon VPC) enables you to launch AWS resources into a virt... |
Count of rotations required to generate a sorted array - GeeksforGeeks | 10 Jun, 2021
Given an array arr[], the task is to find the number of rotations required to convert the given array to sorted form.Examples:
Input: arr[] = {4, 5, 1, 2, 3} Output: 2 Explanation: Sorted array {1, 2, 3, 4, 5} after 2 anti-clockwise rotations.
Input: arr[] = {2, 1, 2, 2, 2} Output: 1 Explanation: Sorted ar... | [
{
"code": null,
"e": 25522,
"s": 25494,
"text": "\n10 Jun, 2021"
},
{
"code": null,
"e": 25649,
"s": 25522,
"text": "Given an array arr[], the task is to find the number of rotations required to convert the given array to sorted form.Examples:"
},
{
"code": null,
"e":... |
How can I select every alternative row and display in descending order in SQL? | To fetch every alternative row, use MOD() under WHERE. Then use ORDER BY DESC to display the result in descending order −
select *from yourTableName where mod(yourColumnName,2)=1 order by yourColumnName DESC;
Let us first create a table −
mysql> create table DemoTable
(
UniqueId int NOT NULL AUTO_INCREMENT PRIMARY K... | [
{
"code": null,
"e": 1184,
"s": 1062,
"text": "To fetch every alternative row, use MOD() under WHERE. Then use ORDER BY DESC to display the result in descending order −"
},
{
"code": null,
"e": 1271,
"s": 1184,
"text": "select *from yourTableName where mod(yourColumnName,2)=1 ord... |
How to set the height/width of a Label widget in Tkinter? | The Label widgets are used for displaying text and images in the application. The size of the label widget depends on a number of factors such as width, height, and Font-size of the Label text.
The height and width define how the label widget should appear in the window. To set the height and width of the label widget,... | [
{
"code": null,
"e": 1256,
"s": 1062,
"text": "The Label widgets are used for displaying text and images in the application. The size of the label widget depends on a number of factors such as width, height, and Font-size of the Label text."
},
{
"code": null,
"e": 1547,
"s": 1256,
... |
Ruby on Rails - Database Setup | Before starting with this chapter, make sure your database server is up and running. Ruby on Rails recommends to create three databases - a database each for development, testing, and production environment. According to convention, their names should be −
library_development
library_production
library_test
You should ... | [
{
"code": null,
"e": 2360,
"s": 2103,
"text": "Before starting with this chapter, make sure your database server is up and running. Ruby on Rails recommends to create three databases - a database each for development, testing, and production environment. According to convention, their names should b... |
C# - if...else Statement | An if statement can be followed by an optional else statement, which executes when the boolean expression is false.
The syntax of an if...else statement in C# is −
if(boolean_expression) {
/* statement(s) will execute if the boolean expression is true */
} else {
/* statement(s) will execute if the boolean expres... | [
{
"code": null,
"e": 2386,
"s": 2270,
"text": "An if statement can be followed by an optional else statement, which executes when the boolean expression is false."
},
{
"code": null,
"e": 2434,
"s": 2386,
"text": "The syntax of an if...else statement in C# is −"
},
{
"cod... |
Dart Programming - for Loop | The for loop is an implementation of a definite loop. The for loop executes the code block for a specified number of times. It can be used to iterate over a fixed set of values, such as an array.
Following is the syntax of the for loop.
for (initial_count_value; termination-condition; step) {
//statements
}
v... | [
{
"code": null,
"e": 2721,
"s": 2525,
"text": "The for loop is an implementation of a definite loop. The for loop executes the code block for a specified number of times. It can be used to iterate over a fixed set of values, such as an array."
},
{
"code": null,
"e": 2762,
"s": 2721,... |
How to work with Camera in an Android App using Kotlin? | This example demonstrates how to work with Camera in an Android App using Kotlin.
Step 1 − Create a new project in Android Studio, go to File ? New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<Rela... | [
{
"code": null,
"e": 1144,
"s": 1062,
"text": "This example demonstrates how to work with Camera in an Android App using Kotlin."
},
{
"code": null,
"e": 1273,
"s": 1144,
"text": "Step 1 − Create a new project in Android Studio, go to File ? New Project and fill all required deta... |
Iterative Initial Centroid Search via Sampling for k-Means Clustering | by Matthew Mayo | Towards Data Science | In this post, we will look at using an iterative approach to searching for a better set of initial centroids for k-means clustering, and will do so by performing this process on a sample of our full dataset.
What do we mean by “better?” Since k-means clustering aims to converge on an optimal set of cluster centers (cen... | [
{
"code": null,
"e": 254,
"s": 46,
"text": "In this post, we will look at using an iterative approach to searching for a better set of initial centroids for k-means clustering, and will do so by performing this process on a sample of our full dataset."
},
{
"code": null,
"e": 785,
"s... |
C++ Vector Library - data() Function | The C++ function std::vector::data() returns a pointer to the first element of the vector container.
Following is the declaration for std::vector::data() function form std::vector header.
value_type* data() noexcept;
const value_type* data() const noexcept;
None
Returns constant pointer if vector object is constant qu... | [
{
"code": null,
"e": 2704,
"s": 2603,
"text": "The C++ function std::vector::data() returns a pointer to the first element of the vector container."
},
{
"code": null,
"e": 2791,
"s": 2704,
"text": "Following is the declaration for std::vector::data() function form std::vector he... |
Maximize Number of 1's | Practice | GeeksforGeeks | Given a binary array arr of size N and an integer M. Find the maximum number of consecutive 1's produced by flipping at most M 0's.
Example 1:
Input:
N = 3
arr[] = {1, 0, 1}
M = 1
Output:
3
Explanation:
Maximum subarray is of size 3
which can be made subarray of all 1 after
flipping two zeros to 1.
Example 2:
Input:
... | [
{
"code": null,
"e": 372,
"s": 238,
"text": "Given a binary array arr of size N and an integer M. Find the maximum number of consecutive 1's produced by flipping at most M 0's.\n "
},
{
"code": null,
"e": 383,
"s": 372,
"text": "Example 1:"
},
{
"code": null,
"e": 540... |
Count subarrays having each distinct element occurring at least twice - GeeksforGeeks | 04 Oct, 2021
Given an array arr[] of size N, the task is to count the number of subarrays from the given array, such that each distinct element in these subarray occurs at least twice.
Examples:
Input: arr[] = {1, 1, 2, 2, 2}Output: 6Explanation: Subarrays having each element occurring at least twice are :{{1, 1}, {1, ... | [
{
"code": null,
"e": 24927,
"s": 24899,
"text": "\n04 Oct, 2021"
},
{
"code": null,
"e": 25099,
"s": 24927,
"text": "Given an array arr[] of size N, the task is to count the number of subarrays from the given array, such that each distinct element in these subarray occurs at leas... |
Python Program to Sort an array in wave form - GeeksforGeeks | 27 Dec, 2021
Given an unsorted array of integers, sort the array into a wave like array. An array ‘arr[0..n-1]’ is sorted in wave form if arr[0] >= arr[1] <= arr[2] >= arr[3] <= arr[4] >= .....
Examples:
Input: arr[] = {10, 5, 6, 3, 2, 20, 100, 80}
Output: arr[] = {10, 5, 6, 2, 20, 3, 100, 80} OR
{... | [
{
"code": null,
"e": 24405,
"s": 24377,
"text": "\n27 Dec, 2021"
},
{
"code": null,
"e": 24586,
"s": 24405,
"text": "Given an unsorted array of integers, sort the array into a wave like array. An array ‘arr[0..n-1]’ is sorted in wave form if arr[0] >= arr[1] <= arr[2] >= arr[3] <... |
C++ Program for the Fractional Knapsack Problem - GeeksforGeeks | 19 Jul, 2020
Pre-requisite: Fractional Knapsack Problem
Given two arrays weight[] and profit[] the weights and profit of N items, we need to put these items in a knapsack of capacity W to get the maximum total value in the knapsack.Note: Unlike 0/1 knapsack, you are allowed to break the item.
Examples:
Input: weight[] ... | [
{
"code": null,
"e": 25985,
"s": 25957,
"text": "\n19 Jul, 2020"
},
{
"code": null,
"e": 26028,
"s": 25985,
"text": "Pre-requisite: Fractional Knapsack Problem"
},
{
"code": null,
"e": 26266,
"s": 26028,
"text": "Given two arrays weight[] and profit[] the weig... |
Python | Pandas Timedelta.seconds - GeeksforGeeks | 14 Jan, 2019
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.
Timedelta is a subclass of datetime.timedelta, and behaves in a similar manner. It is the pan... | [
{
"code": null,
"e": 24962,
"s": 24934,
"text": "\n14 Jan, 2019"
},
{
"code": null,
"e": 25176,
"s": 24962,
"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 a... |
Life Cycle Phases of Project Management - GeeksforGeeks | 25 Mar, 2020
Life cycle phases consist of various separated modules with defined functionalities. Life cycle phases describe the various phases of project management. Life cycle phases are mainly divided into two broad categories:
1. Engineering Phase
2. Production Phase
These are explained as following below.
1. Engi... | [
{
"code": null,
"e": 24974,
"s": 24946,
"text": "\n25 Mar, 2020"
},
{
"code": null,
"e": 25192,
"s": 24974,
"text": "Life cycle phases consist of various separated modules with defined functionalities. Life cycle phases describe the various phases of project management. Life cycl... |
Calculate Age from given Date of Birth in MySQL? | To calculate age in MySQL from Date of Birth, you can use the following syntax −
SELECT YEAR(CURRENT_TIMESTAMP) - YEAR(yourColumnName)
- (RIGHT(CURRENT_TIMESTAMP, 5) < RIGHT(yourColumnName, 5)) as anyVariableName from yourTableName;
To understand the above concept, let us create a table. The following is the query to c... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "To calculate age in MySQL from Date of Birth, you can use the following syntax −"
},
{
"code": null,
"e": 1295,
"s": 1143,
"text": "SELECT YEAR(CURRENT_TIMESTAMP) - YEAR(yourColumnName)\n- (RIGHT(CURRENT_TIMESTAMP, 5) < RIGHT(yourCol... |
Linear Search Program in C | Here we present the implementation of linear search in C programming language. The output of the program is given after the code.
#include <stdio.h>
#define MAX 20
// array of items on which linear search will be conducted.
int intArray[MAX] = {1,2,3,4,6,7,9,11,12,14,15,16,17,19,33,34,43,45,55,66};
void printline(in... | [
{
"code": null,
"e": 2710,
"s": 2580,
"text": "Here we present the implementation of linear search in C programming language. The output of the program is given after the code."
},
{
"code": null,
"e": 3892,
"s": 2710,
"text": "#include <stdio.h>\n\n#define MAX 20\n\n// array of ... |
Embed Interactive charts in Medium/Websites using Plotly and Chartstudio with Python | by Syam Kakarla | Towards Data Science | There is no such thing as information overload. There is only a bad design. — Edward Tufte
We all know a picture is worth a thousand words, data visualization is the visual summary of the information that makes it easier to understand/identify patterns and trends instead of looking at thousands of rows in spreadsheets.... | [
{
"code": null,
"e": 262,
"s": 171,
"text": "There is no such thing as information overload. There is only a bad design. — Edward Tufte"
},
{
"code": null,
"e": 688,
"s": 262,
"text": "We all know a picture is worth a thousand words, data visualization is the visual summary of th... |
Tryit Editor v3.7 | Tryit: The border property | [] |
How to convert string to numerical values in MongoDB? | You need to use some code in order to convert a string to numerical values in MongoDB.
Let us first create a collection with a document. The query to create a collection with a document is as follows:
> db.convertStringToNumberDemo.insertOne({"EmployeeId":"101","EmployeeName":"Larry"});
{
"acknowledged" : true,
"... | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "You need to use some code in order to convert a string to numerical values in MongoDB."
},
{
"code": null,
"e": 1263,
"s": 1149,
"text": "Let us first create a collection with a document. The query to create a collection with a docum... |
Updating a MySQL table with values from another table? | We can update another table with the help of inner join. Let us create two tables.
mysql> CREATE table tblFirst
-> (
-> id int,
-> name varchar(100)
-> );
Query OK, 0 rows affected (0.48 sec)
mysql> INSERT into tblFirst values(1,'John');
Query OK, 1 row affected (0.17 sec)
mysql> INSERT into tblFirst valu... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "We can update another table with the help of inner join. Let us create two tables."
},
{
"code": null,
"e": 1267,
"s": 1145,
"text": "mysql> CREATE table tblFirst\n -> (\n -> id int,\n -> name varchar(100)\n -> );\nQuery OK, ... |
Optimizing Face Detection on your browser with Tensorflow.js | by Siddhant Baldota | Towards Data Science | Let’s jump on to the most important question.
You might have come across a lot of face detection tutorials and projects. This one is different though. It is deployed on the browser and can be used anywhere from proctoring online exams to many different arcade games to using it for detecting face masks, blurring or impr... | [
{
"code": null,
"e": 218,
"s": 172,
"text": "Let’s jump on to the most important question."
},
{
"code": null,
"e": 956,
"s": 218,
"text": "You might have come across a lot of face detection tutorials and projects. This one is different though. It is deployed on the browser and c... |
How to cast from VARCHAR to INT in MySQL? | To cast VARCHAR to INT, we can use the cast() function from MySQL. Here is the syntax of cast() function.
cast(anyValue as dataType)
For our example, we will create a table with the help of create command.
mysql> create table VarchartointDemo
-> (
-> Value varchar(100)
-> );
Query OK, 0 rows affected (0.51 sec... | [
{
"code": null,
"e": 1168,
"s": 1062,
"text": "To cast VARCHAR to INT, we can use the cast() function from MySQL. Here is the syntax of cast() function."
},
{
"code": null,
"e": 1195,
"s": 1168,
"text": "cast(anyValue as dataType)"
},
{
"code": null,
"e": 1268,
"s... |
Tutorial on Binary Tree - GeeksforGeeks | 08 Apr, 2021
The tree is a hierarchical Data Structure. A binary tree is a tree that has at most two children. The node which is on the left of the Binary Tree is called “Left-Child” and the node which is the right is called “Right-Child”. Also, the smaller tree or the subtree in the left of the root node is called th... | [
{
"code": null,
"e": 24687,
"s": 24656,
"text": " \n08 Apr, 2021\n"
},
{
"code": null,
"e": 25064,
"s": 24687,
"text": "The tree is a hierarchical Data Structure. A binary tree is a tree that has at most two children. The node which is on the left of the Binary Tree is called “Le... |
How to create a vector with lowercase as well as uppercase letters in R? | To create a vector with lowercase we can use the word letters and for uppercase the word LETTERS is used in R. If we want to create a vector with both type of letters then both of these words can be combined using c function and if want to create a vector with randomly sampled values of lowercase and uppercase letters ... | [
{
"code": null,
"e": 1416,
"s": 1062,
"text": "To create a vector with lowercase we can use the word letters and for uppercase the word LETTERS is used in R. If we want to create a vector with both type of letters then both of these words can be combined using c function and if want to create a vect... |
Accenture Interview Experience for ASE | Off-Campus 2021 - GeeksforGeeks | 26 Aug, 2021
Round 1: Cognitive & Technical and Coding Assessment (5th August 2021)
This assessment is split into 2 stages.
Stage 1: The Cognitive and Technical assessment is a mandatory assessment and will be an elimination round. You must meet their sectional and sub-sectional cut-off to proceed ahead in their recrui... | [
{
"code": null,
"e": 24637,
"s": 24609,
"text": "\n26 Aug, 2021"
},
{
"code": null,
"e": 24708,
"s": 24637,
"text": "Round 1: Cognitive & Technical and Coding Assessment (5th August 2021)"
},
{
"code": null,
"e": 24748,
"s": 24708,
"text": "This assessment is ... |
Find String Matches in a Vector or Matrix in R Programming - str_detect() Function - GeeksforGeeks | 03 Jun, 2020
str_detect() Function in R Language is used to check if the specified match of the substring exists in the original string. It will return TRUE for a match found otherwise FALSE against each of the element of the Vector or matrix.
Note: This function uses 'stringr' Library.
Syntax: str_detect(string, patte... | [
{
"code": null,
"e": 24847,
"s": 24819,
"text": "\n03 Jun, 2020"
},
{
"code": null,
"e": 25078,
"s": 24847,
"text": "str_detect() Function in R Language is used to check if the specified match of the substring exists in the original string. It will return TRUE for a match found o... |
Plotly - Subplots and Inset Plots | Here, we will understand the concept of subplots and inset plots in Plotly.
Sometimes it is helpful to compare different views of data side by side. This supports the concept of subplots. It offers make_subplots() function in plotly.tools module. The function returns a Figure object.
The following statement creates two... | [
{
"code": null,
"e": 2436,
"s": 2360,
"text": "Here, we will understand the concept of subplots and inset plots in Plotly."
},
{
"code": null,
"e": 2645,
"s": 2436,
"text": "Sometimes it is helpful to compare different views of data side by side. This supports the concept of subp... |
How to find all pairs of elements in Java array whose sum is equal to a given number? | To find all pairs of elements in Java array whose sum is equal to a given number −
Add each element in the array to all the remaining elements (except itself).
Verify if the sum is equal to the required number.
If true, print their indices.
import java.util.Arrays;
import java.util.Scanner;
public class sample {
pub... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "To find all pairs of elements in Java array whose sum is equal to a given number −"
},
{
"code": null,
"e": 1222,
"s": 1145,
"text": "Add each element in the array to all the remaining elements (except itself)."
},
{
"code": ... |
VueJS - Examples | <html>
<head>
<title>VueJs Instance</title>
<script type = "text/javascript" src = "js/vue.js"></script>
</head>
<body>
<style>
#databinding{
padding: 20px 15px 15px 15px;
margin: 0 0 25px 0;
width: auto;
background-color: #e7e7e7;
... | [
{
"code": null,
"e": 6061,
"s": 1936,
"text": "<html>\n <head>\n <title>VueJs Instance</title>\n <script type = \"text/javascript\" src = \"js/vue.js\"></script>\n </head>\n <body>\n <style>\n #databinding{\n padding: 20px 15px 15px 15px;\n margin: ... |
How to change the scale of Y-axis if the histogram bars are higher than the axis size in R? | When we create a histogram using hist function in R, often the Y-axis labels are smaller than the one or more bars of the histogram. Therefore, the histogram does not look appealing and it becomes a little difficult to match the Y-axis values with the bars size.
To solve this problem, we can use ylim argument of hist f... | [
{
"code": null,
"e": 1325,
"s": 1062,
"text": "When we create a histogram using hist function in R, often the Y-axis labels are smaller than the one or more bars of the histogram. Therefore, the histogram does not look appealing and it becomes a little difficult to match the Y-axis values with the b... |
Convert Fahrenheit to Celsius using C Program | The logic that we implement to convert Fahrenheit to Celsius is as follows −
celsius = (fahrenheit - 32)*5/9;
Refer to the algorithm given below to convert Fahrenheit to Celsius.
Step 1: Declare two variables farh, cels
Step 2: Enter Fahrenheit value at run time
Step 3: Apply formula to convert
Cels=(farh-32)*5... | [
{
"code": null,
"e": 1139,
"s": 1062,
"text": "The logic that we implement to convert Fahrenheit to Celsius is as follows −"
},
{
"code": null,
"e": 1172,
"s": 1139,
"text": "celsius = (fahrenheit - 32)*5/9;"
},
{
"code": null,
"e": 1241,
"s": 1172,
"text": "R... |
Tensorflow.js tf.mean() Function - GeeksforGeeks | 18 May, 2021
Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment.
The tf.mean() function is used to calculate the mean value of the specified Tensor across its dimension. It reduces the given input elements ... | [
{
"code": null,
"e": 25398,
"s": 25370,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 25564,
"s": 25398,
"text": "Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environmen... |
Environment.NewLine in C# | The Enviornment.NewLine in C# is used to add newline.
To set a new line in between words −
str = "This is demo text!" + Environment.NewLine + "This is demo text on next line!";
The following is the code −
Live Demo
using System;
using System.IO;
namespace Demo {
class Program {
static void Main(string[] args)... | [
{
"code": null,
"e": 1116,
"s": 1062,
"text": "The Enviornment.NewLine in C# is used to add newline."
},
{
"code": null,
"e": 1153,
"s": 1116,
"text": "To set a new line in between words −"
},
{
"code": null,
"e": 1239,
"s": 1153,
"text": "str = \"This is demo... |
Arrange Balls | Practice | GeeksforGeeks | There are p balls of type P, q balls of type Q and r balls of type R. Using the balls we want to create a straight line such that no two balls of same type are adjacent.
Example 1:
Input: p = 2, q = 2, r = 2
Output: 30
Explanation: There are 30 possible arrangements
of balls. Some of them are PQR, PRQ, PRP, PRQ,
PQR,... | [
{
"code": null,
"e": 398,
"s": 226,
"text": "There are p balls of type P, q balls of type Q and r balls of type R. Using the balls we want to create a straight line such that no two balls of same type are adjacent.\n "
},
{
"code": null,
"e": 409,
"s": 398,
"text": "Example 1:"
... |
How to Draw a Pentagon using HTML and CSS? - GeeksforGeeks | 07 Feb, 2022
A Pentagon is a 5 sided polygon or geometric shape with 5 internal angles measuring 108 degrees each. The pentagon can be drawn using simple HTML and CSS, the below sections will guide you on how to draw the desired shape.
HTML Code: In this section we will create a simple div element using the div class w... | [
{
"code": null,
"e": 26731,
"s": 26703,
"text": "\n07 Feb, 2022"
},
{
"code": null,
"e": 26954,
"s": 26731,
"text": "A Pentagon is a 5 sided polygon or geometric shape with 5 internal angles measuring 108 degrees each. The pentagon can be drawn using simple HTML and CSS, the belo... |
Intersection of two arrays | Practice | GeeksforGeeks | Given two arrays a[] and b[] respectively of size n and m, the task is to print the count of elements in the intersection (or common elements) of the two arrays.
For this question, the intersection of two arrays can be defined as the set containing distinct common elements between the two arrays.
Example 1:
Input:
n =... | [
{
"code": null,
"e": 400,
"s": 238,
"text": "Given two arrays a[] and b[] respectively of size n and m, the task is to print the count of elements in the intersection (or common elements) of the two arrays."
},
{
"code": null,
"e": 537,
"s": 400,
"text": "For this question, the i... |
How to disable browser Autocomplete on web form field/input tag? | 18 Nov, 2020
Input text autocomplete is the default feature of any browser. While working with the form or input fields in HTML web page autocomplete feature of the browsers come in the picture. By default autocomplete is enabled in browsers so when submitting the form it remembers the information. So when again open t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Nov, 2020"
},
{
"code": null,
"e": 466,
"s": 52,
"text": "Input text autocomplete is the default feature of any browser. While working with the form or input fields in HTML web page autocomplete feature of the browsers come in the p... |
Creating a radar sweep animation using arcade in Python | 19 Oct, 2020
The Radar Sweep are used for displays of single level sweeps of radar data, and their display appears in the Main Display window. With the help of arcade module of Python, it is possible to perform a radar sweep animation. Before starting, it is highly recommended to revise concepts of arcade library.
To p... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n19 Oct, 2020"
},
{
"code": null,
"e": 357,
"s": 54,
"text": "The Radar Sweep are used for displays of single level sweeps of radar data, and their display appears in the Main Display window. With the help of arcade module of Python, it... |
Java Program to Iterate Over Characters in String | 06 Jun, 2021
Given string str of length N, the task is to traverse the string and print all the characters of the given string using java.
Illustration:
Input : str = “GeeksforGeeks”
Output : G e e k s f o r G e e k s
Input : str = "GfG"
Output : G f G
Methods:
Using for loops(Naive approach)Using iterators (Optimal ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 178,
"s": 52,
"text": "Given string str of length N, the task is to traverse the string and print all the characters of the given string using java."
},
{
"code": null,
"e": 192,
"s... |
Math floorDiv() method in Java | 20 Jun, 2018
The java.lang.Math.floorDiv() is a built-in math function in java which returns the largest (closest to positive infinity) int value that is less than or equal to the algebraic quotient. As floorDiv() is static, so object creation is not required.
Syntax:
public static int floorDiv(data_type x, data_type y... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n20 Jun, 2018"
},
{
"code": null,
"e": 301,
"s": 53,
"text": "The java.lang.Math.floorDiv() is a built-in math function in java which returns the largest (closest to positive infinity) int value that is less than or equal to the algebra... |
Groovy - toUpperCase() | Converts all of the characters in this String to upper case.
String toUpperCase()
None
The modified string in upper case.
Following is an example of the usage of this method −
class Example {
static void main(String[] args) {
String a = "HelloWorld";
println(a.toUpperCase());
}
}
When we run the... | [
{
"code": null,
"e": 2433,
"s": 2372,
"text": "Converts all of the characters in this String to upper case."
},
{
"code": null,
"e": 2455,
"s": 2433,
"text": "String toUpperCase()\n"
},
{
"code": null,
"e": 2460,
"s": 2455,
"text": "None"
},
{
"code": ... |
How to Terminate a Thread in C# | 01 Feb, 2019
In C#, a thread can be terminated using Abort() method. Abort() throws ThreadAbortException to the thread in which it called. Due to this exception, the thread is terminated. There are two methods in the overload list of Thread.Abort Method as follows:
Abort()Abort(Object)
Abort()
Abort(Object)
This method... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 281,
"s": 28,
"text": "In C#, a thread can be terminated using Abort() method. Abort() throws ThreadAbortException to the thread in which it called. Due to this exception, the thread is terminated. ... |
How to Create Animation Loading Bar using CSS ? | 09 Jul, 2020
Loading Bar with animation can be created using HTML and CSS.
We will create a Loader that is the part of an operating system that is responsible for loading programs and libraries. The progress bar is a graphical control element used to visualize the progression of an extended computer operation, so here ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n09 Jul, 2020"
},
{
"code": null,
"e": 116,
"s": 54,
"text": "Loading Bar with animation can be created using HTML and CSS."
},
{
"code": null,
"e": 472,
"s": 116,
"text": "We will create a Loader that is the part of... |
Ruby | Class Method and Variables | 11 Nov, 2019
Class Methods are the methods that are defined inside the class, public class methods can be accessed with the help of objects. The method is marked as private by default, when a method is defined outside of the class definition. By default, methods are marked as public which is defined in the class defini... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Nov, 2019"
},
{
"code": null,
"e": 350,
"s": 28,
"text": "Class Methods are the methods that are defined inside the class, public class methods can be accessed with the help of objects. The method is marked as private by default, whe... |
ML | Kaggle Breast Cancer Wisconsin Diagnosis using Logistic Regression | 01 Feb, 2022
Dataset : It is given by Kaggle from UCI Machine Learning Repository, in one of its challenge https://www.kaggle.com/uciml/breast-cancer-wisconsin-data. It is a dataset of Breast Cancer patients with Malignant and Benign tumor. Logistic Regression is used to predict whether the given patient is having Mali... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Feb, 2022"
},
{
"code": null,
"e": 454,
"s": 52,
"text": "Dataset : It is given by Kaggle from UCI Machine Learning Repository, in one of its challenge https://www.kaggle.com/uciml/breast-cancer-wisconsin-data. It is a dataset of Br... |
HTML full form | 30 Jun, 2022
HTML stands for Hypertext Markup Language. It is a standard markup language used to design the documents displayed in the browsers as a web page. This language can become more interactive and attractive by using CSS ( Cascading Style Sheet) and JS (JavaScript) within it.
The HTML word defines some specific... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jun, 2022"
},
{
"code": null,
"e": 324,
"s": 52,
"text": "HTML stands for Hypertext Markup Language. It is a standard markup language used to design the documents displayed in the browsers as a web page. This language can become mor... |
How to add Input Slider in React.js ? | 28 Dec, 2021
In this article, we are going to learn how we can add input sider in ReactJs. React is a free and open-source front-end JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies.
Approach: To add our slider input we... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Dec, 2021"
},
{
"code": null,
"e": 299,
"s": 28,
"text": "In this article, we are going to learn how we can add input sider in ReactJs. React is a free and open-source front-end JavaScript library for building user interfaces or UI c... |
Program for Deadlock free condition in Operating System | 30 Sep, 2021
Given: A system has R identical resources, P processes competing for them and N is the maximum need of each process. The task is to find the minimum number of Resources required So that deadlock will never occur.
Formula:
R >= P * (N - 1) + 1
Examples:
Input : P = 3, N = 4
Output : R >= 10
Input : P ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Sep, 2021"
},
{
"code": null,
"e": 266,
"s": 52,
"text": "Given: A system has R identical resources, P processes competing for them and N is the maximum need of each process. The task is to find the minimum number of Resources requi... |
Sum of consecutive two elements in a array | 18 Aug, 2021
Given an array print sum of the pairwise consecutive elements.
Examples:
Input : 8, 5, 4, 3, 15, 20
Output : 13, 9, 7, 18, 35
Input : 5, 10, 15, 20
Output : 15, 25, 35
The solution is to traverse the array and saving the sum of consecutive numbers in the variable sum.
C++
Java
Python3
C#
PHP
Javascr... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 116,
"s": 53,
"text": "Given an array print sum of the pairwise consecutive elements."
},
{
"code": null,
"e": 127,
"s": 116,
"text": "Examples: "
},
{
"code": null,
... |
How to Make Entire Custom Checkbox/Div Clickable ? | 29 Jun, 2021
It is always a good option to use custom checkboxes in your websites instead of old-school HTML checkboxes.
This article provides a step-by-step implementation for the same.
Approach:
Use the input type checkbox and link a label with it in HTML.
Hide the input checkbox and style the label as per your requ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 136,
"s": 28,
"text": "It is always a good option to use custom checkboxes in your websites instead of old-school HTML checkboxes."
},
{
"code": null,
"e": 202,
"s": 136,
"text":... |
Python | Perform append at beginning of list | 30 Nov, 2018
The usual append operation of Python list adds the new element at the end of the list. But in certain situations, we need to append each element we add in front of list. If we perform brute force techniques, we need to perform unnecessary shifts of elements and hence, having shorthands for it is useful.
Le... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Nov, 2018"
},
{
"code": null,
"e": 357,
"s": 52,
"text": "The usual append operation of Python list adds the new element at the end of the list. But in certain situations, we need to append each element we add in front of list. If w... |
How to remove indentation from an unordered list item using CSS? | 22 Apr, 2019
While designing web pages we used to add some list of items sometimes they are numbered (in various style) and sometimes they are bulleted (in various style). It might happen when we are trying to design a navigation bar or any kind list in which items are neither numbered nor bulleted we don’t need number... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2019"
},
{
"code": null,
"e": 561,
"s": 28,
"text": "While designing web pages we used to add some list of items sometimes they are numbered (in various style) and sometimes they are bulleted (in various style). It might happen ... |
Perl | Useful Array functions | 04 Aug, 2021
In Perl, array is a special type of variable. The array is used to store the list of values and each object of the list is termed as an element. Elements can either be a number, string, or any type of scalar data including another variable. Array in Perl provides various inbuilt functions to perform operat... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Aug, 2021"
},
{
"code": null,
"e": 410,
"s": 28,
"text": "In Perl, array is a special type of variable. The array is used to store the list of values and each object of the list is termed as an element. Elements can either be a numbe... |
Program for Fahrenheit to Kelvin conversion | 24 May, 2022
Given a Temperature in Fahrenheit scale, our task is to convert it into Kelvin scale.Examples :
Input : F = 100
Output : K = 311.278
Input : F = 110
Output : K = 316.833
The temperature conversion from Fahrenheit ( F ) to Kelvin ( K ) is given by the formula :
K = 273.5 + ((F - 32.0) * (5.0/9.0))
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 May, 2022"
},
{
"code": null,
"e": 150,
"s": 52,
"text": "Given a Temperature in Fahrenheit scale, our task is to convert it into Kelvin scale.Examples : "
},
{
"code": null,
"e": 225,
"s": 150,
"text": "Input :... |
Check if a string is Isogram or not | 27 Jan, 2022
Given a word or phrase, check if it is isogram or not. An Isogram is a word in which no letter occurs more than once.Examples:
Input : Machine
Output : True
"Machine" does not have any character repeating,
it is an Isogram
Input : Geek
Output : False
"Geek" has 'e' as repeating character,
it is not an... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 182,
"s": 53,
"text": "Given a word or phrase, check if it is isogram or not. An Isogram is a word in which no letter occurs more than once.Examples: "
},
{
"code": null,
"e": 369,
... |
Compare two tables and return missing ids using MySQL LEFT OUTER JOIN | To compare two tables and return missing ids, you need to use MySQL LEFT OUTER JOIN.
Let us create a table with sample fields and then we will insert records. The query to create the first table −
mysql> create table First_Table
-> (
-> Id int
-> );
Query OK, 0 rows affected (0.88 sec)
Now insert some records ... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "To compare two tables and return missing ids, you need to use MySQL LEFT OUTER JOIN."
},
{
"code": null,
"e": 1259,
"s": 1147,
"text": "Let us create a table with sample fields and then we will insert records. The query to create the... |
Parsing XML with DOM APIs in Python | The Document Object Model ("DOM") is a cross-language API from the World Wide Web Consortium (W3C) for accessing and modifying XML documents.
The DOM is extremely useful for random-access applications. SAX only allows you a view of one bit of the document at a time. If you are looking at one SAX element, you have no ac... | [
{
"code": null,
"e": 1204,
"s": 1062,
"text": "The Document Object Model (\"DOM\") is a cross-language API from the World Wide Web Consortium (W3C) for accessing and modifying XML documents."
},
{
"code": null,
"e": 1399,
"s": 1204,
"text": "The DOM is extremely useful for random... |
How to use Lambda Function in Python? | These are basically anonymous one-line functions created at runtime which are not bound to the name of the functions.
They return the definition of the function on the fly.
Lambda functions don't contain a return statement, they always return an expression.
You can always put a lambda definition anywhere a function is ... | [
{
"code": null,
"e": 1180,
"s": 1062,
"text": "These are basically anonymous one-line functions created at runtime which are not bound to the name of the functions."
},
{
"code": null,
"e": 1235,
"s": 1180,
"text": "They return the definition of the function on the fly."
},
{... |
How to convert Hex to RGBA value using JavaScript ? - GeeksforGeeks | 31 Dec, 2019
Given a color hex code and the task is to convert Hex Value to RGBA value. Here are few of the mostly techniques discussed with the help of JavaScript.
Approach 1:
First check the passed Hex value is valid or not through a Regular Expression.
Then get the hex value content after ‘#’ by using .slice() metho... | [
{
"code": null,
"e": 25300,
"s": 25272,
"text": "\n31 Dec, 2019"
},
{
"code": null,
"e": 25452,
"s": 25300,
"text": "Given a color hex code and the task is to convert Hex Value to RGBA value. Here are few of the mostly techniques discussed with the help of JavaScript."
},
{
... |
Pure.CSS - Quick Guide | Pure is a Cascading Style Sheet (CSS) developed by YAHOO. It helps in creating faster, beautiful, and responsive websites.
Some of its salient features are as follows −
In-built responsive design
Standard CSS with minimal footprint
Set of small, responsive CSS modules
Free to use
Pure has an in-built responsive design ... | [
{
"code": null,
"e": 1894,
"s": 1771,
"text": "Pure is a Cascading Style Sheet (CSS) developed by YAHOO. It helps in creating faster, beautiful, and responsive websites."
},
{
"code": null,
"e": 1940,
"s": 1894,
"text": "Some of its salient features are as follows −"
},
{
... |
Framework7 - Tap Hold Event | The Tap hold event is used to trigger (enable) after a sustained and complete the touch event so only, it is called tap hold event. The Tab Hold is a built-in Fast Clicks library.
The following parameters are used to disable or enable and configured by default −
tapHold
To enable tap hold events when it is set to true.... | [
{
"code": null,
"e": 2831,
"s": 2651,
"text": "The Tap hold event is used to trigger (enable) after a sustained and complete the touch event so only, it is called tap hold event. The Tab Hold is a built-in Fast Clicks library."
},
{
"code": null,
"e": 2914,
"s": 2831,
"text": "Th... |
Angular FormsModule Directive - GeeksforGeeks | 04 Jun, 2021
In this article, we are going to see what is FormsModule in Angular 10 and how to use it.
The FormsModule is used to make all the necessary imports for form implementation.
Syntax:
import { FormsModule } from '@angular/forms';
Approach:
Create an Angular app to be used.
In app.component.ts import forms fr... | [
{
"code": null,
"e": 25029,
"s": 25001,
"text": "\n04 Jun, 2021"
},
{
"code": null,
"e": 25119,
"s": 25029,
"text": "In this article, we are going to see what is FormsModule in Angular 10 and how to use it."
},
{
"code": null,
"e": 25202,
"s": 25119,
"text": "... |
Hibernate Left Join Example | Left Join Hibernate | Hibernate Join Online Tutorialspoint | 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, I am going to show you how ... | [
{
"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,
... |
JavaScript Date setTime() Function - GeeksforGeeks | 04 Mar, 2021
The setTime() Function is a BuiltIn Function in Javascript Which is used to get a date object by adding given milliseconds to date 01/01/1970
Syntax:
date.setTime(milliseconds)
Parameters: setTime() Function takes parameters as follows.
milliseconds : Number of milliseconds to add to given date
Return Valu... | [
{
"code": null,
"e": 24935,
"s": 24907,
"text": "\n04 Mar, 2021"
},
{
"code": null,
"e": 25077,
"s": 24935,
"text": "The setTime() Function is a BuiltIn Function in Javascript Which is used to get a date object by adding given milliseconds to date 01/01/1970"
},
{
"code":... |
How I used Natural Language Processing to extract context from news headlines | by Gunnvant Saini | Towards Data Science | Recently I came across a really amazing dataset at Kaggle (https://www.kaggle.com/therohk/india-headlines-news-dataset). This is one of the rare times, when you get to see data in Indian context. This data is about 2.5 million news headlines published in a national Indian daily called ‘Times of India’. I thought, it wo... | [
{
"code": null,
"e": 718,
"s": 172,
"text": "Recently I came across a really amazing dataset at Kaggle (https://www.kaggle.com/therohk/india-headlines-news-dataset). This is one of the rare times, when you get to see data in Indian context. This data is about 2.5 million news headlines published in ... |
Converting any case to camelCase in JavaScript | We are required to write a JavaScript function that takes in a string, str, which can be any case
(normal, snake case, pascal case or any other).
Our function should convert this string into camelCase string.
For example, if the input to the function is −
Input
const str = 'New STRING';
Output
const output = 'newString... | [
{
"code": null,
"e": 1208,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a string, str, which can be any case\n(normal, snake case, pascal case or any other)."
},
{
"code": null,
"e": 1271,
"s": 1208,
"text": "Our function should convert this st... |
Find the longest common prefix between two strings after performing swaps on second string - GeeksforGeeks | 21 May, 2021
Given two strings and . Find the longest common prefix between them after performing zero or more operations on string . In each operation, you can swap any two letters.Examples:
Input : a = "here", b = "there"
Output : 4
The 2nd string can be made "heret" by just
swapping characters and thus the longes... | [
{
"code": null,
"e": 24903,
"s": 24875,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 25084,
"s": 24903,
"text": "Given two strings and . Find the longest common prefix between them after performing zero or more operations on string . In each operation, you can swap any two le... |
Remove Half Nodes | Practice | GeeksforGeeks | Given A binary Tree. Your task is to remove all the half nodes (which has only one child).
Example 1:
Input:
7
/ \
7 8
/
2
Output: 2 7 8
Example 2:
Input:
2
/ \
7 5
\ \
9 1
/ \
11 4
Output: 11 9 4 2 1
Your Task... | [
{
"code": null,
"e": 329,
"s": 238,
"text": "Given A binary Tree. Your task is to remove all the half nodes (which has only one child)."
},
{
"code": null,
"e": 340,
"s": 329,
"text": "Example 1:"
},
{
"code": null,
"e": 415,
"s": 340,
"text": "Input:\n ... |
How to plot multiple graphs in Matplotlib? | To plot multiple graphs in matplotlib, we will use the following steps −
Create x, y1 and y2 data points using numpy.
Create x, y1 and y2 data points using numpy.
Add a subplot to the current figure at index 1.
Add a subplot to the current figure at index 1.
Plot curve 1 using x and y1.
Plot curve 1 using x and y1.
Add... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "To plot multiple graphs in matplotlib, we will use the following steps −"
},
{
"code": null,
"e": 1180,
"s": 1135,
"text": "Create x, y1 and y2 data points using numpy."
},
{
"code": null,
"e": 1225,
"s": 1180,
"t... |
Python Program to Replace all Occurrences of ‘a’ with $ in a String | 04 Dec, 2020
Given a string, the task is to write a Python program to replace all occurrence of ‘a’ with $.
Examples:
Input: Ali has all aces
Output: $li h$s $ll $ces
Input: All Exams are over
Output: $ll Ex$ms $re Over
The first approach uses splitting of the given specified string into a set of characters. An empty ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Dec, 2020"
},
{
"code": null,
"e": 123,
"s": 28,
"text": "Given a string, the task is to write a Python program to replace all occurrence of ‘a’ with $."
},
{
"code": null,
"e": 133,
"s": 123,
"text": "Examples:"
... |
Gobuster – Penetration Testing Tools in Kali Tools | 18 Jul, 2021
One of the primary steps in attacking an internet application is enumerating hidden directories and files. Doing so can often yield valuable information that makes it easier to execute a particular attack, leaving less room for errors and wasted time. There are many tools available to try to do this, but n... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 1230,
"s": 28,
"text": "One of the primary steps in attacking an internet application is enumerating hidden directories and files. Doing so can often yield valuable information that makes it easier ... |
Python | Pandas DataFrame.fillna() to replace Null values in dataframe | 17 Sep, 2018
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.
Sometimes csv file has null values, which are later displayed as NaN in Data Frame. Just lik... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Sep, 2018"
},
{
"code": null,
"e": 267,
"s": 52,
"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 i... |
Difference between Nested Loop Join and Hash Join | 29 Jul, 2020
1. Nested Loop Join :This is a type of physical join algorithm that is used in case of joining 2 relations. This join is an internal join technique, meaning that we cannot see the join. This is the simplest of all types of joins. This is the best-suited algorithm for small data and smaller transactions. In... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jul, 2020"
},
{
"code": null,
"e": 436,
"s": 28,
"text": "1. Nested Loop Join :This is a type of physical join algorithm that is used in case of joining 2 relations. This join is an internal join technique, meaning that we cannot see... |
How to validate GST (Goods and Services Tax) number using Regular Expression | 27 Jan, 2021
Given string str, the task is to check whether the given string is a valid GST (Goods and Services Tax) number or not using Regular Expression. The valid GST (Goods and Services Tax) number must satisfy the following conditions:
It should be 15 characters long.The first 2 characters should be a number.The... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Jan, 2021"
},
{
"code": null,
"e": 258,
"s": 28,
"text": "Given string str, the task is to check whether the given string is a valid GST (Goods and Services Tax) number or not using Regular Expression. The valid GST (Goods and Servic... |
How to place content under fixed flexbox navigation bar ? | 05 Jun, 2020
Navigation bar: With CSS, you can change HTML menus into astonishing navigation bars. Navigation bar is nothing but the list of links. A navigation bar needs standard HTML as a base. By using <ul> and <li> components makes idealize sense.
We can place Content in the fixed navigation bar by two methods as f... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 267,
"s": 28,
"text": "Navigation bar: With CSS, you can change HTML menus into astonishing navigation bars. Navigation bar is nothing but the list of links. A navigation bar needs standard HTML as ... |
Getting the time since OS startup using Python | 16 Jun, 2021
Uptime is the time elapsed since the Operating system started. Operating systems have discrete mechanisms to keep track of this time, which they further utilize for performing OS related tasks. This time is particularly useful for certain applications such as:-
Usage Tracking Applications
Backup Applicatio... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Jun, 2021"
},
{
"code": null,
"e": 290,
"s": 28,
"text": "Uptime is the time elapsed since the Operating system started. Operating systems have discrete mechanisms to keep track of this time, which they further utilize for performing... |
Length of direct common tangent between two intersecting Circles | 07 Jun, 2022
Given two circles, of given radii, have there centres a given distance apart, such that the circles intersect each other at two points. The task is to find the length of the direct common tangent between the circles.Examples:
Input: r1 = 4, r2 = 6, d = 3
Output: 2.23607
Input: r1 = 14, r2 = 43, d = 35... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jun, 2022"
},
{
"code": null,
"e": 256,
"s": 28,
"text": "Given two circles, of given radii, have there centres a given distance apart, such that the circles intersect each other at two points. The task is to find the length of the d... |
Write a C program that does not terminate when Ctrl+C is pressed | 21 Jun, 2022
Write a C program that doesn’t terminate when Ctrl+C is pressed. It prints a message “Cannot be terminated using Ctrl+c” and continues execution. We can use signal handling in C for this. When Ctrl+C is pressed, SIGINT signal is generated, we can catch this signal and run our defined signal handler. C sta... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 949,
"s": 52,
"text": "Write a C program that doesn’t terminate when Ctrl+C is pressed. It prints a message “Cannot be terminated using Ctrl+c” and continues execution. We can use signal handling i... |
Number of Transpositions in a Permutation | 01 Jun, 2022
Permutation A permutation is an arrangement of elements. A permutation of n elements can be represented by an arrangement of the numbers 1, 2, ...n in some order. Eg. 5, 1, 4, 2, 3.Cycle notation A permutation can be represented as a composition of permutation cycles. A permutation cycle is a set of elemen... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Jun, 2022"
},
{
"code": null,
"e": 426,
"s": 52,
"text": "Permutation A permutation is an arrangement of elements. A permutation of n elements can be represented by an arrangement of the numbers 1, 2, ...n in some order. Eg. 5, 1, 4... |
Longest subsequence of the form 0*1*0* in a binary string | 28 Jun, 2021
Given a binary string, find the longest subsequence of the form (0)*(1)*(0)* in it. Basically we need to divide the string into 3 non overlapping strings (these strings might be empty) without changing the order of letters. First and third strings are made up of only 0 and the second string is made up of o... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 490,
"s": 52,
"text": "Given a binary string, find the longest subsequence of the form (0)*(1)*(0)* in it. Basically we need to divide the string into 3 non overlapping strings (these strings might... |
Difference between Method Overloading and Method Overriding in Python | 29 Apr, 2021
Method Overloading: Method Overloading is an example of Compile time polymorphism. In this, more than one method of the same class shares the same method name having different signatures. Method overloading is used to add more to the behavior of methods and there is no need of more than one class for metho... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n29 Apr, 2021"
},
{
"code": null,
"e": 506,
"s": 53,
"text": "Method Overloading: Method Overloading is an example of Compile time polymorphism. In this, more than one method of the same class shares the same method name having differen... |
JavaScript | Adding seconds to Date object | 23 May, 2019
Given a date, the task is to add seconds to it. To add seconds to date in javascript, we’re going to discuss a few techniques. First few methods to know.
JavaScript getSeconds() MethodThis method returns the Seconds(from 0 to 59) of the provided date and time.Syntax:Date.getSeconds()
Return value:It return... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 May, 2019"
},
{
"code": null,
"e": 182,
"s": 28,
"text": "Given a date, the task is to add seconds to it. To add seconds to date in javascript, we’re going to discuss a few techniques. First few methods to know."
},
{
"code":... |
How to recursively delete a directory and its entire contents (files + sub dirs) in PHP? | 01 Nov, 2019
In PHP if you want to delete the file or directory then keep one thing in mind that you cannot delete the file or directory directly there is a condition on that i.e. there are some security issues are there so the best way to do this is you first have to delete the data present in the file or the sub file... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Nov, 2019"
},
{
"code": null,
"e": 518,
"s": 28,
"text": "In PHP if you want to delete the file or directory then keep one thing in mind that you cannot delete the file or directory directly there is a condition on that i.e. there ar... |
Number of perfect squares between two given numbers | 02 Jun, 2022
Given two given numbers a and b where 1<=a<=b, find the number of perfect squares between a and b (a and b inclusive).Examples
Input : a = 3, b = 8
Output : 1
The only perfect square in given range is 4.
Input : a = 9, b = 25
Output : 3
The three perfect squares in given range are 9,
16 and 25
Method ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Jun, 2022"
},
{
"code": null,
"e": 181,
"s": 52,
"text": "Given two given numbers a and b where 1<=a<=b, find the number of perfect squares between a and b (a and b inclusive).Examples "
},
{
"code": null,
"e": 352,
... |
Python – math.dist() method | 23 Jan, 2020
Math module in Python contains a number of mathematical operations, which can be performed with ease using the module. math.dist() method in Python is used to the Euclidean distance between two points p and q, each given as a sequence (or iterable) of coordinates. The two points must have the same dimensio... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Jan, 2020"
},
{
"code": null,
"e": 379,
"s": 28,
"text": "Math module in Python contains a number of mathematical operations, which can be performed with ease using the module. math.dist() method in Python is used to the Euclidean di... |
MathF.Acos() Method in C# with Examples | The MathF.Acos() method in C# is used to return the angle whose cosine is given as a float value argument.
Following is the syntax −
public static float Acos (float val);
Above, Val is the floating-point number.
Let us now see an example to implement the MathF.Acos() method −
using System;
public class Demo {
public... | [
{
"code": null,
"e": 1169,
"s": 1062,
"text": "The MathF.Acos() method in C# is used to return the angle whose cosine is given as a float value argument."
},
{
"code": null,
"e": 1195,
"s": 1169,
"text": "Following is the syntax −"
},
{
"code": null,
"e": 1233,
"s... |
Building an Auto-Encoder using Keras | 21 Jun, 2019
Prerequisites: Auto-encoders
This article will demonstrate the process of data compression and the reconstruction of the encoded data by using Machine Learning by first building an Auto-encoder using Keras and then reconstructing the encoded data and visualizing the reconstruction. We would be using the MN... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Jun, 2019"
},
{
"code": null,
"e": 57,
"s": 28,
"text": "Prerequisites: Auto-encoders"
},
{
"code": null,
"e": 438,
"s": 57,
"text": "This article will demonstrate the process of data compression and the reconstru... |
Spring Boot – Difference Between CrudRepository and JpaRepository | 22 Dec, 2021
Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these days because of its rapid production-ready environment which enables the developers to directly focus on the logic instead of struggling with the configuration and setup. Sp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Dec, 2021"
},
{
"code": null,
"e": 451,
"s": 28,
"text": "Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these days because of its rapid production-read... |
Types of Boltzmann Machines | 20 Nov, 2021
Deep Learning models are broadly classified into supervised and unsupervised models.
Supervised DL models:
Artificial Neural Networks (ANNs)
Recurrent Neural Networks (RNNs)
Convolutional Neural Networks (CNNs)
Unsupervised DL models:
Self Organizing Maps (SOMs)
Boltzmann Machines
Autoencoders
Let us lear... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Nov, 2021"
},
{
"code": null,
"e": 138,
"s": 52,
"text": "Deep Learning models are broadly classified into supervised and unsupervised models. "
},
{
"code": null,
"e": 160,
"s": 138,
"text": "Supervised DL model... |
Bayes’ Theorem in Data Mining | 04 Jul, 2021
Bayes’ Theorem describes the probability of an event, based on precedent knowledge of conditions which might be related to the event. In other words, Bayes’ Theorem is the add-on of Conditional Probability.
With the help of Conditional Probability, one can find out the probability of X given H, and it is ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Jul, 2021"
},
{
"code": null,
"e": 236,
"s": 28,
"text": "Bayes’ Theorem describes the probability of an event, based on precedent knowledge of conditions which might be related to the event. In other words, Bayes’ Theorem is the add... |
Scala List indexOf() method with example | 29 Jul, 2019
The indexOf() method is utilized to check the index of the element from the stated list present in the method as argument.
Method Definition: def indexOf(elem: A, from: Int): Int
Return Type: It returns the index of the element present in the argument.
Example #1:
// Scala program of indexOf()// method //... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jul, 2019"
},
{
"code": null,
"e": 151,
"s": 28,
"text": "The indexOf() method is utilized to check the index of the element from the stated list present in the method as argument."
},
{
"code": null,
"e": 207,
"s": 1... |
Python | Pandas Series.argsort() | 27 Feb, 2019
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index.
Pandas Series.argsort() function returns the indic... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Feb, 2019"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based index... |
Using Leaflet.js to show maps in a webpage | 08 May, 2020
Maps are incredibly helpful for showing locations on a website. Use cases of maps include showing the location of an office address, which is a better option than just showing an image or a text address. It can also be used for marking points of interest in a tourist location so that the visitor can plan b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 May, 2020"
},
{
"code": null,
"e": 370,
"s": 28,
"text": "Maps are incredibly helpful for showing locations on a website. Use cases of maps include showing the location of an office address, which is a better option than just showing... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.