title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Swapping Characters of a String in Java - GeeksforGeeks
28 Jan, 2022 As we know that Object of String in Java are immutable (i.e. we cannot perform any changes once its created). To do modifications on string stored in a String object, we copy it to a character array, StringBuffer, etc and do modifications on the copy object.In this article we would go through some methods ...
[ { "code": null, "e": 25262, "s": 25234, "text": "\n28 Jan, 2022" }, { "code": null, "e": 25944, "s": 25262, "text": "As we know that Object of String in Java are immutable (i.e. we cannot perform any changes once its created). To do modifications on string stored in a String obje...
Osi.Ig – Information Gathering Instagram Tool in Kali Linux - GeeksforGeeks
20 Apr, 2021 Osi.Ig stands for Open Source Intelligence. Osi is a free and open-source tool used to perform reconnaissance on Instagram account/profiles. This is a free and open-source tool used for performing reconnaissance on Instagram accounts. As this tool is open source, so you can contribute to this tool. This to...
[ { "code": null, "e": 25707, "s": 25679, "text": "\n20 Apr, 2021" }, { "code": null, "e": 26867, "s": 25707, "text": "Osi.Ig stands for Open Source Intelligence. Osi is a free and open-source tool used to perform reconnaissance on Instagram account/profiles. This is a free and ope...
Python | Pandas Series.dt.time - GeeksforGeeks
20 Mar, 2019 Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.time attribute return a numpy array of python datetime.time objects. Syntax: Series.dt.time Parameter : None Returns : numpy array Example #1: Use Series.dt.time attribute to return the ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n20 Mar, 2019" }, { "code": null, "e": 25727, "s": 25537, "text": "Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.time attribute return a numpy array of pyt...
Batch Script - Deleting Folders
For deleting folders, Batch Script provides the DEL command. DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names Following are the description of the options which can be presented to the DEL command. Names Specifies a list of one or more files or directories. Wildcards may be used to delete multiple files. If a directo...
[ { "code": null, "e": 2230, "s": 2169, "text": "For deleting folders, Batch Script provides the DEL command." }, { "code": null, "e": 2281, "s": 2230, "text": "DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names\n" }, { "code": null, "e": 2369, "s": 2281, "text":...
What are Rest parameters in JavaScript?
ES6 brought rest parameter to ease the work of developers. For arguments objects, rest parameters are indicated by three dots ... and precedes a parameter.With this, set indefinite number of arguments as an array, which areArray instances. Let’s see the following code snippet: <html> <body> <script> f...
[ { "code": null, "e": 1302, "s": 1062, "text": "ES6 brought rest parameter to ease the work of developers. For arguments objects, rest parameters are indicated by three dots ... and precedes a parameter.With this, set indefinite number of arguments as an array, which areArray instances." }, { ...
Kubernetes - Replication Controller
Replication Controller is one of the key features of Kubernetes, which is responsible for managing the pod lifecycle. It is responsible for making sure that the specified number of pod replicas are running at any point of time. It is used in time when one wants to make sure that the specified number of pod or at least ...
[ { "code": null, "e": 2602, "s": 2195, "text": "Replication Controller is one of the key features of Kubernetes, which is responsible for managing the pod lifecycle. It is responsible for making sure that the specified number of pod replicas are running at any point of time. It is used in time when o...
BigInteger max() and min() Methods in Java - GeeksforGeeks
04 Dec, 2018 Prerequisite: BigInteger Basics BigInteger max() method: The max() method of the BigInteger returns the BigInteger whose value is the greater between current BigInteger and BigInteger passed as a parameter to the method. If both the values are equal, either may be returned.There is a similar method compare...
[ { "code": null, "e": 23868, "s": 23840, "text": "\n04 Dec, 2018" }, { "code": null, "e": 23900, "s": 23868, "text": "Prerequisite: BigInteger Basics" }, { "code": null, "e": 25444, "s": 23900, "text": "BigInteger max() method: The max() method of the BigIntege...
Powershell - Create XML File
New-Item cmdlet is used to create a xml file and Set-Content cmdlet to put content into it. In this example, we're creating a new xml file named test.xml Type the following command in PowerShell ISE Console New-Item D:\temp\test\test.xml -ItemType File You can see the test.xml created in D:\temp\test directory. In this...
[ { "code": null, "e": 2126, "s": 2034, "text": "New-Item cmdlet is used to create a xml file and Set-Content cmdlet to put content into it." }, { "code": null, "e": 2188, "s": 2126, "text": "In this example, we're creating a new xml file named test.xml" }, { "code": null, ...
How to create dismissible alerts in Bootstrap ? - GeeksforGeeks
04 Oct, 2021 Alerts are a very important component in the Bootstrap library. They are used to display any message to the users like a form being submitted, OTP is sent or incorrect input entered in the form. In other words, alerts are used to provide feedback messages to the user based on their interaction with the web...
[ { "code": null, "e": 25227, "s": 25199, "text": "\n04 Oct, 2021" }, { "code": null, "e": 25540, "s": 25227, "text": "Alerts are a very important component in the Bootstrap library. They are used to display any message to the users like a form being submitted, OTP is sent or incor...
Getting Min and Max values from a Stream | Java 8 Stream min() max()
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws Getting Min and Max values from a Stream in J...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
Russian Car Plate Detection with OpenCV and TesseractOCR | by Kenneth Leung | Towards Data Science
1) Motivation and Introduction2) Getting Started3) Car Plate Detection with OpenCV and Haar Cascade4) Plate Number Recognition and Extraction with TesseractOCR Click here to view the Jupyter Notebook, and here to visit the GitHub repo. When we talk about AI, computer vision is definitely one of the top applications in ...
[ { "code": null, "e": 332, "s": 172, "text": "1) Motivation and Introduction2) Getting Started3) Car Plate Detection with OpenCV and Haar Cascade4) Plate Number Recognition and Extraction with TesseractOCR" }, { "code": null, "e": 408, "s": 332, "text": "Click here to view the Jup...
JDBC - Quick Guide
JDBC stands for Java Database Connectivity, which is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases. The JDBC library includes APIs for each of the tasks mentioned below that are commonly associated with database usage. Making a connection t...
[ { "code": null, "e": 2342, "s": 2162, "text": "JDBC stands for Java Database Connectivity, which is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases." }, { "code": null, "e": 2461, "s": 2342, "text": "Th...
How to create Ordered dictionaries in Python?
An OrderedDict is a dictionary subclass that remembers the order in which its contents are added, It is defined in collections module of Python library. OrderDict remembers the order of addition of key-value pairs in a dictionary >>> from collections import OrderedDict >>> od=OrderedDict(d.items()) >>> od OrderedDict([...
[ { "code": null, "e": 1292, "s": 1062, "text": "An OrderedDict is a dictionary subclass that remembers the order in which its contents are added, It is defined in collections module of Python library. OrderDict remembers the order of addition of key-value pairs in a dictionary" }, { "code": n...
How to select rows of a data frame that are not in other data frame in R?
Instead of finding the common rows, sometimes we need to find the uncommon rows between two data frames. It is mostly used when we expect that a large number of rows are uncommon instead of few ones. We can do this by using the negation operator which is represented by exclamation sign with subset function. Consider th...
[ { "code": null, "e": 1371, "s": 1062, "text": "Instead of finding the common rows, sometimes we need to find the uncommon rows between two data frames. It is mostly used when we expect that a large number of rows are uncommon instead of few ones. We can do this by using the negation operator which i...
ftp - Unix, Linux Command
ftp - Internet file transfer program ftp [-pinegvd] [host] pftp [-inegvd] [host] Example-1: To see help of all available commands in ftp $ ftp ftp> help output: $ ftpftp> helpCommands may be abbreviated. Commands are:! dir mdelete qc site$ disconnect ...
[ { "code": null, "e": 10614, "s": 10577, "text": "ftp - Internet file transfer program" }, { "code": null, "e": 10659, "s": 10614, "text": "ftp [-pinegvd] [host]\n\npftp [-inegvd] [host]" }, { "code": null, "e": 10670, "s": 10659, "text": "Example-1:" }, { ...
What is the height of the status bar in Android?
This example demonstrates how to height of the status bar in Android. 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"?> <androidx.constra...
[ { "code": null, "e": 1132, "s": 1062, "text": "This example demonstrates how to height of the status bar in Android." }, { "code": null, "e": 1261, "s": 1132, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to creat...
MomentJS - Now
This will display the current date. var now = moment(); To get the current date, we have to use the following code − now._d Print Add Notes Bookmark this page
[ { "code": null, "e": 1996, "s": 1960, "text": "This will display the current date." }, { "code": null, "e": 2016, "s": 1996, "text": "var now = moment();" }, { "code": null, "e": 2077, "s": 2016, "text": "To get the current date, we have to use the following c...
Program to find the minimum cost to arrange the numbers in ascending or descending order in Python
Suppose we have a list of numbers called nums, we have to find the minimum cost to sort the list in any order (Ascending or Descending). Here the cost is the sum of differences between any element's old and new value. So, if the input is like [2, 5, 4], then the output will be 2. To solve this, we will follow these ste...
[ { "code": null, "e": 1280, "s": 1062, "text": "Suppose we have a list of numbers called nums, we have to find the minimum cost to sort the\nlist in any order (Ascending or Descending). Here the cost is the sum of differences between any\nelement's old and new value." }, { "code": null, "...
Java Exception Handling | Practice | GeeksforGeeks
Given two integers (positive , negative or even 0) say a and b. Find the minimum value of a$b where $ is any arithmetic operation like multiply(*), Divide(/), Addition(+),Substraction(-). Use Exception Handling in this problem. Input: The first line will contain an integer T (number of test cases). Each test case will...
[ { "code": null, "e": 454, "s": 226, "text": "Given two integers (positive , negative or even 0) say a and b. Find the minimum value of a$b where $ is any arithmetic operation like multiply(*), Divide(/), Addition(+),Substraction(-). Use Exception Handling in this problem." }, { "code": null,...
Flask form submission without Page Reload - GeeksforGeeks
17 Jun, 2021 There are many modules or frameworks which allows to build your webpage using python like bottle, django, flask etc. But the real popular ones are Flask and Django. Django is easy to use as compared to Flask but Flask provides you the versatility to program with. Problem: If we do post request then the who...
[ { "code": null, "e": 24317, "s": 24289, "text": "\n17 Jun, 2021" }, { "code": null, "e": 24581, "s": 24317, "text": "There are many modules or frameworks which allows to build your webpage using python like bottle, django, flask etc. But the real popular ones are Flask and Django...
\scriptsize - Tex Command
\scriptsize - Used to turn on script size. { \scriptsize ... } \scriptsize command is used to turn on script size. \rm \scriptsize script \normalsize normal \large large scriptnormallarge \rm \scriptsize script \normalsize normal \large large scriptnormallarge \rm \scriptsize script \normalsize normal \large la...
[ { "code": null, "e": 8029, "s": 7986, "text": "\\scriptsize - Used to turn on script size." }, { "code": null, "e": 8049, "s": 8029, "text": "{ \\scriptsize ... }" }, { "code": null, "e": 8101, "s": 8049, "text": "\\scriptsize command is used to turn on script...
Python - SFTP
SFTP is also known as the SSH File Transfer Protocol. It is a network protocol that provides file access, file transfer, and file management over any reliable data stream. The program is run over a secure channel, such as SSH, that the server has already authenticated the client, and that the identity of the client use...
[ { "code": null, "e": 2678, "s": 2326, "text": "SFTP is also known as the SSH File Transfer Protocol. It is a network protocol that provides file access, file transfer, and file management over any reliable data stream. The program is run over a secure channel, such as SSH, that the server has alread...
Find the summation of the product of Array elements in range [L, R] - GeeksforGeeks
02 Mar, 2022 Given an array arr[] and two integers L and R. The task is to find the sum of the product of all the pairs (i, j) in the range [L, R], such that i ≤ j. Input: arr[] = { 1, 3, 5, 8 }, L = 0, R = 2Output: 58Explanation: As 1*1 + 1*3 + 1*5 + 3*3 + 3*5 + 5*5 = 58 Input: arr[] = { 2, 1, 4, 5, 3, 2, 1 }, L = 1, ...
[ { "code": null, "e": 26029, "s": 26001, "text": "\n02 Mar, 2022" }, { "code": null, "e": 26181, "s": 26029, "text": "Given an array arr[] and two integers L and R. The task is to find the sum of the product of all the pairs (i, j) in the range [L, R], such that i ≤ j." }, { ...
KMeans Hyper-parameters Explained with Examples | by Sujeewa Kumaratunga PhD | Towards Data Science
These days anyone with a high school degree can implement a Machine Learning algorithm and that’s a good thing. It is always a good thing when things are accessible to most people. A lot of common libraries are available out there that simplifies the algorithm part. But with great power comes great responsibility. The ...
[ { "code": null, "e": 603, "s": 172, "text": "These days anyone with a high school degree can implement a Machine Learning algorithm and that’s a good thing. It is always a good thing when things are accessible to most people. A lot of common libraries are available out there that simplifies the algo...
What is HTML ?
Before you begin, it's important that you know Windows or Unix. A working knowledge of Windows or Unix makes it much easier to learn HTML. You should be familiar with: Basic word processing using any text editor. Basic word processing using any text editor. How to create directories and files. How to create directorie...
[ { "code": null, "e": 2514, "s": 2374, "text": "Before you begin, it's important that you know Windows or Unix. A working knowledge of Windows or Unix makes it much easier to learn HTML." }, { "code": null, "e": 2543, "s": 2514, "text": "You should be familiar with:" }, { ...
Find sum of exponents of prime factors of numbers 1 to N - GeeksforGeeks
25 Mar, 2022 Given an integer N, the task is to find the sum of exponents of prime factors of numbers 1 to N. Examples: Input: N = 4Output: 4Explanation:Numbers up to 4 are 1, 2, 3, 4 whereThe exponent of 1 in the prime factorization of 1 is 0 (20), For 2 it is 1 (21), For 3 it is 1 (31), and For 4 it is 2 (22).The sum...
[ { "code": null, "e": 25232, "s": 25204, "text": "\n25 Mar, 2022" }, { "code": null, "e": 25329, "s": 25232, "text": "Given an integer N, the task is to find the sum of exponents of prime factors of numbers 1 to N." }, { "code": null, "e": 25339, "s": 25329, "t...
Data Structures and Algorithms | Set 19 - GeeksforGeeks
27 Mar, 2017 Following questions have been asked in GATE CS 2009 exam. 1. Let X be a problem that belongs to the class NP. Then which one of the following is TRUE?(A) There is no polynomial time algorithm for X.(B) If X can be solved deterministically in polynomial time, then P = NP.(C) If X is NP-hard, then it is NP-c...
[ { "code": null, "e": 24340, "s": 24312, "text": "\n27 Mar, 2017" }, { "code": null, "e": 24398, "s": 24340, "text": "Following questions have been asked in GATE CS 2009 exam." }, { "code": null, "e": 24681, "s": 24398, "text": "1. Let X be a problem that belon...
How to change the aspect ratio of an image in JavaFX?
The javafx.scene.image.Image class is used to load an image into a JavaFX application. This supports BMP, GIF, JPEG, and, PNG formats. JavaFX provides a class named javafx.scene.image.ImageView is a node that is used to display, the loaded image. The preserveRatio property of the ImageView class (boolean) specifies whe...
[ { "code": null, "e": 1197, "s": 1062, "text": "The javafx.scene.image.Image class is used to load an image into a JavaFX application. This supports BMP, GIF, JPEG, and, PNG formats." }, { "code": null, "e": 1309, "s": 1197, "text": "JavaFX provides a class named javafx.scene.imag...
Explicit AUC maximization. How to explicitly optimize for maximum... | by Michael Larionov, PhD | Towards Data Science
I was getting started on “IEEE-CIS Fraud Detection” Kaggle competition, and something caught my eye: The fact that the results are evaluated based on AUC makes sense for fraud detection tasks for several reasons: The data sets are often unbalanced, which makes it difficult to optimize for the recall or other simple met...
[ { "code": null, "e": 273, "s": 172, "text": "I was getting started on “IEEE-CIS Fraud Detection” Kaggle competition, and something caught my eye:" }, { "code": null, "e": 385, "s": 273, "text": "The fact that the results are evaluated based on AUC makes sense for fraud detection ...
Assembly - CMPS Instruction
The CMPS instruction compares two strings. This instruction compares two data items of one byte, word or doubleword, pointed to by the DS:SI and ES:DI registers and sets the flags accordingly. You can also use the conditional jump instructions along with this instruction. The following example demonstrates comparing tw...
[ { "code": null, "e": 2358, "s": 2085, "text": "The CMPS instruction compares two strings. This instruction compares two data items of one byte, word or doubleword, pointed to by the DS:SI and ES:DI registers and sets the flags accordingly. You can also use the conditional jump instructions along wit...
CodeIgniter - Internationalization
The language class in CodeIgniter provides an easy way to support multiple languages for internationalization. To some extent, we can use different language files to display text in many different languages. We can put different language files in application/language directory. System language files can be found at sys...
[ { "code": null, "e": 2527, "s": 2319, "text": "The language class in CodeIgniter provides an easy way to support multiple languages for internationalization. To some extent, we can use different language files to display text in many different languages." }, { "code": null, "e": 2802, ...
Ensemble Methods in Python - GeeksforGeeks
23 Nov, 2021 Ensemble means a group of elements viewed as a whole rather than individually. An Ensemble method creates multiple models and combines them to solve it. Ensemble methods help to improve the robustness/generalizability of the model. In this article, we will discuss some methods with their implementation in ...
[ { "code": null, "e": 24344, "s": 24316, "text": "\n23 Nov, 2021" }, { "code": null, "e": 24714, "s": 24344, "text": "Ensemble means a group of elements viewed as a whole rather than individually. An Ensemble method creates multiple models and combines them to solve it. Ensemble m...
How to create Multiline TextBox in C#?
29 Nov, 2019 In Windows forms, TextBox plays an important role. With the help of TextBox, the user can enter data in the application, it can be of a single line or of multiple lines. In TextBox, you are allowed to create a multiline TextBox which stores multiple lines of the content using Multiline property of the Text...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2019" }, { "code": null, "e": 535, "s": 28, "text": "In Windows forms, TextBox plays an important role. With the help of TextBox, the user can enter data in the application, it can be of a single line or of multiple lines. In Te...
Circle Sort - GeeksforGeeks
13 Feb, 2018 Circle sort algorithm can be visualized by drawing concentric circles on an array of integers. The elements of the array lying on the same circle diametrically opposite to each other are compared and if found in the wrong order they are swapped. This goes on in a recursive fashion in which the array is div...
[ { "code": null, "e": 23998, "s": 23970, "text": "\n13 Feb, 2018" }, { "code": null, "e": 24448, "s": 23998, "text": "Circle sort algorithm can be visualized by drawing concentric circles on an array of integers. The elements of the array lying on the same circle diametrically opp...
Java - String equalsIgnoreCase() Method
This method compares this String to another String, ignoring case considerations. Two strings are considered equal ignoring case, if they are of the same length, and corresponding characters in the two strings are equal ignoring case. Here is the syntax of this method − public boolean equalsIgnoreCase(String anotherStr...
[ { "code": null, "e": 2612, "s": 2377, "text": "This method compares this String to another String, ignoring case considerations. Two strings are considered equal ignoring case, if they are of the same length, and corresponding characters in the two strings are equal ignoring case." }, { "cod...
Mapping Avocado Prices in Python. Photo by Peter de Vink from Pexels | by Craig Dickson | Towards Data Science
I love avocados. They’re tasty and healthy and I enjoy eating them. I know that makes me a basic cliche millenial, but the heart wants what the heart wants! When I came across the Avocado Prices dataset posted by Justin Kiggins on Kaggle, I immediately wanted to have a look at it and play with it. This contains informa...
[ { "code": null, "e": 597, "s": 172, "text": "I love avocados. They’re tasty and healthy and I enjoy eating them. I know that makes me a basic cliche millenial, but the heart wants what the heart wants! When I came across the Avocado Prices dataset posted by Justin Kiggins on Kaggle, I immediately wa...
Online JSON Minifier
Editable JSON Code 12345678910111213141516{"Company": {"Employee": {"FirstName": "Tanmay","LastName": "Patil","ContactNo": "1234567890","Email": "tanmaypatil@xyz.com","Address": {"City": "Bangalore","State": "Karnataka","Zip": "560212"}}}}X Privacy Policy Cookies Policy Terms of Use
[ { "code": null, "e": 19, "s": 0, "text": "Editable JSON Code" }, { "code": null, "e": 241, "s": 19, "text": "12345678910111213141516{\"Company\": {\"Employee\": {\"FirstName\": \"Tanmay\",\"LastName\": \"Patil\",\"ContactNo\": \"1234567890\",\"Email\": \"tanmaypatil@xyz.com\",\"A...
Create A Simple Search Engine Using Python | Towards Data Science
All of us have used a search engine, in example Google, in every single day for searching everything, even on simple things. But have you ever imagined, how that search engine can retrieve all of our documents based on what we want to search (query)? In this article, I will show you on how to build a simple search engi...
[ { "code": null, "e": 423, "s": 172, "text": "All of us have used a search engine, in example Google, in every single day for searching everything, even on simple things. But have you ever imagined, how that search engine can retrieve all of our documents based on what we want to search (query)?" }...
How to choose between `window.URL.createObjectURL()` and `window.webkitURL.createObjectURL()` based on browser?
To choose, you need to define a wrapper function − function display ( file ) { if ( window.webkitURL ) { return window.webkitURL.createObjectURL( file ); } else if ( window.URL && window.URL.createObjectURL ) { return window.URL.display( file ); } else { return null; } } After that set it for...
[ { "code": null, "e": 1113, "s": 1062, "text": "To choose, you need to define a wrapper function −" }, { "code": null, "e": 1361, "s": 1113, "text": "function display ( file ) {\n if ( window.webkitURL ) {\n return window.webkitURL.createObjectURL( file );\n } else if ( w...
Types of Pop up boxes available in JavaScript
There are 3 types of pop up boxes available in JavaScript. These are − 1. Alert − The Window.alert() method displays an alert dialog with the optional specified content and an OK button. For example, if you execute the following script, it'll open an alert box with the content: "This is an alert" with a confirmation bu...
[ { "code": null, "e": 1133, "s": 1062, "text": "There are 3 types of pop up boxes available in JavaScript. These are −" }, { "code": null, "e": 1249, "s": 1133, "text": "1. Alert − The Window.alert() method displays an alert dialog with the optional specified content and an OK but...
Check if element exists in list of lists in Python
Lists can be nested, means the elements of a list are themselves lists. In this article we will see how to find out if a given element is present in the sublist which are themselves elements in the bigger list. We first search if an element is present in the sublist and if the sublist is present in the list. If anyof t...
[ { "code": null, "e": 1273, "s": 1062, "text": "Lists can be nested, means the elements of a list are themselves lists. In this article we will see how to find out if a given element is present in the sublist which are themselves elements in the bigger list." }, { "code": null, "e": 1446,...
Small input field with Bootstrap
Use the .input-sm class to set small input field in Bootstrap. You can try to run the following code to implement .input-sm class: Live Demo <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset = "utf-8"> <meta name = "viewport" content = "width=device-width, initi...
[ { "code": null, "e": 1125, "s": 1062, "text": "Use the .input-sm class to set small input field in Bootstrap." }, { "code": null, "e": 1193, "s": 1125, "text": "You can try to run the following code to implement .input-sm class:" }, { "code": null, "e": 1203, "s":...
Add elements of given arrays with given constraints - GeeksforGeeks
25 Jun, 2021 Given two integer arrays, add their elements into third array by satisfying following constraints – 1. Addition should be done starting from 0th index of both arrays. 2. Split the sum if it is a not a single digit number and store the digits in adjacent locations in output array. 3. Output array should acc...
[ { "code": null, "e": 25060, "s": 25032, "text": "\n25 Jun, 2021" }, { "code": null, "e": 25420, "s": 25060, "text": "Given two integer arrays, add their elements into third array by satisfying following constraints – 1. Addition should be done starting from 0th index of both arra...
Canvas API in Android Jetpack Compose - GeeksforGeeks
20 Dec, 2021 Jetpack Compose is a modern UI toolkit that is designed to simplify UI development in Android. It consists of a reactive programming model with conciseness and ease of Kotlin programming language. It is fully declarative so that you can describe your UI by calling some series of functions that will transfo...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n20 Dec, 2021" }, { "code": null, "e": 27154, "s": 26381, "text": "Jetpack Compose is a modern UI toolkit that is designed to simplify UI development in Android. It consists of a reactive programming model with conciseness and eas...
How to Calculate Percentiles in R? - GeeksforGeeks
19 Dec, 2021 In this article, we will discuss how to calculate percentiles in the R programming language. Percentiles are measures of central tendency, which depict that out of the total data about certain percent data lies below it. In R, we can use quantile() function to get the job done. Syntax: quantile( data, pro...
[ { "code": null, "e": 26597, "s": 26569, "text": "\n19 Dec, 2021" }, { "code": null, "e": 26691, "s": 26597, "text": "In this article, we will discuss how to calculate percentiles in the R programming language. " }, { "code": null, "e": 26877, "s": 26691, "text...
Kth Smallest Factor | Practice | GeeksforGeeks
GIven two positive integers N and K. You have to find the Kth smallest factor of N. A factor of N is a positive integer which divides N. Output the Kth smallest factor of N if it exists otherwise print -1. Example 1: Input : N = 4 , K = 2 Output: 2 Explanation: All factors of 4 are 1,2 and 4. Out of these 2 is the 2n...
[ { "code": null, "e": 444, "s": 238, "text": "GIven two positive integers N and K. You have to find the Kth smallest factor of N. A factor of N is a positive integer which divides N. Output the Kth smallest factor of N if it exists otherwise print -1." }, { "code": null, "e": 457, "s"...
How to display Y-axis labels with more decimal places in R?
To display Y-axis labels with more decimal places, we would need to round the values of the vector or column for which we want to create the plot to the appropriate number of decimal places. After that axis function will be used for creating the graph. Before doing all this, the graph of original values should be creat...
[ { "code": null, "e": 1253, "s": 1062, "text": "To display Y-axis labels with more decimal places, we would need to round the values of the vector or column for which we want to create the plot to the appropriate number of decimal places." }, { "code": null, "e": 1399, "s": 1253, ...
Java program to find the 2nd largest number in an array
To find the second largest element of the given array, first of all, sort the array. Compare the first two elements of the array If the first element is greater than the second swap them. Then, compare 2nd and 3rd elements if the second element is greater than the 3rd swap them. Repeat this till the end of the array. A...
[ { "code": null, "e": 1147, "s": 1062, "text": "To find the second largest element of the given array, first of all, sort the array." }, { "code": null, "e": 1191, "s": 1147, "text": "Compare the first two elements of the array" }, { "code": null, "e": 1250, "s": 1...
How to switch axes in Matplotlib?
To switch axes in matplotlib, we can create a figure and add two subplots using subplots() method. Plot curves, extract x and y data, and set these data in a second plotted curve. Create x and y data points using numpy. Create x and y data points using numpy. Create a figure and add a set of two subplots. Create a figu...
[ { "code": null, "e": 1242, "s": 1062, "text": "To switch axes in matplotlib, we can create a figure and add two subplots using subplots() method. Plot curves, extract x and y data, and set these data in a second plotted curve." }, { "code": null, "e": 1282, "s": 1242, "text": "Cr...
Illustration of Central Limit Theorem Using Monte-Carlo Simulation | by Benjamin Obi Tayo Ph.D. | Towards Data Science
The Central Limit Theorem (CLT) is one of the most important theorems in statistics and data science. The CLT states that the sample mean of a probability distribution sample is a random variable with a mean value given by population mean and standard deviation given by population standard deviation divided by square r...
[ { "code": null, "e": 404, "s": 46, "text": "The Central Limit Theorem (CLT) is one of the most important theorems in statistics and data science. The CLT states that the sample mean of a probability distribution sample is a random variable with a mean value given by population mean and standard devi...
How to extract initial, last, or middle characters from a string in R?
In Text analysis, we might want to extract characters from a single string or from a vector of strings. This extraction might be required to create a new string with some specific words required for further analysis. We can do this with the help of str_sub function of stringr package. Consider the below string − > x1<-...
[ { "code": null, "e": 1348, "s": 1062, "text": "In Text analysis, we might want to extract characters from a single string or from a vector of strings. This extraction might be required to create a new string with some specific words required for further analysis. We can do this with the help of str_...
How to get the sum of a specific column of a dataframe in Pandas Python?
Sometimes, it may be required to get the sum of a specific column. This is where the ‘sum’ function can be used. The column whose sum needs to be computed can be passed as a value to the sum function. The index of the column can also be passed to find the sum. Let us see a demonstration of the same − Live Demo import ...
[ { "code": null, "e": 1175, "s": 1062, "text": "Sometimes, it may be required to get the sum of a specific column. This is where the ‘sum’ function can be used." }, { "code": null, "e": 1323, "s": 1175, "text": "The column whose sum needs to be computed can be passed as a value to...
How can I import modules for a Python Azure Function?
As of writing this, Python support for Azure Functions is experimental. So right now there is no way to directly get a module from a package manager to be installed on your instance. You'll need to bring your own modules with code. No modules are available by default on Azure Functions. You can add them by uploading it...
[ { "code": null, "e": 1445, "s": 1062, "text": "As of writing this, Python support for Azure Functions is experimental. So right now there is no way to directly get a module from a package manager to be installed on your instance. You'll need to bring your own modules with code. No modules are availa...
Mahotas - Haralick features - GeeksforGeeks
30 Jun, 2021 In this article we will see how we can get the haralick features of image in mahotas. Haralick texture features are calculated from a Gray Level Co-occurrence Matrix, (GLCM), a matrix that counts the co-occurrence of neighboring gray levels in the image. The GLCM is a square matrix that has the dimension o...
[ { "code": null, "e": 25843, "s": 25815, "text": "\n30 Jun, 2021" }, { "code": null, "e": 26373, "s": 25843, "text": "In this article we will see how we can get the haralick features of image in mahotas. Haralick texture features are calculated from a Gray Level Co-occurrence Matr...
Tensorflow.js tf.matMul() Function - GeeksforGeeks
18 May, 2021 Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.matMul() function is used to compute the dot product of two matrices, A * B. Syntax: tf.matMul (a, b, transposeA?, transposeB?) Parame...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n18 May, 2021" }, { "code": null, "e": 26711, "s": 26545, "text": "Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environmen...
Difference between #define and const in Arduino
If you've done sufficient Arduino programming, you'd have seen that there are two ways of defining constants. One way is to use #define, like #define const_name 3 The other way is to use the const keyword, like const int var_name = 3; #define is like a placeholder. The Arduino compiler replaces all mentions of this co...
[ { "code": null, "e": 1172, "s": 1062, "text": "If you've done sufficient Arduino programming, you'd have seen that there are two ways of defining constants." }, { "code": null, "e": 1204, "s": 1172, "text": "One way is to use #define, like" }, { "code": null, "e": 122...
How to get the class of a element which has fired an event using JavaScript/JQuery? - GeeksforGeeks
22 May, 2020 Given an HTML document and some event is fired, the task is to get the class of the element that has fired the event. Here are 2 approaches discussed. Approach 1: In this article we only use click event, However the approach can be applied to any event onCLick() event is used in this approach. This this.ge...
[ { "code": null, "e": 26666, "s": 26638, "text": "\n22 May, 2020" }, { "code": null, "e": 26817, "s": 26666, "text": "Given an HTML document and some event is fired, the task is to get the class of the element that has fired the event. Here are 2 approaches discussed." }, { ...
Line Splicing in C/C++ - GeeksforGeeks
13 Apr, 2021 While writing a program, sometimes we give comment about the working of the code in the comment section with the help of single/double comment line. But we had never thought that if at the end of this comment line if we use \(backslash) character then what will happen?The answer of the above question is li...
[ { "code": null, "e": 25775, "s": 25747, "text": "\n13 Apr, 2021" }, { "code": null, "e": 26482, "s": 25775, "text": "While writing a program, sometimes we give comment about the working of the code in the comment section with the help of single/double comment line. But we had nev...
How to normalize features in TensorFlow | by Chris Rawles | Towards Data Science
TL;DRWhen using tf.estimator, use the normalizer_fn argument in tf.feature_column.numeric_feature to normalize using the same parameters (mean, std, etc.) for training, evaluation, and serving. def zscore(col): mean = 3.04 std = 1.2 return (col — mean)/stdfeature_name = ‘total_bedrooms’normalized_feature = tf.featur...
[ { "code": null, "e": 366, "s": 172, "text": "TL;DRWhen using tf.estimator, use the normalizer_fn argument in tf.feature_column.numeric_feature to normalize using the same parameters (mean, std, etc.) for training, evaluation, and serving." }, { "code": null, "e": 555, "s": 366, "...
PHP Interview Questions
Dear readers, these PHP Programming Language Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of PHP Programming Language. As per my experience good interviewers hardly plan to ask any particular question during y...
[ { "code": null, "e": 3230, "s": 2757, "text": "Dear readers, these PHP Programming Language Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of PHP Programming Language. As per my experience go...
How to create BMI Calculator Web App using Python and PyWebIO ? - GeeksforGeeks
30 Apr, 2021 In this article, we are going to create a BMI calculator using the PyWebIO module. This is a python module mostly used to create simple and interactive interfaces on the web using Python programming. It can be installed using the below command: pip install pywebio Before creating a calculator let’s take a ...
[ { "code": null, "e": 24318, "s": 24290, "text": "\n30 Apr, 2021" }, { "code": null, "e": 24563, "s": 24318, "text": "In this article, we are going to create a BMI calculator using the PyWebIO module. This is a python module mostly used to create simple and interactive interfaces ...
Angular 6 - Animations
Animations add a lot of interaction between the html elements. Animation was also available with Angular2. The difference with Angular 6 is that animation is no more a part of the @angular/core library, but is a separate package that needs to be imported in app.module.ts. To start with, we need to import the library as...
[ { "code": null, "e": 2268, "s": 1995, "text": "Animations add a lot of interaction between the html elements. Animation was also available with Angular2. The difference with Angular 6 is that animation is no more a part of the @angular/core library, but is a separate package that needs to be importe...
AtomicReference getAndUpdate() method in Java with Examples - GeeksforGeeks
15 Apr, 2021 The getAndUpdate() method of a AtomicReference class is used to atomically updates which updates the current value of the AtomicReference by applying the specified updateFunction operation on the current value. It takes an object of updateFunction interface as its parameter and applies the operation specif...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n15 Apr, 2021" }, { "code": null, "e": 24335, "s": 23948, "text": "The getAndUpdate() method of a AtomicReference class is used to atomically updates which updates the current value of the AtomicReference by applying the specified...
Represent Int32 as a Binary String in C#
To represent Int632as a Binary string in C#, use the ToString() method and set the base as the ToString() method’s second parameter i.e. 2 for Binary. Int32 represents a 32-bit signed integer. Firstly, set an Int64 variable − int val = 30; Now, convert it to a binary string by including 2 as the second parameter. Conve...
[ { "code": null, "e": 1213, "s": 1062, "text": "To represent Int632as a Binary string in C#, use the ToString() method and set the base as the ToString() method’s second parameter i.e. 2 for Binary." }, { "code": null, "e": 1255, "s": 1213, "text": "Int32 represents a 32-bit signe...
Comprehensive Churn Prediction and Analysis | by Mandy Gu | Towards Data Science
Customer churn, also known as attrition, occurs when a customer stops doing business with a company. Understanding and detecting churn is the first step to retaining these customers and improving the company’s offerings. We will be training our churn model over the Telco-Customer-Churn Dataset to predict the likelihood...
[ { "code": null, "e": 392, "s": 171, "text": "Customer churn, also known as attrition, occurs when a customer stops doing business with a company. Understanding and detecting churn is the first step to retaining these customers and improving the company’s offerings." }, { "code": null, "e...
Zero Sum Subarrays | Practice | GeeksforGeeks
You are given an array arr[] of size n. Find the total count of sub-arrays having their sum equal to 0. Example 1: Input: n = 6 arr[] = {0,0,5,5,0,0} Output: 6 Explanation: The 6 subarrays are [0], [0], [0], [0], [0,0], and [0,0]. Example 2: Input: n = 10 arr[] = {6,-1,-3,4,-2,2,4,6,-12,-7} Output: 4 Explanation: Th...
[ { "code": null, "e": 342, "s": 238, "text": "You are given an array arr[] of size n. Find the total count of sub-arrays having their sum equal to 0." }, { "code": null, "e": 354, "s": 342, "text": "\nExample 1:" }, { "code": null, "e": 471, "s": 354, "text": "...
How to rename multiple files recursively using Python?
You can use os.walk to recursively walk through the directory and subsequently use os.rename to rename the files. import os def replace(folder_path, old, new): for path, subdirs, files in os.walk(folder_path): for name in files: if(old.lower() in name.lower()): file_path = os.pat...
[ { "code": null, "e": 1176, "s": 1062, "text": "You can use os.walk to recursively walk through the directory and subsequently use os.rename to rename the files." }, { "code": null, "e": 1523, "s": 1176, "text": "import os\ndef replace(folder_path, old, new):\n for path, subdir...
numpy.column_stack() in Python - GeeksforGeeks
06 Jan, 2019 numpy.column_stack() function is used to stack 1-D arrays as columns into a 2-D array.It takes a sequence of 1-D arrays and stack them as columns to make a single 2-D array. 2-D arrays are stacked as-is, just like with hstack function. Syntax : numpy.column_stack(tup) Parameters :tup : [sequence of ndarray...
[ { "code": null, "e": 26221, "s": 26193, "text": "\n06 Jan, 2019" }, { "code": null, "e": 26457, "s": 26221, "text": "numpy.column_stack() function is used to stack 1-D arrays as columns into a 2-D array.It takes a sequence of 1-D arrays and stack them as columns to make a single ...
How to create a TreeView using JavaFX?
A tree provides a view of hierarchical structures, each tree contains a root (highest object) and it contains children. You can create a tree view by instantiating the javafx.scene.control.TreeView class. The following Example demonstrates the creation of a TreeView. import javafx.application.Application; import javafx...
[ { "code": null, "e": 1267, "s": 1062, "text": "A tree provides a view of hierarchical structures, each tree contains a root (highest object) and it contains children. You can create a tree view by instantiating the javafx.scene.control.TreeView class." }, { "code": null, "e": 1330, "...
CSS | z-index Property - GeeksforGeeks
09 Aug, 2019 The z-index property is used to displace elements on the z-axis i.e in or out of the screen. It is used to define the order of elements if they overlap on each other. Syntax: z-index: auto|number|initial|inherit; Property values: auto: The stack order is equal to that of the parent(default). number: The s...
[ { "code": null, "e": 23680, "s": 23652, "text": "\n09 Aug, 2019" }, { "code": null, "e": 23847, "s": 23680, "text": "The z-index property is used to displace elements on the z-axis i.e in or out of the screen. It is used to define the order of elements if they overlap on each oth...
TypeScript | Array shift() Method - GeeksforGeeks
18 Jun, 2020 The Array.shift() is an inbuilt TypeScript function which is used to remove the first element from an array and returns that element. Syntax: array.shift(); Parameter: This methods does not accept any parameter. Return Value: This method returns the removed single value of the array. Below example illust...
[ { "code": null, "e": 26123, "s": 26095, "text": "\n18 Jun, 2020" }, { "code": null, "e": 26265, "s": 26123, "text": "The Array.shift() is an inbuilt TypeScript function which is used to remove the first element from an array and returns that element. Syntax:" }, { "code":...
Colorizing text and console background in C++ - GeeksforGeeks
27 Jan, 2021 In C++ programming, the default background of the output screen is black and the text color is the white color, the task is to color both the background and text color in the output screen. Header File: The header file required to color the text and background can be either of the given header files: #incl...
[ { "code": null, "e": 24098, "s": 24070, "text": "\n27 Jan, 2021" }, { "code": null, "e": 24288, "s": 24098, "text": "In C++ programming, the default background of the output screen is black and the text color is the white color, the task is to color both the background and text c...
Level with maximum number of nodes - GeeksforGeeks
28 Jun, 2021 Find the level in a binary tree which has the maximum number of nodes. The root is at level 0.Examples: Input: Output : 2 Explanation: Input: Output:1 Explanation Approach: It is known that in level order traversal of binary tree with queue, at any time our queue contains all elements of a particular ...
[ { "code": null, "e": 24680, "s": 24652, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24786, "s": 24680, "text": "Find the level in a binary tree which has the maximum number of nodes. The root is at level 0.Examples: " }, { "code": null, "e": 24794, "s": 2478...
Convert a Binary Search Tree into a Skewed tree in increasing or decreasing order - GeeksforGeeks
16 Jun, 2021 Given a Binary Search Tree and a binary integer K, the task is to convert Binary search tree into a Skewed Tree in increasing order if K = 0 or in decreasing order if K = 1. Examples: Input: K = 0, 5 / \ 3 6 Output: 3 \ 5 \ 6 I...
[ { "code": null, "e": 25324, "s": 25296, "text": "\n16 Jun, 2021" }, { "code": null, "e": 25498, "s": 25324, "text": "Given a Binary Search Tree and a binary integer K, the task is to convert Binary search tree into a Skewed Tree in increasing order if K = 0 or in decreasing order...
R - Multiple Regression
Multiple regression is an extension of linear regression into relationship between more than two variables. In simple linear relation we have one predictor and one response variable, but in multiple regression we have more than one predictor variable and one response variable. The general mathematical equation for mult...
[ { "code": null, "e": 2680, "s": 2402, "text": "Multiple regression is an extension of linear regression into relationship between more than two variables. In simple linear relation we have one predictor and one response variable, but in multiple regression we have more than one predictor variable an...
Convert Iterator to Iterable in Java - GeeksforGeeks
10 Nov, 2021 Given an Iterator, the task is to convert it into Iterables in Java. Examples: Input: Iterator = {1, 2, 3, 4, 5} Output: {1, 2, 3, 4, 5} Input: Iterator = {'G', 'e', 'e', 'k', 's'} Output: {'G', 'e', 'e', 'k', 's'} Below are the various ways to do so: By overriding the abstract method Iterable.iterator()...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n10 Nov, 2021" }, { "code": null, "e": 24017, "s": 23948, "text": "Given an Iterator, the task is to convert it into Iterables in Java." }, { "code": null, "e": 24027, "s": 24017, "text": "Examples:" }, { ...
How to Easily Convert a Python Script to an Executable File (.exe) | by Frank Andrade | Towards Data Science
Although running a Python script using the terminal or your favorite text editor is straightforward, there are some situations in which you will prefer to hide all the code written in the script (.py) inside an executable file (.exe). Maybe you need to send the script to someone who doesn’t code at all or you might nee...
[ { "code": null, "e": 407, "s": 172, "text": "Although running a Python script using the terminal or your favorite text editor is straightforward, there are some situations in which you will prefer to hide all the code written in the script (.py) inside an executable file (.exe)." }, { "code"...
turtle.tracer() function in Python - GeeksforGeeks
06 Aug, 2020 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This function is used to turn turtle animation on or off and set a delay for update drawin...
[ { "code": null, "e": 24197, "s": 24169, "text": "\n06 Aug, 2020" }, { "code": null, "e": 24414, "s": 24197, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it...
How to convert excel content into DataFrame in R ? - GeeksforGeeks
17 Apr, 2021 R Programming Language allows us to read and write data into various files like CSV, Excel, XML, etc. In this article, we are going to discuss how to convert excel content into DataFrame in R Programming. To read an excel file itself, read.xlsx() function from xlsx is used. This module is not built into R ...
[ { "code": null, "e": 24851, "s": 24823, "text": "\n17 Apr, 2021" }, { "code": null, "e": 25126, "s": 24851, "text": "R Programming Language allows us to read and write data into various files like CSV, Excel, XML, etc. In this article, we are going to discuss how to convert excel...
Python Program to print strings with repetitive occurrence of an element in a list - GeeksforGeeks
11 Dec, 2020 Given a strings List, write a Python program that extracts all the strings with more than one occurrence of a specific value(here described using K) in elements of a list. Examples: Input : test_list = [“geeksforgeeks”, “best”, “for”, “geeks”], K = ‘e’ Output : [‘geeksforgeeks’, ‘geeks’] Explanation : geek...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n11 Dec, 2020" }, { "code": null, "e": 24073, "s": 23901, "text": "Given a strings List, write a Python program that extracts all the strings with more than one occurrence of a specific value(here described using K) in elements of...
From scratch to search: setup Elasticsearch under 4 minutes, load a CSV with Python and read some more about it | by Stanislav Prihoda 🔥 | Towards Data Science
Primary aim of this article is to provide a short and simple guidance on how to initially setup your first Elasticsearch “dev” environment in order to get going quickly and start exploring/exploiting what the technology offers. The introduction will be based around the foremost APIs that Elasticsearch offers which are ...
[ { "code": null, "e": 994, "s": 172, "text": "Primary aim of this article is to provide a short and simple guidance on how to initially setup your first Elasticsearch “dev” environment in order to get going quickly and start exploring/exploiting what the technology offers. The introduction will be ba...
Convert DataFrame to vector in R - GeeksforGeeks
16 Mar, 2021 In this article, we will discuss how a dataframe can be converted to a vector in R. For the Conversion of dataframe into a vector, we can simply pass the dataframe column name as [[index]]. Approach: We are taking a column in the dataframe and passing it into another variable by the selection method. Selec...
[ { "code": null, "e": 24906, "s": 24878, "text": "\n16 Mar, 2021" }, { "code": null, "e": 25096, "s": 24906, "text": "In this article, we will discuss how a dataframe can be converted to a vector in R. For the Conversion of dataframe into a vector, we can simply pass the dataframe...
How to copy or clone a C# list?
To copy or clone a C# list, firstly set a list − List < string > list1 = new List < string > (); list1.Add("One"); list1.Add("Two"); list1.Add("Three"); list1.Add("Four"); Now declare a string array and use the CopyTo() method to copy. string[] arr = new string[20]; list1.CopyTo(arr); Let us see the complete code to co...
[ { "code": null, "e": 1111, "s": 1062, "text": "To copy or clone a C# list, firstly set a list −" }, { "code": null, "e": 1234, "s": 1111, "text": "List < string > list1 = new List < string > ();\nlist1.Add(\"One\");\nlist1.Add(\"Two\");\nlist1.Add(\"Three\");\nlist1.Add(\"Four\")...
C# | Get the number of nodes contained in LinkedList<T> - GeeksforGeeks
01 Feb, 2019 LinkedList<T>.Count property is used to get the number of nodes actually contained in the LinkedList<T>. Syntax: public int Count { get; } Return Value: The number of nodes actually contained in the LinkedList. Note: Retrieving the value of this property is an O(1) operation. Below given are some examples...
[ { "code": null, "e": 24514, "s": 24486, "text": "\n01 Feb, 2019" }, { "code": null, "e": 24619, "s": 24514, "text": "LinkedList<T>.Count property is used to get the number of nodes actually contained in the LinkedList<T>." }, { "code": null, "e": 24627, "s": 24619...
Generate all permutation of a set in Python?
In mathematics, arranging all the members of a set into some order or sequence and if the set is already ordered, rearranging (reordering) its elements is called permutation. We can generate permutation using different technique. Below are some of them, Python comes with dedicated module for permutations and combinatio...
[ { "code": null, "e": 1316, "s": 1062, "text": "In mathematics, arranging all the members of a set into some order or sequence and if the set is already ordered, rearranging (reordering) its elements is called permutation.\nWe can generate permutation using different technique. Below are some of them...
A Swift Introduction To VegaLite.jl — StatPlots For Julia | by Emmett Boudreau | Towards Data Science
Data visualization is an incredibly vital technique a Data Scientist or Analyst can do to find out a lot more about their data. Visualizing your data can make correlations significantly easier to spot, and just as well can give a good idea of other aspects of data, such as variation and sample counts. Needless to say, ...
[ { "code": null, "e": 844, "s": 172, "text": "Data visualization is an incredibly vital technique a Data Scientist or Analyst can do to find out a lot more about their data. Visualizing your data can make correlations significantly easier to spot, and just as well can give a good idea of other aspect...
Deploying Models to Production with Mlflow and Amazon Sagemaker | by Kyle Gallatin | Towards Data Science
Update 8/21/19: Changed arguments and some hardcoded variables to work with mlflow 1.2.0 As data science continues to mature in 2019, there is increasing demand for data scientists to move beyond the notebook. matplotlib and some performance metrics are no longer enough to deliver business value. Models need to be depl...
[ { "code": null, "e": 261, "s": 172, "text": "Update 8/21/19: Changed arguments and some hardcoded variables to work with mlflow 1.2.0" }, { "code": null, "e": 609, "s": 261, "text": "As data science continues to mature in 2019, there is increasing demand for data scientists to mo...
C library function - strstr()
The C library function char *strstr(const char *haystack, const char *needle) function finds the first occurrence of the substring needle in the string haystack. The terminating '\0' characters are not compared. Following is the declaration for strstr() function. char *strstr(const char *haystack, const char *needle) h...
[ { "code": null, "e": 2219, "s": 2007, "text": "The C library function char *strstr(const char *haystack, const char *needle) function finds the first occurrence of the substring needle in the string haystack. The terminating '\\0' characters are not compared." }, { "code": null, "e": 227...
Data Visualization Using Statistical Charts by Plotly | by Himanshu Sharma | Towards Data Science
Data Visualization plays an important role in data analysis because as soon as the human eyes see some charts or graphs they try finding the patterns in that graph. Data Visualization is visually representing the data using different plots/graphs/charts to find out the pattern, outliers, and relation between different ...
[ { "code": null, "e": 212, "s": 47, "text": "Data Visualization plays an important role in data analysis because as soon as the human eyes see some charts or graphs they try finding the patterns in that graph." }, { "code": null, "e": 434, "s": 212, "text": "Data Visualization is ...
Implementing Transfer Learning from RGB to Multi-channel Imagery | by Sijuade Oguntayo | Towards Data Science
I very recently had the privilege and opportunity to participate in a computer vision challenge in partnership with Omdena and WeedBot, an impact-driven startup developing a laser weeding machinery for farmers to find and remove weeds with a laser beam. We explored Image Segmentation techniques for crops vs weeds class...
[ { "code": null, "e": 426, "s": 172, "text": "I very recently had the privilege and opportunity to participate in a computer vision challenge in partnership with Omdena and WeedBot, an impact-driven startup developing a laser weeding machinery for farmers to find and remove weeds with a laser beam." ...
Output of C programs | Set 65 (If-Else) - GeeksforGeeks
07 Sep, 2021 Prerequisite : Decision making in CQuestion 1 C #include"stdio.h"#include"stdlib.h"void reverse(int i){ if (i > 5) exit(0); printf("%d\n", i); return reverse(i++);}int main(){ reverse(1);} OPTIONS: a)Segmenation fault b)Compilation error c)Print 1 Infinite time d)Both a & c OUTPUT:...
[ { "code": null, "e": 24245, "s": 24217, "text": "\n07 Sep, 2021" }, { "code": null, "e": 24293, "s": 24245, "text": "Prerequisite : Decision making in CQuestion 1 " }, { "code": null, "e": 24295, "s": 24293, "text": "C" }, { "code": "#include\"stdio.h...
Python | Multiply Integer in Mixed List of string and numbers - GeeksforGeeks
11 Dec, 2019 Sometimes, while working with Python, we can come across a problem in which we require to find the product of list. This problem is easier to solve. But this can get complex in case we have mixture of data types to go along with it. Let’s discuss certain ways in which this task can be performed. Method #1 ...
[ { "code": null, "e": 24149, "s": 24121, "text": "\n11 Dec, 2019" }, { "code": null, "e": 24446, "s": 24149, "text": "Sometimes, while working with Python, we can come across a problem in which we require to find the product of list. This problem is easier to solve. But this can g...
Check if a given graph is Bipartite using DFS - GeeksforGeeks
09 Feb, 2022 Given a connected graph, check if the graph is bipartite or not. A bipartite graph is possible if the graph coloring is possible using two colors such that vertices in a set are colored with the same color. Note that it is possible to color a cycle graph with an even cycle using two colors. For example, se...
[ { "code": null, "e": 24984, "s": 24956, "text": "\n09 Feb, 2022" }, { "code": null, "e": 25315, "s": 24984, "text": "Given a connected graph, check if the graph is bipartite or not. A bipartite graph is possible if the graph coloring is possible using two colors such that vertice...
Kotlin Inheritance
In Kotlin, it is possible to inherit class properties and functions from one class to another. We group the "inheritance concept" into two categories: subclass (child) - the class that inherits from another class superclass (parent) - the class being inherited from In the example below, MyChildClass (subclass) inherits...
[ { "code": null, "e": 151, "s": 0, "text": "In Kotlin, it is possible to inherit class properties and functions from one class to another. We group the \"inheritance concept\" into two categories:" }, { "code": null, "e": 213, "s": 151, "text": "subclass (child) - the class that i...
Improving Deep Neural Networks. In this story, I have explained... | by Rochak Agrawal | Towards Data Science
Deep Neural Networks are the solution to complex tasks like Natural Language Processing, Computer Vision, Speech Synthesis etc. Improving their performance is as important as understanding how they work. To understand how they work, you can refer to my previous posts. In this post, I will be explaining various terminol...
[ { "code": null, "e": 552, "s": 172, "text": "Deep Neural Networks are the solution to complex tasks like Natural Language Processing, Computer Vision, Speech Synthesis etc. Improving their performance is as important as understanding how they work. To understand how they work, you can refer to my pr...
Java program to remove nulls from a List Container
11 Dec, 2018 List is an ordered collection of objects which allows to store duplicate values or null values, in the insertion order. So it is very important to remove null values in many scenarios. Examples: Input: [Geeks, null, forGeeks, null, A computer portal] Output: [Geeks, forGeeks, A computer portal] Input: [...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Dec, 2018" }, { "code": null, "e": 213, "s": 28, "text": "List is an ordered collection of objects which allows to store duplicate values or null values, in the insertion order. So it is very important to remove null values in many s...
Java Program to Create an Object for Class and Assign Value in the Object Using Constructor
11 Nov, 2020 Java is one of the most popular programming languages. It is an object-oriented programming language which means that we can create classes, objects, and many more. It also supports inheritance, polymorphism, encapsulation, and many more. It is used in all applications starting from mobile applications to ...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Nov, 2020" }, { "code": null, "e": 549, "s": 53, "text": "Java is one of the most popular programming languages. It is an object-oriented programming language which means that we can create classes, objects, and many more. It also s...
Median of Stream of Running Integers using STL
21 Jun, 2022 Given that integers are being read from a data stream. Find the median of all the elements read so far starting from the first integer till the last integer. This is also called the Median of Running Integers. The data stream can be any source of data, for example, a file, an array of integers, input strea...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Jun, 2022" }, { "code": null, "e": 367, "s": 52, "text": "Given that integers are being read from a data stream. Find the median of all the elements read so far starting from the first integer till the last integer. This is also cal...
Python | Sum list of dictionaries with same key
03 Mar, 2019 You have given a list of dictionaries, the task is to return a single dictionary with sum values with the same key. Let’s discuss different methods to do the task. Method #1: Using reduce() + operator # Python code to demonstrate# return the sum of values of dictionary# with same keys in list of dictionary...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Mar, 2019" }, { "code": null, "e": 168, "s": 52, "text": "You have given a list of dictionaries, the task is to return a single dictionary with sum values with the same key." }, { "code": null, "e": 216, "s": 168, ...
Python | Pandas Series.str.get_dummies()
25 Oct, 2021 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas str.get_dummies() is used to separate each string in the caller series at the passed s...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Oct, 2021" }, { "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...