title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
difftime() function in C++
In this article we are going to discuss the difftime() function in C++, its syntax, working and its return values. difftime() function is an inbuilt function in C++ which is defined in header file. The function accepts two parameters of time_t type, function calculate the difference between the two times double difftim...
[ { "code": null, "e": 1177, "s": 1062, "text": "In this article we are going to discuss the difftime() function in C++, its syntax, working and its return values." }, { "code": null, "e": 1368, "s": 1177, "text": "difftime() function is an inbuilt function in C++ which is defined ...
HTML - <body> Tag
The HTML <body> tag is used for indicating the main content section of the HTML document. <!DOCTYPE html> <html> <head> <title>HTML body Tag</title> </head> <body> Body of the document... </body> </html> This will produce the following result − This tag supports all the global attributes des...
[ { "code": null, "e": 2464, "s": 2374, "text": "The HTML <body> tag is used for indicating the main content section of the HTML document." }, { "code": null, "e": 2606, "s": 2464, "text": "<!DOCTYPE html>\n<html>\n\n <head>\n <title>HTML body Tag</title>\n </head>\n\t\n ...
Plot two horizontal bar charts sharing the same Y-axis in Python Matplotlib
To plot two horizontal bar charts sharing the same Y-axis, we can use sharey=ax1 in subplot() method and for horizontal bar, we can use barh() method. Create lists for data points. Create a new figure or activate an existing figure using figure() method Add a subplot to the current figure using subplot() method, at ind...
[ { "code": null, "e": 1213, "s": 1062, "text": "To plot two horizontal bar charts sharing the same Y-axis, we can use sharey=ax1 in subplot() method and for horizontal bar, we can use barh() method." }, { "code": null, "e": 1243, "s": 1213, "text": "Create lists for data points." ...
VBScript - Constants
Constant is a named memory location used to hold a value that CANNOT be changed during the script execution. If a user tries to change a Constant Value, the Script execution ends up with an error. Constants are declared the same way the variables are declared. [Public | Private] Const Constant_Name = Value The Constan...
[ { "code": null, "e": 2341, "s": 2080, "text": "Constant is a named memory location used to hold a value that CANNOT be changed during the script execution. If a user tries to change a Constant Value, the Script execution ends up with an error. Constants are declared the same way the variables are de...
Use of 'ClickAt ' selenium command.
We can use the ClickAt command in Selenium IDE. The ClickAt command has two arguments − the element locator and the coordinates which mentions the x and y coordinates of the mouse with respect to the element identified by the locator. This method is used when we want to click on a position having a specific mouse coord...
[ { "code": null, "e": 1297, "s": 1062, "text": "We can use the ClickAt command in Selenium IDE. The ClickAt command\nhas two arguments − the element locator and the coordinates which mentions the x and y coordinates of the mouse with respect to the element identified by the locator." }, { "co...
Tryit Editor v3.7
CSS Web Fonts Tryit: The font-face rule
[ { "code": null, "e": 23, "s": 9, "text": "CSS Web Fonts" } ]
How to add more values to array on button click using PHP ? - GeeksforGeeks
02 Jul, 2021 In this article, we will learn to add elements to an existing array with the click of a button using PHP. PHP is a server-side language, and it only responds to requests (GET, POST, PUT, PATCH, and DELETE). The button click action happens as a part of the client-side to directly call a PHP function. We nee...
[ { "code": null, "e": 24713, "s": 24685, "text": "\n02 Jul, 2021" }, { "code": null, "e": 24819, "s": 24713, "text": "In this article, we will learn to add elements to an existing array with the click of a button using PHP." }, { "code": null, "e": 25014, "s": 2481...
Stringstream in C++ programming
This sample draft calculates the total number of words in a given string as well as counts the total occurrence of a particular word using stringstream in the C++ programming code. The stringstream class partners a string object with a stream enabling you to peruse from the string as though it were a stream. This code ...
[ { "code": null, "e": 1584, "s": 1062, "text": "This sample draft calculates the total number of words in a given string as well as counts the total occurrence of a particular word using stringstream in the C++ programming code. The stringstream class partners a string object with a stream enabling y...
Difference Between Pseudo-Class and Pseudo-Element in CSS
A pseudo-class represents a state of a selector like :hover, :active, :last-child,etc. These start with a single colon(:). The syntax of CSS pseudo-class is as follows − :pseudo-class{ attribute: /*value*/ } Similarly, a pseudo-element is used to select virtual elements like ::after, ::before, ::first-line, etc. The...
[ { "code": null, "e": 1185, "s": 1062, "text": "A pseudo-class represents a state of a selector like :hover, :active, :last-child,etc. These start with a single colon(:)." }, { "code": null, "e": 1232, "s": 1185, "text": "The syntax of CSS pseudo-class is as follows −" }, { ...
Explore your activity on Netflix with R: How to analyze and visualize your viewing history | by Saúl Buentello | Towards Data Science
The arrival of video streaming services revolutionized the entertainment industry and with it, many of our habits also changed. Whether you spend hours or minutes watching a movie or TV series, Netflix has become a favorite on the scene. Netflix, like many applications today, allows its users to be free to view their v...
[ { "code": null, "e": 285, "s": 47, "text": "The arrival of video streaming services revolutionized the entertainment industry and with it, many of our habits also changed. Whether you spend hours or minutes watching a movie or TV series, Netflix has become a favorite on the scene." }, { "cod...
Program for dot product and cross product of two vectors
04 Jun, 2022 There are two vector A and B and we have to find the dot product and cross product of two vector array. Dot product is also known as scalar product and cross product also known as vector product.Dot Product – Let we have given two vector A = a1 * i + a2 * j + a3 * k and B = b1 * i + b2 * j + b3 * k. Where ...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Jun, 2022" }, { "code": null, "e": 510, "s": 52, "text": "There are two vector A and B and we have to find the dot product and cross product of two vector array. Dot product is also known as scalar product and cross product also kno...
Inserting data into a new column of an already existing table in MySQL using Python
24 Feb, 2021 Prerequisite: Python: MySQL Create Table In this article, we are going to see how to Inserting data into a new column of an already existing table in MySQL using Python. Python allows the integration of a wide range of database servers with applications. A database interface is required to access a databas...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Feb, 2021" }, { "code": null, "e": 93, "s": 52, "text": "Prerequisite: Python: MySQL Create Table" }, { "code": null, "e": 466, "s": 93, "text": "In this article, we are going to see how to Inserting data into a ...
std::transform() in C++ STL (Perform an operation on all elements)
22 Jun, 2021 Consider the problem of adding contents of two arrays into a third array. It is given that all arrays are of same size.Following is simple C++ program without transform(). CPP // A C++ code to add two arrays#include <bits/stdc++.h>using namespace std; int main(){ int arr1[] = {1, 2, 3}; int arr2[] = {4,...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Jun, 2021" }, { "code": null, "e": 225, "s": 52, "text": "Consider the problem of adding contents of two arrays into a third array. It is given that all arrays are of same size.Following is simple C++ program without transform(). " ...
Elasticsearch - Mapping
Mapping is the outline of the documents stored in an index. It defines the data type like geo_point or string and format of the fields present in the documents and rules to control the mapping of dynamically added fields. PUT bankaccountdetails { "mappings":{ "properties":{ "name": { "type":"text"}, "...
[ { "code": null, "e": 2937, "s": 2715, "text": "Mapping is the outline of the documents stored in an index. It defines the data type like geo_point or string and format of the fields present in the documents and rules to control the mapping of dynamically added fields." }, { "code": null, ...
Program to find compound interest
21 Jun, 2022 What is ‘Compound interest’? Compound interest is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on interest. It is the result of reinvesting interest, rather than paying it out, so that interest in the next period is then earned on the principal sum plus pr...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Jun, 2022" }, { "code": null, "e": 605, "s": 52, "text": "What is ‘Compound interest’? Compound interest is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on interest. It is the resul...
Python – API.friends() in Tweepy
05 Jun, 2020 Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secret from twitte...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2020" }, { "code": null, "e": 428, "s": 28, "text": "Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be twee...
Java.io.FileInputStream Class in Java
19 Apr, 2022 FileInputStream class is useful to read data from a file in the form of sequence of bytes. FileInputStream is meant for reading streams of raw bytes such as image data. For reading streams of characters, consider using FileReader. Constructors of FileInputStream Class 1. FileInputStream(File file): Creates...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Apr, 2022" }, { "code": null, "e": 283, "s": 52, "text": "FileInputStream class is useful to read data from a file in the form of sequence of bytes. FileInputStream is meant for reading streams of raw bytes such as image data. For r...
Remove the Chrome’s “No file chosen option” from a file input using JavaScript
11 Jul, 2022 The task is to remove the “no file chosen” value from the empty input element in chrome. We are going to achieve that task with the help of JavaScript. Approach 1: Remove the tooltip value(‘No file chosen’). Use .attr() method to set the value of title attribute to empty. Example 1: This example removes th...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Jul, 2022" }, { "code": null, "e": 180, "s": 28, "text": "The task is to remove the “no file chosen” value from the empty input element in chrome. We are going to achieve that task with the help of JavaScript." }, { "code": n...
Python program to print negative numbers in a list
26 Oct, 2018 Given a list of numbers, write a Python program to print all negative numbers in given list. Example: Input: list1 = [12, -7, 5, 64, -14] Output: -7, -14 Input: list2 = [12, 14, -95, 3] Output: -95 Example #1: Print all negative numbers from given list using for loop Iterate each element in the list using...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 Oct, 2018" }, { "code": null, "e": 145, "s": 52, "text": "Given a list of numbers, write a Python program to print all negative numbers in given list." }, { "code": null, "e": 154, "s": 145, "text": "Example:" ...
Date from() method in Java with Examples
26 Mar, 2019 The from(Instant inst) method of Java Date class returns an instance of date which is obtained from an Instant object. Syntax: public static Date from(Instant inst) Parameters: The method takes one parameter inst of Instant type which is required to be converted. Return Value: The method returns a date rep...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Mar, 2019" }, { "code": null, "e": 147, "s": 28, "text": "The from(Instant inst) method of Java Date class returns an instance of date which is obtained from an Instant object." }, { "code": null, "e": 155, "s": 147, ...
JSP PageContext – Implicit Objects
28 Jul, 2021 PageContext extends JspContext to contribute helpful context details while JSP technology is applied in a Servlet environment. A PageContext is an instance that gives access to all the namespaces related to a JSP page, gives access to some page attributes and a layer over the application details. Implicit ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2021" }, { "code": null, "e": 390, "s": 28, "text": "PageContext extends JspContext to contribute helpful context details while JSP technology is applied in a Servlet environment. A PageContext is an instance that gives access t...
SQL Query to Convert Datetime to Date
14 Sep, 2021 In MS SQL Server, dates are complicated for newbies, since while working with the database, the format of the date in the table must be matched with the input date in order to insert. In various scenarios instead of date, DateTime (time is also involved with date) is used. In this article, we will learn ho...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Sep, 2021" }, { "code": null, "e": 409, "s": 28, "text": "In MS SQL Server, dates are complicated for newbies, since while working with the database, the format of the date in the table must be matched with the input date in order to...
Draw an rectangle using OpenCV in C++
19 Mar, 2021 In this article, the task is to draw an rectangle using OpenCV in C++. The rectangle() function from OpenCV C++ library will be used. Syntax: rectangle( img, pt1, pt2, color, thickness, line Type, shift) Parameters: image: It is the image on which the rectangle is to be drawn. start(pt1): It is the top lef...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Mar, 2021" }, { "code": null, "e": 162, "s": 28, "text": "In this article, the task is to draw an rectangle using OpenCV in C++. The rectangle() function from OpenCV C++ library will be used." }, { "code": null, "e": 170,...
ReactJS - Forms
In this chapter, we will learn how to use forms in React. In the following example, we will set an input form with value = {this.state.data}. This allows to update the state whenever the input value changes. We are using onChange event that will watch the input changes and update the state accordingly. import React fro...
[ { "code": null, "e": 2225, "s": 2167, "text": "In this chapter, we will learn how to use forms in React." }, { "code": null, "e": 2471, "s": 2225, "text": "In the following example, we will set an input form with value = {this.state.data}. This allows to update the state whenever...
Matplotlib.axes.Axes.format_ydata() in Python
19 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. The Axe...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2020" }, { "code": null, "e": 328, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text...
Get first and last elements from ArrayList in Java
07 Jun, 2019 Given an array list, find the first and last elements of it. Examples: Input : aList = {10, 30, 20, 14, 2} Output : First = 10, Last = 2 Input : aList = {10, 30, 40, 50, 60} Output : First = 10, Last = 60 The last element is at index, size – 1 and the first element is stored at index 0. If we know how to...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jun, 2019" }, { "code": null, "e": 113, "s": 52, "text": "Given an array list, find the first and last elements of it." }, { "code": null, "e": 123, "s": 113, "text": "Examples:" }, { "code": null, "e...
How to Build a Simple Web Server with Golang?
10 Oct, 2021 Golang is a procedural programming language ideal to build simple, reliable, and efficient software. Create a project folder with a .go file inside eg. server.go. Directory structure: The server.go file: Go package main import ( "fmt" "log" "net/http") func main() { // API routes http.Han...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Oct, 2021" }, { "code": null, "e": 130, "s": 28, "text": "Golang is a procedural programming language ideal to build simple, reliable, and efficient software. " }, { "code": null, "e": 193, "s": 130, "text": "Crea...
mode() function in Python statistics module
23 Aug, 2021 The mode of a set of data values is the value that appears most often. It is the value at which the data is most likely to be sampled. A mode of a continuous probability distribution is often considered to be any value x at which its probability density function has a local maximum value, so any peak is a ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2021" }, { "code": null, "e": 675, "s": 28, "text": "The mode of a set of data values is the value that appears most often. It is the value at which the data is most likely to be sampled. A mode of a continuous probability distr...
Twin Prime Numbers
24 Mar, 2021 A Twin prime are those numbers which are prime and having a difference of two ( 2 ) between the two prime numbers. In other words, a twin prime is a prime that has a prime gap of two. Sometimes the term twin prime is used for a pair of twin primes; an alternative name for this is prime twin or prime pair. ...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Mar, 2021" }, { "code": null, "e": 641, "s": 52, "text": "A Twin prime are those numbers which are prime and having a difference of two ( 2 ) between the two prime numbers. In other words, a twin prime is a prime that has a prime ga...
Create an Instagram/Twitter Heart Like Animation in Android
23 Feb, 2021 In this article, let’s learn how to create an Instagram/Twitter heart Like animation in android. Twitter’s Like animation is quite good and attractive. Suppose one wants to make an app like Twitter, Instagram, or Facebook where users can like posts there one can use this view. One can also use Leonids inst...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Feb, 2021" }, { "code": null, "e": 533, "s": 54, "text": "In this article, let’s learn how to create an Instagram/Twitter heart Like animation in android. Twitter’s Like animation is quite good and attractive. Suppose one wants to m...
Testing BERT based Question Answering on Coronavirus articles | by Priya Dwivedi | Towards Data Science
Most of the world is currently affected by the COVID-19 pandemic. For many of us this has meant quarantine at home, social distancing, disruptions in our work enviroment. I am very passionate about using data science and machine learning to solve problems. Please reach out to me through here if you are a Health Service...
[ { "code": null, "e": 560, "s": 171, "text": "Most of the world is currently affected by the COVID-19 pandemic. For many of us this has meant quarantine at home, social distancing, disruptions in our work enviroment. I am very passionate about using data science and machine learning to solve problems...
Python Modules of Cryptography
In this chapter, you will learn in detail about various modules of cryptography in Python. It includes all the recipes and primitives, and provides a high level interface of coding in Python. You can install cryptography module using the following command − pip install cryptography You can use the following code to im...
[ { "code": null, "e": 2383, "s": 2292, "text": "In this chapter, you will learn in detail about various modules of cryptography in Python." }, { "code": null, "e": 2550, "s": 2383, "text": "It includes all the recipes and primitives, and provides a high level interface of coding i...
How to create a NumPy 1D-array with equally spaced numbers in an interval? - GeeksforGeeks
11 May, 2021 At times, we need to make arrays of different types like in AP(equally spaced series of numbers), GP(exponentially spaced series of numbers) or HP(reciprocally spaced series of numbers) to solve various problems, especially while solving some scientific or astronomical problem, in order to reduce the calcu...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n11 May, 2021" }, { "code": null, "e": 24370, "s": 23901, "text": "At times, we need to make arrays of different types like in AP(equally spaced series of numbers), GP(exponentially spaced series of numbers) or HP(reciprocally spa...
Forcing Tkinter window to stay on top of fullscreen in Windows 10?
To render widgets in a Tkinter application, we generally use mainloop() function which helps to display the widgets in a window. In many cases, tkinter window displays over the other windows or programs. While switching to other programs or windows, it seems difficult to find and switch back to the Tkinter window again...
[ { "code": null, "e": 1384, "s": 1062, "text": "To render widgets in a Tkinter application, we generally use mainloop() function which helps to display the widgets in a window. In many cases, tkinter window displays over the other windows or programs. While switching to other programs or windows, it ...
Lua - break Statement
When the break statement is encountered inside a loop, the loop is immediately terminated and the program control resumes at the next statement following the loop. If you are using nested loops (i.e., one loop inside another loop), the break statement will stop execution of the innermost loop and start executing the ne...
[ { "code": null, "e": 2267, "s": 2103, "text": "When the break statement is encountered inside a loop, the loop is immediately terminated and the program control resumes at the next statement following the loop." }, { "code": null, "e": 2456, "s": 2267, "text": "If you are using n...
fastText and Tensorflow to perform NLP classification | by Antoine Hue | Towards Data Science
fastText is a state-of-the-art open-source library released in 2017 by Facebook to compute word embeddings or create text classifiers. However, embeddings and classifiers are only building blocks within a data-science job. There are many preparation tasks before and validation tasks after, and there are many candidate ...
[ { "code": null, "e": 811, "s": 172, "text": "fastText is a state-of-the-art open-source library released in 2017 by Facebook to compute word embeddings or create text classifiers. However, embeddings and classifiers are only building blocks within a data-science job. There are many preparation tasks...
Writing Scrapy Python Output to JSON file - GeeksforGeeks
14 Sep, 2021 In this article, we are going to see how to write scrapy output into a JSON file in Python. This is the easiest way to save data to JSON is by using the following command: scrapy crawl <spiderName> -O <fileName>.json This will generate a file with a provided file name containing all scraped data. Note that...
[ { "code": null, "e": 24415, "s": 24387, "text": "\n14 Sep, 2021" }, { "code": null, "e": 24507, "s": 24415, "text": "In this article, we are going to see how to write scrapy output into a JSON file in Python." }, { "code": null, "e": 24587, "s": 24507, "text":...
Edge Coloring of a Graph - GeeksforGeeks
07 Dec, 2021 In graph theory, edge coloring of a graph is an assignment of “colors” to the edges of the graph so that no two adjacent edges have the same color with an optimal number of colors. Two edges are said to be adjacent if they are connected to the same vertex. There is no known polynomial time algorithm for ed...
[ { "code": null, "e": 25941, "s": 25913, "text": "\n07 Dec, 2021" }, { "code": null, "e": 26555, "s": 25941, "text": "In graph theory, edge coloring of a graph is an assignment of “colors” to the edges of the graph so that no two adjacent edges have the same color with an optimal ...
10 Interesting Python Cool Tricks - GeeksforGeeks
31 Dec, 2018 In python we can return multiple values – It’s very unique feature of Python that returns multiple value at time.def GFG(): g = 1 f = 2 return g, f x, y = GFG()print(x, y)Output:(1, 2) Allows Negative Indexing: Python allows negative indexing for its sequences. Index -1 refer to the last elemen...
[ { "code": null, "e": 24614, "s": 24586, "text": "\n31 Dec, 2018" }, { "code": null, "e": 24656, "s": 24614, "text": "In python we can return multiple values –" }, { "code": null, "e": 26668, "s": 24656, "text": "It’s very unique feature of Python that returns ...
Count subtrees that sum up to a given value x only using single recursive function - GeeksforGeeks
27 Dec, 2021 Given a binary tree containing n nodes. The problem is to count subtrees having total node’s data sum equal to a given value using only single recursive functions. Examples: Input : 5 / \ -10 3 / \ / \ 9 8 -4 7 x = 7 Output :...
[ { "code": null, "e": 25306, "s": 25278, "text": "\n27 Dec, 2021" }, { "code": null, "e": 25470, "s": 25306, "text": "Given a binary tree containing n nodes. The problem is to count subtrees having total node’s data sum equal to a given value using only single recursive functions....
JavaScript | Auto Complete / Suggestion feature - GeeksforGeeks
07 Feb, 2022 There are many ways to make an autocomplete feature in javascript. We will be targeting two of them. One using Pure Javascript and other by using Framework like Jquery. Prerequisites: Html Javascript JQuery Basics 1) Using Pure Javascript (No frameworks): This method shows the results faster than the meth...
[ { "code": null, "e": 25916, "s": 25888, "text": "\n07 Feb, 2022" }, { "code": null, "e": 26101, "s": 25916, "text": "There are many ways to make an autocomplete feature in javascript. We will be targeting two of them. One using Pure Javascript and other by using Framework like Jq...
Merging tables using SQL. This article discusses about merging... | by KSV Muralidhar | Towards Data Science
In practice, it is very rare to have an SQL query involving a single table. We may need to merge multiple tables by rows (records) or columns (fields) to get the desired result. In this article, we’ll discuss the operators/commands in SQL that enable use to merge tables by rows or columns. Multiple tables can be merged...
[ { "code": null, "e": 463, "s": 172, "text": "In practice, it is very rare to have an SQL query involving a single table. We may need to merge multiple tables by rows (records) or columns (fields) to get the desired result. In this article, we’ll discuss the operators/commands in SQL that enable use ...
Check whether two straight lines are parallel or not - GeeksforGeeks
07 Feb, 2022 Given equations of two lines (a1, b1, c1) and (a2, b2, c2) such that (ai, bi, ci) are the coefficients of X2, X and a constant term of the straight line respectively, in the general equation , the task is to check if both the straight lines are parallel or not. If they are found to be parallel, then print ...
[ { "code": null, "e": 26561, "s": 26533, "text": "\n07 Feb, 2022" }, { "code": null, "e": 26898, "s": 26561, "text": "Given equations of two lines (a1, b1, c1) and (a2, b2, c2) such that (ai, bi, ci) are the coefficients of X2, X and a constant term of the straight line respective...
Comparing Python with C and C++ - GeeksforGeeks
27 May, 2021 In the following article, we will compare the 3 most used coding languages from a beginner’s perspective. It will help you to learn basics of all the 3 languages together while saving your time and will also help you to inter shift from one language you know to the other which you don’t. Let’s discuss a br...
[ { "code": null, "e": 24984, "s": 24956, "text": "\n27 May, 2021" }, { "code": null, "e": 25379, "s": 24984, "text": "In the following article, we will compare the 3 most used coding languages from a beginner’s perspective. It will help you to learn basics of all the 3 languages t...
Count Squares | Practice | GeeksforGeeks
Consider a sample space S consisting of all perfect squares starting from 1, 4, 9 and so on. You are given a number N, you have to output the number of integers less than N in the sample space S. Example 1: Input : N = 9 Output: 2 Explanation: 1 and 4 are the only Perfect Squares less than 9. So, the Output is 2. Exa...
[ { "code": null, "e": 434, "s": 238, "text": "Consider a sample space S consisting of all perfect squares starting from 1, 4, 9 and so on. You are given a number N, you have to output the number of integers less than N in the sample space S." }, { "code": null, "e": 447, "s": 436, ...
NLP: Classification & Recommendation Project | by Alper Çakır | Towards Data Science
NLP is the science of extracting meaning and learning from text data, and It’s one of the most used algorithms in data science projects. Text data is in everywhere, in the conclusion of that, NLP has many application areas, as you can see in the chart below. In this context, I decided to make an NLP project that covers...
[ { "code": null, "e": 431, "s": 172, "text": "NLP is the science of extracting meaning and learning from text data, and It’s one of the most used algorithms in data science projects. Text data is in everywhere, in the conclusion of that, NLP has many application areas, as you can see in the chart bel...
Loop through a Set using Javascript
In the set that we implemented, we can create a for each function in our class and accept a callback that we can call on every element. Let's see how we can implement such a function − forEach(callback) { for (let prop in this.container) { callback(prop); } } You can test this using − const testSet = new ...
[ { "code": null, "e": 1248, "s": 1062, "text": "In the set that we implemented, we can create a for each function in our class and accept a callback that we can call on every element. Let's see how we can implement such a function − " }, { "code": null, "e": 1335, "s": 1248, "text...
Procol Interview Experience
16 Sep, 2020 Procol visited our campus(virtually) in September for the campus hiring(SDE intern + FTE class of 2021). Round 1 Talent Decrypt online test: Total duration of 90 mins. The test consists of 2 sections:21 MCQ’s and 3 coding questions. MCQ’s were based on concepts of networking, operating systems, MySQL and ...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Sep, 2020" }, { "code": null, "e": 134, "s": 28, "text": "Procol visited our campus(virtually) in September for the campus hiring(SDE intern + FTE class of 2021). " }, { "code": null, "e": 197, "s": 134, "text": "...
Draw Line Segments between Particular Points in R Programming – segments() Function
19 Jun, 2020 segment() function in R Language is used to draw a line segment between to particular points. Syntax: segments(x0, y0, x1, y1) Parameters:x, y: coordinates to draw a line segment between provided points. Returns: a line segment between given points Example 1: To draw a single line segment # Create empty ex...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Jun, 2020" }, { "code": null, "e": 122, "s": 28, "text": "segment() function in R Language is used to draw a line segment between to particular points." }, { "code": null, "e": 155, "s": 122, "text": "Syntax: segm...
Namespace in C++ | Set 1 (Introduction)
22 Jun, 2022 Consider the following C++ program: CPP // A program to demonstrate need of namespaceint main(){ int value; value = 0; double value; // Error here value = 0.0;} Output : Compiler Error: 'value' has a previous declaration as 'int value' In each scope, a name can only represent one entity. So, t...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Jun, 2022" }, { "code": null, "e": 91, "s": 54, "text": "Consider the following C++ program: " }, { "code": null, "e": 95, "s": 91, "text": "CPP" }, { "code": "// A program to demonstrate need of namespac...
How to check whether a form or a control is untouched or not in Angular 10 ?
24 May, 2021 In this article, we are going to check whether a form is untouched or not in Angular 10. untouched property is used to report that the control or the form is valid or not. Syntax: form.untouched Return Value: boolean: the boolean value to check whether a form is untouched or not. NgModule: Module used by t...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 May, 2021" }, { "code": null, "e": 200, "s": 28, "text": "In this article, we are going to check whether a form is untouched or not in Angular 10. untouched property is used to report that the control or the form is valid or not." ...
Generate all passwords from given character set
24 Feb, 2022 Given a set of characters generate all possible passwords from them. This means we should generate all possible permutations of words using the given characters, with repetitions and also upto a given length. Examples: Input : arr[] = {a, b}, len = 2. Output : a b aa ab ba bb The solution is...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Feb, 2022" }, { "code": null, "e": 275, "s": 54, "text": "Given a set of characters generate all possible passwords from them. This means we should generate all possible permutations of words using the given characters, with repetit...
SAP ABAP - Reading Internal Tables
We can read the lines of a table by using the following syntax of the READ TABLE statement − READ TABLE <internal_table> FROM <work_area_itab>. In this syntax, the <work_area_itab> expression represents a work area that is compatible with the line type of the <internal_table> table. We can specify a search key, but no...
[ { "code": null, "e": 3125, "s": 3032, "text": "We can read the lines of a table by using the following syntax of the READ TABLE statement −" }, { "code": null, "e": 3177, "s": 3125, "text": "READ TABLE <internal_table> FROM <work_area_itab>.\n" }, { "code": null, "e":...
Violation of constraints in relational database
10 May, 2020 Here, we will learn about the violations that can occur on a database as a result of any changes made in the relation. There are mainly three operations that have the ability to change the state of relations, these modifications are given below: Insert –To insert new tuples in a relation in the database.De...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 May, 2020" }, { "code": null, "e": 171, "s": 52, "text": "Here, we will learn about the violations that can occur on a database as a result of any changes made in the relation." }, { "code": null, "e": 298, "s": 171,...
Working with JAR and Manifest files In Java
11 May, 2017 Prerequisite – JAR file format Whenever a developer wants to distribute a version of his software, then all he want is to distribute a single file and not a directory structure filled with class files. JAR files were designed for this purpose. A JAR file can contain both class files and other file types li...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 May, 2017" }, { "code": null, "e": 83, "s": 52, "text": "Prerequisite – JAR file format" }, { "code": null, "e": 496, "s": 83, "text": "Whenever a developer wants to distribute a version of his software, then all...
Structure of Input-Output Interface
07 Aug, 2020 The block diagram of an Input-Output Interface unit contain the following blocks : 1. Data Bus Buffer 2. Read/Write Control Logic 3. Port A, Port B register 4. Control and Status register These are explained as following below. Data Bus Buffer :The bus buffer use bi-directional data bus to communicate wit...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Aug, 2020" }, { "code": null, "e": 137, "s": 54, "text": "The block diagram of an Input-Output Interface unit contain the following blocks :" }, { "code": null, "e": 243, "s": 137, "text": "1. Data Bus Buffer\n2....
Time Complexity and Space Complexity
24 May, 2022 Generally, there is always more than one way to solve a problem in computer science with different algorithms. Therefore, it is highly required to use a method to compare the solutions in order to judge which one is more optimal. The method must be: Independent of the machine and its configuration, on whic...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 May, 2022" }, { "code": null, "e": 304, "s": 54, "text": "Generally, there is always more than one way to solve a problem in computer science with different algorithms. Therefore, it is highly required to use a method to compare the...
Ternary operator vs Null coalescing operator in PHP
04 Jan, 2019 Ternary Operator Ternary operator is the conditional operator which helps to cut the number of lines in the coding while performing comparisons and conditionals. It is an alternative method of using if else and nested if else statements. The order of execution is from left to right. It is absolutely the be...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jan, 2019" }, { "code": null, "e": 45, "s": 28, "text": "Ternary Operator" }, { "code": null, "e": 447, "s": 45, "text": "Ternary operator is the conditional operator which helps to cut the number of lines in the ...
Python PIL | Image.new() method
30 Jun, 2021 PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. PIL.Image.new() method creates a new image with the given mode and size. Size is given as a (width, height)-tuple, in pixels. The color is given as a single value for single-band images, and a tuple for...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2021" }, { "code": null, "e": 642, "s": 28, "text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. PIL.Image.new() method creates a new image with the given mode and siz...
Typeof() vs GetType() in C#
The type takes the Type and returns the Type of the argument. For example: System.Byte for the following − typeof(byte) The following is an example − Live Demo using System; class Program { static void Main() { Console.WriteLine(typeof(int)); Console.WriteLine(typeof(byte)); } } System.Int32 System.B...
[ { "code": null, "e": 1249, "s": 1187, "text": "The type takes the Type and returns the Type of the argument." }, { "code": null, "e": 1294, "s": 1249, "text": "For example: System.Byte for the following −" }, { "code": null, "e": 1307, "s": 1294, "text": "type...
Python OpenCV | cv2.cvtColor() method
18 Oct, 2019 OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.cvtColor() method is used to convert an image from one color space to another. There are more than 150 color-space conversion methods available in OpenCV. We will use some of color space conversion codes below. Sy...
[ { "code": null, "e": 53, "s": 25, "text": "\n18 Oct, 2019" }, { "code": null, "e": 358, "s": 53, "text": "OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.cvtColor() method is used to convert an image from one color space to another. T...
SQL - Sub Queries
A Subquery or Inner query or a Nested query is a query within another SQL query and embedded within the WHERE clause. A subquery is used to return data that will be used in the main query as a condition to further restrict the data to be retrieved. Subqueries can be used with the SELECT, INSERT, UPDATE, and DELETE stat...
[ { "code": null, "e": 2705, "s": 2587, "text": "A Subquery or Inner query or a Nested query is a query within another SQL query and embedded within the WHERE clause." }, { "code": null, "e": 2836, "s": 2705, "text": "A subquery is used to return data that will be used in the main ...
How to delete a CSV file in Python?
13 Jan, 2021 In this article, we are going to delete a CSV file in Python. CSV (Comma-separated values file) is the most commonly used file format to handle tabular data. The data values are separated by, (comma). The first line gives the names of the columns and after the next line the values of each column. Approach ...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jan, 2021" }, { "code": null, "e": 326, "s": 28, "text": "In this article, we are going to delete a CSV file in Python. CSV (Comma-separated values file) is the most commonly used file format to handle tabular data. The data values a...
Shortest Common Supersequence
22 Jun, 2022 Given two strings str1 and str2, the task is to find the length of the shortest string that has both str1 and str2 as subsequences. Examples : Input: str1 = "geek", str2 = "eke" Output: 5 Explanation: String "geeke" has both string "geek" and "eke" as subsequences. Input: str1 = "AGGTAB", str2 = ...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Jun, 2022" }, { "code": null, "e": 186, "s": 54, "text": "Given two strings str1 and str2, the task is to find the length of the shortest string that has both str1 and str2 as subsequences." }, { "code": null, "e": 198, ...
Minimum swaps required to make a binary string alternating in C++
Given a binary string of even length and equal number of 0’s and 1’s. What is the minimum number of swaps to make the string alternating? A binary string is alternating if no two consecutive elements are equal If str = 11110000 then 2 swaps are required. Count number of zeroes at odd position and even position of the s...
[ { "code": null, "e": 1397, "s": 1187, "text": "Given a binary string of even length and equal number of 0’s and 1’s. What is the minimum number of swaps to make the string alternating? A binary string is alternating if no two consecutive elements are equal" }, { "code": null, "e": 1442, ...
MySQL query to display databases sorted by creation date?
You can display databases sorted by creation date with ORDER BY clause. Following is the query to display all databases − mysql> show databases; This will produce the following output − +---------------------------+ | Database | +---------------------------+ | bothinnodbandmyisam | | business ...
[ { "code": null, "e": 1184, "s": 1062, "text": "You can display databases sorted by creation date with ORDER BY clause. Following is the query to display all databases −" }, { "code": null, "e": 1207, "s": 1184, "text": "mysql> show databases;" }, { "code": null, "e": ...
Find the product of sum of two diagonals of a square Matrix - GeeksforGeeks
20 Apr, 2021 Given a square matrix mat consisting of integers of size NxN, the task is to calculate the product between the sums of its diagonal.Examples: Input: mat[][] = {{5, 8, 1}, {5, 10, 3}, {-6, 17, -9}} Output: 30 Sum of primary diagonal = 5 + 10 + (-9) = 6. Sum of secon...
[ { "code": null, "e": 24636, "s": 24608, "text": "\n20 Apr, 2021" }, { "code": null, "e": 24780, "s": 24636, "text": "Given a square matrix mat consisting of integers of size NxN, the task is to calculate the product between the sums of its diagonal.Examples: " }, { "code...
How to check in R whether a matrix element is present in another matrix or not?
We can use %in% to check whether a matrix element is present in another matrix or not. For example, suppose we have two matrices defined as − M1 1 2 3 1 2 3 1 2 3 M2 1 2 3 4 5 6 7 8 9 Then M1%in%M2 will return − [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE But M2%in%M1 will return − [1] TRUE FALSE FALSE TRUE ...
[ { "code": null, "e": 1204, "s": 1062, "text": "We can use %in% to check whether a matrix element is present in another matrix or not. For example, suppose we have two matrices defined as −" }, { "code": null, "e": 1252, "s": 1204, "text": " M1\n1 2 3\n1 2 3\n1 2 3\n M2\n1 2 3...
Prefix to Postfix Conversion in C++
In this problem, we are given a prefix expression. Our task is to print the postfix conversion of the given expression. Prefix expression is those expressions which have operators before the operands. Example: +AB. Postfix expressions are those expressions which have operators after operands in the expressions. Example...
[ { "code": null, "e": 1182, "s": 1062, "text": "In this problem, we are given a prefix expression. Our task is to print the postfix conversion of the given expression." }, { "code": null, "e": 1263, "s": 1182, "text": "Prefix expression is those expressions which have operators be...
JDBC - Drop Database Example
This chapter provides an example on how to drop an existing Database using JDBC application. Before executing the following example, make sure you have the following in place − To execute the following example you need to replace the username and password with your actual user name and password. To execute the followin...
[ { "code": null, "e": 2339, "s": 2162, "text": "This chapter provides an example on how to drop an existing Database using JDBC application. Before executing the following example, make sure you have the following in place −" }, { "code": null, "e": 2459, "s": 2339, "text": "To ex...
Getting Started with the Yelp API | by Raymond Willey | Towards Data Science
This post is part one of a series in which we explore how small businesses can leverage Yelp data to better understand their position in local markets. Before diving into the nitty-gritty, I would like to start by telling you a bit about the inspiration and objectives of this project. Of course, if you are just interes...
[ { "code": null, "e": 544, "s": 172, "text": "This post is part one of a series in which we explore how small businesses can leverage Yelp data to better understand their position in local markets. Before diving into the nitty-gritty, I would like to start by telling you a bit about the inspiration a...
jQuery - Plugins
A plug-in is piece of code written in a standard JavaScript file. These files provide useful jQuery methods which can be used along with jQuery library methods. There are plenty of jQuery plug-in available which you can download from repository link at https://jquery.com/plugins. To make a plug-in's methods available t...
[ { "code": null, "e": 2483, "s": 2322, "text": "A plug-in is piece of code written in a standard JavaScript file. These files provide useful jQuery methods which can be used along with jQuery library methods." }, { "code": null, "e": 2603, "s": 2483, "text": "There are plenty of j...
Map containsValue() method in Java with Examples - GeeksforGeeks
31 Dec, 2018 The java.util.Map.containsValue() method is used to check whether a particular value is being mapped by a single or more than one key in the Map. It takes the value as a parameter and returns True if that value is mapped by any of the key in the map. Syntax: boolean containsValue(Object Value) Parameters: ...
[ { "code": null, "e": 23868, "s": 23840, "text": "\n31 Dec, 2018" }, { "code": null, "e": 24119, "s": 23868, "text": "The java.util.Map.containsValue() method is used to check whether a particular value is being mapped by a single or more than one key in the Map. It takes the valu...
5 Awesome NumPy Functions That Can Save You in a Pinch | by Eirik Berge | Towards Data Science
Setting the Stage 1 — Quick Filtering 2 — Reshaping Yourself Out of Trouble 3 — Restructuring Your Shape 4 — Find Unique Values 5 — Combine Arrays Wrapping Up When doing data science in Python, the package NumPy is omnipresent. Whether you are developing machine learning models with Scikit-Learn or plotting in Matplotl...
[ { "code": null, "e": 189, "s": 171, "text": "Setting the Stage" }, { "code": null, "e": 209, "s": 189, "text": "1 — Quick Filtering" }, { "code": null, "e": 247, "s": 209, "text": "2 — Reshaping Yourself Out of Trouble" }, { "code": null, "e": 276,...
Python | Pandas Series.corr() - GeeksforGeeks
17 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.corr() function compute the correlat...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n17 Feb, 2019" }, { "code": null, "e": 25794, "s": 25537, "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...
JavaScript String includes() Method - GeeksforGeeks
07 Oct, 2021 Below is the example of the String includes() Method. Example: javascript <!DOCTYPE html><html> <body> <p id="GFG"></p> <script> var str = "Welcome to GeeksforGeeks."; var check = str.includes("Geeks"); document.getElementById("GFG").innerHTML = check;...
[ { "code": null, "e": 26683, "s": 26655, "text": "\n07 Oct, 2021" }, { "code": null, "e": 26739, "s": 26683, "text": "Below is the example of the String includes() Method. " }, { "code": null, "e": 26750, "s": 26739, "text": "Example: " }, { "code": n...
D3.js | d3.scaleBand() Function - GeeksforGeeks
30 Jul, 2019 The d3.scaleBand() function in D3.js is used to construct a new band scale with the domain specified as an array of values and the range as the minimum and maximum extents of the bands. This function splits the range into n bands where n is the number of values in the domain array. Syntax: d3.scaleBand().d...
[ { "code": null, "e": 25467, "s": 25439, "text": "\n30 Jul, 2019" }, { "code": null, "e": 25750, "s": 25467, "text": "The d3.scaleBand() function in D3.js is used to construct a new band scale with the domain specified as an array of values and the range as the minimum and maximum...
SubBrute – Tool For Subdomain Brute Force - GeeksforGeeks
14 Sep, 2021 SubBrute is a free and open-source tool available on GitHub. SubBrute uses DNS Scan for finding subdomains of the target domain. This feature of SubBrute provides an extra layer of anonymity for security researchers. This tool is free means you can download and use this tool free of cost. SubBrute is used ...
[ { "code": null, "e": 25651, "s": 25623, "text": "\n14 Sep, 2021" }, { "code": null, "e": 26261, "s": 25651, "text": "SubBrute is a free and open-source tool available on GitHub. SubBrute uses DNS Scan for finding subdomains of the target domain. This feature of SubBrute provides ...
Print a matrix in Reverse Wave Form - GeeksforGeeks
03 Feb, 2022 Given a matrix, print it in Reverse Wave Form. Examples : Input : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Output : 4 8 12 16 15 11 7 3 2 6 10 14 13 9 5 1 Input : 1 9 4 10 3 6 90 11 2 30 85 72 6 31 99 15 Output : 10 11 72 15 99 85 90 4...
[ { "code": null, "e": 26215, "s": 26187, "text": "\n03 Feb, 2022" }, { "code": null, "e": 26263, "s": 26215, "text": "Given a matrix, print it in Reverse Wave Form. " }, { "code": null, "e": 26275, "s": 26263, "text": "Examples : " }, { "code": null, ...
Python - assertGreaterEqual() function in unittest - GeeksforGeeks
24 Oct, 2020 assertGreaterEqual() in Python is an unittest library function that is used in unit testing to check whether the first given value is greater than or equal to the second value or not. This function will take three parameters as input and return a boolean value depending upon the assert condition. This func...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n24 Oct, 2020" }, { "code": null, "e": 25835, "s": 25537, "text": "assertGreaterEqual() in Python is an unittest library function that is used in unit testing to check whether the first given value is greater than or equal to the ...
How to export Pandas DataFrame to a CSV file? - GeeksforGeeks
10 Jul, 2020 Let us see how to export a Pandas DataFrame to a CSV file. We will be using the to_csv() function to save a DataFrame as a CSV file. Syntax : to_csv(parameters)Parameters : path_or_buf : File path or object, if None is provided the result is returned as a string. sep : String of length 1. Field delimiter f...
[ { "code": null, "e": 26093, "s": 26065, "text": "\n10 Jul, 2020" }, { "code": null, "e": 26226, "s": 26093, "text": "Let us see how to export a Pandas DataFrame to a CSV file. We will be using the to_csv() function to save a DataFrame as a CSV file." }, { "code": null, ...
Lexicographically smallest string after M operations - GeeksforGeeks
27 Aug, 2021 Given a string S and integer M. The task is to perform exactly M operations to get lexicographical smallest string. In each operation, select one character optimally from the string and update it with immediate next character ( aaa -> aab ), so that string remain lexicographical smallest. Multiple operatio...
[ { "code": null, "e": 26561, "s": 26533, "text": "\n27 Aug, 2021" }, { "code": null, "e": 26677, "s": 26561, "text": "Given a string S and integer M. The task is to perform exactly M operations to get lexicographical smallest string." }, { "code": null, "e": 26851, ...
Difference Between Collection.stream().forEach() and Collection.forEach() in Java - GeeksforGeeks
02 Feb, 2021 Collection.forEach() and Collection.stream().forEach() are used for iterating over the collections, there is no such major difference between the two, as both of them give the same result, though there are some differences in their internal working. Collection.stream().forEach() is basically used for itera...
[ { "code": null, "e": 26103, "s": 26075, "text": "\n02 Feb, 2021" }, { "code": null, "e": 26353, "s": 26103, "text": "Collection.forEach() and Collection.stream().forEach() are used for iterating over the collections, there is no such major difference between the two, as both of t...
Python | Merge two list of lists according to first element - GeeksforGeeks
20 May, 2019 Given two list of lists of equal length, write a Python program to merge the given two list of lists, according to the first common element of each sublist. Examples: Input : lst1 = [[1, 'Alice'], [2, 'Bob'], [3, 'Cara']] lst2 = [[1, 'Delhi'], [2, 'Mumbai'], [3, 'Chennai']] Output : [[1, 'Alice', '...
[ { "code": null, "e": 25645, "s": 25617, "text": "\n20 May, 2019" }, { "code": null, "e": 25802, "s": 25645, "text": "Given two list of lists of equal length, write a Python program to merge the given two list of lists, according to the first common element of each sublist." }, ...
Node.js fs.open() Method - GeeksforGeeks
21 Jan, 2022 Introduction: To create file, to write to a file or to read a file fs.open() method is used. fs.readFile() is only for reading the file and similarly fs.writeFile() is only for writing to a file, whereas fs.open() method does several operations on a file. First we need to load the fs class which is module ...
[ { "code": null, "e": 25743, "s": 25715, "text": "\n21 Jan, 2022" }, { "code": null, "e": 26160, "s": 25743, "text": "Introduction: To create file, to write to a file or to read a file fs.open() method is used. fs.readFile() is only for reading the file and similarly fs.writeFile(...
How to Unnest dataframe in R ? - GeeksforGeeks
18 Jul, 2021 In this article, we will discuss how to unnest dataframes in R Programming Language. Unnesting of dataframe refers to flattening it. The do.call() method in base R constructs and executes a function call from a function using its corresponding argument list. Syntax: do.call(what, args) Parameter : what –...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n18 Jul, 2021" }, { "code": null, "e": 26620, "s": 26487, "text": "In this article, we will discuss how to unnest dataframes in R Programming Language. Unnesting of dataframe refers to flattening it." }, { "code": null, ...
Python - Append Multiple elements in set - GeeksforGeeks
02 Feb, 2021 In this article given a set and list of elements, the task is to write a Python program to append multiple elements in set at once. Example: Input : test_set = {6, 4, 2, 7, 9}, up_ele = [1, 5, 10] Output : {1, 2, 4, 5, 6, 7, 9, 10} Explanation : All elements are updated and reordered. (5 at 3rd position). ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n02 Feb, 2021" }, { "code": null, "e": 25669, "s": 25537, "text": "In this article given a set and list of elements, the task is to write a Python program to append multiple elements in set at once." }, { "code": null, ...
Rotten Oranges | Practice | GeeksforGeeks
Given a grid of dimension nxm where each cell in the grid can have values 0, 1 or 2 which has the following meaning: 0 : Empty cell 1 : Cells have fresh oranges 2 : Cells have rotten oranges We have to determine what is the minimum time required to rot all oranges. A rotten orange at index [i,j] can rot other fresh ...
[ { "code": null, "e": 432, "s": 238, "text": "Given a grid of dimension nxm where each cell in the grid can have values 0, 1 or 2 which has the following meaning:\n0 : Empty cell \n1 : Cells have fresh oranges \n2 : Cells have rotten oranges " }, { "code": null, "e": 655, "s": 432, ...
keras.fit() and keras.fit_generator() - GeeksforGeeks
25 Jun, 2020 keras.fit() and keras.fit_generator() in Python are two separate deep learning libraries which can be used to train our machine learning and deep learning models. Both these functions can do the same task, but when to use which function is the main question. Keras.fit() Syntax: fit(object, x = NULL, y = NU...
[ { "code": null, "e": 24708, "s": 24680, "text": "\n25 Jun, 2020" }, { "code": null, "e": 24967, "s": 24708, "text": "keras.fit() and keras.fit_generator() in Python are two separate deep learning libraries which can be used to train our machine learning and deep learning models. ...
How to convert the content of the file into uppercase or lowercase?
To convert the content of the file into the upper case, you need to use the method ToUpper() and to convert into lower case, you need to use ToLower() method. (Get-Content D:\Temp\PowerShellaliases.txt).ToUpper() PS C:\WINDOWS\system32> (Get-Content D:\Temp\PowerShellaliases.txt).ToUpper() COMMANDTYPE NAME ...
[ { "code": null, "e": 1221, "s": 1062, "text": "To convert the content of the file into the upper case, you need to use the method ToUpper() and to convert into lower case, you need to use ToLower() method." }, { "code": null, "e": 1275, "s": 1221, "text": "(Get-Content D:\\Temp\\...
Strictly increasing sequence JavaScript
Given a sequence of integers as an array, we have to determine whether it is possible to obtain a strictly increasing sequence by removing no more than one element from the array. For example − For sequence = [1, 3, 2, 1], the output should be function(sequence) = false. There is no one element in this array that can b...
[ { "code": null, "e": 1242, "s": 1062, "text": "Given a sequence of integers as an array, we have to determine whether it is possible to obtain\na strictly increasing sequence by removing no more than one element from the array." }, { "code": null, "e": 1256, "s": 1242, "text": "F...
jQuery - Basics
Before we start learning about jQuery Syntax, let's have a quick look on basic concepts of Javascript. This is because, jQuery is a framework built using JavaScript capabilities. So while doing in jQuery, you can use all the functions and other capabilities available in JavaScript. So let's quickly have a look at the m...
[ { "code": null, "e": 2701, "s": 2322, "text": "Before we start learning about jQuery Syntax, let's have a quick look on basic concepts of Javascript. This is because, jQuery is a framework built using JavaScript capabilities. So while doing in jQuery, you can use all the functions and other capabili...
Different Methods to find Prime Number in Python
First we need to know what a prime number is. A prime number always a positive integer number and divisible by exactly 2 integers (1 and the number itself), 1 is not a prime number. Now we shall discuss some methods to find Prime Number. Using For loops Example def primemethod1(number): # Initialize a list my_pri...
[ { "code": null, "e": 1108, "s": 1062, "text": "First we need to know what a prime number is." }, { "code": null, "e": 1244, "s": 1108, "text": "A prime number always a positive integer number and divisible by exactly 2 integers (1 and the number itself), 1 is not a prime number."...
C++ Program to Solve N-Queen Problem
This problem is to find an arrangement of N queens on a chess board, such that no queen can attack any other queens on the board. The chess queens can attack in any direction as horizontal, vertical, horizontal and diagonal way. A binary matrix is used to display the positions of N Queens, where no queens can attack ot...
[ { "code": null, "e": 1192, "s": 1062, "text": "This problem is to find an arrangement of N queens on a chess board, such that no queen can attack any other queens on the board." }, { "code": null, "e": 1291, "s": 1192, "text": "The chess queens can attack in any direction as hori...
Manual compression of a table in SAP HANA
It is also possible to compress a table in SAP HANA system manually by executing the following SQL statement. UPDATE "table_name" WITH PARAMETERS ('OPTIMIZE_COMPRESSION' = 'YES') This results in deciding whether a compression is required or an existing compression can be optimized. In this scenario, HANA system uses mo...
[ { "code": null, "e": 1172, "s": 1062, "text": "It is also possible to compress a table in SAP HANA system manually by executing the following SQL statement." }, { "code": null, "e": 1241, "s": 1172, "text": "UPDATE \"table_name\" WITH PARAMETERS ('OPTIMIZE_COMPRESSION' = 'YES')" ...
How to get a value from the cell of a Pandas DataFrame?
To get a value from the cell of a DataFrame, we can use the index and col variables. Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df. Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df. Print the input DataFrame, df. Print the input DataFrame, df. Initi...
[ { "code": null, "e": 1147, "s": 1062, "text": "To get a value from the cell of a DataFrame, we can use the index and col variables." }, { "code": null, "e": 1231, "s": 1147, "text": "Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df." }, { ...
Python | Group tuples in list with same first value - GeeksforGeeks
08 Apr, 2019 Given a list of tuples, the task is to print another list containing tuple of same first element. Below are some ways to achieve above tasks. Example: Input : [('x', 'y'), ('x', 'z'), ('w', 't')] Output: [('w', 't'), ('x', 'y', 'z')] Method #1: Using extend # Python code to find common # first element in...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n08 Apr, 2019" }, { "code": null, "e": 24434, "s": 24292, "text": "Given a list of tuples, the task is to print another list containing tuple of same first element. Below are some ways to achieve above tasks." }, { "code":...
TensorFlow — A hands-on approach. This is the first article in the series... | by Avinash Kadimisetty | Towards Data Science
This is the first article in the series of articles I am going to pen down giving an introduction to TensorFlow and diving deep into to the myriad Math and Machine Learning libraries it offers. To begin with, I would describe, in this article, the idea behind the TensorFlow framework, the way its structured, its key co...
[ { "code": null, "e": 612, "s": 171, "text": "This is the first article in the series of articles I am going to pen down giving an introduction to TensorFlow and diving deep into to the myriad Math and Machine Learning libraries it offers. To begin with, I would describe, in this article, the idea be...
How to make Matplotlib show all X coordinates?
To show all X coordinates (or Y coordinates), we can use xticks() method (or yticks()). Set the figure size and adjust the padding between and around the subplots. Set the figure size and adjust the padding between and around the subplots. Create x and y data points using numpy. Create x and y data points using numpy. ...
[ { "code": null, "e": 1150, "s": 1062, "text": "To show all X coordinates (or Y coordinates), we can use xticks() method (or yticks())." }, { "code": null, "e": 1226, "s": 1150, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "cod...
ByteBuffer slice() method in Java with Examples - GeeksforGeeks
07 Aug, 2021 The slice() method of java.nio.ByteBuffer Class is used to creates a new byte buffer whose content is a shared subsequence of the given buffer’s content. The content of the new buffer will start at this buffer’s current position. Changes to this buffer’s content will be visible in the new buffer, and vice ...
[ { "code": null, "e": 24614, "s": 24586, "text": "\n07 Aug, 2021" }, { "code": null, "e": 24768, "s": 24614, "text": "The slice() method of java.nio.ByteBuffer Class is used to creates a new byte buffer whose content is a shared subsequence of the given buffer’s content." }, {...