title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Java Collection Tutorial - GeeksforGeeks | 15 Mar, 2021
Java Collection Framework is unlikely any group of individual objects which are represented as a single unit be it of any type is known as the collection of objects. Earlier in Java, there was no such thing defined which holds true for it so there arises a need in the next versions of any such concept. So ... | [
{
"code": null,
"e": 27219,
"s": 27191,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 27665,
"s": 27219,
"text": "Java Collection Framework is unlikely any group of individual objects which are represented as a single unit be it of any type is known as the collection of object... |
COBOL - Subroutines | Cobol subroutine is a program that can be compiled independently but cannot be executed independently. There are two types of subroutines: internal subroutines like Perform statements and external subroutines like CALL verb.
Call verb is used to transfer the control from one program to another program. The program that... | [
{
"code": null,
"e": 2247,
"s": 2022,
"text": "Cobol subroutine is a program that can be compiled independently but cannot be executed independently. There are two types of subroutines: internal subroutines like Perform statements and external subroutines like CALL verb."
},
{
"code": null,
... |
How to process a DataFrame with millions of rows in seconds | by Roman Orac | Towards Data Science | Big Data Analysis in Python is having its renaissance. It all started with NumPy, which is also one of the building blocks behind the tool I am presenting in this article.
In 2006, Big Data was a topic that was slowly gaining traction, especially with the release of Hadoop. Pandas followed soon after with its DataFrame... | [
{
"code": null,
"e": 343,
"s": 171,
"text": "Big Data Analysis in Python is having its renaissance. It all started with NumPy, which is also one of the building blocks behind the tool I am presenting in this article."
},
{
"code": null,
"e": 655,
"s": 343,
"text": "In 2006, Big D... |
Using Panda’s “transform” and “apply” to deal with missing data on a group level | by Fabian Bosler | Towards Data Science | According to an analysis conducted by Businessbroadway, a data professional spends up to 60% of their time gathering, cleaning data, and visualizing data.
A critical aspect of cleaning and visualizing data revolves around how to deal with missing data. Pandas offers some basic functionalities in the form of the fillna ... | [
{
"code": null,
"e": 326,
"s": 171,
"text": "According to an analysis conducted by Businessbroadway, a data professional spends up to 60% of their time gathering, cleaning data, and visualizing data."
},
{
"code": null,
"e": 717,
"s": 326,
"text": "A critical aspect of cleaning a... |
Ruby on Rails - Routes | The routing module provides URL rewriting in native Ruby. It's a way to redirect incoming requests to controllers and actions. It replaces the mod_rewrite rules. Best of all, Rails' Routing works with any web server. Routes are defined in app/config/routes.rb.
Think of creating routes as drawing a map for your requests... | [
{
"code": null,
"e": 2364,
"s": 2103,
"text": "The routing module provides URL rewriting in native Ruby. It's a way to redirect incoming requests to controllers and actions. It replaces the mod_rewrite rules. Best of all, Rails' Routing works with any web server. Routes are defined in app/config/rou... |
C# Enum Format Method | The Format method converts value of a specified enumerated type to its equivalent string representation. Here you can also set the format i.e. d for Decimal, x for HexaDecimal, etc.
We have the following enumeration.
enum Stock { PenDrive, Keyboard, Speakers };
The default value gets assigned (initialize).
PenDrive = 0... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "The Format method converts value of a specified enumerated type to its equivalent string representation. Here you can also set the format i.e. d for Decimal, x for HexaDecimal, etc."
},
{
"code": null,
"e": 1279,
"s": 1244,
"text": "... |
How to create dynamic breadcrumbs using JavaScript? - GeeksforGeeks | 01 Oct, 2021
In this article, we will see how to create dynamic breadcrumbs using JavaScript.
A dynamic breadcrumb allows us to navigate to different pages within the navigational hierarchy, and thus we can organize various pages of the website in a hierarchical manner just like a folder-like structure.
Approach:
The ... | [
{
"code": null,
"e": 25398,
"s": 25370,
"text": "\n01 Oct, 2021"
},
{
"code": null,
"e": 25479,
"s": 25398,
"text": "In this article, we will see how to create dynamic breadcrumbs using JavaScript."
},
{
"code": null,
"e": 25691,
"s": 25479,
"text": " A dynami... |
Soft and Hard links in Unix/Linux - GeeksforGeeks | 31 Jan, 2021
A link in UNIX is a pointer to a file. Like pointers in any programming languages, links in UNIX are pointers pointing to a file or a directory. Creating links is a kind of shortcuts to access a file. Links allow more than one file name to refer to the same file, elsewhere.
There are two types of links :
... | [
{
"code": null,
"e": 24644,
"s": 24616,
"text": "\n31 Jan, 2021"
},
{
"code": null,
"e": 24920,
"s": 24644,
"text": "A link in UNIX is a pointer to a file. Like pointers in any programming languages, links in UNIX are pointers pointing to a file or a directory. Creating links is ... |
Accelerate your training and inference running on Tensorflow | by Ranjeet Singh | Towards Data Science | Tensorflow comes with default settings to be compatible with as many CPUs/GPUs as it can. You can easily optimize it to use the full capabilities of your CPU such as AVX or of your GPU such as Tensor Cores leading to up to a 3x accelerated code.
Similarily If you are a startup, you might not have unlimited access to GP... | [
{
"code": null,
"e": 417,
"s": 171,
"text": "Tensorflow comes with default settings to be compatible with as many CPUs/GPUs as it can. You can easily optimize it to use the full capabilities of your CPU such as AVX or of your GPU such as Tensor Cores leading to up to a 3x accelerated code."
},
{... |
How to get the lifecycle of a S3 bucket using Boto3 and AWS Client? | Problem Statement: Use boto3 library in Python to get lifecycle of a S3 bucket. For example, find the lifecycle of Bucket_1 in S3.
Step 1 − Import boto3 and botocore exceptions to handle exceptions.
Step 2 − bucket_name is the parameter in the function.
Step 3 − Create an AWS session using boto3 library.
Step 4 − Creat... | [
{
"code": null,
"e": 1193,
"s": 1062,
"text": "Problem Statement: Use boto3 library in Python to get lifecycle of a S3 bucket. For example, find the lifecycle of Bucket_1 in S3."
},
{
"code": null,
"e": 1261,
"s": 1193,
"text": "Step 1 − Import boto3 and botocore exceptions to ha... |
Calculate Correlation Matrix Only for Numeric Columns in R - GeeksforGeeks | 29 Jun, 2021
A correlation matrix is a tabular representation of the relation between numeric attributes of a dataframe. The values present in the table are correlation coefficients between the attributes.
Dataset used: bestsellers
To create a correlation matrix cor() function is called with the dataframe as an argume... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 25436,
"s": 25242,
"text": "A correlation matrix is a tabular representation of the relation between numeric attributes of a dataframe. The values present in the table are correlation coeffic... |
Count Derangements (Permutation such that no element appears in its original position) - GeeksforGeeks | 13 Mar, 2022
A Derangement is a permutation of n elements, such that no element appears in its original position. For example, a derangement of {0, 1, 2, 3} is {2, 3, 1, 0}.Given a number n, find the total number of Derangements of a set of n elements.
Examples :
Input: n = 2
Output: 1
For two elements say {0, 1}, the... | [
{
"code": null,
"e": 25180,
"s": 25152,
"text": "\n13 Mar, 2022"
},
{
"code": null,
"e": 25420,
"s": 25180,
"text": "A Derangement is a permutation of n elements, such that no element appears in its original position. For example, a derangement of {0, 1, 2, 3} is {2, 3, 1, 0}.Giv... |
p5.js | createFileInput() Function - GeeksforGeeks | 26 Feb, 2020
The createFileInput() function is used to create an input element with the type of ‘file’ that can be used by the user to select local files to be used in the sketch. It also supports the selection of multiple files if required.
Syntax:
createFileInput(callback, multiple)
Parameters: This function accepts ... | [
{
"code": null,
"e": 25382,
"s": 25354,
"text": "\n26 Feb, 2020"
},
{
"code": null,
"e": 25611,
"s": 25382,
"text": "The createFileInput() function is used to create an input element with the type of ‘file’ that can be used by the user to select local files to be used in the sket... |
What are the steps of SQL Query processing in DBMS? | Query Processing is a translation of high-level queries into low-level expression. It is a step wise process that can be used at the physical level of the file system, query optimization and actual execution of the query to get the result.
It requires the basic concepts of relational algebra and file structure. It refe... | [
{
"code": null,
"e": 1302,
"s": 1062,
"text": "Query Processing is a translation of high-level queries into low-level expression. It is a step wise process that can be used at the physical level of the file system, query optimization and actual execution of the query to get the result."
},
{
... |
Create list of numbers with given range in Python | Python can handle any requirement in data manipulation through its wide variety of libraries and methods. When we need to generate all the numbers between a pair of given numbers, we can use python’s inbuilt functions as well as some of the libraries. This article describes such approaches.
The range() function returns... | [
{
"code": null,
"e": 1354,
"s": 1062,
"text": "Python can handle any requirement in data manipulation through its wide variety of libraries and methods. When we need to generate all the numbers between a pair of given numbers, we can use python’s inbuilt functions as well as some of the libraries. T... |
PostgreSQL - MAX Function | PostgreSQL MAX function is used to find out the record with maximum value among a record set.
To understand the MAX function, consider the table COMPANY having records as follows −
testdb# select * from COMPANY;
id | name | age | address | salary
----+-------+-----+-----------+--------
1 | Paul | 32 | Californi... | [
{
"code": null,
"e": 2919,
"s": 2825,
"text": "PostgreSQL MAX function is used to find out the record with maximum value among a record set."
},
{
"code": null,
"e": 3006,
"s": 2919,
"text": "To understand the MAX function, consider the table COMPANY having records as follows −"
... |
Regular Expression "\Z" Metacharacter in Java | The subexpression/metacharacter “\Z” matches the end of the entire string except allowable final line terminator.
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexExample {
public static void main( String args[] ) {
String regex = "Tutorialspoint\\z";
String input = "Hi h... | [
{
"code": null,
"e": 1176,
"s": 1062,
"text": "The subexpression/metacharacter “\\Z” matches the end of the entire string except allowable final line terminator."
},
{
"code": null,
"e": 1632,
"s": 1176,
"text": "import java.util.regex.Matcher;\nimport java.util.regex.Pattern;\np... |
4 Must-Know Special Methods for Python | by Soner Yıldırım | Towards Data Science | Everything in Python is an object and we define objects through classes. When we define an object, we actually create an instance of a class. Thus, class is the most fundamental piece in Python.
Classes have:
Data attributes: Define what is needed to create an instance of a class
Methods (i.e. procedural attributes): D... | [
{
"code": null,
"e": 367,
"s": 172,
"text": "Everything in Python is an object and we define objects through classes. When we define an object, we actually create an instance of a class. Thus, class is the most fundamental piece in Python."
},
{
"code": null,
"e": 381,
"s": 367,
... |
Draw a circle in using Tkinter Python | Tkinter Canvas are generally used for creating shapes such as arc, rectangle, triangle, freeform shapes, etc. All these shapes can be drawn using the inbuilt function available in tkinter library.
In this example, we will create a Circle using the create_oval(x0,y0,x1,y1) method by passing the following values of coord... | [
{
"code": null,
"e": 1259,
"s": 1062,
"text": "Tkinter Canvas are generally used for creating shapes such as arc, rectangle, triangle, freeform shapes, etc. All these shapes can be drawn using the inbuilt function available in tkinter library."
},
{
"code": null,
"e": 1405,
"s": 1259... |
4 Ways To Improve Your Plotly Graphs | by Dylan Castillo | Towards Data Science | Note: after publishing, I noticed that there are some issues with Plotly’s embeds in Medium. So you’ll need to click on the links to see how the graphs look. For a better reading experience, see the original version on my site.
These last weeks I've been working on an application using Dash and Plotly. These tools are ... | [
{
"code": null,
"e": 400,
"s": 172,
"text": "Note: after publishing, I noticed that there are some issues with Plotly’s embeds in Medium. So you’ll need to click on the links to see how the graphs look. For a better reading experience, see the original version on my site."
},
{
"code": null,... |
Java program to find all duplicate characters in a string | The duplicate characters in a string are those that occur more than once. These characters can be found using a nested for loop. An example of this is given as follows −
String = Apple
In the above string, p is a duplicate character as it occurs more than once.
A program that demonstrates this is given as follows.
Li... | [
{
"code": null,
"e": 1232,
"s": 1062,
"text": "The duplicate characters in a string are those that occur more than once. These characters can be found using a nested for loop. An example of this is given as follows −"
},
{
"code": null,
"e": 1248,
"s": 1232,
"text": "String = App... |
Parsing and Formatting a Byte Array into Binary in Java | Set a BigInteger object.
BigInteger one;
Now, create a ByteArray.
byte byteArr[] = new byte[] { 0x1, 0x00, 0x00 };
one = new BigInteger(byteArr);
For Binary, we have used 2 as the toString() method parameter.
String strResult = one.toString(2);
The following is an example −
Live Demo
import java.math.*;
public class D... | [
{
"code": null,
"e": 1087,
"s": 1062,
"text": "Set a BigInteger object."
},
{
"code": null,
"e": 1103,
"s": 1087,
"text": "BigInteger one;"
},
{
"code": null,
"e": 1128,
"s": 1103,
"text": "Now, create a ByteArray."
},
{
"code": null,
"e": 1208,
... |
A Complete Yet Simple Guide to Move from Excel to Python | by Frank Andrade | Towards Data Science | As someone who has been working with Excel for many years, I know that the idea of learning things you can already do in Excel/VBA in a completely new environment like Python doesn’t sound so exciting. However, all the benefits that the Python environment offers make this worth it. For this reason, I came up with a use... | [
{
"code": null,
"e": 563,
"s": 171,
"text": "As someone who has been working with Excel for many years, I know that the idea of learning things you can already do in Excel/VBA in a completely new environment like Python doesn’t sound so exciting. However, all the benefits that the Python environment... |
Count rows/columns with sum equals to diagonal sum in C++ | We are given a matrix which is a 2-D array having rows and columns and the task is to calculate the count of sum of all the rows and columns such that it is equal to the sum of either principal or secondary matrix.
Input −
int arr[row][col] = {
{ 4, 1, 7 },
{ 10, 3, 5 },
{ 2, 2, 11}
}
Output − Count of rows/co... | [
{
"code": null,
"e": 1277,
"s": 1062,
"text": "We are given a matrix which is a 2-D array having rows and columns and the task is to calculate the count of sum of all the rows and columns such that it is equal to the sum of either principal or secondary matrix."
},
{
"code": null,
"e": 1... |
Print system time in C++ | The C++ standard library does not provide a proper date type. C++ inherits the structs and functions for date and time manipulation from C. To access date and time related functions and structures, you would need to include <ctime> header file in your C++ program.
There are four time-related types: clock_t, time_t, siz... | [
{
"code": null,
"e": 1327,
"s": 1062,
"text": "The C++ standard library does not provide a proper date type. C++ inherits the structs and functions for date and time manipulation from C. To access date and time related functions and structures, you would need to include <ctime> header file in your C... |
Java Examples - Adding Element to Linked List | How to add an element at first and last position of a linked list ?
Following example shows how to add an element at the first and last position of a linked list by using addFirst() and addLast() method of Linked List class.
import java.util.LinkedList;
public class Main {
public static void main(String[] args) {
... | [
{
"code": null,
"e": 2136,
"s": 2068,
"text": "How to add an element at first and last position of a linked list ?"
},
{
"code": null,
"e": 2293,
"s": 2136,
"text": "Following example shows how to add an element at the first and last position of a linked list by using addFirst() ... |
Data Analysis: From Data to Dashboard with Python, Dash, and Plotly | by Brad Bartram | Towards Data Science | Way back in 1998, I was working at a growing startup and my boss came to me with a task, which was to provide a set of client reports for some of our partners. As a project manager with very little formal training, this was new to me and forced me on this path of trying to be better. Decades later, I’m still working th... | [
{
"code": null,
"e": 547,
"s": 165,
"text": "Way back in 1998, I was working at a growing startup and my boss came to me with a task, which was to provide a set of client reports for some of our partners. As a project manager with very little formal training, this was new to me and forced me on this... |
Jackson - Data Binding With Generics | In simple data binding, we've used Map class which use String as key and Object as a value object. Instead we can have concrete java object and type cast it to be used in JSON binding.
Consider the following example with a class UserData, a class to hold user specific data.
Create a java class file named JacksonTester ... | [
{
"code": null,
"e": 1938,
"s": 1753,
"text": "In simple data binding, we've used Map class which use String as key and Object as a value object. Instead we can have concrete java object and type cast it to be used in JSON binding."
},
{
"code": null,
"e": 2028,
"s": 1938,
"text"... |
How to clear screen using python? | When we work with python interactive shell/terminal, we continuously get the output and the window looks very much clumsy, not to see any output clearly, most of the time we use ctrl+lto clear the screen.
But if we want to clear the screen while running a python script we have to do something for that because there’s n... | [
{
"code": null,
"e": 1267,
"s": 1062,
"text": "When we work with python interactive shell/terminal, we continuously get the output and the window looks very much clumsy, not to see any output clearly, most of the time we use ctrl+lto clear the screen."
},
{
"code": null,
"e": 1482,
"... |
Farthest distance of a 0 from the center of a 2-D matrix - GeeksforGeeks | 30 Apr, 2021
Given a matrix of odd order mat, the task is to find the farthest distance of a 0 from the center of the matrix. Distance between two elements at locations (i1, j1) and (i2, j2) of the matrix is calculated as |i1- i2| + |j1-j2|. If no 0 occurs in the matrix then print 0 as the result.Examples:
Input: mat... | [
{
"code": null,
"e": 24816,
"s": 24788,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 25113,
"s": 24816,
"text": "Given a matrix of odd order mat, the task is to find the farthest distance of a 0 from the center of the matrix. Distance between two elements at locations (i1, j1... |
Use cases of mouse programming in C/C++ - GeeksforGeeks | 28 Nov, 2021
In this article, we will discuss some use cases of Mouse Programming:
For displaying the Mouse Pointer, first enable the graphic mode using initgraph() function, if it is successfully initialized than it calls initMouse() function to check mouse is available or not, If initMouse() function returns not equa... | [
{
"code": null,
"e": 24031,
"s": 24003,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 24101,
"s": 24031,
"text": "In this article, we will discuss some use cases of Mouse Programming:"
},
{
"code": null,
"e": 24501,
"s": 24101,
"text": "For displaying the M... |
How to declare nullable type in TypeScript ? - GeeksforGeeks | 29 Jun, 2020
In vanilla JavaScript, there are two primary data types, null and undefined. Previously in TypeScript, it was not possible to explicitly name these types as “null” and “undefined”. However, it can now be used regardless of the type checking mode.
To assign “undefined” to any property, the –strictNullChecks... | [
{
"code": null,
"e": 24001,
"s": 23973,
"text": "\n29 Jun, 2020"
},
{
"code": null,
"e": 24248,
"s": 24001,
"text": "In vanilla JavaScript, there are two primary data types, null and undefined. Previously in TypeScript, it was not possible to explicitly name these types as “null”... |
Currying Function in Python | 07 Feb, 2019
In problem solving and functional programming, currying is the practice of simplifying the execution of a function that takes multiple arguments into executing sequential single-argument functions. In simple terms, Currying is used to transform multiple-argument function into single argument function by ev... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Feb, 2019"
},
{
"code": null,
"e": 497,
"s": 52,
"text": "In problem solving and functional programming, currying is the practice of simplifying the execution of a function that takes multiple arguments into executing sequential sin... |
How to Update Multiple Columns in Single Update Statement in SQL? | 28 Oct, 2021
In this article, we will see, how to update multiple columns in a single statement in SQL. We can update multiple columns by specifying multiple columns after the SET command in the UPDATE statement. The UPDATE statement is always followed by the SET command, it specifies the column where the update is req... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Oct, 2021"
},
{
"code": null,
"e": 366,
"s": 52,
"text": "In this article, we will see, how to update multiple columns in a single statement in SQL. We can update multiple columns by specifying multiple columns after the SET command... |
p5.Table getRowCount() Method | 08 Jul, 2020
The getRowCount() method of p5.Table in p5.js is used to return the total number of rows in a table object.
Syntax:
getRowCount()
Parameters: This function does not accept any parameters.
Return Value: It returns an integer value which specifies the number of rows in the table.
Below example illustrates th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jul, 2020"
},
{
"code": null,
"e": 136,
"s": 28,
"text": "The getRowCount() method of p5.Table in p5.js is used to return the total number of rows in a table object."
},
{
"code": null,
"e": 144,
"s": 136,
"text":... |
How to add text on an image using pillow in Python ? | 17 Dec, 2020
Prerequisites: PIL
In this article we’ll see how we can add text on an image using the pillow library in Python. Python Imaging Library (PIL) is the de facto image processing package for Python language. It incorporates lightweight image processing tools that aids in editing, creating and saving images. Pi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Dec, 2020"
},
{
"code": null,
"e": 47,
"s": 28,
"text": "Prerequisites: PIL"
},
{
"code": null,
"e": 414,
"s": 47,
"text": "In this article we’ll see how we can add text on an image using the pillow library in Pyt... |
Hensel’s Lemma | 07 Jul, 2021
Hensel’s Lemma is a result that stipulates conditions for roots of polynomials modulo powers of primes to be “lifted” to roots modulo higher powers. The lifting method outlined in the proof is reminiscent of Newton’s Method for solving equations. Say the equations of the below type is to be solved:
The ide... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jul, 2021"
},
{
"code": null,
"e": 328,
"s": 28,
"text": "Hensel’s Lemma is a result that stipulates conditions for roots of polynomials modulo powers of primes to be “lifted” to roots modulo higher powers. The lifting method outline... |
Software Engineering | Control Flow Graph (CFG) | 15 May, 2019
A Control Flow Graph (CFG) is the graphical representation of control flow or computation during the execution of programs or applications. Control flow graphs are mostly used in static analysis as well as compiler applications, as they can accurately represent the flow inside of a program unit. The contro... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 418,
"s": 52,
"text": "A Control Flow Graph (CFG) is the graphical representation of control flow or computation during the execution of programs or applications. Control flow graphs are mostly use... |
Polymorphism in GoLang | 07 Jul, 2021
Polymorphism is the ability of a message to be displayed in more than one form. Polymorphism is considered as one of the important features of Object-Oriented Programming and can be achieved during either at runtime or compile time. Golang is a light-Object Oriented language and supports polymorphism throu... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jul, 2021"
},
{
"code": null,
"e": 431,
"s": 28,
"text": "Polymorphism is the ability of a message to be displayed in more than one form. Polymorphism is considered as one of the important features of Object-Oriented Programming and ... |
How to automatically close all collapsible elements inside of the accordion when closing the accordion? | 22 Jun, 2020
The Collapse plugin provides a quick way of revealing and hiding content. It flip the perceivability of content over program with a couple of classes and Bootstrap 4 JavaScript plugins.
Flipping(toggling) of content requires to connect with the href attribute, or a button with the data-target property. In ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 214,
"s": 28,
"text": "The Collapse plugin provides a quick way of revealing and hiding content. It flip the perceivability of content over program with a couple of classes and Bootstrap 4 JavaScrip... |
PyQt5 – How to change style and size of text Progress Bar ? | 22 Apr, 2020
In this article we will see how to change the font style and the size of data which is inside the progress bar. We can set the text in progress bar using setFormat method. In order to change the font and the size we will use setFont method which take QFont object as argument and font and size will be chang... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 339,
"s": 28,
"text": "In this article we will see how to change the font style and the size of data which is inside the progress bar. We can set the text in progress bar using setFormat method. In ... |
Manacher’s Algorithm – Linear Time Longest Palindromic Substring – Part 4 | 24 Jun, 2022
In Manacher’s Algorithm Part 1 and Part 2, we gone through some of the basics, understood LPS length array and how to calculate it efficiently based on four cases. In Part 3, we implemented the same. Here we will review the four cases again and try to see it differently and implement the same. All four cas... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 639,
"s": 54,
"text": "In Manacher’s Algorithm Part 1 and Part 2, we gone through some of the basics, understood LPS length array and how to calculate it efficiently based on four cases. In Part 3,... |
re.fullmatch() function in Python | 16 Mar, 2021
re.fullmatch() returns a match object if and only if the entire string matches the pattern. Otherwise, it will return None. The flag at the end is optional and can be used to ignore cases etc.
Syntax: re.fullmatch(pattern, string, flags=0)
Parameters:
pattern: the regular expression pattern that you want ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Mar, 2021"
},
{
"code": null,
"e": 222,
"s": 28,
"text": "re.fullmatch() returns a match object if and only if the entire string matches the pattern. Otherwise, it will return None. The flag at the end is optional and can be used to ... |
Different ways to convert String to Integer in C# | 05 Sep, 2019
Like other programming languages, in C# we can convert string to int. There are three ways to convert it and they are as follows:
Using the Parse Method
Using the TryParse Method
Using the Convert Method from (System.Convert class)
The input string can be anything like “10”, “10.10”, “10GeeksforGeeks”, “” ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Sep, 2019"
},
{
"code": null,
"e": 158,
"s": 28,
"text": "Like other programming languages, in C# we can convert string to int. There are three ways to convert it and they are as follows:"
},
{
"code": null,
"e": 181,
... |
Decode the string encoded with the given algorithm | 31 May, 2021
Given a decoded string str which was decoded with the following encoding algorithm: Write down the middle character of the string then delete it and repeat the process until there are no characters left. For example, “abba” will be encoded as “bbaa”. Note that the middle character is the first character of... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 435,
"s": 53,
"text": "Given a decoded string str which was decoded with the following encoding algorithm: Write down the middle character of the string then delete it and repeat the process until ... |
Python – Itertools.cycle() | 19 Feb, 2020
Iterator is defined as object types which contains values that can be accessed or iterated using a loop. There are different iterators that come built-in with Python such as lists, sets, etc. Itertools is the Python module that contains some inbuilt functions for generating sequences using iterators. This ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Feb, 2020"
},
{
"code": null,
"e": 575,
"s": 52,
"text": "Iterator is defined as object types which contains values that can be accessed or iterated using a loop. There are different iterators that come built-in with Python such as ... |
Special Keys in Selenium Python | 23 Aug, 2021
Selenium’s Python Module is built to perform automated testing with Python. Special Keys is an exclusive feature of Selenium in python, that allows pressing keys through keyboard such as ctrl+f, or shift+c+v, etc. class selenium.webdriver.common.keys.Keys handles all Keys in Selenium Python. It contains hu... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Aug, 2021"
},
{
"code": null,
"e": 393,
"s": 28,
"text": "Selenium’s Python Module is built to perform automated testing with Python. Special Keys is an exclusive feature of Selenium in python, that allows pressing keys through keybo... |
How to copy files into a directory in C#? | To Copy a file, C# provides a method File. Copy
File. Copy has 2 overloads
Copy(String, String) -Copies an existing file to a new file. Overwriting a file of the same name is not allowed.
Copy(String, String, Boolean) Copies an existing file to a new file. Overwriting a file of the same name is allowed.
Directory.GetFi... | [
{
"code": null,
"e": 1235,
"s": 1187,
"text": "To Copy a file, C# provides a method File. Copy"
},
{
"code": null,
"e": 1262,
"s": 1235,
"text": "File. Copy has 2 overloads"
},
{
"code": null,
"e": 1375,
"s": 1262,
"text": "Copy(String, String) -Copies an exis... |
Number of pairs with Pandigital Concatenation | 13 Jun, 2022
A pair of strings when concatenated is said to be a ‘Pandigital Concatenation’ if their concatenation consists of all digits from (0 – 9) in any order at least once.The task is, given N strings, compute the number of pairs resulting in a ‘Pandigital Concatenation’.
Examples:
Input : num[] = {"123567", "... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 321,
"s": 54,
"text": "A pair of strings when concatenated is said to be a ‘Pandigital Concatenation’ if their concatenation consists of all digits from (0 – 9) in any order at least once.The task ... |
Import Text Files Into Numpy Arrays | 16 Mar, 2021
Numpy is an acronym for ‘Numerical Python’. It is a library in python for supporting n-dimensional arrays. But have you ever wondered about loading data into NumPy from text files. Don’t worry we will discuss the same in this article. To import Text files into Numpy Arrays, we have two functions in Numpy: ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Mar, 2021"
},
{
"code": null,
"e": 362,
"s": 54,
"text": "Numpy is an acronym for ‘Numerical Python’. It is a library in python for supporting n-dimensional arrays. But have you ever wondered about loading data into NumPy from text ... |
Why is colspan not a known native attribute in Angular 2? | 26 Jun, 2020
In order to understand it, we need to have a clear in-depth knowledge between Document Object Model(DOM) and HyperText Markup Language(HTML).Basically, DOM is a model of objects and is a logical tree representation of the document whereas HTML is a markup language that we used to build web-pages.Every HTML... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jun, 2020"
},
{
"code": null,
"e": 401,
"s": 28,
"text": "In order to understand it, we need to have a clear in-depth knowledge between Document Object Model(DOM) and HyperText Markup Language(HTML).Basically, DOM is a model of objec... |
sympy.integrals.transforms.fourier_transform() in python | 10 Jul, 2020
With the help of fourier_transform() method, we can compute the Fourier transformation and it will return the transformed function.
Fourier transformation function
Syntax : fourier_transform(f, x, k, **hints)
Return : Return the transformed function.
Example #1 :
In this example we can see that by using fo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 160,
"s": 28,
"text": "With the help of fourier_transform() method, we can compute the Fourier transformation and it will return the transformed function."
},
{
"code": null,
"e": 192,
... |
Program to find sum of first n natural numbers | 20 Feb, 2022
Given a number n, find the sum of first natural numbers.
Examples :
Input : n = 3
Output : 6
Explanation :
Note that 1 + 2 + 3 = 6
Input : 5
Output : 15
Explanation :
Note that 1 + 2 + 3 + 4 + 5 = 15
A simple solution is to do the following.
1) Initialize : sum = 0
2) Run a loop from x = 1 to n and
... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n20 Feb, 2022"
},
{
"code": null,
"e": 110,
"s": 53,
"text": "Given a number n, find the sum of first natural numbers."
},
{
"code": null,
"e": 122,
"s": 110,
"text": "Examples : "
},
{
"code": null,
"e":... |
How to create shapes using CSS ? | 21 Jun, 2021
In this article, we will design some different types of shapes using CSS. CSS is capable of making all types of shapes.
Creating a square:
html
<!-- Write HTML code here --><!DOCTYPE html><html> <head> <style> .square { height: 50px; width: 50px; background-co... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 175,
"s": 53,
"text": "In this article, we will design some different types of shapes using CSS. CSS is capable of making all types of shapes. "
},
{
"code": null,
"e": 196,
"s": 1... |
GATE | GATE CS 1996 | Question 63 | 30 Jul, 2019
Insert the characters of the string K R P C S N Y T J M into a hash table of size 10.Use the hash function
h(x) = ( ord(x) – ord("a") + 1 ) mod10
If linear probing is used to resolve collisions, then the following insertion causes collision(A) Y(B) C(C) M(D) PAnswer: (C)Explanation:(a) The hash table with ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Jul, 2019"
},
{
"code": null,
"e": 161,
"s": 54,
"text": "Insert the characters of the string K R P C S N Y T J M into a hash table of size 10.Use the hash function"
},
{
"code": null,
"e": 200,
"s": 161,
"text":... |
Find (a^b)%m where ‘b’ is very large | 02 Feb, 2022
Given three numbers a, b and m where 1<=a, m<=10^6. Given very large ‘b’ containing up to 10^6 digits and m is a prime number, the task is to find (a^b)%m.Examples:
Input: a = 2, b = 3, m = 17 Output: 8 2 ^ 3 % 17 = 8Input: a = 3, b = 100000000000000000000000000, m = 1000000007 Output: 835987331
Iterative... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Feb, 2022"
},
{
"code": null,
"e": 218,
"s": 52,
"text": "Given three numbers a, b and m where 1<=a, m<=10^6. Given very large ‘b’ containing up to 10^6 digits and m is a prime number, the task is to find (a^b)%m.Examples: "
},
... |
Python map() function | 07 Jul, 2022
map() function returns a map object(which is an iterator) of the results after applying the given function to each item of a given iterable (list, tuple etc.)
Syntax :
map(fun, iter)
Parameters :
fun : It is a function to which map passes each element of given iterable.iter : It is a iterable which is to ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 211,
"s": 52,
"text": "map() function returns a map object(which is an iterator) of the results after applying the given function to each item of a given iterable (list, tuple etc.)"
},
{
"... |
Queries to count numbers from given range which are divisible by all its digits | 21 Apr, 2021
Given a 2D array arr[][] with each row of the form of a query { L, R }, the task is to count the numbers in the range [L, R] such that the number is divisible by all of its non-zero digit.
Examples:
Input: arr[][] ={ {1, 5}, {12, 14} } Output: 5 1 Explanation: Query1: All the numbers in the range [1, 5] ar... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 217,
"s": 28,
"text": "Given a 2D array arr[][] with each row of the form of a query { L, R }, the task is to count the numbers in the range [L, R] such that the number is divisible by all of its no... |
Pascal - File Handling | Pascal treats a file as a sequence of components, which must be of uniform type. A file's type is determined by the type of the components. File data type is defined as −
type
file-name = file of base-type;
Where, the base-type indicates the type of the components of the file. The base type could be anything like, inte... | [
{
"code": null,
"e": 2388,
"s": 2217,
"text": "Pascal treats a file as a sequence of components, which must be of uniform type. A file's type is determined by the type of the components. File data type is defined as −"
},
{
"code": null,
"e": 2424,
"s": 2388,
"text": "type\nfile-... |
Self Descriptive Number | 17 Jun, 2022
Given an integer N, the task is to find all the self-descriptive numbers from 1 to N
A self-descriptive number is an integer n in given base b is b digits long in which each digit at position p (the most significant digit being at position 0 and the least significant at position b – 1) counts how many time... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Jun, 2022"
},
{
"code": null,
"e": 137,
"s": 52,
"text": "Given an integer N, the task is to find all the self-descriptive numbers from 1 to N"
},
{
"code": null,
"e": 381,
"s": 137,
"text": "A self-descriptive n... |
Perfect Cube factors of a Number | 05 Apr, 2021
Given an integer N, the task is to find the number of factors of N that are a perfect cube.
Examples:
Input: N = 27Output: 2Explanation : There are 2 factors of 27 (1, 27) that are perfect cube
Input: N = 216Output: 4 Explanation: There are 4 factors of 216 (1, 8, 27, 216) that are perfect cube
Naive Appro... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Apr, 2021"
},
{
"code": null,
"e": 120,
"s": 28,
"text": "Given an integer N, the task is to find the number of factors of N that are a perfect cube."
},
{
"code": null,
"e": 130,
"s": 120,
"text": "Examples:"
}... |
Java Program for Search an element in a sorted and rotated array | 06 Apr, 2022
An element in a sorted array can be found in O(log n) time via binary search. But suppose we rotate an ascending order sorted array at some pivot unknown to you beforehand. So for instance, 1 2 3 4 5 might become 3 4 5 1 2. Devise a way to find an element in the rotated array in O(log n) time.
Example:
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Apr, 2022"
},
{
"code": null,
"e": 324,
"s": 28,
"text": "An element in a sorted array can be found in O(log n) time via binary search. But suppose we rotate an ascending order sorted array at some pivot unknown to you beforehand. So... |
Convert PySpark RDD to DataFrame | 16 May, 2021
In this article, we will discuss how to convert the RDD to dataframe in PySpark. There are two approaches to convert RDD to dataframe.
Using createDataframe(rdd, schema)Using toDF(schema)
Using createDataframe(rdd, schema)
Using toDF(schema)
But before moving forward for converting RDD to Dataframe first l... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 May, 2021"
},
{
"code": null,
"e": 163,
"s": 28,
"text": "In this article, we will discuss how to convert the RDD to dataframe in PySpark. There are two approaches to convert RDD to dataframe."
},
{
"code": null,
"e": 216... |
Make your own Rick Sanchez (bot) with Transformers and DialoGPT fine-tuning | by Rostyslav Neskorozhenyi | Towards Data Science | I am a big fan of ‘Rick and Morty’ and NLP (Natural Language Processing). After watching the last episode of a mad scientist’s and his grandson’s adventures I realized that I have to apply my knowledge in NLP and Machine Learning to create my own Rick (in a form of chat-bot, at least for now).
The path to creating virt... | [
{
"code": null,
"e": 466,
"s": 171,
"text": "I am a big fan of ‘Rick and Morty’ and NLP (Natural Language Processing). After watching the last episode of a mad scientist’s and his grandson’s adventures I realized that I have to apply my knowledge in NLP and Machine Learning to create my own Rick (in... |
Plot the phase spectrum in Python using Matplotlib - GeeksforGeeks | 27 Apr, 2020
A Signal is an electromagnetic field or an electric current to transmit data. There are various components of a signal such as frequency, amplitude, wavelength, phase, angular frequency and period from which it is described.A periodic signal can be represented using the below sine function:
y = A sin(w*t +... | [
{
"code": null,
"e": 25817,
"s": 25789,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 26109,
"s": 25817,
"text": "A Signal is an electromagnetic field or an electric current to transmit data. There are various components of a signal such as frequency, amplitude, wavelength, ph... |
3 Must-Know SQL Functions For Efficient Data Analysis | by Soner Yıldırım | Towards Data Science | Explained with practical examples
SQL is a programming language used by relational database management systems. It provides numerous functions and methods that operate on the data stored in relational databases.
SQL is not just a query language. We can use it to filter, manipulate, and analyze data as well. In this art... | [
{
"code": null,
"e": 205,
"s": 171,
"text": "Explained with practical examples"
},
{
"code": null,
"e": 383,
"s": 205,
"text": "SQL is a programming language used by relational database management systems. It provides numerous functions and methods that operate on the data stored... |
Try/catch/finally/throw keywords in C# | Exception handling is based on the following keywords and its usage −
try − A try block identifies a block of code for which particular exceptions is activated. It is followed by one or more catch blocks.
try − A try block identifies a block of code for which particular exceptions is activated. It is followed by one or... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "Exception handling is based on the following keywords and its usage −"
},
{
"code": null,
"e": 1267,
"s": 1132,
"text": "try − A try block identifies a block of code for which particular exceptions is activated. It is followed by one... |
Tryit Editor v3.7 | Background Image Repeat
Tryit: Using no-repeat | [
{
"code": null,
"e": 49,
"s": 25,
"text": "Background Image Repeat"
}
] |
Natural Language Processing — Beginner to Advanced (Part-3) | by Ishan Singh | Towards Data Science | In the previous part of the series ‘The NLP Project’, we learned all the basic lexical processing techniques such as removing stop words, tokenization, stemming, and lemmatization.
Even after going through all those preprocessing steps, a lot of noise is still present in the textual data. For example, spelling mistakes... | [
{
"code": null,
"e": 352,
"s": 171,
"text": "In the previous part of the series ‘The NLP Project’, we learned all the basic lexical processing techniques such as removing stop words, tokenization, stemming, and lemmatization."
},
{
"code": null,
"e": 703,
"s": 352,
"text": "Even ... |
Python - Tkinter Frame | The Frame widget is very important for the process of grouping and organizing other widgets in a somehow friendly way. It works like a container, which is responsible for arranging the position of other widgets.
It uses rectangular areas in the screen to organize the layout and to provide padding of these widgets. A fr... | [
{
"code": null,
"e": 2456,
"s": 2244,
"text": "The Frame widget is very important for the process of grouping and organizing other widgets in a somehow friendly way. It works like a container, which is responsible for arranging the position of other widgets."
},
{
"code": null,
"e": 2637... |
File opening modes(r versus r+) in C++ | File handling in programming languages is very important for the interaction of programming with the memory for accessing files and fetching data in it.
Using a program, you can read data from a file as well as write data to the file and do a lot more functions.
Here, we will see reading of data from a file.
In program... | [
{
"code": null,
"e": 1215,
"s": 1062,
"text": "File handling in programming languages is very important for the interaction of programming with the memory for accessing files and fetching data in it."
},
{
"code": null,
"e": 1325,
"s": 1215,
"text": "Using a program, you can read... |
Tryit Editor v3.7 | Tryit: HTML table - border bottom | [] |
How to check if a document is ready in JavaScript? | Following is the code to check if a document is ready in JavaScript −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, san... | [
{
"code": null,
"e": 1132,
"s": 1062,
"text": "Following is the code to check if a document is ready in JavaScript −"
},
{
"code": null,
"e": 1143,
"s": 1132,
"text": " Live Demo"
},
{
"code": null,
"e": 2108,
"s": 1143,
"text": "<!DOCTYPE html>\n<html lang=\"... |
Arduino - Passing Arrays to Functions | To pass an array argument to a function, specify the name of the array without any brackets. For example, if an array hourlyTemperatures has been declared as the function, the call passes array hourlyTemperatures and its size to function modifyArray.
Here is a list of some important points that you need to know while p... | [
{
"code": null,
"e": 3121,
"s": 2870,
"text": "To pass an array argument to a function, specify the name of the array without any brackets. For example, if an array hourlyTemperatures has been declared as the function, the call passes array hourlyTemperatures and its size to function modifyArray."
... |
File Handling in Java - GeeksforGeeks | 03 Jan, 2022
In Java, with the help of File Class, we can work with files. This File Class is inside the java.io package. The File class can be used by creating an object of the class and then specifying the name of the file.
Why File Handling is Required?
File Handling is an integral part of any programming language a... | [
{
"code": null,
"e": 23972,
"s": 23944,
"text": "\n03 Jan, 2022"
},
{
"code": null,
"e": 24185,
"s": 23972,
"text": "In Java, with the help of File Class, we can work with files. This File Class is inside the java.io package. The File class can be used by creating an object of th... |
submit() element method - Selenium Python - GeeksforGeeks | 27 Apr, 2020
Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 26112,
"s": 25555,
"text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests usi... |
Practice Questions for Recursion | Set 2 - GeeksforGeeks | 12 May, 2022
Explain the functionality of following functions.
Question 1
C++
Java
Python3
C#
Javascript
/* Assume that n is greater than or equal to 1 */int fun1(int n){ if (n == 1) return 0; else return 1 + fun1(n / 2);} // This code is contributed by shubhamsingh10// Improved by Adwitiya Mourya... | [
{
"code": null,
"e": 26301,
"s": 26273,
"text": "\n12 May, 2022"
},
{
"code": null,
"e": 26352,
"s": 26301,
"text": "Explain the functionality of following functions. "
},
{
"code": null,
"e": 26364,
"s": 26352,
"text": "Question 1 "
},
{
"code": null,... |
Check a given sentence for a given set of simple grammar rules - GeeksforGeeks | 25 Feb, 2022
A simple sentence if syntactically correct if it fulfills given rules. The following are given rules.1. Sentence must start with a Uppercase character (e.g. Noun/ I/ We/ He etc.) 2. Then lowercase character follows. 3. There must be spaces between words. 4. Then the sentence must end with a full stop(.) af... | [
{
"code": null,
"e": 26099,
"s": 26071,
"text": "\n25 Feb, 2022"
},
{
"code": null,
"e": 26592,
"s": 26099,
"text": "A simple sentence if syntactically correct if it fulfills given rules. The following are given rules.1. Sentence must start with a Uppercase character (e.g. Noun/ ... |
k-th prime factor of a given number - GeeksforGeeks | 24 Jan, 2022
Given two numbers n and k, print k-th prime factor among all prime factors of n. For example, if the input number is 15 and k is 2, then output should be “5”. And if the k is 3, then output should be “-1” (there are less than k prime factors). Examples:
Input : n = 225, k = 2
Output : 3
Prime fac... | [
{
"code": null,
"e": 25765,
"s": 25737,
"text": "\n24 Jan, 2022"
},
{
"code": null,
"e": 26021,
"s": 25765,
"text": "Given two numbers n and k, print k-th prime factor among all prime factors of n. For example, if the input number is 15 and k is 2, then output should be “5”. And ... |
Using Threads in Rust Programming | We know that a process is a program in a running state. The Operating System maintains and manages multiple processes at once. These processes are run on independent parts and these independent parts are known as threads.
Rust provides an implementation of 1:1 threading. It provides different APIs that
handles the case... | [
{
"code": null,
"e": 1284,
"s": 1062,
"text": "We know that a process is a program in a running state. The Operating System maintains and manages multiple processes at once. These processes are run on independent parts and these independent parts are known as threads."
},
{
"code": null,
... |
PHP - Sessions | An alternative way to make data accessible across the various pages of an entire website is to use a PHP Session.
A session creates a file in a temporary directory on the server where registered session variables and their values are stored. This data will be available to all pages on the site during that visit.
The lo... | [
{
"code": null,
"e": 2871,
"s": 2757,
"text": "An alternative way to make data accessible across the various pages of an entire website is to use a PHP Session."
},
{
"code": null,
"e": 3071,
"s": 2871,
"text": "A session creates a file in a temporary directory on the server wher... |
Tryit Editor v3.7 | Tryit: Different HSLA colors | [] |
Converting ArrayList to HashMap in Java 8 using a Lambda Expression - GeeksforGeeks | 17 Aug, 2021
A lambda expression is one or more line of code which works like function or method. It takes a parameter and returns the value. Lambda expression can be used to convert ArrayList to HashMap.
Syntax:
(parms1, parms2) -> expression
Examples:
Input : List : [1="1", 2="2", 3="3"]
Output: Map : {1=1, 2=2, 3=3... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n17 Aug, 2021"
},
{
"code": null,
"e": 23749,
"s": 23557,
"text": "A lambda expression is one or more line of code which works like function or method. It takes a parameter and returns the value. Lambda expression can be used to c... |
Abstraction in C++ - GeeksforGeeks | 30 May, 2018
Data abstraction is one of the most essential and important feature of object oriented programming in C++. Abstraction means displaying only essential information and hiding the details. Data abstraction refers to providing only essential information about the data to the outside world, hiding the backgrou... | [
{
"code": null,
"e": 26569,
"s": 26541,
"text": "\n30 May, 2018"
},
{
"code": null,
"e": 26906,
"s": 26569,
"text": "Data abstraction is one of the most essential and important feature of object oriented programming in C++. Abstraction means displaying only essential information ... |
Difference Between Streams and Collections in Java | 27 May, 2022
Collection is an in-memory data structure, which holds all the values that the data structure currently has. Every element in the Collection has to be computed before we add it to the Collection. Operations such as searching, sorting, insertion, manipulation, and deletion can be performed on a Collection. ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 May, 2022"
},
{
"code": null,
"e": 468,
"s": 28,
"text": "Collection is an in-memory data structure, which holds all the values that the data structure currently has. Every element in the Collection has to be computed before we add i... |
Introduction of 4th and 5th Normal form in DBMS | 02 Feb, 2022
Prerequisite – Functional Dependency, Database Normalization, Normal Forms If two or more independent relation are kept in a single relation or we can say multivalue dependency occurs when the presence of one or more rows in a table implies the presence of one or more other rows in that same table. Put ano... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Feb, 2022"
},
{
"code": null,
"e": 624,
"s": 52,
"text": "Prerequisite – Functional Dependency, Database Normalization, Normal Forms If two or more independent relation are kept in a single relation or we can say multivalue dependen... |
Construct a Maximum Sum Linked List out of two Sorted Linked Lists having some Common nodes | 24 Jun, 2022
Given two sorted linked lists, construct a linked list that contains maximum sum path from start to end. The result list may contain nodes from both input lists. When constructing the result list, we may switch to the other input list only at the point of intersection (which mean the two node with the same... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 422,
"s": 52,
"text": "Given two sorted linked lists, construct a linked list that contains maximum sum path from start to end. The result list may contain nodes from both input lists. When constru... |
MATCH Function in Excel With Examples | 24 May, 2021
Excel contains many useful functions and such a function is the ‘MATCH()’ function. It is basically used to get the relative position of a specific item from a range of cells(i.e. from a row or a column or from a table). This function also supports exact and approximate match like VLOOKUP() function. Gener... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 May, 2021"
},
{
"code": null,
"e": 393,
"s": 28,
"text": "Excel contains many useful functions and such a function is the ‘MATCH()’ function. It is basically used to get the relative position of a specific item from a range of cells(... |
SQL- Lock Table | 06 Jun, 2021
SQL Server is a versatile database and it is the most used Relational Database that is used across many software industries. In this article, let us see about the SQL Lock table in SQL Server by taking some practical examples. As it is meeting Atomicity(A), Consistency(C), Isolation(I), and Durability(D) ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 460,
"s": 28,
"text": "SQL Server is a versatile database and it is the most used Relational Database that is used across many software industries. In this article, let us see about the SQL Lock tab... |
SPACE() function in SQL Server | 28 Dec, 2020
SPACE() :This function in SQL Server helps to return a string that has a specified number of spaces. This function is also available in MYSQL with the same name.
Syntax :
SPACE(number)
Parameters :This function accepts only one parameter.
number –It demotes the number of spaces.
Returns :
If the number is ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Dec, 2020"
},
{
"code": null,
"e": 190,
"s": 28,
"text": "SPACE() :This function in SQL Server helps to return a string that has a specified number of spaces. This function is also available in MYSQL with the same name."
},
{
... |
Mathematical understanding of RNN and its variants | 22 Jan, 2021
Introduction:
Experts expect Artificial Intelligence (AI) to work towards creating a better life to live. They say as more computation power will be available in the coming time i.e more graphical processing units, AI will make more advancement and productive to humans. Today, one can see a lot of such AI-... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Jan, 2021"
},
{
"code": null,
"e": 66,
"s": 52,
"text": "Introduction:"
},
{
"code": null,
"e": 1010,
"s": 66,
"text": "Experts expect Artificial Intelligence (AI) to work towards creating a better life to live. ... |
PHP | ctype_alnum() (Check for Alphanumeric) | 07 Jun, 2018
A ctype_alnum() function in PHP used to check all characters of given string/text are alphanumeric or not. If all characters are alphanumeric then return TRUE, otherwise return FALSE.
Syntax:
bool ctype_alnum ($text)
Parameters Used:
$text : It is a mandatory parameter which specifies the string.
Examples... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jun, 2018"
},
{
"code": null,
"e": 212,
"s": 28,
"text": "A ctype_alnum() function in PHP used to check all characters of given string/text are alphanumeric or not. If all characters are alphanumeric then return TRUE, otherwise retur... |
Program to convert KiloBytes to Bytes and Bits | 21 Apr, 2021
Given Number of Kilobytes. The task is to Convert them into Bytes and Bits.Bit: A Bit is the basic unit in computer information and has only two different values, normally defined as a 0 or 1. These values can be interpreted as on or off, yes or no, true or false, etc. It just depends on the binary code.Ad... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 375,
"s": 28,
"text": "Given Number of Kilobytes. The task is to Convert them into Bytes and Bits.Bit: A Bit is the basic unit in computer information and has only two different values, normally def... |
ASP.NET - Data Sources | A data source control interacts with the data-bound controls and hides the complex data binding processes. These are the tools that provide data to the data bound controls and support execution of operations like insertions, deletions, sorting, and updates.
Each data source control wraps a particular data provider-rela... | [
{
"code": null,
"e": 2739,
"s": 2481,
"text": "A data source control interacts with the data-bound controls and hides the complex data binding processes. These are the tools that provide data to the data bound controls and support execution of operations like insertions, deletions, sorting, and upda... |
How to create a new project in Django using Firebase Database? | 13 Oct, 2021
Django is a Python-based web framework that allows you to quickly create efficient web applications. If you are new to Django then you can refer to Django Introduction and Installation. Here we are going to learn How to create a Django project using Firebase as Database .
Step 1: Firstly, We are going to ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Oct, 2021"
},
{
"code": null,
"e": 328,
"s": 54,
"text": "Django is a Python-based web framework that allows you to quickly create efficient web applications. If you are new to Django then you can refer to Django Introduction and In... |
Maximum non-attacking Rooks that can be placed on an N*N Chessboard | 07 Mar, 2022
Given an integers N such that there is a chessboard of size N*N and an array pos[][] of K pairs of integers which represent the positions of placed rooked in the given chessboard. The task is to find the maximum number of rooks with their positions that can be placed on the given chessboard such that no ro... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Mar, 2022"
},
{
"code": null,
"e": 435,
"s": 54,
"text": "Given an integers N such that there is a chessboard of size N*N and an array pos[][] of K pairs of integers which represent the positions of placed rooked in the given chessb... |
Python | How to get Subtraction of tuples | 21 Nov, 2019
Sometimes, while working with records, we might have a common problem of subtracting contents of one tuple with corresponding index of other tuple. This has application in almost all the domains in which we work with tuple records. Let’s discuss certain ways in which this task can be performed.
Method #1 :... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Nov, 2019"
},
{
"code": null,
"e": 349,
"s": 53,
"text": "Sometimes, while working with records, we might have a common problem of subtracting contents of one tuple with corresponding index of other tuple. This has application in al... |
References in C++ | 02 Jun, 2022
When a variable is declared as a reference, it becomes an alternative name for an existing variable. A variable can be declared as a reference by putting ‘&’ in the declaration.
CPP
#include <iostream>using namespace std; int main(){ int x = 10; // ref is a reference to x. int& ref = x; // V... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n02 Jun, 2022"
},
{
"code": null,
"e": 233,
"s": 54,
"text": "When a variable is declared as a reference, it becomes an alternative name for an existing variable. A variable can be declared as a reference by putting ‘&’ in the declarati... |
Scala - Anonymous Functions | Scala provides a relatively lightweight syntax for defining anonymous functions. Anonymous functions in source code are called function literals and at run time, function literals are instantiated into objects called function values.
Scala supports first-class functions, which means functions can be expressed in functi... | [
{
"code": null,
"e": 2232,
"s": 1998,
"text": "Scala provides a relatively lightweight syntax for defining anonymous functions. Anonymous functions in source code are called function literals and at run time, function literals are instantiated into objects called function values."
},
{
"code... |
How to add DatePicker in NuxtJS ? - GeeksforGeeks | 13 Dec, 2021
In this article, we are going to learn how we can add a Datepicker in NuxtJs. Nuxt.js is a free and open-source web application framework based on Vue.js, Node.js, Webpack, and Babel.js. Nuxt is inspired by Next.js, which is a framework of similar purpose, based on React.js.
Approach: To add our DatePicker... | [
{
"code": null,
"e": 25560,
"s": 25532,
"text": "\n13 Dec, 2021"
},
{
"code": null,
"e": 25836,
"s": 25560,
"text": "In this article, we are going to learn how we can add a Datepicker in NuxtJs. Nuxt.js is a free and open-source web application framework based on Vue.js, Node.js,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.