title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Can We Override Final Method in Java? - GeeksforGeeks
19 Jan, 2021 A method in a subclass is said to Override a method in its superclass if that method has a signature identical to a method in its superclass. When this method is called by an object of the subclass, then always the Overridden version will be called. In other words, the method which was Overridden in the su...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n19 Jan, 2021" }, { "code": null, "e": 25561, "s": 25225, "text": "A method in a subclass is said to Override a method in its superclass if that method has a signature identical to a method in its superclass. When this method is c...
Computing INT_MAX and INT_MIN with Bitwise operations - GeeksforGeeks
30 Apr, 2021 Prerequisites : INT_MAX and INT_MIN in C/C++ and Applications. Arithmetic shift vs Logical shiftSuppose you have a 32-bit system : The INT_MAX would be 01111111111111111111111111111111 and INT_MIN would be 10000000000000000000000000000000. 0 & 1 in most-significant bit position representing the sign bit re...
[ { "code": null, "e": 26277, "s": 26249, "text": "\n30 Apr, 2021" }, { "code": null, "e": 26690, "s": 26277, "text": "Prerequisites : INT_MAX and INT_MIN in C/C++ and Applications. Arithmetic shift vs Logical shiftSuppose you have a 32-bit system : The INT_MAX would be 01111111111...
Front and Back Search in unsorted array - GeeksforGeeks
06 Apr, 2021 Given an unsorted array of integers and an element x, find if x is present in array using Front and Back search.Examples : Input : arr[] = {10, 20, 80, 30, 60, 50, 110, 100, 130, 170} x = 110; Output : Yes Input : arr[] = {10, 20, 80, 30, 60, 50, 110...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n06 Apr, 2021" }, { "code": null, "e": 24026, "s": 23901, "text": "Given an unsorted array of integers and an element x, find if x is present in array using Front and Back search.Examples : " }, { "code": null, "e": 2...
How to Collect Data for Your Analysis | by Jonathan Ratschat | Towards Data Science
How great would it be when data could be as easily accessed as on Kaggle? Data collection? Just visit Kaggle, find a suitable data set, and download it. How about analyzing the Titanic incident from 1912? Or how about image recognition of flowers? No? Maybe you want to predict credit card fraud detection? Guess what, K...
[ { "code": null, "e": 245, "s": 171, "text": "How great would it be when data could be as easily accessed as on Kaggle?" }, { "code": null, "e": 514, "s": 245, "text": "Data collection? Just visit Kaggle, find a suitable data set, and download it. How about analyzing the Titanic i...
How will you detect the condition of the end of cursor rows in a COBOL-DB2 program?
The cursor can be used to fetch multiple rows from a DB2 table. However, we have to fetch this cursor in a loop so that values corresponding to a single row are assigned to host variables at a time. Based on this logic we have to process our loop till the cursor reaches the last row result. The SQLCODE field takes the ...
[ { "code": null, "e": 1354, "s": 1062, "text": "The cursor can be used to fetch multiple rows from a DB2 table. However, we have to fetch this cursor in a loop so that values corresponding to a single row are assigned to host variables at a time. Based on this logic we have to process our loop till t...
Teradata - Drop Tables
DROP TABLE command is used to drop a table. When the DROP TABLE is issued, data in the table is deleted and the table is dropped. Following is the generic syntax for DROP TABLE. DROP TABLE <tablename>; The following example drops the table ‘employee’. DROP TABLE employee; If you run the SHOW TABLE command after this,...
[ { "code": null, "e": 2760, "s": 2630, "text": "DROP TABLE command is used to drop a table. When the DROP TABLE is issued, data in the table is deleted and the table is dropped." }, { "code": null, "e": 2808, "s": 2760, "text": "Following is the generic syntax for DROP TABLE." }...
How can we avoid a deadlock in Java?
In Java, a deadlock is a programming situation where two or more threads are blocked forever. A deadlock condition will occur with at least two threads and two or more resources. Avoid Nested Locks: A deadlock mainly happens when we give locks to multiple threads. Avoid giving a lock to multiple threads if we already h...
[ { "code": null, "e": 1241, "s": 1062, "text": "In Java, a deadlock is a programming situation where two or more threads are blocked forever. A deadlock condition will occur with at least two threads and two or more resources." }, { "code": null, "e": 1400, "s": 1241, "text": "Avo...
Ionic - Environment Setup
This chapter will show you how to start with Ionic Framework. The following table contains the list of components needed to start with Ionic. NodeJS This is the base platform needed to create Mobile Apps using Ionic. You can find detail on the NodeJS installation in our NodeJS Environment Setup. Make sure you also inst...
[ { "code": null, "e": 2605, "s": 2463, "text": "This chapter will show you how to start with Ionic Framework. The following table contains the list of components needed to start with Ionic." }, { "code": null, "e": 2612, "s": 2605, "text": "NodeJS" }, { "code": null, "...
Make 3D plot interactive in Jupyter Notebook (Python & Matplotlib)
In this article, we can take a program code to show how we can make a 3D plot interactive using Jupyter Notebook. Create a new figure, or activate an existing figure. Create a new figure, or activate an existing figure. Create fig and ax variables using subplots method, where default nrows and ncols are 1, projection=’...
[ { "code": null, "e": 1176, "s": 1062, "text": "In this article, we can take a program code to show how we can make a 3D plot interactive using Jupyter Notebook." }, { "code": null, "e": 1229, "s": 1176, "text": "Create a new figure, or activate an existing figure." }, { "...
Setting test iterations using Newman (Postman)
We can set test iterations using Newman with the help of the option –n.Newman's command to list down all options is − newman run –h. Options in Newman is grouped into these categories − Utility Utility Basic setup Basic setup Request options Request options Other Misc. Options Other Misc. Options Thus complete command ...
[ { "code": null, "e": 1248, "s": 1062, "text": "We can set test iterations using Newman with the help of the option –n.Newman's command to list down all options is − newman run –h. Options in\nNewman is grouped into these categories −" }, { "code": null, "e": 1256, "s": 1248, "tex...
Kotlin - Variables
Variables are an important part of any programming. They are the names you give to computer memory locations which are used to store values in a computer program and later you use those names to retrieve the stored values and use them in your program. Kotlin variables are created using either var or val keywords and th...
[ { "code": null, "e": 2677, "s": 2425, "text": "Variables are an important part of any programming. They are the names you give to computer memory locations which are used to store values in a computer program and later you use those names to retrieve the stored values and use them in your program." ...
Deployment could be easy — A Data Scientist’s Guide to deploy an Image detection FastAPI API using Amazon ec2 | by Rahul Agarwal | Towards Data Science
Just recently, I had written a simple tutorial on FastAPI, which was about simplifying and understanding how APIs work, and creating a simple API using the framework. That post got quite a good response, but the most asked question was how to deploy the FastAPI API on ec2 and how to use images data rather than simple s...
[ { "code": null, "e": 339, "s": 172, "text": "Just recently, I had written a simple tutorial on FastAPI, which was about simplifying and understanding how APIs work, and creating a simple API using the framework." }, { "code": null, "e": 542, "s": 339, "text": "That post got quite...
Machine Learning with Docker and Kubernetes: Batch Inference | by Xavier Vasques | Towards Data Science
In this chapter, we will implement a batch inference from trained models in our Kubernetes Cluster we developed and installed in a previous chapter: https://xaviervasques.medium.com/machine-learning-with-docker-and-kubernetes-training-models-cbe33a08c999 You can find all the files used in this chapter on GitHub. In ord...
[ { "code": null, "e": 427, "s": 172, "text": "In this chapter, we will implement a batch inference from trained models in our Kubernetes Cluster we developed and installed in a previous chapter: https://xaviervasques.medium.com/machine-learning-with-docker-and-kubernetes-training-models-cbe33a08c999"...
How to Draw a Horizontal Barplot in R - GeeksforGeeks
03 Dec, 2021 A barplot is a representation of data in form of the bar the height of bar represents the number of values. In this article, we will discuss How to Draw a Horizontal Barplot in R programming language. R language supports two ways to plot a bar plot, and we will discuss how this can be modified to be put t...
[ { "code": null, "e": 25106, "s": 25078, "text": "\n03 Dec, 2021" }, { "code": null, "e": 25308, "s": 25106, "text": "A barplot is a representation of data in form of the bar the height of bar represents the number of values. In this article, we will discuss How to Draw a Horizont...
Creating a PySpark DataFrame - GeeksforGeeks
19 Oct, 2021 In this article, we will learn how to create a PySpark DataFrame. PySpark applications start with initializing SparkSession which is the entry point of PySpark as shown below. # SparkSession initialization from pyspark.sql import SparkSession spark = SparkSession.builder.getOrCreate() Note: PySpark shell ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n19 Oct, 2021" }, { "code": null, "e": 24469, "s": 24292, "text": "In this article, we will learn how to create a PySpark DataFrame. PySpark applications start with initializing SparkSession which is the entry point of PySpark as ...
Count Non-Leaf nodes in a Binary Tree in C++
We are given with a binary tree and the task is to calculate the count of non-leaf nodes available in a binary tree. Binary Tree is a special data structure used for data storage purposes. A binary tree has a special condition that each node can have a maximum of two children. A binary tree has the benefits of both an ...
[ { "code": null, "e": 1179, "s": 1062, "text": "We are given with a binary tree and the task is to calculate the count of non-leaf nodes available in a binary tree." }, { "code": null, "e": 1629, "s": 1179, "text": "Binary Tree is a special data structure used for data storage pur...
How to make semilogx and semilogy plots in Matplotlib?
To make semilogx and semilogy plots, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. create a new figure or activate an existing figure. Scatter and plot x and y data points. Make a plot with log scaling on the X axis. Make a plot with log scaling on the Y a...
[ { "code": null, "e": 1133, "s": 1062, "text": "To make semilogx and semilogy plots, we can take the following steps −" }, { "code": null, "e": 1209, "s": 1133, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code": null, "e"...
Setting Color Property in CSS
We can define colors for text, borders and background of elements using CSS. The color property is used to specify the text color for an element. The syntax for CSS color property is as follows − Selector { color: /*value*/ } The following examples illustrate CSS color property − Live Demo <!DOCTYPE html> <html> <h...
[ { "code": null, "e": 1208, "s": 1062, "text": "We can define colors for text, borders and background of elements using CSS. The color property is used to specify the text color for an element." }, { "code": null, "e": 1258, "s": 1208, "text": "The syntax for CSS color property is...
string.byte() function in Lua programming
The string.byte() function is one of the most widely used Lua string library functions that takes a character or a string as an argument and then converts that character into its internal numeric representations. The character to internal numeric representations can be easily interpreted from the ASCII table. string.by...
[ { "code": null, "e": 1275, "s": 1062, "text": "The string.byte() function is one of the most widely used Lua string library functions that takes a character or a string as an argument and then converts that character into its internal numeric representations." }, { "code": null, "e": 137...
What is an Event Handling and describe the components in Event Handling in Java?
The GUI in Java processes the interactions with users via mouse, keyboard and various user controls such as button, checkbox, text field, etc. as the events. These events are to be handled properly to implement Java as an Event-Driven Programming. Events Event Sources Event Listeners/Handlers The events are defined as ...
[ { "code": null, "e": 1310, "s": 1062, "text": "The GUI in Java processes the interactions with users via mouse, keyboard and various user controls such as button, checkbox, text field, etc. as the events. These events are to be handled properly to implement Java as an Event-Driven Programming." },...
Explain about nested queries in DBMS
A nested query is a query that has another query embedded within it. The embedded query is called a subquery. A subquery typically appears within the WHERE clause of a query. It can sometimes appear in the FROM clause or HAVING clause. Let’s learn about nested queries with the help of an example. Find the names of empl...
[ { "code": null, "e": 1172, "s": 1062, "text": "A nested query is a query that has another query embedded within it. The embedded query is called a subquery." }, { "code": null, "e": 1298, "s": 1172, "text": "A subquery typically appears within the WHERE clause of a query. It can ...
All unique triplets that sum up to a given value - GeeksforGeeks
25 May, 2021 Given an array and a sum value, find all possible unique triplets in that array whose sum is equal to the given sum value. If no such triplets can be formed from the array, then print “No triplets can be formed”, else print all the unique triplets. For example, if the given array is {12, 3, 6, 1, 6, 9} and...
[ { "code": null, "e": 25104, "s": 25076, "text": "\n25 May, 2021" }, { "code": null, "e": 25505, "s": 25104, "text": "Given an array and a sum value, find all possible unique triplets in that array whose sum is equal to the given sum value. If no such triplets can be formed from t...
Another Twitter sentiment analysis with Python — Part 4 (Count vectorizer, confusion matrix) | by Ricky Kim | Towards Data Science
This is the part 4 of my ongoing Twitter sentiment analysis project. You can find the previous posts from below links. towardsdatascience.com towardsdatascience.com towardsdatascience.com In part 3, I mainly focused on EDA and data visualisation, now it’s time to prepare for model building! Before we can train any mode...
[ { "code": null, "e": 291, "s": 172, "text": "This is the part 4 of my ongoing Twitter sentiment analysis project. You can find the previous posts from below links." }, { "code": null, "e": 314, "s": 291, "text": "towardsdatascience.com" }, { "code": null, "e": 337, ...
Where does MySQL store database files?
To know where MySQL store database files, you can use the variable @@datadir. The query is as follows − mysql> select @@datadir; The following is the output that displays the path − +---------------------------------------------+ | @@datadir | +-----------------------------------------...
[ { "code": null, "e": 1166, "s": 1062, "text": "To know where MySQL store database files, you can use the variable @@datadir. The query is as follows −" }, { "code": null, "e": 1191, "s": 1166, "text": "mysql> select @@datadir;" }, { "code": null, "e": 1244, "s": 1...
C library function - ispunct()
The C library function int ispunct(int c) checks whether the passed character is a punctuation character. A punctuation character is any graphic character (as in isgraph) that is not alphanumeric (as in isalnum). Following is the declaration for ispunct() function. int ispunct(int c); c − This is the character to be ch...
[ { "code": null, "e": 2220, "s": 2007, "text": "The C library function int ispunct(int c) checks whether the passed character is a punctuation character. A punctuation character is any graphic character (as in isgraph) that is not alphanumeric (as in isalnum)." }, { "code": null, "e": 227...
Converting 12 hour format time to 24 hour format in JavaScript
We are required to write a JavaScript function that takes in a time string in the following format − const timeStr = '05:00 PM'; Note that the string will always be of the same format i.e. HH:MM mm Our function should make some computations on the string received and then return the corresponding 24 hour time in the fo...
[ { "code": null, "e": 1163, "s": 1062, "text": "We are required to write a JavaScript function that takes in a time string in the following format −" }, { "code": null, "e": 1191, "s": 1163, "text": "const timeStr = '05:00 PM';" }, { "code": null, "e": 1251, "s": 1...
Visualizing AI. Deconstructing and Optimizing the SHAP... | by Wai On | Towards Data Science
Explainability in AI is currently a hot topic. As AI systems play an increasing role in decision making, there is a general agreement that these systems need to provide information underlying their decisions or advice. There is now a burgeoning industry and a vast amount of research interest into providing Explainable ...
[ { "code": null, "e": 391, "s": 172, "text": "Explainability in AI is currently a hot topic. As AI systems play an increasing role in decision making, there is a general agreement that these systems need to provide information underlying their decisions or advice." }, { "code": null, "e":...
getfacl - Unix, Linux Command
getfacl [-dRLPvh] file ... getfacl [-dRLPvh] - If getfacl is used on a file system that does not support ACLs, getfacl displays the access permissions defined by the traditional file mode permission bits. The output format of getfacl is as follows: 1: # file: somedir/ 2: # owner: lisa 3: # group: staff ...
[ { "code": null, "e": 10606, "s": 10577, "text": "\ngetfacl [-dRLPvh] file ...\n" }, { "code": null, "e": 10628, "s": 10606, "text": "\ngetfacl [-dRLPvh] -\n" }, { "code": null, "e": 10790, "s": 10630, "text": "\nIf getfacl is used on a file system that does no...
How to get ER model of database from server with MySQL Workbench?
To get ER model of database from server, you need to first launch MySQL Workbench. The snapshot is as follows − After that you need to select the “Database” menu − Database->Reverse Engineer After that a wizard will open as in the following screenshot. Add the password and press OK twice. After pressing the OK button, ...
[ { "code": null, "e": 1174, "s": 1062, "text": "To get ER model of database from server, you need to first launch MySQL Workbench. The snapshot is as follows −" }, { "code": null, "e": 1226, "s": 1174, "text": "After that you need to select the “Database” menu −" }, { "cod...
Go if statement
Use the if statement to specify a block of Go code to be executed if a condition is true. Note that if is in lowercase letters. Uppercase letters (If or IF) will generate an error. In the example below, we test two values to find out if 20 is greater than 18. If the condition is true, print some text: We can al...
[ { "code": null, "e": 90, "s": 0, "text": "Use the if statement to specify a block of Go code to be executed if a condition is true." }, { "code": null, "e": 189, "s": 90, "text": "\n Note that if is in lowercase letters. Uppercase letters (If or IF) will generate an error.\n ...
Build Your First Mood-Based Music Recommendation System in Python | by Max Hilsdorf | Towards Data Science
While music genre plays an enormous role in building and displaying social identity, the emotional expression of a song and — even more importantly — its emotional impression on the listener is often underestimated in the domain of music preferences. Only a few decades back, choosing music by genre and/or artist was ef...
[ { "code": null, "e": 423, "s": 172, "text": "While music genre plays an enormous role in building and displaying social identity, the emotional expression of a song and — even more importantly — its emotional impression on the listener is often underestimated in the domain of music preferences." }...
A Simple MLOps Pipeline on Your Local Machine | by Kyle Gallatin | Towards Data Science
It can be difficult to get any kind of ops experience outside of enterprise without turning to the cloud. The simple reason is that there’s little benefit in not turning to the cloud. In order to provide a zero-cost entry point into MLOps for those new to the space, I wanted to see if I could set up a simple MLOps pipe...
[ { "code": null, "e": 551, "s": 172, "text": "It can be difficult to get any kind of ops experience outside of enterprise without turning to the cloud. The simple reason is that there’s little benefit in not turning to the cloud. In order to provide a zero-cost entry point into MLOps for those new to...
Create a new string by alternately combining the characters of two halves of the string in reverse - GeeksforGeeks
07 Apr, 2021 Given a string s, create a new string such that it contains the characters of the two halves of the string s combined alternately in reverse order. Examples: Input : s = carbohydrates Output : hsoebtraarcdy Input : s = sunshine Output : sennuish Explanation: Example 1: Two halves of the string carbohydr...
[ { "code": null, "e": 25410, "s": 25382, "text": "\n07 Apr, 2021" }, { "code": null, "e": 25570, "s": 25410, "text": "Given a string s, create a new string such that it contains the characters of the two halves of the string s combined alternately in reverse order. Examples: " ...
Tryit Editor v3.7 - Show Java
import java.util.Scanner; // import the Scanner class class Main { public static void main(String[] args) { Scanner myObj = new Scanner(System.in); String userName; // Enter username and press Enter System.out.println("Enter username"); userName = myObj.nextLine(); System.ou...
[]
Apache Pig - Union Operator
The UNION operator of Pig Latin is used to merge the content of two relations. To perform UNION operation on two relations, their columns and domains must be identical. Given below is the syntax of the UNION operator. grunt> Relation_name3 = UNION Relation_name1, Relation_name2; Assume that we have two files namely st...
[ { "code": null, "e": 2853, "s": 2684, "text": "The UNION operator of Pig Latin is used to merge the content of two relations. To perform UNION operation on two relations, their columns and domains must be identical." }, { "code": null, "e": 2902, "s": 2853, "text": "Given below i...
“Find the Difference” in Python. Difflib — A hidden gem in Python... | by Christopher Tao | Towards Data Science
Recently, I have been focusing on reviewing and trying out Python built-in libraries. This self-assigned task has brought me a lot of fun. There are many interesting features in Python that provide out-of-the-box implementations and solutions to different kinds of problems. One of the examples is the built-in library I...
[ { "code": null, "e": 447, "s": 172, "text": "Recently, I have been focusing on reviewing and trying out Python built-in libraries. This self-assigned task has brought me a lot of fun. There are many interesting features in Python that provide out-of-the-box implementations and solutions to different...
How to Create Fake Access Points using Scapy in Python? - GeeksforGeeks
15 Nov, 2021 In this article, we are going to discuss how to create fake access points using scapy module in python This task can be done with the help of the python package scapy-fakeap. The intention behind using this library is not only making Fake Access Point but also Testing of 802.11 protocols and its implementa...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n15 Nov, 2021" }, { "code": null, "e": 24315, "s": 24212, "text": "In this article, we are going to discuss how to create fake access points using scapy module in python" }, { "code": null, "e": 24525, "s": 24315, ...
How can we sort a JSONObject in Java?
A JSONObject is an unordered collection of a key, value pairs, and the values can be any of these types like Boolean, JSONArray, JSONObject, Number and String. The constructor of a JSONObject can be used to convert an external form JSON text into an internal form whose values can be retrieved with the get() and opt() m...
[ { "code": null, "e": 1467, "s": 1062, "text": "A JSONObject is an unordered collection of a key, value pairs, and the values can be any of these types like Boolean, JSONArray, JSONObject, Number and String. The constructor of a JSONObject can be used to convert an external form JSON text into an int...
How to change the element id using jQuery ? - GeeksforGeeks
24 May, 2019 The jQuery methods are used to change the element ID which are described below: jQuery attr() Method: This method set/return attributes and values of the selected elements. If this method is used to return the attribute value, it returns the value of first selected element. If this method is used to set at...
[ { "code": null, "e": 24417, "s": 24389, "text": "\n24 May, 2019" }, { "code": null, "e": 24497, "s": 24417, "text": "The jQuery methods are used to change the element ID which are described below:" }, { "code": null, "e": 25550, "s": 24497, "text": "jQuery att...
Python program to print check board pattern of n*n using numpy
Given the value of n, our task is to display the check board pattern for a n x n matrix. Different types of functions to create arrays with initial value are available in numpy . NumPy is the fundamental package for scientific computing in Python. Step 1: input order of the matrix. Step 2: create n*n matrix using zeros...
[ { "code": null, "e": 1151, "s": 1062, "text": "Given the value of n, our task is to display the check board pattern for a n x n matrix." }, { "code": null, "e": 1310, "s": 1151, "text": "Different types of functions to create arrays with initial value are available in numpy . Num...
Xamarin - First Application
In this chapter, we will see how to create a small Android application using Xamarin. First of all, start a new instance of Visual Studio and go to File → New → Project. On the Menu dialog box that appears, go to Templates → Visual C# → Android → Blank App (Android). Give an appropriate name for your application. In ou...
[ { "code": null, "e": 2050, "s": 1964, "text": "In this chapter, we will see how to create a small Android application using Xamarin." }, { "code": null, "e": 2134, "s": 2050, "text": "First of all, start a new instance of Visual Studio and go to File → New → Project." }, { ...
Python – Iterate through list without using the increment variable
22 Jun, 2021 Python Lists is much like flexible size arrays, declared in other languages like vector in C++, array list in Java, etc. Lists are heterogeneous, making it the most effective feature in Python. Lists are mutable, and hence can be modified even after they have been formed. The most common approach is to ite...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2021" }, { "code": null, "e": 301, "s": 28, "text": "Python Lists is much like flexible size arrays, declared in other languages like vector in C++, array list in Java, etc. Lists are heterogeneous, making it the most effective ...
How to set IE compatibility mode ?
19 Oct, 2021 The percentage of market share in the global desktop browser of Internet Explorer(IE) is less than 3%. If we are developing a site that includes global users or a sizable number of visitors from an older IE version then we have to make our website compatible with IE, even though that is outdated. The solut...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Oct, 2021" }, { "code": null, "e": 381, "s": 28, "text": "The percentage of market share in the global desktop browser of Internet Explorer(IE) is less than 3%. If we are developing a site that includes global users or a sizable numb...
Search Files Faster on Windows 10 using Command Prompt
12 Mar, 2021 Searching for a file in Windows is not an easy job if your files are not organized and one of the ways to search your files using tags keywords in the Windows Search box inside File Explorer. However, Windows File Explorer search results are not that accurate and it takes a longer time but why wait if you ...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Mar, 2021" }, { "code": null, "e": 399, "s": 28, "text": "Searching for a file in Windows is not an easy job if your files are not organized and one of the ways to search your files using tags keywords in the Windows Search box insid...
Matplotlib.colors.LogNorm class in Python
21 Apr, 2020 Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. The matplotlib.colors.LogNorm() class belongs to the matplotlib.colors module. The matplotlib.c...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Apr, 2020" }, { "code": null, "e": 240, "s": 28, "text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed t...
HTML | novalidate Attribute
03 Dec, 2021 The HTML novalidate Attribute is used to specify that the form-data should not be validated when submitting the form. It is a Boolean attribute. It can be used with the <form> element. Applicable: <form> Syntax: <form novalidate> Example: This Example illustrates the use of novalidate attribute in form ...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Dec, 2021" }, { "code": null, "e": 226, "s": 28, "text": "The HTML novalidate Attribute is used to specify that the form-data should not be validated when submitting the form. It is a Boolean attribute. It can be used with the <form>...
Kahn’s algorithm for Topological Sorting
17 Jun, 2022 Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge uv, vertex u comes before v in the ordering. Topological Sorting for a graph is not possible if the graph is not a DAG.For example, a topological sorting of the following graph is “5 4 2 ...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Jun, 2022" }, { "code": null, "e": 628, "s": 54, "text": "Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge uv, vertex u comes before v in the ordering. Topologic...
Draw an Olympic Symbol in Java Applet
22 Apr, 2022 Given task is to draw an Olympic symbol in Java Applet. Expected Output: Approach: Use drawOval() method to draw a circle with x and y coordinates and length and breadth. Below is the implementation of the above approach: Applet Program: Java // Java program to Draw an Olympic// Symbol using Java Appl...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2022" }, { "code": null, "e": 84, "s": 28, "text": "Given task is to draw an Olympic symbol in Java Applet." }, { "code": null, "e": 101, "s": 84, "text": "Expected Output:" }, { "code": null, "e"...
Linked List | Set 3 (Deleting a node)
23 Jun, 2022 We have discussed Linked List Introduction and Linked List Insertion in previous posts on a singly linked list.Let us formulate the problem statement to understand the deletion process. Given a ‘key’, delete the first occurrence of this key in the linked list. You can delete an element from a list from: C...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 314, "s": 52, "text": "We have discussed Linked List Introduction and Linked List Insertion in previous posts on a singly linked list.Let us formulate the problem statement to understand the deleti...
Iperf Command to Test Speed, Performance and Bandwidth of Network in Linux
10 Jul, 2020 There is a great degree of flex in how the packets are delivered and overall bit rate and packet payload size can be controlled. iperf is a tool that is used to perform network performance measurement and tuning. iperf is an open-source software which is written in C language. Jperf is a GUI version for do...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jul, 2020" }, { "code": null, "e": 402, "s": 28, "text": "There is a great degree of flex in how the packets are delivered and overall bit rate and packet payload size can be controlled. iperf is a tool that is used to perform networ...
MVC Design Pattern
08 Feb, 2018 The Model View Controller (MVC) design pattern specifies that an application consist of a data model, presentation information, and control information. The pattern requires that each of these be separated into different objects. MVC is more of an architectural pattern, but not for complete application. MV...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Feb, 2018" }, { "code": null, "e": 282, "s": 52, "text": "The Model View Controller (MVC) design pattern specifies that an application consist of a data model, presentation information, and control information. The pattern requires ...
Generic Classes in Scala
25 Apr, 2019 In Scala, forming a Generic Class is extremely analogous to the forming of generic classes in Java. The classes that takes a type just like a parameter are known to be Generic Classes in Scala. This classes takes a type like a parameter inside the square brackets i.e, [ ]. This classes are utilized explici...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Apr, 2019" }, { "code": null, "e": 584, "s": 28, "text": "In Scala, forming a Generic Class is extremely analogous to the forming of generic classes in Java. The classes that takes a type just like a parameter are known to be Generic...
How to Install Docker on Windows?
05 Oct, 2021 Before understanding the concept of Docker, let’s first discuss the concept of Hypervisors. So in an IT Company, or any cooperate, there is a development team, a testing team, and an operation team for developing the application, testing it, and deploying it respectively. Now suppose the developers are wor...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Oct, 2021" }, { "code": null, "e": 1173, "s": 28, "text": "Before understanding the concept of Docker, let’s first discuss the concept of Hypervisors. So in an IT Company, or any cooperate, there is a development team, a testing team...
Insert a String into another String in Java
11 Dec, 2018 Given a String, the task is to insert another string in between the given String at a particular specified index in Java. Examples: Input: originalString = "GeeksGeeks", stringToBeInserted = "For", index = 4 Output: "GeeksForGeeks" Input: originalString = "Computer Portal", ...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Dec, 2018" }, { "code": null, "e": 150, "s": 28, "text": "Given a String, the task is to insert another string in between the given String at a particular specified index in Java." }, { "code": null, "e": 160, "s": 15...
Object-oriented programming for data scientists: Build your ML estimator | by Tirthajyoti Sarkar | Towards Data Science
UPDATE: You will always find the latest Python script (with the linear regression class definition and methods) HERE. Use it to build further or experiment. Data scientists often come from a background which is quite far removed from traditional computer science/software engineering — physics, biology, statistics, econ...
[ { "code": null, "e": 328, "s": 171, "text": "UPDATE: You will always find the latest Python script (with the linear regression class definition and methods) HERE. Use it to build further or experiment." }, { "code": null, "e": 527, "s": 328, "text": "Data scientists often come fr...
.NET Core - Create UWP App
In this chapter, we will discuss how to create a UWP application using .NET Core. UWP is also known as Windows 10 UWP application. This application does not run on previous versions of Windows but will only run on future version of Windows. Following are a few exceptions where UWP will run smoothly. If you want to run ...
[ { "code": null, "e": 2627, "s": 2386, "text": "In this chapter, we will discuss how to create a UWP application using .NET Core. UWP is also known as Windows 10 UWP application. This application does not run on previous versions of Windows but will only run on future version of Windows." }, { ...
D3.js line.y() Function - GeeksforGeeks
09 Sep, 2020 The line.y() function is used to set the y accessor to the function or to a number and then returns this to the line generator function invoked by d3.line() function. If y is not specified then it returns the current y accessor. Approach: In this example to create the line chart, first of all, create the S...
[ { "code": null, "e": 24708, "s": 24680, "text": "\n09 Sep, 2020" }, { "code": null, "e": 24937, "s": 24708, "text": "The line.y() function is used to set the y accessor to the function or to a number and then returns this to the line generator function invoked by d3.line() functi...
Print "GeeksforGeeks" in 10 different programming languages - GeeksforGeeks
26 Dec, 2017 The most elementary part of learning any computer programming language is the ability to print a desired text on the screen or console. Thus, the task of this article is to guide programmers new to any of the 10 different languages discussed below, i.e. GO, Fortran, Pascal, Scala, Perl, ADA, Ruby, Kotlin, ...
[ { "code": null, "e": 24031, "s": 24003, "text": "\n26 Dec, 2017" }, { "code": null, "e": 24357, "s": 24031, "text": "The most elementary part of learning any computer programming language is the ability to print a desired text on the screen or console. Thus, the task of this arti...
How to call a JavaScript function on a click event?
JavaScript's interaction with HTML is handled through events that occur when the user or the browser manipulates a page. When the page loads, it is called an event. When the user clicks a button, that clicks to is an event. Other examples include events like pressing any key, closing a window, resizing a window, etc. T...
[ { "code": null, "e": 1183, "s": 1062, "text": "JavaScript's interaction with HTML is handled through events that occur when the user or the browser manipulates a page." }, { "code": null, "e": 1381, "s": 1183, "text": "When the page loads, it is called an event. When the user cli...
Apex - Triggers
Apex triggers are like stored procedures which execute when a particular event occurs. A trigger executes before and after an event occurs on record. trigger triggerName on ObjectName (trigger_events) { Trigger_code_block } Following are the events on which we can fir the trigger − insert update delete merge upsert un...
[ { "code": null, "e": 2202, "s": 2052, "text": "Apex triggers are like stored procedures which execute when a particular event occurs. A trigger executes before and after an event occurs on record." }, { "code": null, "e": 2277, "s": 2202, "text": "trigger triggerName on ObjectNam...
Interleaved Strings | Practice | GeeksforGeeks
Given strings A, B, and C, find whether C is formed by an interleaving of A and B. An interleaving of two strings S and T is a configuration such that it creates a new string Y from the concatenation substrings of A and B and |Y| = |A + B| = |C| For example: A = "XYZ" B = "ABC" so we can make multiple interleaving stri...
[ { "code": null, "e": 321, "s": 238, "text": "Given strings A, B, and C, find whether C is formed by an interleaving of A and B." }, { "code": null, "e": 484, "s": 321, "text": "An interleaving of two strings S and T is a configuration such that it creates a new string Y from the ...
How to delete all files in a directory with Python?
You can delete a single file or a single empty folder with functions in the os module. For example, if you want to delete a file my_file.txt, >>> import os >>> os.remove('my_file.txt') The argument to os.remove must be absolute or relative path. To delete multiple files, just loop over your list of files and use the ab...
[ { "code": null, "e": 1149, "s": 1062, "text": "You can delete a single file or a single empty folder with functions in the os module." }, { "code": null, "e": 1204, "s": 1149, "text": "For example, if you want to delete a file my_file.txt," }, { "code": null, "e": 124...
H.C.F & L.C.M. - Solved Examples
Q 1 - Compute H.C.F of (22* 23*5*74), (23*32*52*73) and (22*53*75). A - 6760 B - 6860 C - 6960 D - 7060 Answer - B Explanation Prime numbers which are common to all the given numbers are 2,5 ,7. ∴ H.C.F = (22*5*73)= (4*5*343) = 6860 Q 2 - Find the H.C.F of 108, 360 and 600. A - 12 B - 13 C - 14 D - 15 Answer - A Expla...
[ { "code": null, "e": 3960, "s": 3892, "text": "Q 1 - Compute H.C.F of (22* 23*5*74), (23*32*52*73) and (22*53*75)." }, { "code": null, "e": 3969, "s": 3960, "text": "A - 6760" }, { "code": null, "e": 3978, "s": 3969, "text": "B - 6860" }, { "code": nul...
Python Pillow - M L with Numpy
In this chapter, we use numpy to store and manipulate image data using python imaging library – “pillow”. Before proceeding with this chapter open command prompt in administrator mode and execute the following command in it to install numpy − pip install numpy Note − This works only if you have PIP installed and updat...
[ { "code": null, "e": 2306, "s": 2200, "text": "In this chapter, we use numpy to store and manipulate image data using python imaging library – “pillow”." }, { "code": null, "e": 2443, "s": 2306, "text": "Before proceeding with this chapter open command prompt in administrator mod...
RESTful Web Services - Addressing
Addressing refers to locating a resource or multiple resources lying on the server. It is analogous to locate a postal address of a person. Each resource in REST architecture is identified by its URI (Uniform Resource Identifier). A URI is of the following format − <protocol>://<service-name>/<ResourceType>/<ResourceID...
[ { "code": null, "e": 1995, "s": 1855, "text": "Addressing refers to locating a resource or multiple resources lying on the server. It is analogous to locate a postal address of a person." }, { "code": null, "e": 2121, "s": 1995, "text": "Each resource in REST architecture is iden...
MongoDB query to test if a value is in array?
To check for a specific value, use $in. Let us first create a collection with documents − > db.testInArray.insertOne({"ListOfNumbers":[10,56,78,90,32]}); { "acknowledged" : true, "insertedId" : ObjectId("5e04d42df5e889d7a519950d") } > db.testInArray.insertOne({"ListOfNumbers":[56,78,91,100]}); { "acknowledged"...
[ { "code": null, "e": 1152, "s": 1062, "text": "To check for a specific value, use $in. Let us first create a collection with documents −" }, { "code": null, "e": 1448, "s": 1152, "text": "> db.testInArray.insertOne({\"ListOfNumbers\":[10,56,78,90,32]});\n{\n \"acknowledged\" : ...
Bayes’ Rule Applied. Using Bayesian Inference on a... | by Will Koehrsen | Towards Data Science
Using Bayesian Inference on a real-world problem The fundamental idea of Bayesian inference is to become “less wrong” with more data. The process is straightforward: we have an initial belief, known as a prior, which we update as we gain additional information. Although we don’t think about it as Bayesian Inference, we...
[ { "code": null, "e": 221, "s": 172, "text": "Using Bayesian Inference on a real-world problem" }, { "code": null, "e": 909, "s": 221, "text": "The fundamental idea of Bayesian inference is to become “less wrong” with more data. The process is straightforward: we have an initial b...
BabylonJS - Plane
In this section, we will learn how to create a Plane. Following is the syntax for the creation of a plane − var plane = BABYLON.Mesh.CreatePlane("plane", 10.0, scene, false, BABYLON.Mesh.DEFAULTSIDE); Consider the following parameters for the creation of a plane − Name − This is the name of the plane. Name − This is t...
[ { "code": null, "e": 2237, "s": 2183, "text": "In this section, we will learn how to create a Plane." }, { "code": null, "e": 2291, "s": 2237, "text": "Following is the syntax for the creation of a plane −" }, { "code": null, "e": 2385, "s": 2291, "text": "var...
How to create a Share Button with different Social Handles using HTML & CSS ? - GeeksforGeeks
22 Feb, 2021 In this article, we are going to create a share button which shows the social media accounts to share specific content over it when we click on the button. Approach: Create an HTML file in which we are going to add different types of social media icons. Create a CSS style to give some animation effects to ...
[ { "code": null, "e": 26731, "s": 26703, "text": "\n22 Feb, 2021" }, { "code": null, "e": 26887, "s": 26731, "text": "In this article, we are going to create a share button which shows the social media accounts to share specific content over it when we click on the button." }, ...
Frequency of maximum occurring subsequence in given string - GeeksforGeeks
14 Jun, 2021 Given a string str of lowercase English alphabets, our task is to find the frequency of occurrence a subsequence of the string which occurs the maximum times. Examples: Input: s = “aba” Output: 2 Explanation: For “aba”, subsequence “ab” occurs maximum times in subsequence ‘ab’ and ‘aba’. Input: s = “acbab”...
[ { "code": null, "e": 26025, "s": 25997, "text": "\n14 Jun, 2021" }, { "code": null, "e": 26184, "s": 26025, "text": "Given a string str of lowercase English alphabets, our task is to find the frequency of occurrence a subsequence of the string which occurs the maximum times." }...
How to count all elements within a div using jQuery ? - GeeksforGeeks
31 Dec, 2020 In this article, we will count all elements inside a div element using jQuery. To count all elements inside a div elements, we use find() method and length property. The find() method is used to find all the descendant elements of the selected element. It will traverse all the way down to the last leaf of ...
[ { "code": null, "e": 26706, "s": 26678, "text": "\n31 Dec, 2020" }, { "code": null, "e": 26872, "s": 26706, "text": "In this article, we will count all elements inside a div element using jQuery. To count all elements inside a div elements, we use find() method and length propert...
How to Solve Optimization Problems with Python | by Kevin Babitz | Towards Data Science
Linear programming (or linear optimization) is the process of solving for the best outcome in mathematical problems with constraints. PuLP is a powerful library that helps Python users solve these types of problems with just a few lines of code. I have found that PuLP is the simplest library for solving these types of ...
[ { "code": null, "e": 418, "s": 172, "text": "Linear programming (or linear optimization) is the process of solving for the best outcome in mathematical problems with constraints. PuLP is a powerful library that helps Python users solve these types of problems with just a few lines of code." }, {...
auto_ptr, unique_ptr, shared_ptr and weak_ptr - GeeksforGeeks
15 Nov, 2021 Prerequisite – Smart PointersC++ libraries provide implementations of smart pointers in following types: auto_ptr unique_ptr shared_ptr weak_ptr They all are declared in a memory header file. auto_ptr This class template is deprecated as of C++11. unique_ptr is a new facility with a similar functionality, ...
[ { "code": null, "e": 25765, "s": 25737, "text": "\n15 Nov, 2021" }, { "code": null, "e": 25870, "s": 25765, "text": "Prerequisite – Smart PointersC++ libraries provide implementations of smart pointers in following types:" }, { "code": null, "e": 25879, "s": 25870...
Kth highest XOR of diagonal elements from a Matrix - GeeksforGeeks
19 Jul, 2021 Given a square matrix mat[][] of size N * N, the task is to calculate XOR value of every diagonal elements and find the Kth maximum XOR value obtained. Note: There are 2 * N – 1 diagonals in the matrix. Starting point of ith diagonal is (min(N, i), (1 + max(i – N, 0))). Examples: Input: mat[][] = {{1, 2, 3...
[ { "code": null, "e": 26821, "s": 26793, "text": "\n19 Jul, 2021" }, { "code": null, "e": 27092, "s": 26821, "text": "Given a square matrix mat[][] of size N * N, the task is to calculate XOR value of every diagonal elements and find the Kth maximum XOR value obtained. Note: There...
CSS | Pagination - GeeksforGeeks
04 Dec, 2018 Pagination is the process of dividing the document into pages and providing them with numbers.Types of Pagination: There are many types of pagination in CSS. Some of them are given below: Simple PaginationActive and Hoverable PaginationRounded Active and Hoverable ButtonsHoverable Transition EffectBordered...
[ { "code": null, "e": 29401, "s": 29373, "text": "\n04 Dec, 2018" }, { "code": null, "e": 29589, "s": 29401, "text": "Pagination is the process of dividing the document into pages and providing them with numbers.Types of Pagination: There are many types of pagination in CSS. Some ...
Control Flow Software Testing - GeeksforGeeks
05 Aug, 2019 Control flow testing is a type of software testing that uses program’s control flow as a model. Control flow testing is a structural testing strategy. This testing technique comes under white box testing. For the type of control flow testing, all the structure, design, code and implementation of the softwa...
[ { "code": null, "e": 26259, "s": 26231, "text": "\n05 Aug, 2019" }, { "code": null, "e": 26606, "s": 26259, "text": "Control flow testing is a type of software testing that uses program’s control flow as a model. Control flow testing is a structural testing strategy. This testing...
Python Program for Basic Euclidean algorithms
In this article, we will learn about the solution to the problem statement given below. Problem statement− Given two numbers we need to calculate gcd of those two numbers and display them. GCD Greatest Common Divisor of two numbers is the largest number that can divide both of them. Here we follow the euclidean approac...
[ { "code": null, "e": 1275, "s": 1187, "text": "In this article, we will learn about the solution to the problem statement given below." }, { "code": null, "e": 1376, "s": 1275, "text": "Problem statement− Given two numbers we need to calculate gcd of those two numbers and display...
Python | place() method in Tkinter
07 Jun, 2019 The Place geometry manager is the simplest of the three general geometry managers provided in Tkinter. It allows you explicitly set the position and size of a window, either in absolute terms, or relative to another window.You can access the place manager through the place() method which is available for a...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jun, 2019" }, { "code": null, "e": 382, "s": 54, "text": "The Place geometry manager is the simplest of the three general geometry managers provided in Tkinter. It allows you explicitly set the position and size of a window, either ...
Turing Machine Construction (Transducers Turing Machine) in Java
15 Dec, 2021 Prerequisite – Turing Machine Turing Machines can broadly be classified into two types, the Acceptors and the Transducers. Acceptor Turing Machine is an automaton used to define Turing-acceptable languages. Such a machine can be used to check whether a given string belongs to a language or not. It is defin...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Dec, 2021" }, { "code": null, "e": 84, "s": 54, "text": "Prerequisite – Turing Machine" }, { "code": null, "e": 386, "s": 84, "text": "Turing Machines can broadly be classified into two types, the Acceptors and t...
jQuery | add() method with Example
13 Feb, 2019 The jQuery add() method is used to add element to the existing group of elements. This method can add element to the whole document, or just inside context element if the context parameter is defined.Syntax: $(selector).add(element, context_parameter) Here selector helps to find the matching element.Param...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Feb, 2019" }, { "code": null, "e": 260, "s": 52, "text": "The jQuery add() method is used to add element to the existing group of elements. This method can add element to the whole document, or just inside context element if the con...
Count full nodes in a Binary tree (Iterative and Recursive)
28 Jan, 2022 Given A binary Tree, how do you count all the full nodes (Nodes which have both children as not NULL) without using recursion and with recursion? Note leaves should not be touched as they have both children as NULL. Nodes 2 and 6 are full nodes has both child’s. So count of full nodes in the above tree is...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jan, 2022" }, { "code": null, "e": 269, "s": 52, "text": "Given A binary Tree, how do you count all the full nodes (Nodes which have both children as not NULL) without using recursion and with recursion? Note leaves should not be to...
How to use custom theme palettes in Angular?
24 Jun, 2020 We can use custom theme palettes in angular to define our own color palette. And that theme file can be used throughout all components. Approach: Firstly, we have to create our own theme file and in that, we have to include mat-core() Sass mixin and import theming file from angular material. After that, we...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Jun, 2020" }, { "code": null, "e": 190, "s": 54, "text": "We can use custom theme palettes in angular to define our own color palette. And that theme file can be used throughout all components." }, { "code": null, "e": 2...
How to position a div at the bottom of its container using CSS?
10 May, 2022 Set the position of div at the bottom of its container can be done using bottom, and position property. Set position value to absolute and bottom value to zero to placed a div at the bottom of container. Position attribute can take multiple values which are listed below: absolute: This property is used whe...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 May, 2022" }, { "code": null, "e": 324, "s": 52, "text": "Set the position of div at the bottom of its container can be done using bottom, and position property. Set position value to absolute and bottom value to zero to placed a di...
Pentium Pro Architecture
09 Nov, 2021 The Pentium Pro microprocessor belongs to the CISC (Complex Instruction Set Computers) machines. Processor of Pentium Pro family are mostly present in majority of personal computers. The term ‘Pentium processor’ refers to an Intel x86 family of microprocessors that share a common architecture and instructi...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Nov, 2021" }, { "code": null, "e": 344, "s": 28, "text": "The Pentium Pro microprocessor belongs to the CISC (Complex Instruction Set Computers) machines. Processor of Pentium Pro family are mostly present in majority of personal com...
Python | Pandas dataframe.drop_duplicates()
30 Jun, 2021 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.An important part of Data analysis is analyzing Duplicate Values and removing them. Pandas dro...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2021" }, { "code": null, "e": 408, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp...
MERGE Statement in SQL Explained
09 Sep, 2021 Prerequisite – MERGE Statement As MERGE statement in SQL, as discussed before in the previous post, is the combination of three INSERT, DELETE and UPDATE statements. So if there is a Source table and a Target table that are to be merged, then with the help of MERGE statement, all the three operations (INSE...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Sep, 2021" }, { "code": null, "e": 405, "s": 52, "text": "Prerequisite – MERGE Statement As MERGE statement in SQL, as discussed before in the previous post, is the combination of three INSERT, DELETE and UPDATE statements. So if th...
GATE | GATE CS 2019 | Question 26
15 Feb, 2019 The following C program is executed on a Unix / Linux system: #include <unistd.h> int main() { int i; for (i = 0; i < 10; i++) if (i % 2 == 0) fork(); return 0; } The total number of child process created is __________ . Note – This was Numerical Type question. (A) 31(B) 63(C) 5(D) 6Answer:...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Feb, 2019" }, { "code": null, "e": 116, "s": 54, "text": "The following C program is executed on a Unix / Linux system:" }, { "code": "#include <unistd.h> int main() { int i; for (i = 0; i < 10; i++) if (i % 2 ==...
Reverse a circular linked list
05 May, 2022 Given a circular linked list of size n. The problem is to reverse the given circular linked list by changing links between the nodes.Examples: INPUT: OUTPUT: Approach: The approach is same as followed in reversing a singly linked list. Only here we have to make one more adjustment by linking the last...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 May, 2022" }, { "code": null, "e": 204, "s": 52, "text": "Given a circular linked list of size n. The problem is to reverse the given circular linked list by changing links between the nodes.Examples: INPUT: " }, { "code": ...
Count the number of common divisors of the given strings
02 Aug, 2021 Given two strings a and b, the task is to count the number of common divisors of both the strings. A string s is a divisor of string t if t can be generated by repeating s a number of times.Examples: Input: a = “xaxa”, b = “xaxaxaxa” Output: 2 The common divisors are “xa” and “xaxa”Input: a = “bbbb”, b =...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Aug, 2021" }, { "code": null, "e": 254, "s": 52, "text": "Given two strings a and b, the task is to count the number of common divisors of both the strings. A string s is a divisor of string t if t can be generated by repeating s a ...
Summarise multiple columns using dplyr in R
24 Oct, 2021 In this article, we will discuss how to summarise multiple columns using dplyr package in R Programming Language, The summarise_all method in R is used to affect every column of the data frame. The output data frame returns all the columns of the data frame where the specified function is applied over ever...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Oct, 2021" }, { "code": null, "e": 142, "s": 28, "text": "In this article, we will discuss how to summarise multiple columns using dplyr package in R Programming Language," }, { "code": null, "e": 346, "s": 142, "...
sciPy stats.tmean() | Python
10 Feb, 2019 scipy.stats.tmean(array, limits=None, inclusive=(True, True)) calculates the trimmed mean of the array elements along the specified axis of the array. It’s formula – Parameters :array: Input array or object having the elements to calculate the trimmed mean.axis: Axis along which the trimmed mean is to be c...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Feb, 2019" }, { "code": null, "e": 179, "s": 28, "text": "scipy.stats.tmean(array, limits=None, inclusive=(True, True)) calculates the trimmed mean of the array elements along the specified axis of the array." }, { "code": nu...
Redis - List Linsert Command
Redis LINSERT command inserts the value in the list stored at the key either before or after the reference value pivot. When the key does not exist, it is considered an empty list and no operation is performed. An error is returned when the key exists but does not hold a list value. Integer reply, the length of the lis...
[ { "code": null, "e": 2329, "s": 2045, "text": "Redis LINSERT command inserts the value in the list stored at the key either before or after the reference value pivot. When the key does not exist, it is considered an empty list and no operation is performed. An error is returned when the key exists b...
Symmetric Tree | Practice | GeeksforGeeks
Given a Binary Tree. Check whether it is Symmetric or not, i.e. whether the binary tree is a Mirror image of itself or not. Example 1: Input: 5 / \ 1 1 / \ 2 2 Output: True Explanation: Tree is mirror image of itself i.e. tree is symmetric Example 2: Input: 5...
[ { "code": null, "e": 362, "s": 238, "text": "Given a Binary Tree. Check whether it is Symmetric or not, i.e. whether the binary tree is a Mirror image of itself or not." }, { "code": null, "e": 373, "s": 362, "text": "Example 1:" }, { "code": null, "e": 530, "s": ...
Python Pandas - Concatenation
Pandas provides various facilities for easily combining together Series, DataFrame, and Panel objects. pd.concat(objs,axis=0,join='outer',join_axes=None, ignore_index=False) objs − This is a sequence or mapping of Series, DataFrame, or Panel objects. objs − This is a sequence or mapping of Series, DataFrame, or Panel...
[ { "code": null, "e": 2546, "s": 2443, "text": "Pandas provides various facilities for easily combining together Series, DataFrame, and Panel objects." }, { "code": null, "e": 2619, "s": 2546, "text": " pd.concat(objs,axis=0,join='outer',join_axes=None,\nignore_index=False)\n" }...
Frequency Domain Filters and its Types - GeeksforGeeks
05 Dec, 2019 Frequency Domain Filters are used for smoothing and sharpening of image by removal of high or low frequency components. Sometimes it is possible of removal of very high and very low frequency. Frequency domain filters are different from spatial domain filters as it basically focuses on the frequency of the...
[ { "code": null, "e": 24551, "s": 24523, "text": "\n05 Dec, 2019" }, { "code": null, "e": 24944, "s": 24551, "text": "Frequency Domain Filters are used for smoothing and sharpening of image by removal of high or low frequency components. Sometimes it is possible of removal of very...
Find the difference of largest and the smallest number in an array without sorting it in JavaScript
We have an array of Numbers that are arranged in pure random order. Our job is to write a function that takes in one such array of Numbers and returns the difference of greatest and smallest numbers present in it, but without sorting the array. Therefore, let's write the code for this function − We will use the Array.p...
[ { "code": null, "e": 1307, "s": 1062, "text": "We have an array of Numbers that are arranged in pure random order. Our job is to write a\nfunction that takes in one such array of Numbers and returns the difference of greatest and\nsmallest numbers present in it, but without sorting the array." }, ...
TypeScript - Number toString()
This method returns a string representing the specified object. The toString() method parses its first argument, and attempts to return a string representation in the specified radix (base). number.toString( [radix] ) radix − An integer between 2 and 36 specifying the base to use for representing numeric values. Retur...
[ { "code": null, "e": 2239, "s": 2048, "text": "This method returns a string representing the specified object. The toString() method parses its first argument, and attempts to return a string representation in the specified radix (base)." }, { "code": null, "e": 2267, "s": 2239, ...
Difference between std::vector and std::array in C++
The following are the differences between vector and array − Vector is a sequential container to store elements and not index based. Array stores a fixed-size sequential collection of elements of the same type and it is index based. Vector is dynamic in nature so, size increases with insertion of elements. As array is ...
[ { "code": null, "e": 1123, "s": 1062, "text": "The following are the differences between vector and array −" }, { "code": null, "e": 1195, "s": 1123, "text": "Vector is a sequential container to store elements and not index based." }, { "code": null, "e": 1295, "s...
DAX Aggregation - PRODUCTX function
Returns the product of the numbers resulted from an expression evaluated for each row in a table. DAX PRODUCTX function is new in Excel 2016. PRODUCTX (<table>, <expression>) table The table containing the rows for which the expression will be evaluated. expression The expression to be evaluated for each row of the t...
[ { "code": null, "e": 2099, "s": 2001, "text": "Returns the product of the numbers resulted from an expression evaluated for each row in a table." }, { "code": null, "e": 2143, "s": 2099, "text": "DAX PRODUCTX function is new in Excel 2016." }, { "code": null, "e": 217...
C++ Program to Represent Linear Equations in Matrix Form
This is a C++ program to represent Linear Equations in matrix form. Begin 1) Take the no of variables n and the coefficients of each variable as input. 2) Declare a matrix[n][n] and constant[n][1]. 3) Make for loops i = 0 to n-1 and j = 0 to n-1 to take the coefficients of each variable as the elements of t...
[ { "code": null, "e": 1130, "s": 1062, "text": "This is a C++ program to represent Linear Equations in matrix form." }, { "code": null, "e": 1449, "s": 1130, "text": "Begin\n 1) Take the no of variables n and the coefficients of each variable as input.\n 2) Declare a matrix[n]...