title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Check if a given matrix is sparse or not - GeeksforGeeks
25 May, 2021 A matrix is a two-dimensional data object having m rows and n columns, therefore a total of m*n values. If most of the values of a matrix are 0 then we say that the matrix is sparse. Consider a definition of Sparse where a matrix is considered sparse if the number of 0s is more than half of the elements in...
[ { "code": null, "e": 26370, "s": 26342, "text": "\n25 May, 2021" }, { "code": null, "e": 26690, "s": 26370, "text": "A matrix is a two-dimensional data object having m rows and n columns, therefore a total of m*n values. If most of the values of a matrix are 0 then we say that th...
Range LCM Queries - GeeksforGeeks
18 May, 2021 Given an array of integers, evaluate queries of the form LCM(l, r). There might be many queries, hence evaluate the queries efficiently. LCM (l, r) denotes the LCM of array elements that lie between the index l and r (inclusive of both indices) Mathematically, LCM(l, r) = LCM(arr...
[ { "code": null, "e": 26451, "s": 26423, "text": "\n18 May, 2021" }, { "code": null, "e": 26590, "s": 26451, "text": "Given an array of integers, evaluate queries of the form LCM(l, r). There might be many queries, hence evaluate the queries efficiently. " }, { "code": nu...
How Base64 encoding and decoding is done in node.js ? - GeeksforGeeks
25 Jun, 2020 Base64 encoding and decoding can be done in Node.js using the Buffer object. Encoding the original string to base64: The Buffer class in Node.js can be used to convert a string to a series of bytes. This can be done using the Buffer.from() method that accepts the string to be converted and the current enco...
[ { "code": null, "e": 26521, "s": 26493, "text": "\n25 Jun, 2020" }, { "code": null, "e": 26598, "s": 26521, "text": "Base64 encoding and decoding can be done in Node.js using the Buffer object." }, { "code": null, "e": 26890, "s": 26598, "text": "Encoding the ...
How to Import a CSV File into R ? - GeeksforGeeks
23 May, 2021 A CSV file is used to store contents in a tabular-like format, which is organized in the form of rows and columns. The column values in each row are separated by a delimiter string. The CSV files can be loaded into the working space and worked using both in-built methods and external package imports. Meth...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n23 May, 2021" }, { "code": null, "e": 26790, "s": 26487, "text": "A CSV file is used to store contents in a tabular-like format, which is organized in the form of rows and columns. The column values in each row are separated by a...
How to get an element by its href attribute ? - GeeksforGeeks
20 Sep, 2019 The task is to select the <a> element by its href attribute. Few of the techniques are discussed below. Here we are going to use JQuery to solve the problem.Approach 1: Use JQuery selector $(‘a[href=link_to_site]’). Example 1: This example using the approach discussed above. <!DOCTYPE HTML> <html> <h...
[ { "code": null, "e": 26399, "s": 26371, "text": "\n20 Sep, 2019" }, { "code": null, "e": 26568, "s": 26399, "text": "The task is to select the <a> element by its href attribute. Few of the techniques are discussed below. Here we are going to use JQuery to solve the problem.Approa...
How to make a vertical wavy text line using HTML and CSS ? - GeeksforGeeks
09 Sep, 2020 In this article, a wavy animated text is implemented using HTML and CSS. It is one of the simplest CSS effects. For a beginner, it is one of the best examples to learn the concept of CSS pseudo-elements. Approach: The basic idea of getting wavy texts is performed by using the combination of some CSS attrib...
[ { "code": null, "e": 26645, "s": 26617, "text": "\n09 Sep, 2020" }, { "code": null, "e": 26849, "s": 26645, "text": "In this article, a wavy animated text is implemented using HTML and CSS. It is one of the simplest CSS effects. For a beginner, it is one of the best examples to l...
Python program to convert Set into Tuple and Tuple into Set - GeeksforGeeks
26 Nov, 2020 Let’s see how to convert the set into tuple and tuple into the set. For performing the task we are use some methods like tuple(), set(), type(). tuple(): tuple method is used to convert into a tuple. This method accepts other type values as an argument and returns a tuple type value. set(): set method is t...
[ { "code": null, "e": 25423, "s": 25395, "text": "\n26 Nov, 2020" }, { "code": null, "e": 25568, "s": 25423, "text": "Let’s see how to convert the set into tuple and tuple into the set. For performing the task we are use some methods like tuple(), set(), type()." }, { "cod...
Java Program to Find the Volume and Surface Area of Sphere
26 Nov, 2020 A sphere is a geometrical object in 3D space that is the surface of a ball. The sphere is defined mathematically as the set of points that are all at the same distance of radius from a given point in a 3D space. Example: Input: radius = 5 Output: Surface Area ≈ 314.16 Volume ≈ 523.6 Inpu...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Nov, 2020" }, { "code": null, "e": 240, "s": 28, "text": "A sphere is a geometrical object in 3D space that is the surface of a ball. The sphere is defined mathematically as the set of points that are all at the same distance of radi...
LINQ | Element Operator | ElementAt
24 May, 2019 The element operators are used to return a single, or a specific element from the sequence or collection. For example, in a school when we ask, who is the principal? Then there will be only one person that will be the principal of the school. So the number of students is a collection and the principal is t...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 May, 2019" }, { "code": null, "e": 382, "s": 28, "text": "The element operators are used to return a single, or a specific element from the sequence or collection. For example, in a school when we ask, who is the principal? Then ther...
Python – Send email to a list of emails from a spreadsheet
10 May, 2020 Nowadays working with Google forms is quite popular. It is used to mass gather information easily. Email addresses are one of the most common piece of information asked. It is stored in a spreadsheet. In this article we shall see how to send an email to all the email addresses present in a spreadsheet. Pre...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 May, 2020" }, { "code": null, "e": 356, "s": 52, "text": "Nowadays working with Google forms is quite popular. It is used to mass gather information easily. Email addresses are one of the most common piece of information asked. It i...
Data Structures | Linked List | Question 7
28 Jun, 2021 typedef struct node { int value; struct node *next;}Node; Node *move_to_front(Node *head) { Node *p, *q; if ((head == NULL: || (head->next == NULL)) return head; q = NULL; p = head; while (p-> next !=NULL) { q = p; p = p->next; } _______________________________ return head;} (A) q = ...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2021" }, { "code": "typedef struct node { int value; struct node *next;}Node; Node *move_to_front(Node *head) { Node *p, *q; if ((head == NULL: || (head->next == NULL)) return head; q = NULL; p = head; while (p-> next !=NULL) ...
Python | a += b is not always a = a + b
23 Nov, 2021 In python a += b doesn’t always behave the same way as a = a + b, the same operands may give different results under different conditions. But to understand why they show different behaviors you have to deep dive into the working of variables. So first, you need to know what happens behinds the scene. Cre...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Nov, 2021" }, { "code": null, "e": 296, "s": 52, "text": "In python a += b doesn’t always behave the same way as a = a + b, the same operands may give different results under different conditions. But to understand why they show dif...
How to plot Timeseries based charts using Pandas?
30 Jul, 2021 A series of data points collected over the course of a time period, and that are time-indexed is known as Time Series data. These observations are recorded at successive equally spaced points in time. For Example, the ECG Signal, EEG Signal, Stock Market, Weather Data, etc., all are time-indexed and record...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Jul, 2021" }, { "code": null, "e": 476, "s": 54, "text": "A series of data points collected over the course of a time period, and that are time-indexed is known as Time Series data. These observations are recorded at successive equa...
PYGLET – On Mouse Scroll Event
30 Jul, 2021 In this article we will see how we can trigger on mouse scroll event in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI applications like games, multimedia etc. A window is a “heavyweight” object occupying operating system resources. Windows may appear a...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jul, 2021" }, { "code": null, "e": 687, "s": 28, "text": "In this article we will see how we can trigger on mouse scroll event in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI ap...
How to pass JavaScript variables to PHP ?
31 Jul, 2021 JavaScript is the client side and PHP is the server side script language. The way to pass a JavaScript variable to PHP is through a request. Method 1: This example uses form element and GET/POST method to pass JavaScript variables to PHP. The form of contents can be accessed through the GET and POST action...
[ { "code": null, "e": 52, "s": 24, "text": "\n31 Jul, 2021" }, { "code": null, "e": 193, "s": 52, "text": "JavaScript is the client side and PHP is the server side script language. The way to pass a JavaScript variable to PHP is through a request." }, { "code": null, "...
Minimum replacements in a string to make adjacent characters unequal
29 Apr, 2021 Given a lowercase character string str of size N. In one operation any character can be changed into some other character. The task is to find the minimum number of operations such that no two adjacent characters are equal.Examples: Input: Str = “caaab” Output: 1 Explanation: Change the second a to any oth...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Apr, 2021" }, { "code": null, "e": 287, "s": 54, "text": "Given a lowercase character string str of size N. In one operation any character can be changed into some other character. The task is to find the minimum number of operation...
Different Ways to Get List of All Apps Installed in Your Android Phone
17 Dec, 2021 In this article, we are going to show the list of all the installed apps on your Android phone. So here we are going to learn how to implement that feature in three different ways. Note that we are going to implement this project using the Java language. Step 1: Create a New Project To create a new proje...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Dec, 2021" }, { "code": null, "e": 285, "s": 28, "text": "In this article, we are going to show the list of all the installed apps on your Android phone. So here we are going to learn how to implement that feature in three different ...
Python-interface module
26 Mar, 2020 In object-oriented languages like Python, the interface is a collection of method signatures that should be provided by the implementing class. Implementing an interface is a way of writing an organized code and achieve abstraction. The package zope.interface provides an implementation of “object interface...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 Mar, 2020" }, { "code": null, "e": 285, "s": 52, "text": "In object-oriented languages like Python, the interface is a collection of method signatures that should be provided by the implementing class. Implementing an interface is a...
Java Examples - File Size
How to get a files size in bytes ? This example shows how to get a file's size in bytes by using file.exists() and file.length() method of File class. import java.io.File; public class Main { public static long getFileSize(String filename) { File file = new File(filename); if (!file.exists() || !file.is...
[ { "code": null, "e": 2103, "s": 2068, "text": "How to get a files size in bytes ?" }, { "code": null, "e": 2219, "s": 2103, "text": "This example shows how to get a file's size in bytes by using file.exists() and file.length() method of File class." }, { "code": null, ...
Can we have variables and methods in an enum in Java?
Enumeration (enum) in Java is a datatype which stores a set of constant values. You can use enumerations to store fixed values such as days in a week, months in a year etc. You can define an enumeration using the keyword enum followed by the name of the enumeration as − enum Days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY...
[ { "code": null, "e": 1235, "s": 1062, "text": "Enumeration (enum) in Java is a datatype which stores a set of constant values. You can use enumerations to store fixed values such as days in a week, months in a year etc." }, { "code": null, "e": 1333, "s": 1235, "text": "You can d...
Ruby on Rails - Introduction
Before we ride on Rails, let us recapitulate a few points of Ruby, which is the base of Rails. Ruby is the successful combination of − Smalltalk's conceptual elegance, Python's ease of use and learning, and Perl's pragmatism. Ruby is − A high-level programming language. Interpreted like Perl, Python, Tcl/TK. Object-ori...
[ { "code": null, "e": 2198, "s": 2103, "text": "Before we ride on Rails, let us recapitulate a few points of Ruby, which is the base of Rails." }, { "code": null, "e": 2238, "s": 2198, "text": "Ruby is the successful combination of −" }, { "code": null, "e": 2271, ...
Find the size of a list - Python - GeeksforGeeks
17 May, 2020 In Python, a list is a collection data type that can store elements in an ordered manner and can also have duplicate elements. The size of a list means the amount of memory (in bytes) occupied by a list object. In this article, we will learn various ways to get the size of a python list. 1.Using getsizeof(...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n17 May, 2020" }, { "code": null, "e": 24581, "s": 24292, "text": "In Python, a list is a collection data type that can store elements in an ordered manner and can also have duplicate elements. The size of a list means the amount ...
Traversing a map (or unordered_map) in C++ STL
Here we will see the map container and its use in C++. The maps are defined as associative containers that store elements in a hash-mapped fashion. Each element is associated with a key and value. No two mapped values can have identical keys. These are some fundamental methods that are present inside the map container ...
[ { "code": null, "e": 1390, "s": 1062, "text": "Here we will see the map container and its use in C++. The maps are defined as associative containers that store elements in a hash-mapped fashion. Each element is associated with a key and value. No two mapped values can have identical keys. These are ...
Polynomial Regression — Gradient Descent from Scratch | by Mark Garvey | Towards Data Science
Gradient descent is an important algorithm to understand, as it underpins many of the more advanced algorithms used in Machine Learning and Deep Learning. Getting to grips with the inner workings of gradient descent will therefore be of great benefit to anyone who plans on exploring ML algorithms further. The best way ...
[ { "code": null, "e": 479, "s": 172, "text": "Gradient descent is an important algorithm to understand, as it underpins many of the more advanced algorithms used in Machine Learning and Deep Learning. Getting to grips with the inner workings of gradient descent will therefore be of great benefit to a...
Python Program to swap the First and the Last Character of a string - GeeksforGeeks
25 Nov, 2020 Given a String. The task is to swap the first and the last character of the string. Examples: Input: GeeksForGeeks Output: seeksForGeekG Input: Python Output: nythoP Python string is immutable which means we cannot modify it directly. But Python has string slicing which makes it very easier to perform st...
[ { "code": null, "e": 26112, "s": 26084, "text": "\n25 Nov, 2020" }, { "code": null, "e": 26196, "s": 26112, "text": "Given a String. The task is to swap the first and the last character of the string." }, { "code": null, "e": 26206, "s": 26196, "text": "Exampl...
What is class Invariant - GeeksforGeeks
22 Jun, 2021 Overview :An invariant in Object-Oriented programming refers to some set of conditions or assertions that need to hold throughout the life of an object of a class. These assertions need to hold from the time the constructor is called for an object, at the end of each member (mutator) method call to the end...
[ { "code": null, "e": 26003, "s": 25975, "text": "\n22 Jun, 2021" }, { "code": null, "e": 26605, "s": 26003, "text": "Overview :An invariant in Object-Oriented programming refers to some set of conditions or assertions that need to hold throughout the life of an object of a class....
Python | Convert a list of Tuples into Dictionary - GeeksforGeeks
18 May, 2020 Sometimes you might need to convert a tuple to dict object to make it more readable.In this article, we will try to learn how to convert a list of tuples into a dictionary. Here we will find two methods of doing this.Examples: Input : [("akash", 10), ("gaurav", 12), ("anand", 14), ("suraj", 20), ...
[ { "code": null, "e": 26318, "s": 26290, "text": "\n18 May, 2020" }, { "code": null, "e": 26545, "s": 26318, "text": "Sometimes you might need to convert a tuple to dict object to make it more readable.In this article, we will try to learn how to convert a list of tuples into a di...
How does Query.prototype.lean() work in Mongoose ? - GeeksforGeeks
17 Mar, 2021 The Query.prototype.lean() function return the documents from queries with the lean option enabled are plain JavaScript objects, not Mongoose Documents. Syntax: Query.prototype.lean() Parameters: This function has one val parameter of boolean type.Return Value: This function returns Query Object. Mongoos...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n17 Mar, 2021" }, { "code": null, "e": 26420, "s": 26267, "text": "The Query.prototype.lean() function return the documents from queries with the lean option enabled are plain JavaScript objects, not Mongoose Documents." }, { ...
How to remove focus from a Tkinter widget?
To active the focus on a particular widget during the execution of a Tkinter program, we can use focus_set() method. Adding the focus creates a gray line around the widget and makes it visible to the user. There might be some cases when we need to remove the focus from the desired widget. This can be done either by rem...
[ { "code": null, "e": 1268, "s": 1062, "text": "To active the focus on a particular widget during the execution of a Tkinter program, we can use focus_set() method. Adding the focus creates a gray line around the widget and makes it visible to the user." }, { "code": null, "e": 1352, ...
How to Revise Marketing Mix Model under COVID-19 | Towards Data Science
COVID-19 has shocked the world and inevitably transformed how people work, shop and live. It not only sent economies spinning but also significantly impacted on how a wide range of advertisers are doing marketing. Influencer Marketing Hub recently unveiled COVID-19 Marketing Report saying 69% of brands indicated that t...
[ { "code": null, "e": 608, "s": 172, "text": "COVID-19 has shocked the world and inevitably transformed how people work, shop and live. It not only sent economies spinning but also significantly impacted on how a wide range of advertisers are doing marketing. Influencer Marketing Hub recently unveile...
Count and Sum of composite elements in an array in C++
We are given with an array of positive integers and the task is to calculate the count and sum of the composite elements in the given array. From the given set of integers, the numbers that are not prime are called composite numbers except 1 which is neither composite nor prime instead it’s a unit number. So, it is cle...
[ { "code": null, "e": 1203, "s": 1062, "text": "We are given with an array of positive integers and the task is to calculate the count and sum of the composite elements in the given array." }, { "code": null, "e": 1462, "s": 1203, "text": "From the given set of integers, the numbe...
Find smallest permutation of given number - GeeksforGeeks
04 May, 2021 Given a long integer, return the smallest(magnitude) integer permutation of that number.Examples: Input : 5468001 Output : 1004568 Input : 5341 Output : 1345 Recommended: Please solve it on “PRACTICE ” first, before moving on to the solution. Question Source : GE digital Interview Experience | Set ...
[ { "code": null, "e": 25150, "s": 25122, "text": "\n04 May, 2021" }, { "code": null, "e": 25250, "s": 25150, "text": "Given a long integer, return the smallest(magnitude) integer permutation of that number.Examples: " }, { "code": null, "e": 25311, "s": 25250, ...
Recursive program for prime number in C++
We are given an integer as input. The goal is to find whether the input number Num is a prime or non-prime using recursion. To check if a number is prime or not, start traversing from i=2 to i<=Num/2. If any i is fully divisible by Num then the number is non-prime as prime numbers are only divisible by 1 and the number...
[ { "code": null, "e": 1186, "s": 1062, "text": "We are given an integer as input. The goal is to find whether the input number Num is a prime or non-prime using recursion." }, { "code": null, "e": 1391, "s": 1186, "text": "To check if a number is prime or not, start traversing fro...
AI, Cluster Analysis of Categorical Data (Part I) | by Michelangiolo Mazzeschi | Towards Data Science
***The code begins after the Clash Royale introduction: skip, if you are not interested Full code available at my repository. The notebook is called: CRL_Clustering. In this article I will create an AI that, given a dataset of Clash Royale matches, will identify what are the main clusters. All data is categorical, henc...
[ { "code": null, "e": 260, "s": 172, "text": "***The code begins after the Clash Royale introduction: skip, if you are not interested" }, { "code": null, "e": 338, "s": 260, "text": "Full code available at my repository. The notebook is called: CRL_Clustering." }, { "code"...
How to replace innerHTML of a div using jQuery?
To replace innerHTML of a div in jQuery, use the html() or text() method. You can try to run the following code to learn how to replace innerHTML of a div: Live Demo <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function...
[ { "code": null, "e": 1136, "s": 1062, "text": "To replace innerHTML of a div in jQuery, use the html() or text() method." }, { "code": null, "e": 1218, "s": 1136, "text": "You can try to run the following code to learn how to replace innerHTML of a div:" }, { "code": null...
Byte string, Unicode string, Raw string — A Guide to all strings in Python | by Guangyuan(Frank) Li | Towards Data Science
“String” in Python? Sounds like the most basic topics that every Python programmer should have already mastered in their first Python tutorial. However, do you know there are at least four types of strings in primitive Python? Do you know how your strings are actually represented in Numpy or Pandas or any other package...
[ { "code": null, "e": 565, "s": 172, "text": "“String” in Python? Sounds like the most basic topics that every Python programmer should have already mastered in their first Python tutorial. However, do you know there are at least four types of strings in primitive Python? Do you know how your strings...
Java Program to display table with columns in the output using Formatter
To display table with columns as output, use the Formatter class. For working with Formatter class, import the following package − import java.util.Formatter; Consider an array with some elements. This is the array which we will be shown as output in tabular form − double arr[] = { 1.7, 2.5, 3.1, 4.5, 5.7, 6.9, 7.7, 8....
[ { "code": null, "e": 1193, "s": 1062, "text": "To display table with columns as output, use the Formatter class. For working with Formatter class, import the following package −" }, { "code": null, "e": 1221, "s": 1193, "text": "import java.util.Formatter;" }, { "code": n...
Coupling in Java - GeeksforGeeks
05 Feb, 2020 In object oriented design, Coupling refers to the degree of direct knowledge that one element has of another. In other words, how often do changes in class A force related changes in class B.There are two types of coupling: Tight coupling : In general, Tight coupling means the two classes often change toge...
[ { "code": null, "e": 24210, "s": 24182, "text": "\n05 Feb, 2020" }, { "code": null, "e": 24434, "s": 24210, "text": "In object oriented design, Coupling refers to the degree of direct knowledge that one element has of another. In other words, how often do changes in class A force...
Undo and redo features in a Tkinter Text widget
Tkinter Text widget is another input widget similar to the Entry widget which accepts multiline user input in a text field. It contains many inbuilt features and functions which helps to configure the default properties of the text widget. However, to add undo/Redo features in the Tkinter text widget, we can use Boolea...
[ { "code": null, "e": 1452, "s": 1062, "text": "Tkinter Text widget is another input widget similar to the Entry widget which accepts multiline user input in a text field. It contains many inbuilt features and functions which helps to configure the default properties of the text widget. However, to a...
Django - Creating a Project
Now that we have installed Django, let's start using it. In Django, every web app you want to create is called a project; and a project is a sum of applications. An application is a set of code files relying on the MVT pattern. As example let's say we want to build a website, the website is our project and, the forum, ...
[ { "code": null, "e": 2515, "s": 2045, "text": "Now that we have installed Django, let's start using it. In Django, every web app you want to create is called a project; and a project is a sum of applications. An application is a set of code files relying on the MVT pattern. As example let's say we w...
Snake and Ladder Problem
We know about the famous game Snake and Ladder. In this game, some rooms are present on the board, with the room number. Some rooms are connected with a ladder or with snakes. When we get a ladder, we can climb up to some rooms to reach near to the destination without moving sequentially. Similarly, when we get some sn...
[ { "code": null, "e": 1458, "s": 1062, "text": "We know about the famous game Snake and Ladder. In this game, some rooms are present on the board, with the room number. Some rooms are connected with a ladder or with snakes. When we get a ladder, we can climb up to some rooms to reach near to the dest...
expr - Unix, Linux Command
expr - Evaluate an expression expr EXPRESSION expr OPTION expr is a command line Unix utility which evaluates an expression and outputs the corresponding value. expr evaluates integer or string expressions, including pattern matching regular expressions. Most of the challenge posed in writing expressions is preventin...
[ { "code": null, "e": 10607, "s": 10577, "text": "expr - Evaluate an expression" }, { "code": null, "e": 10635, "s": 10607, "text": "expr EXPRESSION\nexpr OPTION" }, { "code": null, "e": 11273, "s": 10635, "text": "expr is a command line Unix utility which eval...
Capitalize the first and last character of each word in a string - GeeksforGeeks
21 May, 2021 Given the string, the task is to capitalise the first and last character of each word in a string.Examples: Input: Geeks for geeks Output: GeekS FoR GeekS Input: Geeksforgeeks is best Output: GeeksforgeekS IS BesT Approach Create a character array of the String Run a loop from the first letter to the ...
[ { "code": null, "e": 24513, "s": 24485, "text": "\n21 May, 2021" }, { "code": null, "e": 24623, "s": 24513, "text": "Given the string, the task is to capitalise the first and last character of each word in a string.Examples: " }, { "code": null, "e": 24730, "s": ...
Nuts and Bolt Problem
A list of different nuts and another list of bolts are given. Our task is to find the correct match of nuts and bolts from the given list, and assign that nut with the Bolt, when it is matched. This problem is solved by the quick-sort technique. By taking the last element of the bolt as a pivot, rearrange the nuts list...
[ { "code": null, "e": 1256, "s": 1062, "text": "A list of different nuts and another list of bolts are given. Our task is to find the correct match of nuts and bolts from the given list, and assign that nut with the Bolt, when it is matched." }, { "code": null, "e": 1622, "s": 1256, ...
Write a program for Linear Search in Python
Linear Search is a searching technique to search some particular value from an array. This is the simplest searching technique. In this searching technique, the value to be searched is compared with all the elements in the array. the value to be searched is compared with all the elements in the array. If the value is f...
[ { "code": null, "e": 1315, "s": 1187, "text": "Linear Search is a searching technique to search some particular value from an array. This is the simplest searching technique." }, { "code": null, "e": 1344, "s": 1315, "text": "In this searching technique," }, { "code": nul...
DNA Cryptography
18 Oct, 2021 Cryptography is the branch of science which deals with the encoding of information for the purpose of hiding messages. It plays a vital role in the infrastructure of communication security. The Pioneering work had been done by Ashish Gehani et al and Amin et al after Leonard Max Adleman had shown the capab...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Oct, 2021" }, { "code": null, "e": 499, "s": 52, "text": "Cryptography is the branch of science which deals with the encoding of information for the purpose of hiding messages. It plays a vital role in the infrastructure of communic...
SciPy - Integrate
When a function cannot be integrated analytically, or is very difficult to integrate analytically, one generally turns to numerical integration methods. SciPy has a number of routines for performing numerical integration. Most of them are found in the same scipy.integrate library. The following table lists some commonl...
[ { "code": null, "e": 2359, "s": 2021, "text": "When a function cannot be integrated analytically, or is very difficult to integrate analytically, one generally turns to numerical integration methods. SciPy has a number of routines for performing numerical integration. Most of them are found in the s...
How to reshape Pandas Series?
01 Oct, 2020 In this article, we will see how to reshaping Pandas Series. So, for reshaping the Pandas Series we are using reshape() method of Pandas Series object. Syntax: Pandas.Series.values.reshape((dimension)) Return: return an ndarray with the values shape if the specified shape matches exactly the current shape,...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Oct, 2020" }, { "code": null, "e": 180, "s": 28, "text": "In this article, we will see how to reshaping Pandas Series. So, for reshaping the Pandas Series we are using reshape() method of Pandas Series object." }, { "code": n...
Semantic Web and RDF
12 Sep, 2019 Semantic Web is an extension to the World Wide Web. The purpose of the semantic web is to provide structure to the web and data in general. It emphasizes on representing a web of data instead of web of documents. It allows computers to intelligently search, combine and process the web content based on the ...
[ { "code": null, "e": 53, "s": 25, "text": "\n12 Sep, 2019" }, { "code": null, "e": 433, "s": 53, "text": "Semantic Web is an extension to the World Wide Web. The purpose of the semantic web is to provide structure to the web and data in general. It emphasizes on representing a we...
How to create multiple dropdown options as a tag in ReactJS?
24 Jan, 2021 Choosing multiple options and creating your own options from the dropdown means allowing the user to choose more than one option from the dropdown and add his own options. Material UI for React has this component available for us and it is very easy to integrate. We can choose multiple options and create m...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jan, 2021" }, { "code": null, "e": 381, "s": 28, "text": "Choosing multiple options and creating your own options from the dropdown means allowing the user to choose more than one option from the dropdown and add his own options. Mat...
How to convert pandas DataFrame into JSON in Python?
21 Apr, 2020 Data Analysis is an extremely important tool in today’s world. A key aspect of Data Analytics is an organized representation of data. There are numerous data structures in computer science to achieve this task. In this article, we talk about two such data structures viz. pandas DataFrames and JSON . Furthe...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Apr, 2020" }, { "code": null, "e": 387, "s": 28, "text": "Data Analysis is an extremely important tool in today’s world. A key aspect of Data Analytics is an organized representation of data. There are numerous data structures in com...
Python | Pandas Series.keys()
12 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.keys() function is an alias for inde...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Feb, 2019" }, { "code": null, "e": 285, "s": 28, "text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based index...
Genetic Algorithm Based Approach for Robotic Controllers | by Anh T. Dang | Towards Data Science
Today, we will solve a real-world problem is to design a robotic controller. There are many techniques that can be used to solve this problem. Some of them include genetic algorithm (GA), particle swarm optimization and neural network (NN). What we need to do is to apply an algorithm to the robotic as a method of desig...
[ { "code": null, "e": 288, "s": 47, "text": "Today, we will solve a real-world problem is to design a robotic controller. There are many techniques that can be used to solve this problem. Some of them include genetic algorithm (GA), particle swarm optimization and neural network (NN)." }, { "...
Find the parent node of maximum product Siblings in given Binary Tree - GeeksforGeeks
10 Dec, 2021 Given a binary tree, the task is to find the node whose children have maximum Sibling product in the given Binary Tree. If there are multiple such nodes, return the node which has the maximum value. Examples: Input: Tree: 4 / \ 5 2 / \ 3 1 / \6 12Output:...
[ { "code": null, "e": 24718, "s": 24690, "text": "\n10 Dec, 2021" }, { "code": null, "e": 24917, "s": 24718, "text": "Given a binary tree, the task is to find the node whose children have maximum Sibling product in the given Binary Tree. If there are multiple such nodes, return th...
Your Guide to Web Scrape Quora Q&As | by Yasser Elsedawy | Towards Data Science
In this tutorial, I will show you how to perform web scraping using Anaconda Jupyter notebook and the BeautifulSoup library. We’ll be scraping Questions and Answers from Quora, and then we will export them to Pandas library dataframe and then to a .CSV file. Let us get straight down to business, however, if you’re look...
[ { "code": null, "e": 297, "s": 172, "text": "In this tutorial, I will show you how to perform web scraping using Anaconda Jupyter notebook and the BeautifulSoup library." }, { "code": null, "e": 431, "s": 297, "text": "We’ll be scraping Questions and Answers from Quora, and then ...
How to quit/ exit from MySQL stored procedure?
We can quit/ exit from MySQL stored procedure with the help of the LEAVE command. The following is the syntax. Leave yourLabelName; The following is an example. Here, we are creating a new procedure. mysql> delimiter // mysql> CREATE PROCEDURE ExitQuitDemo2(IN Var1 VARCHAR(20)) -> proc_Exit:BEGIN -> IF Var1 IS N...
[ { "code": null, "e": 1144, "s": 1062, "text": "We can quit/ exit from MySQL stored procedure with the help of the LEAVE command." }, { "code": null, "e": 1173, "s": 1144, "text": "The following is the syntax." }, { "code": null, "e": 1195, "s": 1173, "text": "...
Object Detection with Voice Feedback — YOLO v3 + gTTS | by Jason Yip | Towards Data Science
Final exams are finally over!!! I was fascinated by the idea of object detection in Computer Vision and wanted to start a project on it. I realized that we could probably help the blind “see” better using Image-to-Text and Text-to-Voice, without any complex hardware. Having a complete understanding of every single piec...
[ { "code": null, "e": 439, "s": 171, "text": "Final exams are finally over!!! I was fascinated by the idea of object detection in Computer Vision and wanted to start a project on it. I realized that we could probably help the blind “see” better using Image-to-Text and Text-to-Voice, without any compl...
Java Program to sort String Stream with reversed Comparator
Let us first create a String List: List<String> list = Arrays.asList("Tom", "Jack", "Ryan", "Kevin", "Loki", "Thor"); Now compare each element for reverse: Comparator<String> comp = (aName, bName) -> aName.compareTo(bName); Now, perform sort: list.stream().sorted(comp.reversed()) The following is an example to sort Str...
[ { "code": null, "e": 1097, "s": 1062, "text": "Let us first create a String List:" }, { "code": null, "e": 1180, "s": 1097, "text": "List<String> list = Arrays.asList(\"Tom\", \"Jack\", \"Ryan\", \"Kevin\", \"Loki\", \"Thor\");" }, { "code": null, "e": 1218, "s": ...
How can we implement a Custom HashSet in Java?
A HashSet implements Set interface which does not allow duplicate values. A HashSet is not synchronized and is not thread-safe. When we can add any duplicate element to a HashSet, the add() method returns false and does not allow to add a duplicate element to HashSet. Syntax public class HashSet<E> extends AbstractSet<...
[ { "code": null, "e": 1331, "s": 1062, "text": "A HashSet implements Set interface which does not allow duplicate values. A HashSet is not synchronized and is not thread-safe. When we can add any duplicate element to a HashSet, the add() method returns false and does not allow to add a duplicate elem...
BigInteger shiftRight() Method in Java - GeeksforGeeks
04 Dec, 2018 prerequisite : BigInteger Basics The java.math.BigInteger.shiftRight(int n) method returns a BigInteger whose value is (this >> n). The shift distance, n, may be negative, in which case this method performs a left shift. The shiftRight() method will move each digit in a number’s binary representation right...
[ { "code": null, "e": 24456, "s": 24428, "text": "\n04 Dec, 2018" }, { "code": null, "e": 24489, "s": 24456, "text": "prerequisite : BigInteger Basics" }, { "code": null, "e": 24893, "s": 24489, "text": "The java.math.BigInteger.shiftRight(int n) method returns...
How to create Date Picker in ReactJS? - GeeksforGeeks
20 Jan, 2021 Date pickers provide a simple way to select a single value from a pre-determined set. Material UI for React has this component available for us and it is very easy to integrate. We can create a Date Picker in ReactJS using the following approach: Creating React Application And Installing Module: Step 1: Cr...
[ { "code": null, "e": 24921, "s": 24893, "text": "\n20 Jan, 2021" }, { "code": null, "e": 25168, "s": 24921, "text": "Date pickers provide a simple way to select a single value from a pre-determined set. Material UI for React has this component available for us and it is very easy...
VBA - DateAdd Function
A Function, which returns a date to which a specified time interval has been added. DateAdd(interval,number,date) Interval − A required parameter. It can take the following values. d - day of the year m - month of the year y - year of the year yyyy - year w - weekday ww - week q - quarter h - hour m - minute s - sec...
[ { "code": null, "e": 2019, "s": 1935, "text": "A Function, which returns a date to which a specified time interval has been added." }, { "code": null, "e": 2051, "s": 2019, "text": "DateAdd(interval,number,date) \n" }, { "code": null, "e": 2261, "s": 2051, "te...
What are associative Arrays in JavaScript?
Associative arrays are basically objects in JavaScript where indexes are replaced by user defined keys. They do not have a length property like normal array and cannot be traversed using normal for loop. Following is the code for associative arrays in JavaScript − Live Demo <!DOCTYPE html> <html lang="en" > <head> <me...
[ { "code": null, "e": 1266, "s": 1062, "text": "Associative arrays are basically objects in JavaScript where indexes are replaced by user defined keys. They do not have a length property like normal array and cannot be traversed using normal for loop." }, { "code": null, "e": 1327, "s...
JSF - Edit Data of a DataTable
In this section, we'll showcase the adding editing capability to a row in a dataTable. Let us create a test JSF application to test the above functionality. <?xml version = "1.0" encoding = "UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd...
[ { "code": null, "e": 2039, "s": 1952, "text": "In this section, we'll showcase the adding editing capability to a row in a dataTable." }, { "code": null, "e": 2109, "s": 2039, "text": "Let us create a test JSF application to test the above functionality." }, { "code": nul...
How to make a redirect in PHP? - GeeksforGeeks
11 Oct, 2021 Redirection from one page to another in PHP is commonly achieved using the following two ways:Using Header Function in PHP: The header() function is an inbuilt function in PHP which is used to send the raw HTTP (Hyper Text Transfer Protocol) header to the client. Syntax: header( $header, $replace, $http_r...
[ { "code": null, "e": 24345, "s": 24317, "text": "\n11 Oct, 2021" }, { "code": null, "e": 24618, "s": 24345, "text": "Redirection from one page to another in PHP is commonly achieved using the following two ways:Using Header Function in PHP: The header() function is an inbuilt fun...
Constructor Overloading In Java programming
Similar to method overloading, constructor loading is the creation and usage of constructors with diffrent type of arguments. We can use this operator to refer to constructors.See the example below. Live Demo class A { public int a; public A() { this(-1); } public A(int a) { this.a = a; } ...
[ { "code": null, "e": 1261, "s": 1062, "text": "Similar to method overloading, constructor loading is the creation and usage of constructors with diffrent type of arguments. We can use this operator to refer to constructors.See the example below." }, { "code": null, "e": 1272, "s": 12...
How to create a subset based on levels of a character column in R?
In R programming, mostly the columns with string values can be either represented by character data type or factor data type. For example, if we have a column Group with four unique values as A, B, C, and D then it can be of character or factor with four levels. If we want to take the subset of these columns then subse...
[ { "code": null, "e": 1435, "s": 1062, "text": "In R programming, mostly the columns with string values can be either represented by character data type or factor data type. For example, if we have a column Group with four unique values as A, B, C, and D then it can be of character or factor with fou...
Find all matrix elements which are minimum in their row and maximum in their column - GeeksforGeeks
08 Jun, 2021 Given a matrix mat[][] of size M * N, the task is to find all matrix elements which are minimum in their respective row and maximum in their respective column. If no such element is present, print -1. Examples: Input: mat[][] = {{1, 10, 4}, {9, 3, 8}, {15, 16, 17}}Output: 15Explanation:15 is the only eleme...
[ { "code": null, "e": 25638, "s": 25610, "text": "\n08 Jun, 2021" }, { "code": null, "e": 25839, "s": 25638, "text": "Given a matrix mat[][] of size M * N, the task is to find all matrix elements which are minimum in their respective row and maximum in their respective column. If ...
This Python Library Automates Pandas and Helps You Replace Excel | by Frank Andrade | Towards Data Science
Pandas is the best tool to do data analysis in Python and it has many advantages over tools like Microsoft Excel, but the transition between Excel to Python is challenging for those with little coding experience or that are new to Pandas. Fortunately, that’s no longer the case. A few weeks ago I came across a Python li...
[ { "code": null, "e": 411, "s": 172, "text": "Pandas is the best tool to do data analysis in Python and it has many advantages over tools like Microsoft Excel, but the transition between Excel to Python is challenging for those with little coding experience or that are new to Pandas." }, { "c...
C library function - clearerr()
The C library function void clearerr(FILE *stream) clears the end-of-file and error indicators for the given stream. Following is the declaration for clearerr() function. void clearerr(FILE *stream) stream − This is the pointer to a FILE object that identifies the stream. stream − This is the pointer to a FILE object t...
[ { "code": null, "e": 2124, "s": 2007, "text": "The C library function void clearerr(FILE *stream) clears the end-of-file and error indicators for the given stream." }, { "code": null, "e": 2178, "s": 2124, "text": "Following is the declaration for clearerr() function." }, { ...
How to Create More Efficient Deep Learning Models | by Tudor Surdoiu | Towards Data Science
In this article, I am going to present and discuss several important approaches and techniques that can help improve the efficiency of a deep learning model on different levels. These types of optimizations are becoming even more important now as the new improvements in deep learning models also bring an increase in th...
[ { "code": null, "e": 584, "s": 171, "text": "In this article, I am going to present and discuss several important approaches and techniques that can help improve the efficiency of a deep learning model on different levels. These types of optimizations are becoming even more important now as the new ...
p5.js | Constants | HALF_PI - GeeksforGeeks
12 Apr, 2019 The HALF_PI is a mathematical constant and its value is 1.57079632679489661923. The HALF_PI is the half ratio of the circumference of a circle to its diameter. Syntax: HALF_PI Below program illustrates the usage of HALF_PI in p5.js: Example: function setup() { // Create Canvas of size 300*200 creat...
[ { "code": null, "e": 43301, "s": 43273, "text": "\n12 Apr, 2019" }, { "code": null, "e": 43461, "s": 43301, "text": "The HALF_PI is a mathematical constant and its value is 1.57079632679489661923. The HALF_PI is the half ratio of the circumference of a circle to its diameter." ...
JavaScript while Loop
Loops can execute a block of code as long as a specified condition is true. The while loop loops through a block of code as long as a specified condition is true. In the following example, the code in the loop will run, over and over again, as long as a variable (i) is less than 10: If you forget to increase the varia...
[ { "code": null, "e": 76, "s": 0, "text": "Loops can execute a block of code\nas long as a specified condition is true." }, { "code": null, "e": 163, "s": 76, "text": "The while loop loops through a block of code as long as a specified condition is true." }, { "code": null...
Impala - Distinct Operator
The distinct operator in Impala is used to get the unique values by removing duplicates. Following is the syntax of the distinct operator. select distinct columns... from table_name; Assume that we have a table named customers in Impala and its contents are as follows − [quickstart.cloudera:21000] > select distinct id...
[ { "code": null, "e": 2374, "s": 2285, "text": "The distinct operator in Impala is used to get the unique values by removing duplicates." }, { "code": null, "e": 2424, "s": 2374, "text": "Following is the syntax of the distinct operator." }, { "code": null, "e": 2469, ...
Cl0neMast3r - Cloning Tool in Kali Linux - GeeksforGeeks
05 Aug, 2021 Cl0neMast3r is a Python script that was coded to add, update, delete tools easier. It allows the user to choose tools from GitHub and install them on their system with the help of just two-three clicks. Also, one can ensure that he has the latest version of his favorite tool. Python3 Requests BeautifulSoup...
[ { "code": null, "e": 24015, "s": 23987, "text": "\n05 Aug, 2021" }, { "code": null, "e": 24292, "s": 24015, "text": "Cl0neMast3r is a Python script that was coded to add, update, delete tools easier. It allows the user to choose tools from GitHub and install them on their system ...
CNN - Image data pre-processing with generators - GeeksforGeeks
16 Jul, 2020 The article aims to learn how to pre-processing the input image data to convert it into meaningful floating-point tensors for feeding into Convolutional Neural Networks. Just for the knowledge tensors are used to store data, they can be assumed as multidimensional arrays. A tensor representing a 64 X 64 im...
[ { "code": null, "e": 23978, "s": 23950, "text": "\n16 Jul, 2020" }, { "code": null, "e": 24445, "s": 23978, "text": "The article aims to learn how to pre-processing the input image data to convert it into meaningful floating-point tensors for feeding into Convolutional Neural Net...
How to remove all child nodes from a parent in jQuery?
To remove all child nodes from a parent in jQuery, use the empty() method. The jQuery empty() method removes all child nodes of the set of matched elements from the DOM. Live Demo <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document)...
[ { "code": null, "e": 1137, "s": 1062, "text": "To remove all child nodes from a parent in jQuery, use the empty() method." }, { "code": null, "e": 1232, "s": 1137, "text": "The jQuery empty() method removes all child nodes of the set of matched elements from the DOM." }, { ...
Difference Between String and StringBuffer Class in Java
In this post, we will understand the difference between String and StringBuffer class in Java. It is an immutable class. It is an immutable class. This means changes can’t be made to elements of the class. This means changes can’t be made to elements of the class. It is slow. It is slow. It consumes less memory when st...
[ { "code": null, "e": 1157, "s": 1062, "text": "In this post, we will understand the difference between String and StringBuffer class in Java." }, { "code": null, "e": 1183, "s": 1157, "text": "It is an immutable class." }, { "code": null, "e": 1209, "s": 1183, ...
What is a Global Object in JavaScript?
Objects in JavaScript are different from the Global Object. Using the new operator, you cannot create global objects. It comes into existence when the scripting engine is initialized. After it is initialized, the functions and constants are available for use. A global object allows you to do the following − It gives ac...
[ { "code": null, "e": 1322, "s": 1062, "text": "Objects in JavaScript are different from the Global Object. Using the new operator, you cannot create global objects. It comes into existence when the scripting engine is initialized. After it is initialized, the functions and constants are available fo...
HTML DOM createElement() method
The HTML DOM createElement() method is used for creating an HTML element dynamically using JavaScript. It takes the element name as the parameter and creates that element node. You need to use the appendChild() method to have the newly created element as part of DOM . Following is the syntax for createElement() method ...
[ { "code": null, "e": 1331, "s": 1062, "text": "The HTML DOM createElement() method is used for creating an HTML element dynamically using JavaScript. It takes the element name as the parameter and creates that element node. You need to use the appendChild() method to have the newly created element a...
How to read the pixel value from the multichannel image in OpenCV using C++?
We have declared three variables named-'blue_Channel','green_channel' and 'red_channel'. The goals of these variables is to save the pixel values. We have used these variables inside the 'for loops'. Then we declared a matrix named 'color_Image_Matrix'. The syntax of this method is: blue_Channel = color_image_Matrix.at...
[ { "code": null, "e": 1316, "s": 1062, "text": "We have declared three variables named-'blue_Channel','green_channel' and 'red_channel'. The goals of these variables is to save the pixel values. We have used these variables inside the 'for loops'. Then we declared a matrix named 'color_Image_Matrix'....
C library function - fmod()
The C library function double fmod(double x, double y) returns the remainder of x divided by y. Following is the declaration for fmod() function. double fmod(double x, double y) x − This is the floating point value with the division numerator i.e. x. x − This is the floating point value with the division numerator i.e....
[ { "code": null, "e": 2103, "s": 2007, "text": "The C library function double fmod(double x, double y) returns the remainder of x divided by y." }, { "code": null, "e": 2153, "s": 2103, "text": "Following is the declaration for fmod() function." }, { "code": null, "e":...
Sum of rows based on column value in R dataframe - GeeksforGeeks
01 Apr, 2021 In this article, we will be discussing how we can sum up row values based on column value in a data frame in R Programming Language. Suppose you have a data frame like this: fruits shop_1 shop_2 1. Apple 1 13 2. Mango 9 5 3. Strawberry 2 14 4. Apple 10 6 5. Apple 3 15 6. Strawberry 11 7 7. Mango 4 16 8. ...
[ { "code": null, "e": 25162, "s": 25134, "text": "\n01 Apr, 2021" }, { "code": null, "e": 25336, "s": 25162, "text": "In this article, we will be discussing how we can sum up row values based on column value in a data frame in R Programming Language. Suppose you have a data frame ...
Java program to calculate mean of given numbers
Mean is an average value of given set of numbers. It is calculated similarly to that of the average value. Adding all given number together and then dividing them by the total number of values produces mean. For Example Mean of 3, 5, 2, 7, 3 is (3 + 5 + 2 + 7 + 3) / 5 = 4 Take an integer set A of n values. Add all val...
[ { "code": null, "e": 1270, "s": 1062, "text": "Mean is an average value of given set of numbers. It is calculated similarly to that of the average value. Adding all given number together and then dividing them by the total number of values produces mean." }, { "code": null, "e": 1283, ...
How to call private method from another class in Java with help of Reflection API? - GeeksforGeeks
17 Jun, 2019 We can call the private method of a class from another class in Java (which are defined using the private access modifier in Java). We can do this by changing the runtime behavior of the class by using some predefined methods of Java. For accessing private method of different class we will use Reflection A...
[ { "code": null, "e": 26429, "s": 26401, "text": "\n17 Jun, 2019" }, { "code": null, "e": 26561, "s": 26429, "text": "We can call the private method of a class from another class in Java (which are defined using the private access modifier in Java)." }, { "code": null, ...
A Practical Guide to ARIMA Models using PyCaret — Part 2 | by Nikhil Gupta | Towards Data Science
In the previous article, we saw a brief overview of the ARIMA model and its various hyperparameters. We started with a very simple ARIMA model, one that does not exhibit and temporal dependence. This article will look at the “trend” component of the ARIMA model and see how this is modeled and what it represents. The pr...
[ { "code": null, "e": 361, "s": 47, "text": "In the previous article, we saw a brief overview of the ARIMA model and its various hyperparameters. We started with a very simple ARIMA model, one that does not exhibit and temporal dependence. This article will look at the “trend” component of the ARIMA ...
C++ program to Reverse a Sentence Using Recursion
A string is a one dimensional character array that is terminated by a null character. The reverse of a string is the same string in opposite order. For example. Original String: Apple is red Reversed String: der si elppA A program that reverses a sentence in the form of a string using recursion is given as follows. Li...
[ { "code": null, "e": 1223, "s": 1062, "text": "A string is a one dimensional character array that is terminated by a null character. The reverse of a string is the same string in opposite order. For example." }, { "code": null, "e": 1283, "s": 1223, "text": "Original String: Appl...
How to dynamically create new elements in JavaScript ? - GeeksforGeeks
05 Jun, 2020 New elements can be dynamically created in JavaScript with the help of createElement() method. The attributes of the created element can be set using the setAttribute() method. The examples given below would demonstrate this approach. Example 1: In this example, a newly created element is added as a child ...
[ { "code": null, "e": 26081, "s": 26053, "text": "\n05 Jun, 2020" }, { "code": null, "e": 26316, "s": 26081, "text": "New elements can be dynamically created in JavaScript with the help of createElement() method. The attributes of the created element can be set using the setAttrib...
Calling a method using null in Java - GeeksforGeeks
29 Oct, 2017 Prerequisite: null in Java, Static in Java Can you predict the output of the following program??Before answering, please observe the fact that in given code, fun() is a static member that belongs to the class and not to any instance. // Java program to illustrate calling// static method using Nullpublic cl...
[ { "code": null, "e": 23892, "s": 23864, "text": "\n29 Oct, 2017" }, { "code": null, "e": 23935, "s": 23892, "text": "Prerequisite: null in Java, Static in Java" }, { "code": null, "e": 24126, "s": 23935, "text": "Can you predict the output of the following pro...
Sentence Similarity With BERT | Towards Data Science
All we ever seem to talk about nowadays are BERT this, BERT that. I want to write about something else, but BERT is just too good — so this article will be about BERT and sequence similarity! A big part of NLP relies on similarity in highly-dimensional spaces. Typically an NLP solution will take some text, process it t...
[ { "code": null, "e": 363, "s": 171, "text": "All we ever seem to talk about nowadays are BERT this, BERT that. I want to write about something else, but BERT is just too good — so this article will be about BERT and sequence similarity!" }, { "code": null, "e": 582, "s": 363, "te...
Find common elements in list of lists in Python
It is possible to have a list whose inner elements are also lists. In such cases we may come across a need when we have to find out the common elements among these inner lists. In this article we will find out the approaches to achieve this. Intersection is a simple mathematical concept of finding the common elements b...
[ { "code": null, "e": 1304, "s": 1062, "text": "It is possible to have a list whose inner elements are also lists. In such cases we may come across a need when we have to find out the common elements among these inner lists. In this article we will find out the approaches to achieve this." }, { ...
Exploratory Data Analysis — MTA Turnstile Traffic Analysis for Street Engagement | by Tan Pengshi Alvin | Towards Data Science
In the Project 1 of Metis Data Science Bootcamp (Singapore Batch 5), we are tasked on exploratory data analysis (EDA) of MTA turnstile data to advise a fictitious non-profit organization, WomenTechWomenYes (WTWY) on the optimal placement of street teams (at entrances to NYC subway stations) for social engagements. WTWY...
[ { "code": null, "e": 779, "s": 171, "text": "In the Project 1 of Metis Data Science Bootcamp (Singapore Batch 5), we are tasked on exploratory data analysis (EDA) of MTA turnstile data to advise a fictitious non-profit organization, WomenTechWomenYes (WTWY) on the optimal placement of street teams (...
Minimum splits in a binary string such that every substring is a power of 4 or 6. - GeeksforGeeks
23 Apr, 2021 Given a string S composed of 0 and 1. Find the minimum splits such that the substring is a binary representation of the power of 4 or 6 with no leading zeros. Print -1 if no such partitioning is possible. Examples: Input: 100110110 Output: 3 The string can be split into a minimum of three substrings 100...
[ { "code": null, "e": 24299, "s": 24271, "text": "\n23 Apr, 2021" }, { "code": null, "e": 24516, "s": 24299, "text": "Given a string S composed of 0 and 1. Find the minimum splits such that the substring is a binary representation of the power of 4 or 6 with no leading zeros. Prin...
Mastering Query Plans in Spark 3.0 | by David Vrba | Towards Data Science
In Spark SQL the query plan is the entry point for understanding the details about the query execution. It carries lots of useful information and provides insights about how the query will be executed. This is very important especially in heavy workloads or whenever the execution takes to long and becomes costly. Based...
[ { "code": null, "e": 640, "s": 171, "text": "In Spark SQL the query plan is the entry point for understanding the details about the query execution. It carries lots of useful information and provides insights about how the query will be executed. This is very important especially in heavy workloads ...
SORT command in Linux/Unix with examples - GeeksforGeeks
11 Feb, 2022 SORT command is used to sort a file, arranging the records in a particular order. By default, the sort command sorts file assuming the contents are ASCII. Using options in the sort command can also be used to sort numerically. SORT command sorts the contents of a text file, line by line. sort is a standa...
[ { "code": null, "e": 23641, "s": 23610, "text": " \n11 Feb, 2022\n" }, { "code": null, "e": 23869, "s": 23641, "text": "SORT command is used to sort a file, arranging the records in a particular order. By default, the sort command sorts file assuming the contents are ASCII. Using...
LinkedList in Java - GeeksforGeeks
08 Apr, 2022 Linked List is a part of the Collection framework present in java.util package. This class is an implementation of the LinkedList data structure which is a linear data structure where the elements are not stored in contiguous locations and every element is a separate object with a data part and address par...
[ { "code": null, "e": 28637, "s": 28609, "text": "\n08 Apr, 2022" }, { "code": null, "e": 29307, "s": 28637, "text": "Linked List is a part of the Collection framework present in java.util package. This class is an implementation of the LinkedList data structure which is a linear ...
C++ List Library - list() Function
The C++ fill constructor std::list::list() constructs a new list with n elements and assign zero value to each element of list. Following is the declaration for std::list::list() constructor form std::list header. explicit list (size_type n); n − Number of elements to be inserted into container. This member function n...
[ { "code": null, "e": 2731, "s": 2603, "text": "The C++ fill constructor std::list::list() constructs a new list with n elements and assign zero value to each element of list." }, { "code": null, "e": 2817, "s": 2731, "text": "Following is the declaration for std::list::list() con...
How to change the DPI of a Pandas Dataframe Plot in Matplotlib?
To change the DPI of a Pandas DataFrame plot, we can use rcParams to set the dot per inch. Set the figure size and adjust the padding between and around the subplots. Set the DPI values in .rcParams["figure.dpi"] = 120 Create a Pandas dataframe to make a plot. Plot the dataframe. To display the figure, use show() metho...
[ { "code": null, "e": 1153, "s": 1062, "text": "To change the DPI of a Pandas DataFrame plot, we can use rcParams to set the dot per inch." }, { "code": null, "e": 1229, "s": 1153, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "...
Logstash - Internal Architecture
In this chapter, we will discuss regarding the internal architecture and the different components of Logstash. Logstash processes logs from different servers and data sources and it behaves as the shipper. The shippers are used to collect the logs and these are installed in every input source. Brokers like Redis, Kafka...
[ { "code": null, "e": 2166, "s": 2055, "text": "In this chapter, we will discuss regarding the internal architecture and the different components of Logstash." }, { "code": null, "e": 2492, "s": 2166, "text": "Logstash processes logs from different servers and data sources and it ...
How to convert time seconds to h:m:s format in Python?
If you have a function that returns information in seconds, but you need that information in hours:minutes:seconds format, you can use the divmod() function, which does only a single division to produce both the quotient and the remainder, you can have the result very quickly with only two mathematical operations: seco...
[ { "code": null, "e": 1378, "s": 1062, "text": "If you have a function that returns information in seconds, but you need that information in hours:minutes:seconds format, you can use the divmod() function, which does only a single division to produce both the quotient and the remainder, you can have ...