title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Javascript Number() Function
06 Jul, 2020 Below is the example of the Number() function. Example:<script> // JavaScript to illustrate // Number() function function func() { // Original string var a = true; var value = Number(a); document.write(value); }// Driver codefunc();</script> <script> // JavaS...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jul, 2020" }, { "code": null, "e": 75, "s": 28, "text": "Below is the example of the Number() function." }, { "code": null, "e": 315, "s": 75, "text": "Example:<script> // JavaScript to illustrate // Number(...
Python – time.ctime() Method
16 Jul, 2021 Python time.ctime() method converts a time in seconds since the epoch to a string in local time. This is equivalent to asctime(localtime(seconds)). Current time is returned by localtime() is used when the time tuple is not present. Syntax: time.ctime([ sec ]) Parameter: sec: number of seconds to be convert...
[ { "code": null, "e": 54, "s": 26, "text": "\n16 Jul, 2021" }, { "code": null, "e": 286, "s": 54, "text": "Python time.ctime() method converts a time in seconds since the epoch to a string in local time. This is equivalent to asctime(localtime(seconds)). Current time is returned b...
Dmitry – Passive Information Gathering Tool in Kali Linux
15 Apr, 2021 Dmitry is a free and open-source tool available on GitHub. The tool is used for information gathering. You can download the tool and install in your Kali Linux. Dmitry stands for DeepMagic Information Gathering Tool. It’s a command-line tool Using Dmitry tool You can collect information about the target, t...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Apr, 2021" }, { "code": null, "e": 463, "s": 28, "text": "Dmitry is a free and open-source tool available on GitHub. The tool is used for information gathering. You can download the tool and install in your Kali Linux. Dmitry stands ...
Find median of BST in O(n) time and O(1) space
26 May, 2022 Given a Binary Search Tree, find median of it. If no. of nodes are even: then median = ((n/2th node + ((n)/2th+1) node) /2 If no. of nodes are odd : then median = (n+1)/2th node.For example, median of below BST is 12. More Examples: Given BST(with odd no. of nodes) is : 6 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 May, 2022" }, { "code": null, "e": 272, "s": 52, "text": "Given a Binary Search Tree, find median of it. If no. of nodes are even: then median = ((n/2th node + ((n)/2th+1) node) /2 If no. of nodes are odd : then median = (n+1)/2th n...
How to Enable Shell Script Debugging Mode in Linux?
18 May, 2021 Linux is a very popular operating system especially among developers and in the computer science world, as it comes along with its powerful ability to play with the kernel. Major Linux distributions (often referred to as Linux distros) are Open Source (Source Code available and can be modified on request) ...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 May, 2021" }, { "code": null, "e": 398, "s": 54, "text": "Linux is a very popular operating system especially among developers and in the computer science world, as it comes along with its powerful ability to play with the kernel. M...
Java Program for Tower of Hanoi
16 Jun, 2022 Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules: 1) Only one disk can be moved at a time. 2) Each move consists of taking the upper disk from one of the stacks and placin...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jun, 2022" }, { "code": null, "e": 510, "s": 52, "text": "Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire stack to another rod, obeying the following si...
GATE | GATE-CS-2014-(Set-1) | Question 65
10 Apr, 2018 The minimum number of comparisons required to find the minimum and the maximum of 100 numbers is ______________.(A) 148(B) 147(C) 146(D) 140Answer: (A)Explanation: Steps to find minimum and maximum element out of n numbers: 1. Pick 2 elements(a, b), compare them. (say a > b) 2. Update min by comparing (min...
[ { "code": null, "e": 53, "s": 25, "text": "\n10 Apr, 2018" }, { "code": null, "e": 277, "s": 53, "text": "The minimum number of comparisons required to find the minimum and the maximum of 100 numbers is ______________.(A) 148(B) 147(C) 146(D) 140Answer: (A)Explanation: Steps to f...
Modifying existing data in SQL
10 Sep, 2021 In this article, we are going to cover how we can modify the existing data in SQL. There are lots of situations where we need to alter and need to update existing data. Let’s discuss one by one. 1. ALTER Command : ALTER is an SQL command used in Relational DBMS and is a Data Definition Language (DDL) stat...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Sep, 2021" }, { "code": null, "e": 224, "s": 28, "text": "In this article, we are going to cover how we can modify the existing data in SQL. There are lots of situations where we need to alter and need to update existing data. Let’s ...
How to add filter with Portfolio Gallery using HTML, CSS and JavaScript ?
10 Sep, 2021 The portfolio gallery is useful when your website contains different types of content or so many contents. With the help of a portfolio gallery, you can easily display all the contents on your front page to the user. But if user wants some specific contents then we need to attach filters on the portfolio. ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Sep, 2021" }, { "code": null, "e": 730, "s": 28, "text": "The portfolio gallery is useful when your website contains different types of content or so many contents. With the help of a portfolio gallery, you can easily display all the...
Java.net.URI class in Java
12 Jun, 2017 This class provides methods for creating URI instances from its components or by parsing the string form of those components, for accessing and retrieving different components of a URI instance.What is URI?URI stands for Uniform Resource Identifier. A Uniform Resource Identifier is a sequence of characters...
[ { "code": null, "e": 54, "s": 26, "text": "\n12 Jun, 2017" }, { "code": null, "e": 524, "s": 54, "text": "This class provides methods for creating URI instances from its components or by parsing the string form of those components, for accessing and retrieving different component...
File handling in Java using FileWriter and FileReader
23 Feb, 2022 Java FileWriter and FileReader classes are used to write and read data from text files (they are Character Stream classes). It is recommended not to use the FileInputStream and FileOutputStream classes if you have to read and write any textual information as these are Byte stream classes. FileWriterFileWr...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Feb, 2022" }, { "code": null, "e": 345, "s": 54, "text": "Java FileWriter and FileReader classes are used to write and read data from text files (they are Character Stream classes). It is recommended not to use the FileInputStream a...
Subarrays with distinct elements
11 Jul, 2022 Given an array, the task is to calculate the sum of lengths of contiguous subarrays having all elements distinct. Examples: Input : arr[] = {1, 2, 3} Output : 10 {1, 2, 3} is a subarray of length 3 with distinct elements. Total length of length three = 3. {1, 2}, {2, 3} are 2 subarray of length 2 with ...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jul, 2022" }, { "code": null, "e": 166, "s": 52, "text": "Given an array, the task is to calculate the sum of lengths of contiguous subarrays having all elements distinct." }, { "code": null, "e": 177, "s": 166, ...
Zeller’s Congruence | Find the Day for a Date
14 Mar, 2022 Zeller’s congruence is an algorithm devised by Christian Zeller to calculate the day of the week for any Julian or Gregorian calendar date. It can be considered to be based on the conversion between Julian day and the calendar date. It is an algorithm to find the day of the week for any date. For the Grego...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Mar, 2022" }, { "code": null, "e": 421, "s": 54, "text": "Zeller’s congruence is an algorithm devised by Christian Zeller to calculate the day of the week for any Julian or Gregorian calendar date. It can be considered to be based o...
How to change the Background Color of Text in C# Console
To change the background color of text in Console, use the Console.BackgroundColor Property in C#. Let us now see an example − using System; class Demo { public static void Main (string[] args) { Console.BackgroundColor = ConsoleColor.Blue; Console.WriteLine("Background color changed = "+Console.Backgrou...
[ { "code": null, "e": 1161, "s": 1062, "text": "To change the background color of text in Console, use the Console.BackgroundColor\nProperty in C#." }, { "code": null, "e": 1189, "s": 1161, "text": "Let us now see an example −" }, { "code": null, "e": 1399, "s": 11...
SELU — Make FNNs Great Again (SNN) | by Elior Cohen | Towards Data Science
Last month I came across a recent article (published June 22nd, 2017) presenting a new concept called Self Normalizing Networks (SNN).In this post I will review what’s different about them and show some comparisons.Link to the article —Klambauer et al.Code for this post is taken from bioinf-jku’s github. Before we get ...
[ { "code": null, "e": 478, "s": 172, "text": "Last month I came across a recent article (published June 22nd, 2017) presenting a new concept called Self Normalizing Networks (SNN).In this post I will review what’s different about them and show some comparisons.Link to the article —Klambauer et al.Cod...
Wikipedia Data Science: Working with the World’s Largest Encyclopedia | by Will Koehrsen | Towards Data Science
Wikipedia is one of modern humanity’s most impressive creations. Who would have thought that in just a few years, anonymous contributors working for free could create the greatest source of online knowledge the world has ever seen? Not only is Wikipedia the best place to get information for writing your college papers,...
[ { "code": null, "e": 650, "s": 172, "text": "Wikipedia is one of modern humanity’s most impressive creations. Who would have thought that in just a few years, anonymous contributors working for free could create the greatest source of online knowledge the world has ever seen? Not only is Wikipedia t...
Machine Learning: Autoencoders. Using autoencoders to fit high... | by Anuradha Wickramarachchi | Towards Data Science
I found the simplest definition for an autoencoder through Wikipedia, which translates itself into “A machine learning model that learns a lower-dimensional encoding of data”. This is one of the smartest ways of reducing the dimensionality of a dataset, just by using the capabilities of the differentiation ending (Tens...
[ { "code": null, "e": 686, "s": 172, "text": "I found the simplest definition for an autoencoder through Wikipedia, which translates itself into “A machine learning model that learns a lower-dimensional encoding of data”. This is one of the smartest ways of reducing the dimensionality of a dataset, j...
Largest BST | Practice | GeeksforGeeks
Given a binary tree. Find the size of its largest subtree that is a Binary Search Tree. Note: Here Size is equal to the number of nodes in the subtree. Example 1: Input: 1 / \ 4 4 / \ 6 8 Output: 1 Explanation: There's no sub-tree with size greater than 1 which forms a BST. All the l...
[ { "code": null, "e": 390, "s": 238, "text": "Given a binary tree. Find the size of its largest subtree that is a Binary Search Tree.\nNote: Here Size is equal to the number of nodes in the subtree." }, { "code": null, "e": 401, "s": 390, "text": "Example 1:" }, { "code": ...
Valid Palindrome III in C++
Suppose we have a string s and another number k; we have to check whether the given string is a K-Palindrome or not. A string is said to be K-Palindrome if it can be transformed into a palindrome by removing at most k characters from it. So, if the input is like s = "abcdeca", k = 2, then the output will be true as by ...
[ { "code": null, "e": 1179, "s": 1062, "text": "Suppose we have a string s and another number k; we have to check whether the given string is a K-Palindrome or not." }, { "code": null, "e": 1300, "s": 1179, "text": "A string is said to be K-Palindrome if it can be transformed into...
Python module Newspaper for Article scraping & curation?
We can extract content in web pages from a variety of domains such as data mining, information retrieval etc. To extract information from the websites of newspapers and magazines we are going to use newspaper library. The main purpose of this library is to extract and curates the articles from the newspapers and simila...
[ { "code": null, "e": 1280, "s": 1062, "text": "We can extract content in web pages from a variety of domains such as data mining, information retrieval etc. To extract information from the websites of newspapers and magazines we are going to use newspaper library." }, { "code": null, "e"...
Remove character | Practice | GeeksforGeeks
Given two strings string1 and string2, remove those characters from first string(string1) which are present in second string(string2). Both the strings are different and contain only lowercase characters. NOTE: Size of first string is always greater than the size of second string( |string1| > |string2|). Example 1:...
[ { "code": null, "e": 536, "s": 226, "text": "Given two strings string1 and string2, remove those characters from first string(string1) which are present in second string(string2). Both the strings are different and contain only lowercase characters.\nNOTE: Size of first string is always greater tha...
Microsoft Expression Web - Blank Web Page
As we have already created our website, now we will need to create our Home Page. In the previous chapter, we have created a one-page website, and our Home Page was created at that time automatically by Expression Web. So, if you have created a blank website, then you will need to create a Home Page for your site. Micr...
[ { "code": null, "e": 2512, "s": 2196, "text": "As we have already created our website, now we will need to create our Home Page. In the previous chapter, we have created a one-page website, and our Home Page was created at that time automatically by Expression Web. So, if you have created a blank we...
Explicitly assigning port number to client in Socket - GeeksforGeeks
09 Nov, 2021 Prerequisite: Socket programming in C/C++.In socket programming, when server and client are connected then the client is provided any random port number by an operating system to run and generally, we don’t care about it, But in some cases, there may be a firewall on the client-side that only allows outgoi...
[ { "code": null, "e": 24232, "s": 24204, "text": "\n09 Nov, 2021" }, { "code": null, "e": 24831, "s": 24232, "text": "Prerequisite: Socket programming in C/C++.In socket programming, when server and client are connected then the client is provided any random port number by an oper...
Kotlin - Basic Types
In this chapter, we will learn about the basic data types available in Kotlin programming language. The representation of numbers in Kotlin is pretty similar to Java, however, Kotlin does not allow internal conversion of different data types. Following table lists different variable lengths for different numbers. In th...
[ { "code": null, "e": 2525, "s": 2425, "text": "In this chapter, we will learn about the basic data types available in Kotlin programming language." }, { "code": null, "e": 2740, "s": 2525, "text": "The representation of numbers in Kotlin is pretty similar to Java, however, Kotlin...
Longest Repeating Substring in C++
Suppose we have a string S, we have to find the length of the longest repeating substring(s). We will return 0 if no repeating substring is present. So if the string is like “abbaba”, then the output will be 2. As the longest repeating substring is “ab” or “ba”. Return all words that can be formed in this manner, in le...
[ { "code": null, "e": 1325, "s": 1062, "text": "Suppose we have a string S, we have to find the length of the longest repeating substring(s). We will return 0 if no repeating substring is present. So if the string is like “abbaba”, then the output will be 2. As the longest repeating substring is “ab”...
Serve a TensorFlow 2 Deep Learning Classifier as a REST API (with GPU support), Part I | by Hamed ZITOUN | Towards Data Science
This series of articles will help you to move from notebooks to real-world use cases of Data Science techniques! We’ll take a Deep Learning classifier from zero to production 🚀! Disclaimer: You should have prior knowledge and experience with CNN-Convolutional Neural Networks. The dataset we will use to train our Convo...
[ { "code": null, "e": 350, "s": 172, "text": "This series of articles will help you to move from notebooks to real-world use cases of Data Science techniques! We’ll take a Deep Learning classifier from zero to production 🚀!" }, { "code": null, "e": 449, "s": 350, "text": "Disclai...
AWT Window Class
The class Window is a top level window with no border and no menubar. It uses BorderLayout as default layout manager. Following is the declaration for java.awt.Window class: public class Window extends Container implements Accessible Window(Frame owner) Constructs a new, initially invisible window with the sp...
[ { "code": null, "e": 1865, "s": 1747, "text": "The class Window is a top level window with no border and no menubar. It uses BorderLayout as default layout manager." }, { "code": null, "e": 1921, "s": 1865, "text": "Following is the declaration for java.awt.Window class:" }, ...
WebGL - Context
To write a WebGL application, first step is to get the WebGL rendering context object. This object interacts with the WebGL drawing buffer and can call all the WebGL methods. The following operations are performed to obtain the WebGL context − Create an HTML-5 canvas Get the canvas ID Obtain WebGL In Chapter 5, we disc...
[ { "code": null, "e": 2291, "s": 2047, "text": "To write a WebGL application, first step is to get the WebGL rendering context object. This object interacts with the WebGL drawing buffer and can call all the WebGL methods. The following operations are performed to obtain the WebGL context −" }, {...
MySQL add “prefix” to every column?
To create a view only if it does not already exist, you can use the following syntax − CREATE OR REPLACE VIEW yourViewName AS SELECT *FROM yourTableName; To understand the above syntax, let us create a table. The query to create a table is as follows − mysql> create table createViewDemo -> ( -> Id int NOT NULL A...
[ { "code": null, "e": 1149, "s": 1062, "text": "To create a view only if it does not already exist, you can use the following syntax −" }, { "code": null, "e": 1216, "s": 1149, "text": "CREATE OR REPLACE VIEW yourViewName AS SELECT *FROM yourTableName;" }, { "code": null, ...
Predicting Stock Price with LSTM. Machine learning has found its... | by Asutosh Nayak | Towards Data Science
Machine learning has found its applications in many interesting fields over these years. Taming stock market is one of them. I had been thinking of giving it a shot for quite some time now; mostly to solidify my working knowledge of LSTMs. And finally I have finished the project and quite excited to share my experience...
[ { "code": null, "e": 494, "s": 172, "text": "Machine learning has found its applications in many interesting fields over these years. Taming stock market is one of them. I had been thinking of giving it a shot for quite some time now; mostly to solidify my working knowledge of LSTMs. And finally I h...
turtle.up() method in Python - GeeksforGeeks
16 Jul, 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. The turtle.up() method is used to pull the pen up from the screen. It gives no drawing on ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n16 Jul, 2020" }, { "code": null, "e": 24509, "s": 24292, "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 conduct market basket analysis | by Sambit Das | Towards Data Science
Market basket analysis is one of the key techniques that is used by large retailers to uncover hidden associations between items. Market basket analysis uses transaction data i.e. the list of all items bought by a customer in a single purchase to determine what products are ordered or purchased together and identify pa...
[ { "code": null, "e": 671, "s": 47, "text": "Market basket analysis is one of the key techniques that is used by large retailers to uncover hidden associations between items. Market basket analysis uses transaction data i.e. the list of all items bought by a customer in a single purchase to determine...
How can we extract the Year and Month from a date in MySQL?
It can be done with the following three ways in MySQL For extracting YEAR and MONTH collectively then we can use the EXTRACT function. We need to provide the YEAR_MONTH as an argument for this function. To understand it, consider the following function using the data from table ‘Collegedetail’ − mysql> Select EXTRACT(...
[ { "code": null, "e": 1116, "s": 1062, "text": "It can be done with the following three ways in MySQL" }, { "code": null, "e": 1360, "s": 1116, "text": " For extracting YEAR and MONTH collectively then we can use the EXTRACT function. We need to provide the YEAR_MONTH as an argume...
How to find Square root of complex numbers in Python?
You can find the Square root of complex numbers in Python using the cmath library. The cmath library in python is a library for dealing with complex numbers. You can use it as follows to find the square root − from cmath import sqrt a = 0.2 + 0.5j print(sqrt(a)) This will give the output (0.6076662244659689+0.41141006...
[ { "code": null, "e": 1272, "s": 1062, "text": "You can find the Square root of complex numbers in Python using the cmath library. The cmath library in python is a library for dealing with complex numbers. You can use it as follows to find the square root −" }, { "code": null, "e": 1295, ...
Split large R Dataframe into list of smaller Dataframes - GeeksforGeeks
06 Aug, 2021 In this article, we will discuss how to split a large R dataframe into lists of smaller Dataframes. In R Programming language we have a function named split() which is used to split the data frame into parts. So to do this, we first create an example of a dataframe which is needed to be split. Creating dat...
[ { "code": null, "e": 24851, "s": 24823, "text": "\n06 Aug, 2021" }, { "code": null, "e": 25060, "s": 24851, "text": "In this article, we will discuss how to split a large R dataframe into lists of smaller Dataframes. In R Programming language we have a function named split() whic...
Convert a JSON String to Java Object using the json-simple library in Java?
The JSON is one of the widely used data-interchange formats and is a lightweight and language independent. The json.simple is a lightweight JSON processing library that can be used to encode or decode a JSON text. In the below program, we can convert a JSON String to Java object using the json.simple library. import o...
[ { "code": null, "e": 1277, "s": 1062, "text": "The JSON is one of the widely used data-interchange formats and is a lightweight and language independent. The json.simple is a lightweight JSON processing library that can be used to encode or decode a JSON text. " }, { "code": null, "e": 1...
Tryit Editor v3.6 - Show React
import React from 'react'; import ReactDOM from 'react-dom/client'; const myElement = ( <ul> <li>Apples</li> <li>Bananas</li> <li>Cherries</li> </ul> ); const root = ReactDOM.createRoot(document.getElementById('root')); root.render(myElement); <!DOCTYPE html> <html lang="en"> <head> <meta ch...
[ { "code": null, "e": 265, "s": 0, "text": "\nimport React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nconst myElement = (\n <ul>\n <li>Apples</li>\n <li>Bananas</li>\n <li>Cherries</li>\n </ul>\n);\n\nconst root = ReactDOM.createRoot(document.getElementById('root'));\nroot....
Apriori: Association Rule Mining In-depth Explanation and Python Implementation | by Chonyy | Towards Data Science
The most famous story about association rule mining is the “beer and diaper”. Researchers discovered that customers who buy diapers also tend to buy beer. This classic example shows that there might be many interesting association rules hidden in our daily data. Association rule mining is a technique to identify underl...
[ { "code": null, "e": 435, "s": 172, "text": "The most famous story about association rule mining is the “beer and diaper”. Researchers discovered that customers who buy diapers also tend to buy beer. This classic example shows that there might be many interesting association rules hidden in our dail...
Column Sort of a Matrix in Python
Suppose we have a matrix, we have to sort each of the columns in ascending order. So, if the input is like then the output will be To solve this, we will follow these steps − R := row count of matrix, C := column count of matrix res := matrix of same size as given matrix and fill with 0 for col in range 0 to C, dovalue...
[ { "code": null, "e": 1144, "s": 1062, "text": "Suppose we have a matrix, we have to sort each of the columns in ascending order." }, { "code": null, "e": 1169, "s": 1144, "text": "So, if the input is like" }, { "code": null, "e": 1193, "s": 1169, "text": "then...
Beginners in Java — Getting Started with OOP | by Rishi Sidhu | Towards Data Science
Whenever a programming methodology is based on objects or classes, instead of just functions and procedures it is called Object Oriented Programming (OOP). All code in Java must be contained within classes Objects in an object oriented language are organised into classes or in simpler terms a class gives birth to objec...
[ { "code": null, "e": 328, "s": 172, "text": "Whenever a programming methodology is based on objects or classes, instead of just functions and procedures it is called Object Oriented Programming (OOP)." }, { "code": null, "e": 378, "s": 328, "text": "All code in Java must be conta...
rand() and srand() in C
The function rand() is used to generate the pseudo random number. It returns an integer value and its range is from 0 to rand_max i.e 32767. Here is the syntax of rand() in C language, int rand(void); Here is an example of rand() in C language, Live Demo #include <stdio.h> #include<stdlib.h> int main() { printf("%d...
[ { "code": null, "e": 1203, "s": 1062, "text": "The function rand() is used to generate the pseudo random number. It returns an integer value and its range is from 0 to rand_max i.e 32767." }, { "code": null, "e": 1247, "s": 1203, "text": "Here is the syntax of rand() in C languag...
HTML <textarea> disabled Attribute - GeeksforGeeks
04 Jan, 2019 The disabled attribute for <textarea> element in HTML is used to specify that the text area element is disabled. A disabled text area is un-clickable and unusable. It is a boolean attribute. Syntax: <textarea disabled>text content...</textarea> Example: <!DOCTYPE html> <html> <head> <title>HTM...
[ { "code": null, "e": 23428, "s": 23400, "text": "\n04 Jan, 2019" }, { "code": null, "e": 23619, "s": 23428, "text": "The disabled attribute for <textarea> element in HTML is used to specify that the text area element is disabled. A disabled text area is un-clickable and unusable....
Bootstrap - Thumbnails
This chapter discusses about Bootstrap thumbnails. A lot of sites need a way to lay out images, videos, text, etc, in a grid, and Bootstrap has an easy way to do this with thumbnails. To create thumbnails using Bootstrap − Add an <a> tag with the class of .thumbnail around an image. Add an <a> tag with the class of .th...
[ { "code": null, "e": 3554, "s": 3331, "text": "This chapter discusses about Bootstrap thumbnails. A lot of sites need a way to lay out images, videos, text, etc, in a grid, and Bootstrap has an easy way to do this with thumbnails. To create thumbnails using Bootstrap −" }, { "code": null, ...
Rearrange array in alternating positive & negative items with O(1) extra space | Set 1
23 Jun, 2022 Given an array of positive and negative numbers, arrange them in an alternate fashion such that every positive number is followed by negative and vice-versa maintaining the order of appearance. Number of positive and negative numbers need not be equal. If there are more positive numbers they appear at the ...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2022" }, { "code": null, "e": 456, "s": 54, "text": "Given an array of positive and negative numbers, arrange them in an alternate fashion such that every positive number is followed by negative and vice-versa maintaining the o...
Lossless Join and Dependency Preserving Decomposition
28 May, 2017 Decomposition of a relation is done when a relation in relational model is not in appropriate normal form. Relation R is decomposed into two or more relations if decomposition is lossless join as well as dependency preserving. Lossless Join Decomposition If we decompose a relation R into relations R1 and R...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 May, 2017" }, { "code": null, "e": 279, "s": 52, "text": "Decomposition of a relation is done when a relation in relational model is not in appropriate normal form. Relation R is decomposed into two or more relations if decompositio...
‘AND’ vs ‘&&’ as operator in PHP
10 Oct, 2018 ‘AND’ Operator The AND operator is called logical operator. It returns true if both the operands are true.Example: <?php // Variable declaration and// initialization$a = 100;$b = 50; // Check two condition using// AND operatorif ($a == 100 and $b == 10) echo "True";else echo "False";?> False Expla...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Oct, 2018" }, { "code": null, "e": 43, "s": 28, "text": "‘AND’ Operator" }, { "code": null, "e": 143, "s": 43, "text": "The AND operator is called logical operator. It returns true if both the operands are true.Ex...
In-place conversion of Sorted DLL to Balanced BST
25 Feb, 2022 Given a Doubly Linked List which has data members sorted in ascending order. Construct a Balanced Binary Search Tree which has same data members as the given Doubly Linked List. The tree must be constructed in-place (No new node should be allocated for tree conversion) Examples: Input: Doubly Linked Lis...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Feb, 2022" }, { "code": null, "e": 323, "s": 52, "text": "Given a Doubly Linked List which has data members sorted in ascending order. Construct a Balanced Binary Search Tree which has same data members as the given Doubly Linked Li...
How to plot a graph in Python?
Graphs in Python can be plotted by using the Matplotlib library. Matplotlib library is mainly used for graph plotting. You need to install matplotlib before using it to plot graphs. Matplotlib is used to draw a simple line, bargraphs, histograms and piecharts. Inbuilt functions are available to draw all types of graphs...
[ { "code": null, "e": 1306, "s": 1187, "text": "Graphs in Python can be plotted by using the Matplotlib library. Matplotlib library is mainly used for graph plotting." }, { "code": null, "e": 1535, "s": 1306, "text": "You need to install matplotlib before using it to plot graphs. ...
How to Set a Column Value to Null in SQL?
21 Aug, 2021 In this article, we will look into how you can set the column value to Null in SQL. Firstly, let’s create a table using CREATE TABLE command: -- create a table CREATE TABLE students (Sr_No integer,Name varchar(20), Gender varchar(2)); -- insert some values INSERT INTO students VALUES (1, 'Nikita', 'F'); IN...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Aug, 2021" }, { "code": null, "e": 112, "s": 28, "text": "In this article, we will look into how you can set the column value to Null in SQL." }, { "code": null, "e": 170, "s": 112, "text": "Firstly, let’s create ...
Python | Pandas Series.ravel()
11 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.ravel() function returns the flatten...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 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...
How to change the background and foreground colors of tab in Java?
To change the background and foreground colors of tab, use the following methods − JTabbedPane tabbedPane = new JTabbedPane(); tabbedPane.setBackground(Color.blue); tabbedPane.setForeground(Color.white); Above, we have used the Color class to set the colors for the background and foregroud colors − The following is an ...
[ { "code": null, "e": 1145, "s": 1062, "text": "To change the background and foreground colors of tab, use the following methods −" }, { "code": null, "e": 1266, "s": 1145, "text": "JTabbedPane tabbedPane = new JTabbedPane();\ntabbedPane.setBackground(Color.blue);\ntabbedPane.setF...
React Native - MapView
In this chapter we will show you how to use maps in React Native. Let's create src/components/home/MapViewExample.js We are adding several props to MapView. showsUserLocation and followUserLocation are booleans. You will need users permission before it can be used. We also want to enable zoom by setting zoomEnabled = {...
[ { "code": null, "e": 2410, "s": 2344, "text": "In this chapter we will show you how to use maps in React Native." }, { "code": null, "e": 2461, "s": 2410, "text": "Let's create src/components/home/MapViewExample.js" }, { "code": null, "e": 2501, "s": 2461, "te...
Arcesium Interview Experience for On-Campus Internship 2021 - GeeksforGeeks
07 Oct, 2021 Arcesium visited our campus (MNIT Jaipur) in the latter part of August 2020 offering a 2-month Summer Internship for 2021. Initially, there was shortlisting based on CGPA, 12th-grade percentage, and 10th-grade CGPA. 87 students were shortlisted for further rounds. Round 1 (Hackerrank Platform): The first r...
[ { "code": null, "e": 25278, "s": 25250, "text": "\n07 Oct, 2021" }, { "code": null, "e": 25543, "s": 25278, "text": "Arcesium visited our campus (MNIT Jaipur) in the latter part of August 2020 offering a 2-month Summer Internship for 2021. Initially, there was shortlisting based ...
Find N distinct integers with zero sum - GeeksforGeeks
25 Nov, 2021 Given an integer N, our task is to print N distinct numbers such that their sum is 0.Examples: Input: N = 3 Output: 1, -1, 0 Explanation: On adding the numbers that is 1 + (-1) + 0 the sum is 0.Input: N = 4 Output: 1, -1, 2, -2 Explanation: On adding the numbers that is 1 + (-1) + 2 + (-2) the sum is 0. ...
[ { "code": null, "e": 24717, "s": 24689, "text": "\n25 Nov, 2021" }, { "code": null, "e": 24813, "s": 24717, "text": "Given an integer N, our task is to print N distinct numbers such that their sum is 0.Examples: " }, { "code": null, "e": 25025, "s": 24813, "te...
Print all unique paths from given source to destination in a Matrix moving only down or right - GeeksforGeeks
04 Jan, 2022 Given a 2-D array mat[][], a source ‘s’ and a destination ‘d’, print all unique paths from given ‘s’ to ‘d’. From each cell, you can either move only to the right or down. Examples: Input: mat[][] = {{1, 2, 3}, {4, 5, 6}}, s[] = {0, 0}, d[]={1, 2}Output: 1 4 5 61 2 5 61 2 3 6 Input: mat[][] = {{1, 2}, {3...
[ { "code": null, "e": 24567, "s": 24539, "text": "\n04 Jan, 2022" }, { "code": null, "e": 24740, "s": 24567, "text": "Given a 2-D array mat[][], a source ‘s’ and a destination ‘d’, print all unique paths from given ‘s’ to ‘d’. From each cell, you can either move only to the right...
Java Program to Convert Char to Int - GeeksforGeeks
09 Feb, 2022 Given a character in Java, your task is to write a Java program to convert this given character into an integer. In Java, we can convert the Char to Int using different approaches. If we direct assign char variable to int, it will return the ASCII value of a given character. If the char variable contains a...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n09 Feb, 2022" }, { "code": null, "e": 24129, "s": 23948, "text": "Given a character in Java, your task is to write a Java program to convert this given character into an integer. In Java, we can convert the Char to Int using diff...
C++ Program to Check Whether Topological Sorting can be Performed in a Graph
In a Directed Acyclic Graph, we can sort vertices in linear order using topological sort. Topological sort is only work on Directed Acyclic Graph. In a Directed Acyclic Graph (DAG), there can be more than one topological sort. In the following C++ program, we shall perform topological sort to check existence of a cycle...
[ { "code": null, "e": 1152, "s": 1062, "text": "In a Directed Acyclic Graph, we can sort vertices in linear order using topological sort." }, { "code": null, "e": 1289, "s": 1152, "text": "Topological sort is only work on Directed Acyclic Graph. In a Directed Acyclic Graph (DAG), ...
HTML5 Canvas - Scaling
HTML5 canvas provides scale(x, y) method which is used to increase or decrease the units in our canvas grid. This can be used to draw scaled down or enlarged shapes and bitmaps. This method takes two parameters where x is the scale factor in the horizontal direction and y is the scale factor in the vertical direction. ...
[ { "code": null, "e": 2786, "s": 2608, "text": "HTML5 canvas provides scale(x, y) method which is used to increase or decrease the units in our canvas grid. This can be used to draw scaled down or enlarged shapes and bitmaps." }, { "code": null, "e": 2970, "s": 2786, "text": "This...
C++ | Constructors | Question 16 - GeeksforGeeks
28 Jun, 2021 Predict the output of following program? #include <iostream>using namespace std;class Test{private: int x;public: Test(int i) { x = i; cout << "Called" << endl; }}; int main(){ Test t(20); t = 30; // conversion constructor is called here. return 0;} (A) Compiler Error(B)...
[ { "code": null, "e": 24442, "s": 24414, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24483, "s": 24442, "text": "Predict the output of following program?" }, { "code": "#include <iostream>using namespace std;class Test{private: int x;public: Test(int i) { ...
Power BI: Filter vs Row Context. ... a concept made simple. | by Peter Hui | Towards Data Science
I am what you term a “super commuter”. I used to wake up at 5 am. Leave the door at 5:30 am, catch the train and arrive at work by 8:00 am. It sounds like a nightmare. I love my job and I love it enough to do that. Then the pandemic came and it’s not something I have to do as often anymore. I am thankful of that, but w...
[ { "code": null, "e": 554, "s": 171, "text": "I am what you term a “super commuter”. I used to wake up at 5 am. Leave the door at 5:30 am, catch the train and arrive at work by 8:00 am. It sounds like a nightmare. I love my job and I love it enough to do that. Then the pandemic came and it’s not some...
100 Helpful Python Tips You Can Learn Before Finishing Your Morning Coffee | by Fatos Morina | Towards Data Science
Python is quite popular nowadays, mainly due to its simplicity, and easiness to learn. You can use it for a wide range of tasks like data science and machine learning, web development, scripting, automation, etc. Since this is a pretty long article and you want to reach its end before you finish your coffee, why don’t ...
[ { "code": null, "e": 259, "s": 172, "text": "Python is quite popular nowadays, mainly due to its simplicity, and easiness to learn." }, { "code": null, "e": 385, "s": 259, "text": "You can use it for a wide range of tasks like data science and machine learning, web development, s...
Lagged MLP for predictive maintenance of turbofan engines | by Koen Peters | Towards Data Science
<disclaimer I aim to showcase the effect of different methods and choices made during model development. These effects are often shown using the test set, something which is considered (very) bad practice but helps for educational purposes.> Welcome to another installment of the ‘Exploring NASA’s turbofan dataset’ seri...
[ { "code": null, "e": 414, "s": 172, "text": "<disclaimer I aim to showcase the effect of different methods and choices made during model development. These effects are often shown using the test set, something which is considered (very) bad practice but helps for educational purposes.>" }, { ...
Storing Training Data on the Cloud | by Connor Shorten | Towards Data Science
When you are building deep learning models, you will likely benefit from having more data to train with. You may run out of space on your local machine and therefore need to find ways to store datasets on the cloud and then access them while training your models. I recently came across on an obstacle in an Image Classi...
[ { "code": null, "e": 436, "s": 172, "text": "When you are building deep learning models, you will likely benefit from having more data to train with. You may run out of space on your local machine and therefore need to find ways to store datasets on the cloud and then access them while training your...
What is traits in PHP?
In 5.4 PHP version trait is introduced to PHP object-oriented programming. A trait is like class however it is only for grouping methods in a fine-grained and reliable way. It isn't permitted to instantiate a trait on its own. Traits are introduced to PHP 5.4 to overcome the problems of single inheritance. As we know i...
[ { "code": null, "e": 1602, "s": 1062, "text": "In 5.4 PHP version trait is introduced to PHP object-oriented programming. A trait is like class however it is only for grouping methods in a fine-grained and reliable way. It isn't permitted to instantiate a trait on its own. Traits are introduced to P...
How to disable GridView scrolling in Android?
This example demonstrates how do I disable gridView scrolling 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"?> <RelativeLayo...
[ { "code": null, "e": 1136, "s": 1062, "text": "This example demonstrates how do I disable gridView scrolling in android." }, { "code": null, "e": 1265, "s": 1136, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to c...
PHP | DOMDocument loadXML() Function
30 Aug, 2019 The DOMDocument::loadXML() function is an inbuilt function in PHP which is used to load the XML file from a string. Syntax: mixed DOMDocument::loadXML( string $source, int $options = 0 ) Parameters: This function accepts two parameters as mentioned above and described below: $source: This parameter holds t...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Aug, 2019" }, { "code": null, "e": 144, "s": 28, "text": "The DOMDocument::loadXML() function is an inbuilt function in PHP which is used to load the XML file from a string." }, { "code": null, "e": 152, "s": 144, ...
SQL using Python | Set 3 (Handling large data)
24 Nov, 2020 It is recommended to go through SQL using Python | Set 1 and SQL using Python and SQLite | Set 2 In the previous articles the records of the database were limited to small size and single tuple. This article will explain how to write & fetch large data from the database using module SQLite3 covering all ex...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Nov, 2020" }, { "code": null, "e": 149, "s": 52, "text": "It is recommended to go through SQL using Python | Set 1 and SQL using Python and SQLite | Set 2" }, { "code": null, "e": 467, "s": 149, "text": "In the p...
How to embed audio element in a HTML document ?
30 Sep, 2020 Since the release of HTML5, audio can be added to webpages using the <audio> tag. Previously audio could be only played on webpages using web plugins like Flash. The <audio> tag is an inline element which is used to embed sound files into a web page. It is a very useful tag if you want to add audio such as...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 Sep, 2020" }, { "code": null, "e": 401, "s": 53, "text": "Since the release of HTML5, audio can be added to webpages using the <audio> tag. Previously audio could be only played on webpages using web plugins like Flash. The <audio> ...
How to convert an array into object using stdClass() in PHP?
02 Sep, 2021 To convert an array into the object, stdClass() is used. The stdClass() is an empty class, which is used to cast other types to object. If an object is converted to object, its not modified. But, if object type is converted/type-casted an instance of stdClass is created, if it is not NULL. If it is NULL, t...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Sep, 2021" }, { "code": null, "e": 392, "s": 54, "text": "To convert an array into the object, stdClass() is used. The stdClass() is an empty class, which is used to cast other types to object. If an object is converted to object, i...
DiffUtil in RecyclerView in Android
03 Sep, 2021 Have you ever created a List in Android? What did you use to make it? ListView or RecyclerView are two types of views. If you are an Android Developer it’s sure you’ve used RecyclerView at some point. In this article, we’ll go through how to update the RecyclerView with DiffUtils. What exactly is RecyclerV...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Sep, 2021" }, { "code": null, "e": 599, "s": 28, "text": "Have you ever created a List in Android? What did you use to make it? ListView or RecyclerView are two types of views. If you are an Android Developer it’s sure you’ve used Re...
YAML - Collections and Structures
YAML includes block collections which use indentation for scope. Here, each entry begins with a new line. Block sequences in collections indicate each entry with a dash and space (-). In YAML, block collections styles are not denoted by any specific indicator. Block collection in YAML can distinguished from other scala...
[ { "code": null, "e": 2574, "s": 2182, "text": "YAML includes block collections which use indentation for scope. Here, each entry begins with a new line. Block sequences in collections indicate each entry with a dash and space (-). In YAML, block collections styles are not denoted by any specific ind...
Design Pattern - Transfer Object Pattern
The Transfer Object pattern is used when we want to pass data with multiple attributes in one shot from client to server. Transfer object is also known as Value Object. Transfer Object is a simple POJO class having getter/setter methods and is serializable so that it can be transferred over the network. It does not hav...
[ { "code": null, "e": 3561, "s": 2885, "text": "The Transfer Object pattern is used when we want to pass data with multiple attributes in one shot from client to server. Transfer object is also known as Value Object. Transfer Object is a simple POJO class having getter/setter methods and is serializa...
Extracting filenames from a path in MySQL?
To extract filenames from a path MySQL, you can use SUBSTRING_INDEX(). The syntax is as follows − SELECT SUBSTRING_INDEX(ypurColumnName, '\\', -1) as anyAliasName FROM yourTableName; To understand the above syntax, let us create a table. The query to create a table is as follows − mysql> create table ExtractFileNameDem...
[ { "code": null, "e": 1285, "s": 1187, "text": "To extract filenames from a path MySQL, you can use SUBSTRING_INDEX(). The syntax is as follows −" }, { "code": null, "e": 1370, "s": 1285, "text": "SELECT SUBSTRING_INDEX(ypurColumnName, '\\\\', -1) as anyAliasName FROM yourTableNam...
Minimum number of swaps required to sort an array | Set 2
03 Mar, 2021 Given an array of N distinct elements, find the minimum number of swaps required to sort the array. Note: The problem is not asking to sort the array by the minimum number of swaps. The problem is to find the minimum swaps in which the array can be sorted. Examples: Input: arr[] = {4, 3, 2, 1} Output: 2 E...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Mar, 2021" }, { "code": null, "e": 154, "s": 54, "text": "Given an array of N distinct elements, find the minimum number of swaps required to sort the array." }, { "code": null, "e": 311, "s": 154, "text": "Note:...
How to Fix: ValueError: cannot convert float NaN to integer
24 Dec, 2021 In this article we will discuss how to fix the value error – cannot convert float NaN to integer in Python. In Python, NaN stands for Not a Number. This error will occur when we are converting the dataframe column of the float type that contains NaN values to an integer. Let’s see the error and explore the...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Dec, 2021" }, { "code": null, "e": 136, "s": 28, "text": "In this article we will discuss how to fix the value error – cannot convert float NaN to integer in Python." }, { "code": null, "e": 300, "s": 136, "text":...
How to prevent SQL Injection in PHP ?
31 May, 2021 In this article, we are going to discuss how to prevent SQL injection in PHP. The prerequisite of this topic is that you are having XAMPP in your computer. SQL injection is a code injection technique used to attack data-driven applications, in which malicious SQL statements are inserted into an entry field...
[ { "code": null, "e": 53, "s": 25, "text": "\n31 May, 2021" }, { "code": null, "e": 209, "s": 53, "text": "In this article, we are going to discuss how to prevent SQL injection in PHP. The prerequisite of this topic is that you are having XAMPP in your computer." }, { "cod...
PyQt5 QListWidget – Getting Current Item
01 Aug, 2020 In this article we will see how we can get the current item of the QListWidget. QListWidget is a convenience class that provides a list view with a classic item-based interface for adding and removing items. QListWidget uses an internal model to manage each QListWidgetItem in the list. Current item can be ...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Aug, 2020" }, { "code": null, "e": 484, "s": 28, "text": "In this article we will see how we can get the current item of the QListWidget. QListWidget is a convenience class that provides a list view with a classic item-based interfac...
MATLAB - The Nested switch Statements
It is possible to have a switch as part of the statement sequence of an outer switch. Even if the case constants of the inner and outer switch contain common values, no conflicts will arise. The syntax for a nested switch statement is as follows − switch(ch1) case 'A' fprintf('This A is part of outer switch'...
[ { "code": null, "e": 2466, "s": 2275, "text": "It is possible to have a switch as part of the statement sequence of an outer switch. Even if the case constants of the inner and outer switch contain common values, no conflicts will arise." }, { "code": null, "e": 2523, "s": 2466, ...
Docker – EXPOSE Instruction
28 Oct, 2020 The EXPOSE instruction exposes a particular port with a specified protocol inside a Docker Container. In the simplest term, the EXPOSE instruction tells Docker to get all its information required during the runtime from a specified Port. These ports can be either TCP or UDP, but it’s TCP by default. It is...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Oct, 2020" }, { "code": null, "e": 564, "s": 28, "text": "The EXPOSE instruction exposes a particular port with a specified protocol inside a Docker Container. In the simplest term, the EXPOSE instruction tells Docker to get all its...
Count Values in Pandas Dataframe - GeeksforGeeks
09 Aug, 2021 In this article, we are going to count values in Pandas dataframe. First, we will create a data frame, and then we will count the values of different attributes. Syntax: DataFrame.count(axis=0, level=None, numeric_only=False) Parameters: axis {0 or ‘index’, 1 or ‘columns’}: default 0 Counts are generated f...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n09 Aug, 2021" }, { "code": null, "e": 24454, "s": 24292, "text": "In this article, we are going to count values in Pandas dataframe. First, we will create a data frame, and then we will count the values of different attributes." ...
How to Integrate PayPal SDK in Android? - GeeksforGeeks
26 Jul, 2021 PayPal is one of the famous payment gateway integration which is one of the famous payment gateways across the world used in so many applications and websites. In this article, we will take a look at implementing this PayPal SDK in our app. We will be building a simple application in which we will be displ...
[ { "code": null, "e": 25036, "s": 25008, "text": "\n26 Jul, 2021" }, { "code": null, "e": 25277, "s": 25036, "text": "PayPal is one of the famous payment gateway integration which is one of the famous payment gateways across the world used in so many applications and websites. In ...
C# | UInt32 Struct - GeeksforGeeks
01 May, 2019 In C#, UInt32 struct is used to represent 32-bit unsigned integers(also termed as uint data type) starting from range 0 to 4,294,967,295. It also provides different types of methods to compare instances of this type, convert the value of an instance to its String representation, convert the String represen...
[ { "code": null, "e": 24210, "s": 24182, "text": "\n01 May, 2019" }, { "code": null, "e": 24693, "s": 24210, "text": "In C#, UInt32 struct is used to represent 32-bit unsigned integers(also termed as uint data type) starting from range 0 to 4,294,967,295. It also provides differen...
Doubling the value | Practice | GeeksforGeeks
Given an array and an integer B, traverse the array (from the beginning) and if the element in array is B, double B and continue traversal. Find the value of B after the complete traversal. Example 1: Input: N = 5, B = 2 arr[] = {1 2 3 4 8} Output: 16 Explanation: B is initially 2. We get 2 at the 1st index, hence B be...
[ { "code": null, "e": 416, "s": 226, "text": "Given an array and an integer B, traverse the array (from the beginning) and if the element in array is B, double B and continue traversal. Find the value of B after the complete traversal." }, { "code": null, "e": 427, "s": 416, "text...
Add a row at top in pandas DataFrame
In Pandas a DataFrame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns. We can create a DataFrame using list, dict, series and another DataFrame. But when we want to add a new row to an already created DataFrame, it is achieved through a in-built method like append whi...
[ { "code": null, "e": 1584, "s": 1062, "text": "In Pandas a DataFrame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns. We can create a DataFrame using list, dict, series and another DataFrame. But when we want to add a new row to an already created ...
3-Way QuickSort (Dutch National Flag) - GeeksforGeeks
14 Dec, 2021 In simple QuickSort algorithm, we select an element as pivot, partition the array around a pivot and recur for subarrays on the left and right of the pivot. Consider an array which has many redundant elements. For example, {1, 4, 2, 4, 2, 4, 1, 2, 4, 1, 2, 2, 2, 2, 4, 1, 4, 4, 4}. If 4 is picked as a pivot...
[ { "code": null, "e": 26227, "s": 26199, "text": "\n14 Dec, 2021" }, { "code": null, "e": 26741, "s": 26227, "text": "In simple QuickSort algorithm, we select an element as pivot, partition the array around a pivot and recur for subarrays on the left and right of the pivot. Consid...
Optimizing product price using regression | by Mahbubul Alam | Towards Data Science
Price and quantity are two fundamental measures that determine the bottom line of every business, and setting the right price is one of the most important decisions a company can make. Under-pricing hurts the company’s revenue if consumers are willing to pay more and, on the other hand, over-pricing can hurt in a simil...
[ { "code": null, "e": 572, "s": 172, "text": "Price and quantity are two fundamental measures that determine the bottom line of every business, and setting the right price is one of the most important decisions a company can make. Under-pricing hurts the company’s revenue if consumers are willing to ...
AbstractCollection toString() method in Java with Examples - GeeksforGeeks
19 Dec, 2018 The toString() method of JavaAbstractClass is used to return a string representation of the elements of the Collection. The String representation comprises a list representation of the elements of the Collection in the order they are picked by the iterator closed in square brackets[].This method is used ma...
[ { "code": null, "e": 23227, "s": 23199, "text": "\n19 Dec, 2018" }, { "code": null, "e": 23347, "s": 23227, "text": "The toString() method of JavaAbstractClass is used to return a string representation of the elements of the Collection." }, { "code": null, "e": 23643,...
Tips and Tricks to Work with Text Files in Python | Towards Data Science
Computer programs make our lives easy. We can perform a complex task within a blink of an eye with the blessings of a few lines of instructions. Among many complex tasks, working and manipulating text is one of the most important tasks done by the computer. Today, one of the hot topics is Natural Language Processing (N...
[ { "code": null, "e": 804, "s": 172, "text": "Computer programs make our lives easy. We can perform a complex task within a blink of an eye with the blessings of a few lines of instructions. Among many complex tasks, working and manipulating text is one of the most important tasks done by the compute...
Clock Skew in synchronous digital circuit systems - GeeksforGeeks
17 Jan, 2022 In Synchronous circuits where all the logic elements share the same clock signal, it becomes imperative to design these elements as close to the clock source as possible because a system-on-chip, FPGA, CPLD contain Billions of transistors. Even though these distances are minute due to their sheer number th...
[ { "code": null, "e": 22635, "s": 22607, "text": "\n17 Jan, 2022" }, { "code": null, "e": 23089, "s": 22635, "text": "In Synchronous circuits where all the logic elements share the same clock signal, it becomes imperative to design these elements as close to the clock source as po...
Minimum number of given operations required to make two strings equal using C++.
Given two strings str1 and str2, both strings contain characters ‘a’ and ‘b’. Both strings are of equal lengths. There is one _ (empty space) in both the strings. The task is to convert the first string into the second string by doing the minimum number of the following operations − If _ is at a position I then _ can b...
[ { "code": null, "e": 1346, "s": 1062, "text": "Given two strings str1 and str2, both strings contain characters ‘a’ and ‘b’. Both strings are of equal lengths. There is one _ (empty space) in both the strings. The task is to convert the first string into the second string by doing the minimum number...
C Program for Reversal algorithm for array rotation
An algorithm is a set of instructions that are performed in order to solve the given problem. Here, we will discuss the reversal algorithm for array rotation and create a program for a reversal algorithm. Now, let's get to some terms that we need to know to solve this problem − Array − A container of elements of the sa...
[ { "code": null, "e": 1267, "s": 1062, "text": "An algorithm is a set of instructions that are performed in order to solve the given problem. Here, we will discuss the reversal algorithm for array rotation and create a program for a reversal algorithm." }, { "code": null, "e": 1341, "...
JDBC - SQL Syntax
Structured Query Language (SQL) is a standardized language that allows you to perform operations on a database, such as creating entries, reading content, updating content, and deleting entries. SQL is supported by almost any database you will likely use, and it allows you to write database code independently of the un...
[ { "code": null, "e": 2357, "s": 2162, "text": "Structured Query Language (SQL) is a standardized language that allows you to perform operations on a database, such as creating entries, reading content, updating content, and deleting entries." }, { "code": null, "e": 2501, "s": 2357, ...
How to plot rows of a data frame as lines in R?
To plot row of a data frame as lines, we can use matplot function but we would need to transpose the data frame because transposed values of the data frame will be read as columns and the matplot function plot the columns not rows. For example, if we have a data frame called df then the plot of rows as lines can be cre...
[ { "code": null, "e": 1410, "s": 1062, "text": "To plot row of a data frame as lines, we can use matplot function but we would need to transpose the data frame because transposed values of the data frame will be read as columns and the matplot function plot the columns not rows. For example, if we ha...
Bare Repositories in Git - GeeksforGeeks
29 Dec, 2019 Repositories in Git are a snapshot of the folder in which you are working on your project. You can track the progress and changes made to the project by making commits and also revert changes if not satisfactory.Repositories can be divided into two types based on the usage on a server. These are: Non-bare ...
[ { "code": null, "e": 23809, "s": 23781, "text": "\n29 Dec, 2019" }, { "code": null, "e": 24107, "s": 23809, "text": "Repositories in Git are a snapshot of the folder in which you are working on your project. You can track the progress and changes made to the project by making com...
Elm - Environment Setup
This chapter discusses steps to install Elm on Windows, Mac and Linux platforms. Consider the steps shown below to install Elm in your local environment. Step 1 − Install node Since elm is compiled to JavaScript, the target machine should have node installed. Refer to TutorialsPoint NodeJS course for steps to setup nod...
[ { "code": null, "e": 1961, "s": 1880, "text": "This chapter discusses steps to install Elm on Windows, Mac and Linux platforms." }, { "code": null, "e": 2034, "s": 1961, "text": "Consider the steps shown below to install Elm in your local environment." }, { "code": null, ...
Advanced Encryption Standard (AES) - GeeksforGeeks
11 Feb, 2022 Advanced Encryption Standard (AES) is a specification for the encryption of electronic data established by the U.S National Institute of Standards and Technology (NIST) in 2001. AES is widely used today as it is a much stronger than DES and triple DES despite being harder to implement. Points to remember A...
[ { "code": null, "e": 24143, "s": 24115, "text": "\n11 Feb, 2022" }, { "code": null, "e": 24430, "s": 24143, "text": "Advanced Encryption Standard (AES) is a specification for the encryption of electronic data established by the U.S National Institute of Standards and Technology (...
How to build a simple time series dashboard in Python with Panel, Altair and a Jupyter Notebook | by Ben Dexter Cooley | Towards Data Science
I’ve been using Altair for over a year now, and it has quickly become my go-to charting library in Python. I love the built-in interactivity of the plots and the fact that the syntax is built on the Grammar of Graphics. Altair even has some built-in interactivity through using Vega widgets. However, I have found this t...
[ { "code": null, "e": 392, "s": 172, "text": "I’ve been using Altair for over a year now, and it has quickly become my go-to charting library in Python. I love the built-in interactivity of the plots and the fact that the syntax is built on the Grammar of Graphics." }, { "code": null, "e"...
How to align Placeholder Text in HTML ? - GeeksforGeeks
11 Dec, 2018 The placeholder attribute specifies a short hint that describes the expected value of a input field / textarea. The short hint is displayed in the field before the user enters a value. In most of the browsers, placeholder texts are usually aligned in left. The selector uses text-align property to set the t...
[ { "code": null, "e": 23862, "s": 23834, "text": "\n11 Dec, 2018" }, { "code": null, "e": 24260, "s": 23862, "text": "The placeholder attribute specifies a short hint that describes the expected value of a input field / textarea. The short hint is displayed in the field before the...
C library function - fwrite()
The C library function size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream) writes data from the array pointed to, by ptr to the given stream. Following is the declaration for fwrite() function. size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream) ptr − This is the pointer to the a...
[ { "code": null, "e": 2169, "s": 2007, "text": "The C library function size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream) writes data from the array pointed to, by ptr to the given stream." }, { "code": null, "e": 2221, "s": 2169, "text": "Following is the dec...
Aptean Interview Experience (On-Campus 2020) - GeeksforGeeks
08 Oct, 2020 Aptean visited my campus for two positions, one was a position of Software Developer, and the other was as a Software Developer Intern. They conducted four rounds in total, and they are as listed below. Round 1: An online Criteria cognitive aptitude test with 40 Questions and given time of 20 minutes follo...
[ { "code": null, "e": 25516, "s": 25488, "text": "\n08 Oct, 2020" }, { "code": null, "e": 25719, "s": 25516, "text": "Aptean visited my campus for two positions, one was a position of Software Developer, and the other was as a Software Developer Intern. They conducted four rounds ...