title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
What is the class "class" in Java? | The Java.lang.Class class instance represent classes and interfaces in a running Java application. It has no public constructor.
Following is the example demonstrates the usage of the class Class.
The java.lang.Class.getCanonicalName() method returns the canonical name of the underlying class as defined by the Java Lan... | [
{
"code": null,
"e": 1191,
"s": 1062,
"text": "The Java.lang.Class class instance represent classes and interfaces in a running Java application. It has no public constructor."
},
{
"code": null,
"e": 1259,
"s": 1191,
"text": "Following is the example demonstrates the usage of th... |
How to open a file in binary mode with Python? | "Binary" files are any files where the format isn't made up of readable characters. Binary files can range from image files like JPEGs or GIFs, audio files like MP3s or binary document formats like Word or PDF. In Python, files are opened in text mode by default. To open files in binary mode, when specifying a mode, ad... | [
{
"code": null,
"e": 1395,
"s": 1062,
"text": "\"Binary\" files are any files where the format isn't made up of readable characters. Binary files can range from image files like JPEGs or GIFs, audio files like MP3s or binary document formats like Word or PDF. In Python, files are opened in text mode... |
strcpy() in C/C++ | The function strcpy() is a standard library function. It is used to copy one string to another. In C language,it is declared in “string.h” header file while in C++ language, it is declared in cstring header file. It returns the pointer to the destination.
Here is the syntax of strcpy() in C language,
char* strcpy(char*... | [
{
"code": null,
"e": 1318,
"s": 1062,
"text": "The function strcpy() is a standard library function. It is used to copy one string to another. In C language,it is declared in “string.h” header file while in C++ language, it is declared in cstring header file. It returns the pointer to the destinatio... |
strrchr() function in C/C++ - GeeksforGeeks | 27 Aug, 2018
The strrchr() function in C/C++ locates the last occurrence of a character in a string. It returns a pointer to the last occurrence in the string. The terminating null character is considered part of the C string. Therefore, it can also be located to retrieve a pointer to the end of a string. It is defined... | [
{
"code": null,
"e": 24258,
"s": 24230,
"text": "\n27 Aug, 2018"
},
{
"code": null,
"e": 24598,
"s": 24258,
"text": "The strrchr() function in C/C++ locates the last occurrence of a character in a string. It returns a pointer to the last occurrence in the string. The terminating ... |
Creating alias in a MongoDB query? | You can use aggregate framework to create an alias. Let us first create a collection with documents −
> db.creatingAliasDemo.insertOne({_id:101,"Name":"John Doe"});
{ "acknowledged" : true, "insertedId" : 101 }
> db.creatingAliasDemo.insertOne({_id:102,"Name":"David Miller"});
{ "acknowledged" : true, "insertedId" : 10... | [
{
"code": null,
"e": 1164,
"s": 1062,
"text": "You can use aggregate framework to create an alias. Let us first create a collection with documents −"
},
{
"code": null,
"e": 1499,
"s": 1164,
"text": "> db.creatingAliasDemo.insertOne({_id:101,\"Name\":\"John Doe\"});\n{ \"acknowle... |
How to Delete Row(s) in R DataFrame ? - GeeksforGeeks | 09 May, 2021
In this article, we will see how row(s) can be deleted from a Dataframe in R Programming Language.
For this, the index of the row to be deleted is passed with a minus sign.
Syntax:
df[-(index), ]
Example 1 :
R
# creating a data frame with# some data .df=data.frame(id=c(1,2,3), name=c("karthik... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n09 May, 2021"
},
{
"code": null,
"e": 24950,
"s": 24851,
"text": "In this article, we will see how row(s) can be deleted from a Dataframe in R Programming Language."
},
{
"code": null,
"e": 25024,
"s": 24950,
... |
Flask â Application | In order to test Flask installation, type the following code in the editor as Hello.py
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World’
if __name__ == '__main__':
app.run()
Importing flask module in the project is mandatory. An object of Flask class is our WS... | [
{
"code": null,
"e": 2120,
"s": 2033,
"text": "In order to test Flask installation, type the following code in the editor as Hello.py"
},
{
"code": null,
"e": 2267,
"s": 2120,
"text": "from flask import Flask\napp = Flask(__name__)\n\n@app.route('/')\ndef hello_world():\n retur... |
Effective community detection with Markov Clustering | by Francesco Gadaleta | Towards Data Science | This post first appeared on amethix.com
“If intelligence is a cake, the bulk of the cake is unsupervised learning, the icing on the cake is supervised learning, and the cherry on the cake is reinforcement learning”.
This famous quote from Facebook AI Chief Yann LeCun highlights how humans rely on unsupervised learning.... | [
{
"code": null,
"e": 212,
"s": 172,
"text": "This post first appeared on amethix.com"
},
{
"code": null,
"e": 388,
"s": 212,
"text": "“If intelligence is a cake, the bulk of the cake is unsupervised learning, the icing on the cake is supervised learning, and the cherry on the cak... |
Removing property from a JSON object in JavaScript | Let’s say, we create an object as follows −
const myObject = {
"ircEvent": "PRIVMSG",
"method": "newURI",
"regex": "^http://.*"
};
We are required to illustrate the best way to remove the property regex to end up with new
myObject as follows −
const myObject = {
"ircEvent": "PRIVMSG",
"method": "newURI"
... | [
{
"code": null,
"e": 1106,
"s": 1062,
"text": "Let’s say, we create an object as follows −"
},
{
"code": null,
"e": 1202,
"s": 1106,
"text": "const myObject = {\n \"ircEvent\": \"PRIVMSG\",\n \"method\": \"newURI\",\n \"regex\": \"^http://.*\"\n};"
},
{
"code": null... |
Normalization, Standardization and Normal Distribution | by Gustavo Santos | Towards Data Science | I will start this post with a statement: normalization and standardization will not change the distribution of your data. In other words, if your variable is not normally distributed, it won’t be turn into one with the normalize method.
normalize() or StandardScaler() from sklearn won’t change the shape of your data.
S... | [
{
"code": null,
"e": 408,
"s": 171,
"text": "I will start this post with a statement: normalization and standardization will not change the distribution of your data. In other words, if your variable is not normally distributed, it won’t be turn into one with the normalize method."
},
{
"cod... |
Rotate xtick labels in Seaborn boxplot using Matplotlib | To rotate xtick labels in Seaborn boxplot, we can take the following steps −
Create data points for xticks.
Create data points for xticks.
Draw a boxplot using boxplot() method that returns the axis.
Draw a boxplot using boxplot() method that returns the axis.
Now, set the xticks using set_xticks() method, pass xticks.... | [
{
"code": null,
"e": 1139,
"s": 1062,
"text": "To rotate xtick labels in Seaborn boxplot, we can take the following steps −"
},
{
"code": null,
"e": 1170,
"s": 1139,
"text": "Create data points for xticks."
},
{
"code": null,
"e": 1201,
"s": 1170,
"text": "Cre... |
Logistic Regression Model Tuning with scikit-learn — Part 1 | by Finn Qiao | Towards Data Science | Classifiers are a core component of machine learning models and can be applied widely across a variety of disciplines and problem statements.
With all the packages available out there, running a logistic regression in Python is as easy as running a few lines of code and getting the accuracy of predictions on a test set... | [
{
"code": null,
"e": 313,
"s": 171,
"text": "Classifiers are a core component of machine learning models and can be applied widely across a variety of disciplines and problem statements."
},
{
"code": null,
"e": 493,
"s": 313,
"text": "With all the packages available out there, r... |
Program to extract frames using OpenCV in Python? | OpenCV(Open source computer vision) is an open source programming library basically developed for machine learning and computer vision. It provides common infrastructure to work on computer vision applications and to fasten the use of machine learning in commercial products.
With more than 2.5 thousand optimized algori... | [
{
"code": null,
"e": 1338,
"s": 1062,
"text": "OpenCV(Open source computer vision) is an open source programming library basically developed for machine learning and computer vision. It provides common infrastructure to work on computer vision applications and to fasten the use of machine learning i... |
3D Scatter Plot using graph_objects Class in Plotly-Python - GeeksforGeeks | 10 Jul, 2020
Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library.
If a ... | [
{
"code": null,
"e": 24726,
"s": 24698,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 25028,
"s": 24726,
"text": "Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, sp... |
Express.js – app.post() Method | The app.post() method routes all the HTTP POST requests to the specified path with the specified callback functions.
app.path(path, callback, [callback])
path − This is the path for which the middleware function is invoked. A path can be a string, path pattern, a regular expression or an array of all these.
callback − ... | [
{
"code": null,
"e": 1179,
"s": 1062,
"text": "The app.post() method routes all the HTTP POST requests to the specified path with the specified callback functions."
},
{
"code": null,
"e": 1216,
"s": 1179,
"text": "app.path(path, callback, [callback])"
},
{
"code": null,
... |
Lodash _.prototype.toJSON() Method - GeeksforGeeks | 18 Sep, 2020
The _.prototype.toJSON() method of Sequence in lodash is used to execute the chain sequence in order to solve the unwrapped value.
Syntax:
_.prototype.toJSON()
Parameters: This method doesn’t accept any parameter.
Return Value: This method returns the resolved unwrapped value.
Below examples illustrate th... | [
{
"code": null,
"e": 37043,
"s": 37015,
"text": "\n18 Sep, 2020"
},
{
"code": null,
"e": 37174,
"s": 37043,
"text": "The _.prototype.toJSON() method of Sequence in lodash is used to execute the chain sequence in order to solve the unwrapped value."
},
{
"code": null,
... |
reflect.Pointer() Function in Golang with Examples | 05 May, 2020
Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of reflect package. The reflect.Pointer() Function in Golang is used to get the v’s value as a uintptr. To access this function, one needs to imports th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 May, 2020"
},
{
"code": null,
"e": 369,
"s": 28,
"text": "Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of reflect package. ... |
Convert LinkedList to String in Java | 28 Mar, 2022
A LinkedList is a linear data structure, in which the elements are not stored at contiguous memory locations.
For converting a linked list to a string we need to traverse the linked list and after that, we need to append the element of the linked list to the string variable.
We can use String class, String... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Mar, 2022"
},
{
"code": null,
"e": 138,
"s": 28,
"text": "A LinkedList is a linear data structure, in which the elements are not stored at contiguous memory locations."
},
{
"code": null,
"e": 304,
"s": 138,
"text... |
REPLACE() Function in MySQL | 31 Aug, 2020
REPLACE() function could be used to replaces all presence of a substring within a string, with a new substring. REPLACE() function is a case-sensitive.
Syntax :
SELECT REPLACE(string, from_string, new_string)
Parameter string is used to replace the original string from_string to be new_string.
Example-1:I... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Aug, 2020"
},
{
"code": null,
"e": 180,
"s": 28,
"text": "REPLACE() function could be used to replaces all presence of a substring within a string, with a new substring. REPLACE() function is a case-sensitive."
},
{
"code": n... |
Python | Pandas DataFrame.astype() | 25 Jul, 2019
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
DataFrame.astype() method is used to cast a pandas object to a specified dtype. astype() func... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jul, 2019"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp... |
C++ String Library - swap | It exchanges the content of the container by the content of str, which is another string object. Lengths may differ.
Following is the declaration for std::string::swap.
void swap (string& str);
void swap (string& str);
void swap (string& str);
str − It is a string object.
none
if an exception is thrown, there are no ch... | [
{
"code": null,
"e": 2854,
"s": 2737,
"text": "It exchanges the content of the container by the content of str, which is another string object. Lengths may differ."
},
{
"code": null,
"e": 2906,
"s": 2854,
"text": "Following is the declaration for std::string::swap."
},
{
... |
Pandas Groupby and Sum | 25 Nov, 2020
Pandas is an open-source library that is built on top of NumPy library. It is a Python package that offers various data structures and operations for manipulating numerical data and time series. It is mainly popular for importing and analyzing data much easier. Pandas is fast and it has high-performance & ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Nov, 2020"
},
{
"code": null,
"e": 360,
"s": 28,
"text": "Pandas is an open-source library that is built on top of NumPy library. It is a Python package that offers various data structures and operations for manipulating numerical da... |
Software Engineering - GeeksforGeeks | 22 Jan, 2014
GROUP I GROUP II
(P) Service oriented computing (1) Interoperability
(Q) Heterogeneous communicating systems (2) BPMN
(R) Information representation (3) Publish-find-bind
(S) Process description (4) XML
C... | [
{
"code": null,
"e": 29323,
"s": 29295,
"text": "\n22 Jan, 2014"
},
{
"code": null,
"e": 29629,
"s": 29323,
"text": "GROUP I GROUP II\n(P) Service oriented computing (1) Interoperability\n(Q) Heterogeneous communicating syst... |
Doctors Clinic | Practice | GeeksforGeeks | Given two positive integers N and X, where N is the number of total patients and X is the time duration(in minutes) after which a new patient arrives. Also, doctor will give only 10 minutes to each patient. The task is to calculate the time (in minutes) the last patient needs to wait.
Example 1:
Input: N = 4, X = 5
Out... | [
{
"code": null,
"e": 512,
"s": 226,
"text": "Given two positive integers N and X, where N is the number of total patients and X is the time duration(in minutes) after which a new patient arrives. Also, doctor will give only 10 minutes to each patient. The task is to calculate the time (in minutes) t... |
Installation and Configuration Symfony Framework | 10 May, 2020
Symfony is an open-source PHP web application framework with MVC architecture. It is a set of reusable PHP components/libraries. It is basically designed for developers who need an elegant and simple toolkit to create web applications and is the most popular application frameworks among the open-source dev... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 444,
"s": 54,
"text": "Symfony is an open-source PHP web application framework with MVC architecture. It is a set of reusable PHP components/libraries. It is basically designed for developers who n... |
VB.Net - Variables | A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in VB.Net has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable.... | [
{
"code": null,
"e": 2755,
"s": 2434,
"text": "A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in VB.Net has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that mem... |
HTML | <img> hspace Attribute | 08 Aug, 2019
The HTML <img> hspace attribute is used to specify the number of whitespaces on the left and the right side of the image. The hspace attribute is not supported by HTML 5 you can use CSS there.
Syntax:
<img hspace="pixels">
Attribute Values:
pixels: It specifies the number of whitespaces in terms of pixels... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Aug, 2019"
},
{
"code": null,
"e": 221,
"s": 28,
"text": "The HTML <img> hspace attribute is used to specify the number of whitespaces on the left and the right side of the image. The hspace attribute is not supported by HTML 5 you c... |
Find unique elements in a matrix | 10 Jun, 2022
Given a matrix mat[][] having n rows and m columns. We need to find unique elements in matrix i.e, those elements which are not repeated in the matrix or those elements whose frequency is 1.
Examples:
Input : 20 15 30 2
2 3 5 30
6 7 6 8
Output : 3 20 5 7 8 15
Inpu... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 Jun, 2022"
},
{
"code": null,
"e": 245,
"s": 53,
"text": "Given a matrix mat[][] having n rows and m columns. We need to find unique elements in matrix i.e, those elements which are not repeated in the matrix or those elements whose... |
Memory Allocation in Static Data Members in C++ | 14 Jun, 2020
C++ allows defining static data members within a class using the static keyword.When a data member is declared as static, then we must keep the following note in mind:
Irrespective of the number of objects created, only a single copy of the static member is created in memory.
All objects of a class share t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Jun, 2020"
},
{
"code": null,
"e": 220,
"s": 52,
"text": "C++ allows defining static data members within a class using the static keyword.When a data member is declared as static, then we must keep the following note in mind:"
},
... |
Python | Perform operation on each key dictionary | 26 Jul, 2019
Sometimes, while working with dictionaries, we might come across a problem in which we require to perform a particular operation on each value of keys. This type of problem can occur in web development domain. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using loopThis is the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jul, 2019"
},
{
"code": null,
"e": 302,
"s": 28,
"text": "Sometimes, while working with dictionaries, we might come across a problem in which we require to perform a particular operation on each value of keys. This type of problem ca... |
Matplotlib.pyplot.figtext() in Python | 19 Apr, 2020
Matplotlib is an extensively used Python library for data visualization. It is a multi-platform data visualization library built on NumPy arrays, also designed to work with the SciPy stack.
Figtext is used to add text to a figure at any location on it. You can even add the text outside the Axes. It uses th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Apr, 2020"
},
{
"code": null,
"e": 218,
"s": 28,
"text": "Matplotlib is an extensively used Python library for data visualization. It is a multi-platform data visualization library built on NumPy arrays, also designed to work with th... |
Parameter Passing Techniques in C/C++ | 10 Feb, 2022
There are different ways in which parameter data can be passed into and out of methods and functions. Let us assume that a function B() is called from another function A(). In this case A is called the “caller function” and B is called the “called function or callee function”. Also, the arguments which A s... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 Feb, 2022"
},
{
"code": null,
"e": 450,
"s": 52,
"text": "There are different ways in which parameter data can be passed into and out of methods and functions. Let us assume that a function B() is called from another function A(). I... |
Dynamic NAT (on ASA) | 25 Oct, 2021
Prerequisite – Adaptive security appliance (ASA), Network address translation (NAT), Static NAT (on ASA) Network Address Translation is used for the translation of private IP addresses into public IP addresses while accessing the internet.NAT generally operates on a router or firewall.
Dynamic NAT – In th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Oct, 2021"
},
{
"code": null,
"e": 316,
"s": 28,
"text": "Prerequisite – Adaptive security appliance (ASA), Network address translation (NAT), Static NAT (on ASA) Network Address Translation is used for the translation of private IP ... |
Bulma | Dropdown | 10 Aug, 2021
Bulma is a free and open-source CSS framework based on Flexbox. It is component rich, compatible, and well documented. It is highly responsive in nature. It uses classes to implement its design.
The dropdown component is a container for a dropdown button and a dropdown menu. Using dropdown and its subclass... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Aug, 2021"
},
{
"code": null,
"e": 223,
"s": 28,
"text": "Bulma is a free and open-source CSS framework based on Flexbox. It is component rich, compatible, and well documented. It is highly responsive in nature. It uses classes to im... |
TheSpeedX / TBomb – Call and SMS Bomber for Kali Linux | 17 Jun, 2021
TBomb is a free and open-source tool available on GitHub which is used to perform call and SMS bombing on the target phone number. This is the best tool for performing pranks on someone. This tool is written in python, so you must have python installed in your kali linux operating system.
This tool works ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 343,
"s": 52,
"text": "TBomb is a free and open-source tool available on GitHub which is used to perform call and SMS bombing on the target phone number. This is the best tool for performing pranks... |
Construct Full Binary Tree from given preorder and postorder traversals | 17 Jun, 2022
Given two arrays that represent preorder and postorder traversals of a full binary tree, construct the binary tree.A Full Binary Tree is a binary tree where every node has either 0 or 2 children
Following are examples of Full Trees.
1
/ \
2 3
/ \ / \
4 5 6 7
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Jun, 2022"
},
{
"code": null,
"e": 247,
"s": 52,
"text": "Given two arrays that represent preorder and postorder traversals of a full binary tree, construct the binary tree.A Full Binary Tree is a binary tree where every node has ei... |
SQL SELECT Statement | The SELECT statement is used to select data from a database.
The data returned is stored in a result table, called the result-set.
Here, column1, column2, ... are the field names of the table you want to
select data from. If you
want to select all the fields available in the table, use the following syntax:
Below is ... | [
{
"code": null,
"e": 61,
"s": 0,
"text": "The SELECT statement is used to select data from a database."
},
{
"code": null,
"e": 131,
"s": 61,
"text": "The data returned is stored in a result table, called the result-set."
},
{
"code": null,
"e": 311,
"s": 131,
... |
Arc function in C | In the C programming language, there is an option to create an arc of a circle of a given radius with a given center coordinates and degree of the arc.
The arc()
function is used to create an arc. This arc function is included in graphics.h library in C which contains methods that can draw figures on the output screen.... | [
{
"code": null,
"e": 1214,
"s": 1062,
"text": "In the C programming language, there is an option to create an arc of a circle of a given radius with a given center coordinates and degree of the arc."
},
{
"code": null,
"e": 1383,
"s": 1214,
"text": "The arc()\nfunction is used to... |
C++ Queue Library - queue() Function | The C++ default constructor std::queue::queue() constructs queue object. If cntr argument is passed to constructor, copy of argument is assigned to container otherwise empty queue object is created.
Following is the declaration for std::queue::queue() constructor form std::queue header.
explicit queue (const container_... | [
{
"code": null,
"e": 2802,
"s": 2603,
"text": "The C++ default constructor std::queue::queue() constructs queue object. If cntr argument is passed to constructor, copy of argument is assigned to container otherwise empty queue object is created."
},
{
"code": null,
"e": 2891,
"s": 28... |
Machine Learning Pipelines With Scikit-Learn | by Jason Wong | Towards Data Science | This post will serve as a step by step guide to build pipelines that streamline the machine learning workflow. I will be using the infamous Titanic dataset for this tutorial. The dataset was obtained from Kaggle. The goal being to predict whether a given person survived or not. I will be implementing various classifica... | [
{
"code": null,
"e": 794,
"s": 172,
"text": "This post will serve as a step by step guide to build pipelines that streamline the machine learning workflow. I will be using the infamous Titanic dataset for this tutorial. The dataset was obtained from Kaggle. The goal being to predict whether a given ... |
Union of Two Linked Lists | Practice | GeeksforGeeks | Given two linked lists, your task is to complete the function makeUnion(), that returns the union of two linked lists. This union should include all the distinct elements only.
Example 1:
Input:
L1 = 9->6->4->2->3->8
L2 = 1->2->8->6->2
Output: 1 2 3 4 6 8 9
Your Task:
The task is to complete the function makeUnion() w... | [
{
"code": null,
"e": 415,
"s": 238,
"text": "Given two linked lists, your task is to complete the function makeUnion(), that returns the union of two linked lists. This union should include all the distinct elements only."
},
{
"code": null,
"e": 426,
"s": 415,
"text": "Example 1... |
C++ Map Library - end() Function | The C++ function std::map::end() returns an iterator which points to past-the-end element in the map.
The past-the-end element is the theoretical element that would follow the last element in the map.
Following is the declaration for std::map::end() function form std::map header.
iterator end();
const_iterator end() co... | [
{
"code": null,
"e": 2705,
"s": 2603,
"text": "The C++ function std::map::end() returns an iterator which points to past-the-end element in the map."
},
{
"code": null,
"e": 2804,
"s": 2705,
"text": "The past-the-end element is the theoretical element that would follow the last e... |
First Come First Serve | Practice | GeeksforGeeks | CodeMart is a shopping platform and it is distributing gift vouchers to its esteemed users. The voucher can be redeemed by providing a fixed amount of shopping credits to the platform. One credit is sent by a user to the platform by doing one occurance in CodeMart. Since there is a huge rush of people you are required ... | [
{
"code": null,
"e": 942,
"s": 238,
"text": "CodeMart is a shopping platform and it is distributing gift vouchers to its esteemed users. The voucher can be redeemed by providing a fixed amount of shopping credits to the platform. One credit is sent by a user to the platform by doing one occurance in... |
Arduino – base64 encode and decode | Arduino contains a library that helps with base64 encode and decode. You can download it from the Library Manager. Search for base64, and install the library by Densaugeo.
Now, open a new sketch and run the following sample code −
#include "base64.hpp"
unsigned char normal_text[20] = "Hello World";
unsigned char base6... | [
{
"code": null,
"e": 1234,
"s": 1062,
"text": "Arduino contains a library that helps with base64 encode and decode. You can download it from the Library Manager. Search for base64, and install the library by Densaugeo."
},
{
"code": null,
"e": 1293,
"s": 1234,
"text": "Now, open ... |
How to set the text direction with JavaScript? | To set the text direction, use the direction property with JavaScript. Set rtl for right-to-left or ltr for left-to-right text direction.
You can try to run the following code to set the text direction with JavaScript −
Live Demo
<!DOCTYPE html>
<html>
<body>
<h1 id="myID">Heading 1</h1>
<p>Click below t... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "To set the text direction, use the direction property with JavaScript. Set rtl for right-to-left or ltr for left-to-right text direction."
},
{
"code": null,
"e": 1282,
"s": 1200,
"text": "You can try to run the following code to set... |
How can a binary semaphore implement mutual exclusion among n processes? | A semaphore is a shared variable which is used to implement mutual exclusion between
system processes. It is mainly helpful to solve critical section problems and is a
technique to achieve process synchronization.
Binary semaphore − Can take only two values, 0 or 1 which means at a time only one process can enter into ... | [
{
"code": null,
"e": 1276,
"s": 1062,
"text": "A semaphore is a shared variable which is used to implement mutual exclusion between\nsystem processes. It is mainly helpful to solve critical section problems and is a\ntechnique to achieve process synchronization."
},
{
"code": null,
"e": ... |
How to do exponential and logarithmic curve fitting in Python? | 21 Apr, 2021
In this article, we will learn how to do exponential and logarithmic curve fitting in Python. Firstly the question comes to our mind What is curve fitting?
Curve fitting is the process of constructing a curve or mathematical function, that has the best fit to a series of data points, possibly subject to co... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 184,
"s": 28,
"text": "In this article, we will learn how to do exponential and logarithmic curve fitting in Python. Firstly the question comes to our mind What is curve fitting?"
},
{
"code... |
How to Create a File in the Linux Using the Terminal? | 09 Apr, 2021
In this article, we will learn to create a file in the Linux/Unix system using the terminal. In the Linux/Unix system, there are the following ways available to creating files.
Using the touch commandUsing the cat commandUsing redirection operatorUsing the echo commandUsing the heredocUsing the dd command... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n09 Apr, 2021"
},
{
"code": null,
"e": 232,
"s": 54,
"text": "In this article, we will learn to create a file in the Linux/Unix system using the terminal. In the Linux/Unix system, there are the following ways available to creating file... |
Python | numpy.printoptions() method | 03 Oct, 2019
With the help of numpy.printoptions() method, we can get the custom printing options like we can set the precisions of floating value by using numpy.printoptions() method.
Syntax : numpy.printoptions(precision=value)Return : Return the customized printing like precision.
Example #1 :In this example we can ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Oct, 2019"
},
{
"code": null,
"e": 200,
"s": 28,
"text": "With the help of numpy.printoptions() method, we can get the custom printing options like we can set the precisions of floating value by using numpy.printoptions() method."
... |
How to remove arrow in dropdown in Bootstrap ? | 25 Jun, 2019
Dropdowns are one of the important components that are an integral part of any web application. Bootstrap provides its own interactive version of this component. Bootstrap dropdowns are toggled by clicking, not hovering as it was an intentional design decision. To use Dropdowns in a web project, include Po... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Jun, 2019"
},
{
"code": null,
"e": 385,
"s": 52,
"text": "Dropdowns are one of the important components that are an integral part of any web application. Bootstrap provides its own interactive version of this component. Bootstrap dr... |
How to use the ErrorActionPreference variable in PowerShell? | ErrorActionPreference variable in PowerShell is to control the non-terminating errors by converting them to terminating errors. Error handling depends upon which value you assign to $ErrorActionPreference variable.
The values are as below.
Continue − This is the default value of the variable and when the error occurs, ... | [
{
"code": null,
"e": 1402,
"s": 1187,
"text": "ErrorActionPreference variable in PowerShell is to control the non-terminating errors by converting them to terminating errors. Error handling depends upon which value you assign to $ErrorActionPreference variable."
},
{
"code": null,
"e": 1... |
How to check if onClick exists on element in jQuery? | These codes might help you −
$('body').click(function(){ alert('test' )})
var foo = $.data( $('body').get(0), 'events' ).click
// you can query $.data( object, 'events' ) and get an object back, then see what events are attached to it.
$.each( foo, function(i,o) {
alert(i) // guid of the event
alert(o) // the... | [
{
"code": null,
"e": 1216,
"s": 1187,
"text": "These codes might help you −"
},
{
"code": null,
"e": 1553,
"s": 1216,
"text": "$('body').click(function(){ alert('test' )})\n\nvar foo = $.data( $('body').get(0), 'events' ).click\n// you can query $.data( object, 'events' ) and get... |
Python – Test Boolean Value of Dictionary | 10 May, 2020
Sometimes, while working with data, we have a problem in which we need to accept or reject a dictionary on the basis of its true value, i.e all the keys are Boolean true or not. This kind of problem has possible applications in data preprocessing domains. Let’s discuss certain ways in which this task can b... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 348,
"s": 28,
"text": "Sometimes, while working with data, we have a problem in which we need to accept or reject a dictionary on the basis of its true value, i.e all the keys are Boolean true or no... |
Perl import Function | This function is an ordinary method (subroutine) defined (or inherited) by modules that wish to export names to another module. The use function calls the import method for the package used.
Following is the simple syntax for this function −
import LIST
This function does not return any value.
Following is the example... | [
{
"code": null,
"e": 2545,
"s": 2354,
"text": "This function is an ordinary method (subroutine) defined (or inherited) by modules that wish to export names to another module. The use function calls the import method for the package used."
},
{
"code": null,
"e": 2596,
"s": 2545,
... |
Python | Creating DataFrame from dict of narray/lists | 22 Jun, 2021
As we know Pandas is all-time great tools for data analysis. One of the most important data type is dataframe. It is a 2-dimensional labeled data structure with columns of potentially different types. It is generally the most commonly used pandas object. Pandas DataFrame can be created in multiple ways. Le... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2021"
},
{
"code": null,
"e": 480,
"s": 28,
"text": "As we know Pandas is all-time great tools for data analysis. One of the most important data type is dataframe. It is a 2-dimensional labeled data structure with columns of pot... |
How to Rotate Container Background Image using CSS ? | 13 May, 2020
The CSS background-image property is used to add an image to the background of an element. In this article, the task is to rotate the image which is used in the background.
Approach: The CSS transform property is used to apply two-dimensional or three-dimensional transformation to a element. This property ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 May, 2020"
},
{
"code": null,
"e": 201,
"s": 28,
"text": "The CSS background-image property is used to add an image to the background of an element. In this article, the task is to rotate the image which is used in the background."
... |
How to Compress and Extract Files Using the tar Command on Linux | 29 Jun, 2021
An archive is a special file that contains any number of files inside. It can be restored via special programs, for example, tar.inside.
.tar – archive files are usually not compressed.
.tar.gz – archive file compressed with gzip tool
.tar.bz2 – archive file compressed with bzip2 tool
Syntax:
tar options ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 165,
"s": 28,
"text": "An archive is a special file that contains any number of files inside. It can be restored via special programs, for example, tar.inside."
},
{
"code": null,
"e": 2... |
Finding shortest path between any two nodes using Floyd Warshall Algorithm | 18 Aug, 2021
Given a graph and two nodes u and v, the task is to print the shortest path between u and v using the Floyd Warshall algorithm.
Examples:
Input: u = 1, v = 3
Output: 1 -> 2 -> 3 Explanation: Shortest path from 1 to 3 is through vertex 2 with total cost 3. The first edge is 1 -> 2 with cost 2 and the seco... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 180,
"s": 52,
"text": "Given a graph and two nodes u and v, the task is to print the shortest path between u and v using the Floyd Warshall algorithm."
},
{
"code": null,
"e": 190,
... |
Derived Data Types in C++ | 26 Feb, 2020
Data types are means to identify the type of data and associated operations of handling it. There are three types of data types:
Pre-defined DataTypesDerived Data TypesUser-defined DataTypes
Pre-defined DataTypes
Derived Data Types
User-defined DataTypes
In this article, the Derived Data Type is explained:... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Feb, 2020"
},
{
"code": null,
"e": 181,
"s": 52,
"text": "Data types are means to identify the type of data and associated operations of handling it. There are three types of data types:"
},
{
"code": null,
"e": 243,
... |
How to Install Apache Tomcat 8 on Linux? | 06 Oct, 2021
Apache Tomcat (short for “Tomcat”) is a free and open-source Java Servlet, JavaServer Pages, Java Expression Language, and WebSocket implementation. [two] Tomcat is an HTTP web server that runs Java code in a “pure Java” environment.
Tomcat is developed and maintained by a free group of developers under th... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 288,
"s": 54,
"text": "Apache Tomcat (short for “Tomcat”) is a free and open-source Java Servlet, JavaServer Pages, Java Expression Language, and WebSocket implementation. [two] Tomcat is an HTTP w... |
Find the percentage change in the area of a Rectangle | 16 Apr, 2020
Given two integers P and Q which represents the percentage change in the length and breadth of the rectangle, the task is to print the percentage change in the area of the rectangle.
Examples:
Input: P = 10, Q = 20Output: 32Explanation:Let the initial length of the rectangle be 100 and breadth be 80.Initia... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Apr, 2020"
},
{
"code": null,
"e": 211,
"s": 28,
"text": "Given two integers P and Q which represents the percentage change in the length and breadth of the rectangle, the task is to print the percentage change in the area of the rec... |
MATLAB - Data Output | Data export (or output) in MATLAB means to write into files. MATLAB allows you to use your data in another application that reads ASCII files. For this, MATLAB provides several data export options.
You can create the following type of files −
Rectangular, delimited ASCII data file from an array.
Rectangular, delimited ... | [
{
"code": null,
"e": 2473,
"s": 2275,
"text": "Data export (or output) in MATLAB means to write into files. MATLAB allows you to use your data in another application that reads ASCII files. For this, MATLAB provides several data export options."
},
{
"code": null,
"e": 2518,
"s": 247... |
Lodash _.min() Method | 02 Sep, 2020
Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc.
The _.min() method is used to find the minimum element from the array. If the array is empty then undefined is returned.
Syntax:
_.min( array )
Parameters: This meth... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 169,
"s": 28,
"text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. "
},
{
"code": null,
"e... |
HTML | controls Attribute | 08 Jul, 2019
The HTML controls Attribute is used to specify that the audio and video controls must be displayed. It is a Boolean attribute and also new in HTML5. We can use this attribute in two tags <audio> and <video>
The controls attribute includes the following properties on <audio> tag:
Play
Pause
Seeking
Volume
T... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jul, 2019"
},
{
"code": null,
"e": 235,
"s": 28,
"text": "The HTML controls Attribute is used to specify that the audio and video controls must be displayed. It is a Boolean attribute and also new in HTML5. We can use this attribute ... |
Compute the covariance matrix of two given NumPy arrays | 29 Aug, 2020
In NumPy for computing the covariance matrix of two given arrays with help of numpy.cov(). In this, we will pass the two arrays and it will return the covariance matrix of two given arrays.
Syntax: numpy.cov(m, y=None, rowvar=True, bias=False, ddof=None, fweights=None, aweights=None)
Example 1:
Python
impo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 218,
"s": 28,
"text": "In NumPy for computing the covariance matrix of two given arrays with help of numpy.cov(). In this, we will pass the two arrays and it will return the covariance matrix of two... |
Remove multiple elements from a list in Python | 30 Jun, 2021
Given a list of numbers, write a Python program to remove multiple elements from a list based on the given condition.
Example:
Input: [12, 15, 3, 10]
Output: Remove = [12, 3], New_List = [15, 10]
Input: [11, 5, 17, 18, 23, 50]
Output: Remove = [1:5], New_list = [11, 50]
Multiple elements can be deleted f... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 170,
"s": 52,
"text": "Given a list of numbers, write a Python program to remove multiple elements from a list based on the given condition."
},
{
"code": null,
"e": 180,
"s": 170,
... |
Elbow Method for optimal value of k in KMeans | 18 May, 2022
Prerequisites: K-Means ClusteringA fundamental step for any unsupervised algorithm is to determine the optimal number of clusters into which the data may be clustered. The Elbow Method is one of the most popular methods to determine this optimal value of k.We now demonstrate the given method using the K-Me... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n18 May, 2022"
},
{
"code": null,
"e": 422,
"s": 53,
"text": "Prerequisites: K-Means ClusteringA fundamental step for any unsupervised algorithm is to determine the optimal number of clusters into which the data may be clustered. The El... |
How to count the number of NaN values in Pandas? | 10 Jul, 2020
We might need to count the number of NaN values for each feature in the dataset so that we can decide how to deal with it. For example, if the number of missing values is quite low, then we may choose to drop those observations; or there might be a column where a lot of entries are missing, so we can decid... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 378,
"s": 28,
"text": "We might need to count the number of NaN values for each feature in the dataset so that we can decide how to deal with it. For example, if the number of missing values is quit... |
Search A pandas Column For A Value | 17 Dec, 2020
Prerequisites: pandas
In this article let’s discuss how to search data frame for a given specific value using pandas.
where() -is used to check a data frame for one or more condition and return the result accordingly. By default, The rows not satisfying the condition are filled with NaN value.
dropna() -Th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Dec, 2020"
},
{
"code": null,
"e": 50,
"s": 28,
"text": "Prerequisites: pandas"
},
{
"code": null,
"e": 146,
"s": 50,
"text": "In this article let’s discuss how to search data frame for a given specific value usin... |
Port Address Translation (PAT) on Adaptive Security Appliance (ASA) | 26 May, 2019
Port Address Translation (PAT) is a type of Network address translation (NAT) used when there is a shortage of public IP addresses .One of the public IP address of the same subnet or the interface address is used for translation.
Port Address Translation (PAT):This is also known as NAT overload. In this, m... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 May, 2019"
},
{
"code": null,
"e": 258,
"s": 28,
"text": "Port Address Translation (PAT) is a type of Network address translation (NAT) used when there is a shortage of public IP addresses .One of the public IP address of the same su... |
Python – Star or Asterisk operator ( * ) | 26 Nov, 2020
There are a many places you’ll see * and ** used in Python. Many Python Programmer even at the intermediate level is often puzzled when it comes to the asterisk ( * ) character in Python.
After studying this article, you will have a solid understanding of the asterisk ( * ) operator in Python and become a... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 241,
"s": 52,
"text": "There are a many places you’ll see * and ** used in Python. Many Python Programmer even at the intermediate level is often puzzled when it comes to the asterisk ( * ) charact... |
How to make Mergesort to perform O(n) comparisons in best case? | 18 Sep, 2017
As we know, Mergesort is a divide and conquer algorithm that splits the array to halves recursively until it reaches an array of the size of 1, and after that it merges sorted subarrays until the original array is fully sorted. Typical implementation of merge sort works in O(n Log n) time in all three case... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Sep, 2017"
},
{
"code": null,
"e": 390,
"s": 54,
"text": "As we know, Mergesort is a divide and conquer algorithm that splits the array to halves recursively until it reaches an array of the size of 1, and after that it merges sorte... |
How to Replace a Character with the String in C#? | 03 Dec, 2021
Given a string, now our task is to replace a specified character with the string. This task is performed with the help of Replace() method. This method is used to replace all the Unicode characters with the specified string and return a modified string.
Syntax:
string.Replace(character, new_string)
Here, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Dec, 2021"
},
{
"code": null,
"e": 283,
"s": 28,
"text": "Given a string, now our task is to replace a specified character with the string. This task is performed with the help of Replace() method. This method is used to replace all ... |
Python | Pandas Series.sort_values() | 05 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.sort_values() function is used to so... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 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... |
Find politeness of a number | 20 Apr, 2022
Given an integer n. Find politeness of number n. The politeness of a number is defined as the number of ways it can be expressed as the sum of consecutive integers.
Examples:
Input: n = 15
Output: 3
Explanation:
There are only three ways to express
15 as sum of consecutive integers i.e.,
15 = 1 + 2 + 3 + ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n20 Apr, 2022"
},
{
"code": null,
"e": 220,
"s": 54,
"text": "Given an integer n. Find politeness of number n. The politeness of a number is defined as the number of ways it can be expressed as the sum of consecutive integers. "
},
... |
How to set Text alignment in HTML? | To set text alignment in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <p> tag, with the CSS property text-align for the center, left and right alignment. HTML5 do not support the align attribute of the <p> tag, so the CSS style is used ... | [
{
"code": null,
"e": 1405,
"s": 1062,
"text": "To set text alignment in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <p> tag, with the CSS property text-align for the center, left and right alignment. HTML5 do not su... |
How to add new contacts in Android App? | This example demonstrate about How to add new contacts in Android App.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml
<? xml version= "1.0" encoding= "utf-8" ?>
<LinearLayout... | [
{
"code": null,
"e": 1133,
"s": 1062,
"text": "This example demonstrate about How to add new contacts in Android App."
},
{
"code": null,
"e": 1262,
"s": 1133,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to crea... |
How to set the background image for an element with JavaScript DOM? | To set the background image in JavaScript, use the backgroundImage property. It allows you to set the background image.
You can try to run the following code to learn how to set the background image with JavaScript −
Live Demo
<!DOCTYPE html>
<html>
<body>
<button onclick="display()">Click to Set background im... | [
{
"code": null,
"e": 1182,
"s": 1062,
"text": "To set the background image in JavaScript, use the backgroundImage property. It allows you to set the background image."
},
{
"code": null,
"e": 1279,
"s": 1182,
"text": "You can try to run the following code to learn how to set the ... |
Why do we need a wrapper class in Java? | A Wrapper class is a class which contains the primitive data types (int, char, short, byte, etc). In other words, wrapper classes provide a way to use primitive data types
(int, char, short, byte, etc) as objects. These wrapper classes come under java.util package.
Wrapper Class will convert primitive data types into o... | [
{
"code": null,
"e": 1328,
"s": 1062,
"text": "A Wrapper class is a class which contains the primitive data types (int, char, short, byte, etc). In other words, wrapper classes provide a way to use primitive data types\n(int, char, short, byte, etc) as objects. These wrapper classes come under java.... |
Display AM/PM time marker with SimpleDateFormat(“a”) in Java | You can display AM/PM time marker easily in Java using SimpleDateFormat(“a”).
Firstly, to work with SimpleDateFormat class in Java, import the following package.
import java.text.SimpleDateFormat;
Now, set the format with SimpleDateFormat(“a”) to display AM/PM marker −
Format f = new SimpleDateFormat(”a”);
Now, get the... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "You can display AM/PM time marker easily in Java using SimpleDateFormat(“a”)."
},
{
"code": null,
"e": 1224,
"s": 1140,
"text": "Firstly, to work with SimpleDateFormat class in Java, import the following package."
},
{
"code"... |
Find next greater number with same set of digits - GeeksforGeeks | 14 Jan, 2022
Given a number n, find the smallest number that has same set of digits as n and is greater than n. If n is the greatest possible number with its set of digits, then print “not possible”.
Examples: For simplicity of implementation, we have considered input number as a string.
Input: n = "218765"
Output: "... | [
{
"code": null,
"e": 25518,
"s": 25490,
"text": "\n14 Jan, 2022"
},
{
"code": null,
"e": 25705,
"s": 25518,
"text": "Given a number n, find the smallest number that has same set of digits as n and is greater than n. If n is the greatest possible number with its set of digits, the... |
Python Convert nested dictionary into flattened dictionary? | As the world embraces more unstructured data, we come across many formats of data where the data structure can be deeply nested like nested JSONS. Python has the ability to deal with nested data structure by concatenating the inner keys with outer keys to flatten the data. In this article we will take a nested dictiona... | [
{
"code": null,
"e": 1403,
"s": 1062,
"text": "As the world embraces more unstructured data, we come across many formats of data where the data structure can be deeply nested like nested JSONS. Python has the ability to deal with nested data structure by concatenating the inner keys with outer keys ... |
Permutations of a given string | Practice | GeeksforGeeks | Given a string S. The task is to print all permutations of a given string in lexicographically sorted order.
Example 1:
Input: ABC
Output:
ABC ACB BAC BCA CAB CBA
Explanation:
Given string ABC has permutations in 6
forms as ABC, ACB, BAC, BCA, CAB and CBA .
Example 2:
Input: ABSG
Output:
ABGS ABSG AGBS AGSB ASBG AS... | [
{
"code": null,
"e": 347,
"s": 238,
"text": "Given a string S. The task is to print all permutations of a given string in lexicographically sorted order."
},
{
"code": null,
"e": 360,
"s": 349,
"text": "Example 1:"
},
{
"code": null,
"e": 500,
"s": 360,
"text"... |
Foundation - Combined Column/Row | The column and row classes are used on the same element to get the full-width column to use as container.
The following example demonstrates the use of combined column/row class in Foundation −
<!DOCTYPE html>
<html>
<head>
<title>Foundation Template</title>
<meta name = "viewport" content = "width = dev... | [
{
"code": null,
"e": 2344,
"s": 2238,
"text": "The column and row classes are used on the same element to get the full-width column to use as container."
},
{
"code": null,
"e": 2432,
"s": 2344,
"text": "The following example demonstrates the use of combined column/row class in F... |
Rearrange a string so that all same characters become atleast d distance away - GeeksforGeeks | 12 Jun, 2021
Given a string and a positive integer d, rearrange characters of the given string such that the same characters become at-least d distance away from each other.
Note that there can be many possible rearrangements, the output should be one of the possible rearrangements. If no such arrangement is possible, ... | [
{
"code": null,
"e": 24461,
"s": 24433,
"text": "\n12 Jun, 2021"
},
{
"code": null,
"e": 24622,
"s": 24461,
"text": "Given a string and a positive integer d, rearrange characters of the given string such that the same characters become at-least d distance away from each other."
... |
HTTP headers | Expect - GeeksforGeeks | 18 Oct, 2019
The HTTP headers Expect request-header field is used to indicate specific behaviors or expectations that the server needs to fulfill in order to respond to the client. Generally, Expect: 100-continue is the only expectation defined for the header field. If the data provided in the header field meets the ex... | [
{
"code": null,
"e": 24666,
"s": 24638,
"text": "\n18 Oct, 2019"
},
{
"code": null,
"e": 25221,
"s": 24666,
"text": "The HTTP headers Expect request-header field is used to indicate specific behaviors or expectations that the server needs to fulfill in order to respond to the cli... |
How to generate an UnsupportedOperationException in Java?
| An UnsupportedOperationException is a subclass of RuntimException in Java and it can be thrown to indicate that the requested operation is not supported. The UnsupportedOperationException class is a member of the Java Collections Framework. This exception is thrown by almost all of the concrete collections like List, Q... | [
{
"code": null,
"e": 1401,
"s": 1062,
"text": "An UnsupportedOperationException is a subclass of RuntimException in Java and it can be thrown to indicate that the requested operation is not supported. The UnsupportedOperationException class is a member of the Java Collections Framework. This excepti... |
“ TIME SERIES ANALYSIS USING NEURAL NETWORK ” | by Ashis Kumar Panda | Towards Data Science | Welcome to the Fourth Episode of Fastdotai where we will deal with Structured and time series data. Before we start , I would like to thank Jeremy Howard and Rachel Thomas for their efforts to democratize AI.
To make best out of this blog post Series , feel free to explore the first Part of this Series in the following... | [
{
"code": null,
"e": 381,
"s": 172,
"text": "Welcome to the Fourth Episode of Fastdotai where we will deal with Structured and time series data. Before we start , I would like to thank Jeremy Howard and Rachel Thomas for their efforts to democratize AI."
},
{
"code": null,
"e": 532,
... |
PyViz: Simplifying the Data Visualisation process in Python. | by Parul Pandey | Towards Data Science | The purpose of visualization is insight, not pictures.―Ben Shneiderman
If you work with data, then Data Visualisation is a vital part of your daily routine. And if you use Python for your analysis, you ought to be overwhelmed by the sheer amount of choices present in the form of Data Visualisation libraries. Some libra... | [
{
"code": null,
"e": 242,
"s": 171,
"text": "The purpose of visualization is insight, not pictures.―Ben Shneiderman"
},
{
"code": null,
"e": 1088,
"s": 242,
"text": "If you work with data, then Data Visualisation is a vital part of your daily routine. And if you use Python for yo... |
Tensorflow for Complete Beginners: Getting Started with Tensors | by Joyjit Chatterjee | Nov, 2020 | Towards Data Science | Tensorflow is a buzz word nowadays in this exciting world of Artificial Intelligence (AI), especially as Deep Learning continues to rapidly accelerate progress in AI. But for someone just starting with Tensorflow, the experience can be scary and daunting, as the terminologies and usage of the beautiful library can be c... | [
{
"code": null,
"e": 755,
"s": 171,
"text": "Tensorflow is a buzz word nowadays in this exciting world of Artificial Intelligence (AI), especially as Deep Learning continues to rapidly accelerate progress in AI. But for someone just starting with Tensorflow, the experience can be scary and daunting,... |
NLP | Sequence to Sequence Networks| Part 1| Processing text data | by Mohammed AL-Ma'amari | Towards Data Science | There are many benefits you can get by understanding NLP, you can make your own model to answer questions and use it in a chat bot, or you can make a translator to translate a text from your language to English language or the opposite, or maybe you make a text summarizer.
In this tutorial series, we will learn how to ... | [
{
"code": null,
"e": 445,
"s": 171,
"text": "There are many benefits you can get by understanding NLP, you can make your own model to answer questions and use it in a chat bot, or you can make a translator to translate a text from your language to English language or the opposite, or maybe you make ... |
SciPy Graphs | Graphs are an essential data structure.
SciPy provides us with the module scipy.sparse.csgraph for working with
such data structures.
Adjacency matrix is a nxn matrix where n
is the number of elements in a graph.
And the values represents the connection between the elements.
Example:
For a graph like this, with elemen... | [
{
"code": null,
"e": 40,
"s": 0,
"text": "Graphs are an essential data structure."
},
{
"code": null,
"e": 135,
"s": 40,
"text": "SciPy provides us with the module scipy.sparse.csgraph for working with \nsuch data structures."
},
{
"code": null,
"e": 214,
"s": 135... |
Hidden Form Field using Annotation | Java Servlet - GeeksforGeeks | 26 May, 2021
Hidden form field is used to store session information of a client. In this method, we create a hidden form which passes the control to the servlet whose path is given in the form action area. Using this, the information of the user is stored and passed to the location where we want to send data. The main ... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 24020,
"s": 23557,
"text": "Hidden form field is used to store session information of a client. In this method, we create a hidden form which passes the control to the servlet whose path is g... |
Java Program for Reverse a linked list - GeeksforGeeks | 17 Jan, 2018
Given pointer to the head node of a linked list, the task is to reverse the linked list. We need to reverse the list by changing links between nodes.
Examples:
Input : Head of following linked list
1->2->3->4->NULL
Output : Linked list should be changed to,
4->3->2->1->NULL
Input : Head of... | [
{
"code": null,
"e": 24616,
"s": 24588,
"text": "\n17 Jan, 2018"
},
{
"code": null,
"e": 24766,
"s": 24616,
"text": "Given pointer to the head node of a linked list, the task is to reverse the linked list. We need to reverse the list by changing links between nodes."
},
{
... |
Python Virtual Environment | Developers often deal with python projects where they have to use module and packages which were not part of the python standard library and they need it for this particular application only. Consider a case, where you have installed the current version of python (let’s assume its python-3.6) but your project requires ... | [
{
"code": null,
"e": 1688,
"s": 1062,
"text": "Developers often deal with python projects where they have to use module and packages which were not part of the python standard library and they need it for this particular application only. Consider a case, where you have installed the current version... |
What is .npy files and why you should use them... | by Peter Nistrup | Towards Data Science | First of all thanks a lot to my followers for sticking with me these last few months, I’ve been terribly busy and haven’t had a lot of time to pump out articles. I’ve decided that a partial remedy for this is to make some shorter and easier to digest articles which will be easier to produce! Therefore this is my first ... | [
{
"code": null,
"e": 445,
"s": 46,
"text": "First of all thanks a lot to my followers for sticking with me these last few months, I’ve been terribly busy and haven’t had a lot of time to pump out articles. I’ve decided that a partial remedy for this is to make some shorter and easier to digest artic... |
How To Join Multiple ggplot2 Plots with cowplot? | 17 Oct, 2021
In this article, we are going to see how to join multiple ggplot2 plots with cowplot. To join multiple ggplot2 plots, we use the plot_grid() function of the cowplot package of R Language.
Syntax: plot_grid(plot1,plot2,label=<label-vector>, ncol, nrow)
Parameters:
plot1 and plot2 are plots that need to be j... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Oct, 2021"
},
{
"code": null,
"e": 216,
"s": 28,
"text": "In this article, we are going to see how to join multiple ggplot2 plots with cowplot. To join multiple ggplot2 plots, we use the plot_grid() function of the cowplot package of... |
Python Program To Remove all control characters | 27 Dec, 2021
In the telecommunication and computer domain, control characters are non-printable characters which are a part of the character set. These do not represent any written symbol. They are used in signaling to cause certain effects other than adding symbols to text. Removing these control characters is an esse... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Dec, 2021"
},
{
"code": null,
"e": 427,
"s": 28,
"text": "In the telecommunication and computer domain, control characters are non-printable characters which are a part of the character set. These do not represent any written symbol.... |
Find the version of the Pandas and its dependencies | 23 Jan, 2019
Pandas is one of the most important packages for data analysis in Python and that means frequent updates of the version of the Pandas. This leads to compatibility issues with other dependencies of Pandas. Let’s discuss the ways to check the version of the Pandas and its dependencies running on any system.
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Jan, 2019"
},
{
"code": null,
"e": 335,
"s": 28,
"text": "Pandas is one of the most important packages for data analysis in Python and that means frequent updates of the version of the Pandas. This leads to compatibility issues with ... |
Count maximum points on same line | 05 Jul, 2022
Given N point on a 2D plane as pair of (x, y) co-ordinates, we need to find maximum number of point which lie on the same line.
Examples:
Input : points[] = {-1, 1}, {0, 0}, {1, 1},
{2, 2}, {3, 3}, {3, 4}
Output : 4
Then maximum number of point which lie on same
line are 4, those poi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Jul, 2022"
},
{
"code": null,
"e": 180,
"s": 52,
"text": "Given N point on a 2D plane as pair of (x, y) co-ordinates, we need to find maximum number of point which lie on the same line."
},
{
"code": null,
"e": 191,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.