title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Python - How to install the Flask framework? - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
Flask is a micro web framework written in Pyt... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Mobile Ads Click-Through Rate (CTR) Prediction | by Susan Li | Towards Data Science | In Internet marketing, click-through rate (CTR) is a metric that measures the number of clicks advertisers receive on their ads per number of impressions.
Mobile has become seamless with all channels, and mobile is the driving force with what’s driving all commerce. Mobile ads are expected to generate $1.08 billion thi... | [
{
"code": null,
"e": 326,
"s": 171,
"text": "In Internet marketing, click-through rate (CTR) is a metric that measures the number of clicks advertisers receive on their ads per number of impressions."
},
{
"code": null,
"e": 542,
"s": 326,
"text": "Mobile has become seamless with... |
Extract, Transform, Load (ETL) — AWS Glue | by Furqan Butt | Towards Data Science | AWS Glue is a fully managed, server-less ETL service which can be used to prepare and load data for data analytics purposes. The service can be used to catalog data, clean it, enrich it, and move it reliably between different data stores. In this article I will be explaining how we can use AWS Glue to perform ETL opera... | [
{
"code": null,
"e": 542,
"s": 172,
"text": "AWS Glue is a fully managed, server-less ETL service which can be used to prepare and load data for data analytics purposes. The service can be used to catalog data, clean it, enrich it, and move it reliably between different data stores. In this article ... |
\geq - Tex Command | \geq - Used to draw geq symbol.
{ \geq }
\geq command draws geq symbol.
\geq
≥
\geq
≥
\geq
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu
29 Lectures
2.5 hours
Mohammad Nauman
14 Le... | [
{
"code": null,
"e": 8018,
"s": 7986,
"text": "\\geq - Used to draw geq symbol."
},
{
"code": null,
"e": 8027,
"s": 8018,
"text": "{ \\geq }"
},
{
"code": null,
"e": 8058,
"s": 8027,
"text": "\\geq command draws geq symbol."
},
{
"code": null,
"e":... |
Gaming: A goldmine for datasets | Towards Data Science | This post tells the story of how I got sidetracked from a project and built a thing or a program, which is unsupervised (and I guess supervised at the same time). Using GTA V mods, I created a dataset for computer vision tasks consisting of objects seen in the game. I will also show how well a small object detector tra... | [
{
"code": null,
"e": 544,
"s": 172,
"text": "This post tells the story of how I got sidetracked from a project and built a thing or a program, which is unsupervised (and I guess supervised at the same time). Using GTA V mods, I created a dataset for computer vision tasks consisting of objects seen i... |
HISTCONTROL Command in Linux with Examples - GeeksforGeeks | 27 Oct, 2020
In Linux, the history command can be used to show the list of commands which have been recently executed. HISTCONTROL variable is a colon-separated list of values controlling how commands are saved in the history list. HISTCONTROL variable allows us to store the bash history more efficiently. It can be use... | [
{
"code": null,
"e": 24596,
"s": 24568,
"text": "\n27 Oct, 2020"
},
{
"code": null,
"e": 24984,
"s": 24596,
"text": "In Linux, the history command can be used to show the list of commands which have been recently executed. HISTCONTROL variable is a colon-separated list of values ... |
Tryit Editor v3.7 | Tryit: Center vertically with padding | [] |
C/C++ program to print Hello World without using main() and semicolon - GeeksforGeeks | 25 Nov, 2019
The task is to write a program to print Hello World without using main() and semicolon.
As we already know how to print Hello World without the use of a semicolon. Now for writing without main() method, we will need a Macro.
C
C++
// C program to print Hello World// without using main() and semicolon #inc... | [
{
"code": null,
"e": 24954,
"s": 24926,
"text": "\n25 Nov, 2019"
},
{
"code": null,
"e": 25042,
"s": 24954,
"text": "The task is to write a program to print Hello World without using main() and semicolon."
},
{
"code": null,
"e": 25179,
"s": 25042,
"text": "As... |
Bootstrap and Statistical Inference in Python | by Leihua Ye, PhD | Towards Data Science | The complete Jupyter Notebook is available at my Github.
Bootstrap is a resampling strategy with replacement that requires no assumptions about the data distribution. It is a powerful tool that allows us to make inferences about the population statistics (e.g., mean, variance) when we only have a finite number of sampl... | [
{
"code": null,
"e": 104,
"s": 47,
"text": "The complete Jupyter Notebook is available at my Github."
},
{
"code": null,
"e": 499,
"s": 104,
"text": "Bootstrap is a resampling strategy with replacement that requires no assumptions about the data distribution. It is a powerful too... |
Sass - Output Style | In this chapter, we will study about SASS Output Style. The CSS file that the SASS generates consists of default CSS style, which reflects the structure of document. The default CSS styling is good but might not be suitable for all situations; on other hand, SASS supports many other styles.
It supports the following di... | [
{
"code": null,
"e": 2144,
"s": 1852,
"text": "In this chapter, we will study about SASS Output Style. The CSS file that the SASS generates consists of default CSS style, which reflects the structure of document. The default CSS styling is good but might not be suitable for all situations; on other ... |
Node.js Local Module - GeeksforGeeks | 13 Oct, 2021
Node.js comes with different predefined modules (e.g. http, fs, path, etc.) that we use and scale our project. We can define modules locally as Local Module. It consists different functions declared inside a JavaScript object and we reuse them according to the requirement. We can also package it and distri... | [
{
"code": null,
"e": 37256,
"s": 37228,
"text": "\n13 Oct, 2021"
},
{
"code": null,
"e": 37582,
"s": 37256,
"text": "Node.js comes with different predefined modules (e.g. http, fs, path, etc.) that we use and scale our project. We can define modules locally as Local Module. It co... |
How to search for the exact string value in MySQL? | To search for the exact string value, use the concept of COLLATE. Let us first create a table −
mysql> create table DemoTable1620
-> (
-> Subject varchar(20)
-> );
Query OK, 0 rows affected (0.42 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1620 values('mysql');
Q... | [
{
"code": null,
"e": 1158,
"s": 1062,
"text": "To search for the exact string value, use the concept of COLLATE. Let us first create a table −"
},
{
"code": null,
"e": 1275,
"s": 1158,
"text": "mysql> create table DemoTable1620\n -> (\n -> Subject varchar(20)\n -> );\nQu... |
Objective-C Functions | A function is a group of statements that together perform a task. Every Objective-C program has one C function, which is main(), and all of the most trivial programs can define additional functions.
You can divide up your code into separate functions. How you divide up your code among different functions is up to you, ... | [
{
"code": null,
"e": 2759,
"s": 2560,
"text": "A function is a group of statements that together perform a task. Every Objective-C program has one C function, which is main(), and all of the most trivial programs can define additional functions."
},
{
"code": null,
"e": 2961,
"s": 27... |
C++ Boolean Expressions | A Boolean expression is a C++ expression that returns a boolean value: 1 (true) or 0 (false).
You can use a comparison operator, such as the greater than (>) operator to find out if an expression (or a variable) is true:
Or even easier:
In the examples below, we use the equal to (==) operator to evaluate an expression:... | [
{
"code": null,
"e": 94,
"s": 0,
"text": "A Boolean expression is a C++ expression that returns a boolean value: 1 (true) or 0 (false)."
},
{
"code": null,
"e": 221,
"s": 94,
"text": "You can use a comparison operator, such as the greater than (>) operator to find out if an expre... |
Reading Keyboard Input in Python | Python provides two built-in functions to read a line of text from standard input, which by default comes from the keyboard. These functions are −
raw_input
input
The raw_input([prompt]) function reads one line from standard input and returns it as a string (removing the trailing newline).
#!/usr/bin/python
str = raw_i... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "Python provides two built-in functions to read a line of text from standard input, which by default comes from the keyboard. These functions are −"
},
{
"code": null,
"e": 1219,
"s": 1209,
"text": "raw_input"
},
{
"code": nul... |
Writing OS Independent Code in C/C++ | A program that can interact with the operating system irrespective of the OS on which it runs.
Most of the compilers of c/c++ have the power to define macros that detect OS.
Some Macros of GCC compiler are −
_WIN32: macros for 32 bit and 64-bit Windows OS.
_WIN32: macros for 32 bit and 64-bit Windows OS.
_WIN64: macros... | [
{
"code": null,
"e": 1157,
"s": 1062,
"text": "A program that can interact with the operating system irrespective of the OS on which it runs."
},
{
"code": null,
"e": 1236,
"s": 1157,
"text": "Most of the compilers of c/c++ have the power to define macros that detect OS."
},
... |
Rotate by 90 degree | Practice | GeeksforGeeks | Given a square matrix[][] of size N x N. The task is to rotate it by 90 degrees in an anti-clockwise direction without using any extra space.
Example 1:
Input:
N = 3
matrix[][] = [[1 2 3],
[4 5 6],
[7 8 9]]
Output:
3 6 9
2 5 8
1 4 7
Your Task:
You only need to implement the given function... | [
{
"code": null,
"e": 380,
"s": 238,
"text": "Given a square matrix[][] of size N x N. The task is to rotate it by 90 degrees in an anti-clockwise direction without using any extra space."
},
{
"code": null,
"e": 391,
"s": 380,
"text": "Example 1:"
},
{
"code": null,
"... |
BabylonJS - Cameras | BabylonJS has many cameras that can be used. At a time, only one camera will be active for a scene.
In this chapter, we will learn how to go about using cameras in BabylonJS.
Let us now see how the FreeCamera works.
Following is the syntax for the FreeCamera −
var camera = new BABYLON.FreeCamera("FreeCamera", new BABYL... | [
{
"code": null,
"e": 2283,
"s": 2183,
"text": "BabylonJS has many cameras that can be used. At a time, only one camera will be active for a scene."
},
{
"code": null,
"e": 2358,
"s": 2283,
"text": "In this chapter, we will learn how to go about using cameras in BabylonJS."
},
... |
Arduino - Data Types | Data types in C refers to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in the storage and how the bit pattern stored is interpreted.
The following table provides all the data types that you will use during Arduino programm... | [
{
"code": null,
"e": 3101,
"s": 2870,
"text": "Data types in C refers to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in the storage and how the bit pattern stored is interpreted."
},
{
"code": ... |
What are the differences between public, protected and private access specifiers in C#? | Public access specifier allows a class to expose its member variables and member functions to other functions and objects. Any public member can be accessed from outside the class.
Live Demo
using System;
namespace Demo {
class Rectangle {
public double length;
public double width;
public double G... | [
{
"code": null,
"e": 1243,
"s": 1062,
"text": "Public access specifier allows a class to expose its member variables and member functions to other functions and objects. Any public member can be accessed from outside the class."
},
{
"code": null,
"e": 1254,
"s": 1243,
"text": " ... |
How to Print the Next N Leap Years in Java? - GeeksforGeeks | 28 May, 2021
Concept: The basic assertion in problem-solving for the leap year is an interval of 4 years which is wrong in itself. For any random year in the calendar to be a leap year it must hold below conditions. Now if the year is a leap year the goal is simply to print the consecutive same kinds of years in a cale... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n28 May, 2021"
},
{
"code": null,
"e": 24013,
"s": 23557,
"text": "Concept: The basic assertion in problem-solving for the leap year is an interval of 4 years which is wrong in itself. For any random year in the calendar to be a l... |
Tryit Editor v3.7 | HTML Computer Code
Tryit: HTML var element | [
{
"code": null,
"e": 29,
"s": 10,
"text": "HTML Computer Code"
}
] |
Teradata - JOIN Index | JOIN INDEX is a materialized view. Its definition is permanently stored and the data is updated whenever the base tables referred in the join index is updated. JOIN INDEX may contain one or more tables and also contain pre-aggregated data. Join indexes are mainly used for improving the performance.
There are different ... | [
{
"code": null,
"e": 2930,
"s": 2630,
"text": "JOIN INDEX is a materialized view. Its definition is permanently stored and the data is updated whenever the base tables referred in the join index is updated. JOIN INDEX may contain one or more tables and also contain pre-aggregated data. Join indexes ... |
Tryit Editor v3.7 | Tryit: SVG polygon | [] |
Setup a Python Environment for Machine Learning and Deep Learning | by Hussnain Fareed | Towards Data Science | Interest in Machine Learning and Deep Learning has exploded over the past decade. You see machine learning in computer science programs, industry conferences, and in many applications in daily life.
I am assuming you already know about Machine Learning, therefore I will not be explaining What and Why.
So, I find many b... | [
{
"code": null,
"e": 371,
"s": 172,
"text": "Interest in Machine Learning and Deep Learning has exploded over the past decade. You see machine learning in computer science programs, industry conferences, and in many applications in daily life."
},
{
"code": null,
"e": 475,
"s": 371,
... |
Difference between Left, Right and Full Outer Join - GeeksforGeeks | 03 May, 2020
Database Management System (DBMS) allows retrieving data from more than one table using joins.
Joins are mainly Cartesian product of two or more relations (or tables).
SQL Joins are broadly categorized as Inner Join and Outer Join. Inner Join selects rows from the tables that fulfills the join condition. B... | [
{
"code": null,
"e": 23531,
"s": 23503,
"text": "\n03 May, 2020"
},
{
"code": null,
"e": 23626,
"s": 23531,
"text": "Database Management System (DBMS) allows retrieving data from more than one table using joins."
},
{
"code": null,
"e": 23699,
"s": 23626,
"tex... |
Java program to merge contents of all the files in a directory - GeeksforGeeks | 25 Aug, 2021
Prerequisite : PrintWriter, BufferedReader. We are given a directory/folder in which n number of files are stored(We dont know the number of files) and we want to merge the contents of all the files into a single file lets say output.txt For the below example lets say the folder is stored at the path: F:\G... | [
{
"code": null,
"e": 24493,
"s": 24465,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 24839,
"s": 24493,
"text": "Prerequisite : PrintWriter, BufferedReader. We are given a directory/folder in which n number of files are stored(We dont know the number of files) and we want to ... |
Dart Programming - List.reversed Method | Returns an iterable object containing the list values in the reverse order.
List.reversed
void main() {
var lst = new List();
lst.add(12);
lst.add(13);
print("The list values in reverse order: ${lst.reversed}");
}
It will produce the following output −
The list values in reverse order: (13, 12)
... | [
{
"code": null,
"e": 2601,
"s": 2525,
"text": "Returns an iterable object containing the list values in the reverse order."
},
{
"code": null,
"e": 2617,
"s": 2601,
"text": "List.reversed \n"
},
{
"code": null,
"e": 2760,
"s": 2617,
"text": "void main() { \n ... |
How to prevent class inheritance in C++ | Here we will see how to prevent inheritance in C++. The concept of preventing the inheritance is known as final class.
In Java or C#, we can use final classes. In C++ there are no such direct way. Here we will see how to simulate the final class in C++.
Here we will create one extra class called MakeFinalClass (its def... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "Here we will see how to prevent inheritance in C++. The concept of preventing the inheritance is known as final class."
},
{
"code": null,
"e": 1316,
"s": 1181,
"text": "In Java or C#, we can use final classes. In C++ there are no su... |
Count of numbers in given Array greater than next K elements - GeeksforGeeks | 21 Dec, 2021
Given an array arr[] of integers of size N, the task is to count the number of elements whose value is greater than all the K elements to its immediate right. If there are less than K numbers to the right of the ith element, then the value of all of them must be lesser than that of the ith person.
Examples... | [
{
"code": null,
"e": 24431,
"s": 24403,
"text": "\n21 Dec, 2021"
},
{
"code": null,
"e": 24730,
"s": 24431,
"text": "Given an array arr[] of integers of size N, the task is to count the number of elements whose value is greater than all the K elements to its immediate right. If t... |
How to prepare a Python date object to be inserted into MongoDB? | You can use the pymongo library in Python to connect to a MongoDB database and use it to insert, update, delete, etc objects in Python. The library supports Python datetime objects out of the box and you dont need to do anything special to insert dates in Mongo using PyMongo.
from pymongo import MongoClient
# This will... | [
{
"code": null,
"e": 1339,
"s": 1062,
"text": "You can use the pymongo library in Python to connect to a MongoDB database and use it to insert, update, delete, etc objects in Python. The library supports Python datetime objects out of the box and you dont need to do anything special to insert dates ... |
F# - Options | The option type in F# is used in calculations when there may or may not exist a value for a variable or function. Option types are used for representing optional values in calculations. They can have two possible values − Some(x) or None.
For example, a function performing a division will return a value in normal situa... | [
{
"code": null,
"e": 2400,
"s": 2161,
"text": "The option type in F# is used in calculations when there may or may not exist a value for a variable or function. Option types are used for representing optional values in calculations. They can have two possible values − Some(x) or None."
},
{
... |
What is MIME in the Computer Network? | MIME represents Multi-Purpose Internet Mail Extensions. It is a development to the Internet email protocol that enables its users to exchange several kinds of data files over the Internet, including images, audio, and video.
The MIME is required if the text in character sets other than the American Standard Code for In... | [
{
"code": null,
"e": 1287,
"s": 1062,
"text": "MIME represents Multi-Purpose Internet Mail Extensions. It is a development to the Internet email protocol that enables its users to exchange several kinds of data files over the Internet, including images, audio, and video."
},
{
"code": null,
... |
Feature Selection Techniques. An end to end guide on how to reduce... | by Pier Paolo Ippolito | Towards Data Science | 1
2
3
4
5
6
7
8
9
10
Powered by Play.ht
Create audio with Play.ht
Create Audio Narrations with Play.ht
According to Forbes, about 2.5 quintillion bytes of data is generated every day [1]. This data can then be analysed using Data Science and Machine Learning techniques in order to provide insights and make predictions.... | [
{
"code": null,
"e": 173,
"s": 171,
"text": "1"
},
{
"code": null,
"e": 175,
"s": 173,
"text": "2"
},
{
"code": null,
"e": 177,
"s": 175,
"text": "3"
},
{
"code": null,
"e": 179,
"s": 177,
"text": "4"
},
{
"code": null,
"e": 181... |
C/C++ Program to Count Inversions in an array using Merge Sort? | The inversions of an array indicate; how many changes are required to convert the array into its sorted form. When an array is already sorted, it needs 0 inversions, and in other case, the number of inversions will be maximum, if the array is reversed.
To solve this problem, we will follow the Merge sort approach to re... | [
{
"code": null,
"e": 1315,
"s": 1062,
"text": "The inversions of an array indicate; how many changes are required to convert the array into its sorted form. When an array is already sorted, it needs 0 inversions, and in other case, the number of inversions will be maximum, if the array is reversed."... |
Possible moves of knight - GeeksforGeeks | 04 May, 2021
Given a chess board of dimension m * n. Find number of possible moves where knight can be moved on a chessboard from given position. If mat[i][j] = 1 then the block is filled by something else, otherwise empty. Assume that board consist of all pieces of same color, i.e., there are no blocks being attacked.... | [
{
"code": null,
"e": 26301,
"s": 26273,
"text": "\n04 May, 2021"
},
{
"code": null,
"e": 26610,
"s": 26301,
"text": "Given a chess board of dimension m * n. Find number of possible moves where knight can be moved on a chessboard from given position. If mat[i][j] = 1 then the bloc... |
Function Overloading and Return Type in C++ - GeeksforGeeks | 03 Jan, 2022
Function overloading is possible in C++ and Java but only if the functions must differ from each other by the types and the number of arguments in the argument list. However, functions can not be overloaded if they differ only in the return type.
Why is Function overloading not possible with different ret... | [
{
"code": null,
"e": 25564,
"s": 25536,
"text": "\n03 Jan, 2022"
},
{
"code": null,
"e": 25812,
"s": 25564,
"text": "Function overloading is possible in C++ and Java but only if the functions must differ from each other by the types and the number of arguments in the argument lis... |
C/C++ program to shutdown a system - GeeksforGeeks | 07 Nov, 2019
How to shutdown your computer in Linux and/or Windows?
The idea is to use system() in C. This function is used to invoke operating system commands from C program.
Linux OS:
// C program to shutdown in Linux#include <stdio.h>#include <stdlib.h> int main(){ // Running Linux OS command using system syste... | [
{
"code": null,
"e": 25369,
"s": 25341,
"text": "\n07 Nov, 2019"
},
{
"code": null,
"e": 25424,
"s": 25369,
"text": "How to shutdown your computer in Linux and/or Windows?"
},
{
"code": null,
"e": 25532,
"s": 25424,
"text": "The idea is to use system() in C. T... |
jQuery | removeAttr() with Examples - GeeksforGeeks | 03 Aug, 2021
The removeAttr() method is an inbuilt method in jQuery which is used to remove one or more attributes from the selected elements.
Syntax:
$(selector).removeAttr(attribute)
Parameters: This function accepts single parameter attribute which is mandatory. It is used to specify one or more attributes to remove... | [
{
"code": null,
"e": 26336,
"s": 26308,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 26466,
"s": 26336,
"text": "The removeAttr() method is an inbuilt method in jQuery which is used to remove one or more attributes from the selected elements."
},
{
"code": null,
"... |
PyQtGraph - Extensive Examples - GeeksforGeeks | 24 Sep, 2020
In this article we will see how we can access the PyQtGraph extensive examples. PyQtGraph is a graphics and user interface library for Python that provides functionality commonly required in designing and science applications. Its primary goals are to provide fast, interactive graphics for displaying data ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n24 Sep, 2020"
},
{
"code": null,
"e": 25995,
"s": 25537,
"text": "In this article we will see how we can access the PyQtGraph extensive examples. PyQtGraph is a graphics and user interface library for Python that provides functio... |
D3.js selection.remove() Function - GeeksforGeeks | 31 Aug, 2020
The selection.remove() function is used to remove the selected elements from the document and return a new selection with the removed elements. Also, new selection are now detached from the DOM
Syntax:
selection.remove();
Parameters: This function does not accept any parameters.
Return Values: This functio... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n31 Aug, 2020"
},
{
"code": null,
"e": 26739,
"s": 26545,
"text": "The selection.remove() function is used to remove the selected elements from the document and return a new selection with the removed elements. Also, new selection... |
Count number of integers less than or equal to N which has exactly 9 divisors - GeeksforGeeks | 10 May, 2021
Given a number N(1<=N<=109), the task is to find the total number of integers less than equal to n which have exactly 9 divisors.
Examples:
Input: N = 100 Output: 2 The two numbers which have exactly 9 divisors are 36 and 100. Input: N = 1000 Output: 8 The numbers are 36 100 196 225 256 441 484 676
A na... | [
{
"code": null,
"e": 26391,
"s": 26363,
"text": "\n10 May, 2021"
},
{
"code": null,
"e": 26521,
"s": 26391,
"text": "Given a number N(1<=N<=109), the task is to find the total number of integers less than equal to n which have exactly 9 divisors."
},
{
"code": null,
"... |
Perl | Grouping and Alternation in Regex - GeeksforGeeks | 03 Feb, 2022
Regex or Regular Expressions are an important part of Perl Programming. It is used for searching the specified text pattern. In this, set of characters together form the search pattern. It is also known as regexp. Working with regex might become complex with more and more addition in functionalities. To re... | [
{
"code": null,
"e": 25315,
"s": 25287,
"text": "\n03 Feb, 2022"
},
{
"code": null,
"e": 25716,
"s": 25315,
"text": "Regex or Regular Expressions are an important part of Perl Programming. It is used for searching the specified text pattern. In this, set of characters together fo... |
Python - Maximum column values in mixed length 2D List - GeeksforGeeks | 29 Dec, 2019
The usual list of list, unlike conventional C type Matrix, can allow the nested list of lists with variable lengths, and when we require the maximizations of its columns, the uneven length of rows may lead to some elements in that elements to be absent and if not handled correctly, may throw exception. Let... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n29 Dec, 2019"
},
{
"code": null,
"e": 25929,
"s": 25537,
"text": "The usual list of list, unlike conventional C type Matrix, can allow the nested list of lists with variable lengths, and when we require the maximizations of its c... |
Python | Pandas Index.insert() - GeeksforGeeks | 17 Dec, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas Index.insert() function make new Index inserting new item at location. This function a... | [
{
"code": null,
"e": 26177,
"s": 26149,
"text": "\n17 Dec, 2018"
},
{
"code": null,
"e": 26391,
"s": 26177,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a... |
ClipRect Widget in Flutter - GeeksforGeeks | 02 Sep, 2020
The ClipRect widget is used to clips its child using a rectangle. It associates with the Clippers family. The main use of clippers is to clip out any portion of the widget as required. It behaves similar to that of ClipRRect and is used to Clip a Rectangle portion of the child widget but without the rounde... | [
{
"code": null,
"e": 25285,
"s": 25257,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 25602,
"s": 25285,
"text": "The ClipRect widget is used to clips its child using a rectangle. It associates with the Clippers family. The main use of clippers is to clip out any portion of th... |
Login Application and Validating info using Kivy GUI and Pandas in Python - GeeksforGeeks | 17 Aug, 2020
Prerequisites : Kivy, Pandas
Kivy is a multiplatform GUI library, known for being responsive. It provides management of multiple screens in a single application.
In this application we will be using multiple screens to log in user’s info and validate it. We will save the information in a csv file and use ... | [
{
"code": null,
"e": 25689,
"s": 25661,
"text": "\n17 Aug, 2020"
},
{
"code": null,
"e": 25718,
"s": 25689,
"text": "Prerequisites : Kivy, Pandas"
},
{
"code": null,
"e": 25852,
"s": 25718,
"text": "Kivy is a multiplatform GUI library, known for being responsi... |
Find the smallest number whose digits multiply to a given number n - GeeksforGeeks | 17 Jan, 2022
Given a number ‘n’, find the smallest number ‘p’ such that if we multiply all digits of ‘p’, we get ‘n’. The result ‘p’ should have minimum two digits.Examples:
Input: n = 36
Output: p = 49
// Note that 4*9 = 36 and 49 is the smallest such number
Input: n = 100
Output: p = 455
// Note that 4*5*5 = 10... | [
{
"code": null,
"e": 26179,
"s": 26151,
"text": "\n17 Jan, 2022"
},
{
"code": null,
"e": 26342,
"s": 26179,
"text": "Given a number ‘n’, find the smallest number ‘p’ such that if we multiply all digits of ‘p’, we get ‘n’. The result ‘p’ should have minimum two digits.Examples: "... |
How to execute multiple promises sequentially in JavaScript ? | 13 Jan, 2022
In this article, we will try to understand how we could easily execute multiple promises in a sequential manner (one after the another) with several techniques or methods provided by JavaScript.
Let us first quickly understand how we may create a promise by using the following syntax provided by JavaScript... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 247,
"s": 52,
"text": "In this article, we will try to understand how we could easily execute multiple promises in a sequential manner (one after the another) with several techniques or methods pro... |
How to add Custom Spinner in android? | 25 Jun, 2020
Spinner is a widget that is used to select an item from a list of items. When the user tap on a spinner a drop-down menu is visible to the user. In this article, we will learn how to add custom spinner in the app. If you want to know more about spinner in detail then click on this link.
Approach:
Create a ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2020"
},
{
"code": null,
"e": 316,
"s": 28,
"text": "Spinner is a widget that is used to select an item from a list of items. When the user tap on a spinner a drop-down menu is visible to the user. In this article, we will learn... |
How to Create Toggle Switch by using HTML and CSS ? | 18 May, 2022
To create a toggle switch, we will use HTML and CSS. If you want to add a more attractive toggle switch then you can add sliding animation, bouncing effect, etc. In this article, we will divide the whole thing into two different sections structure creating and designing the structure.
Creating Structure: I... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 May, 2022"
},
{
"code": null,
"e": 340,
"s": 54,
"text": "To create a toggle switch, we will use HTML and CSS. If you want to add a more attractive toggle switch then you can add sliding animation, bouncing effect, etc. In this arti... |
Logger info(String) method in Java with Examples | 11 Jan, 2022
The info() method of a Logger class is used to Log an INFO message. This method is used to forward logs to all the registered output Handler objects.
INFO message: Info is for the use of administrators or advanced users. It denotes mostly the actions that have led to a change in state for the application.
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Jan, 2022"
},
{
"code": null,
"e": 178,
"s": 28,
"text": "The info() method of a Logger class is used to Log an INFO message. This method is used to forward logs to all the registered output Handler objects."
},
{
"code": nul... |
Katana Framework – Hacking Framework in Kali Linux | 24 Jun, 2021
The Katana Framework is a free and open-source tool available on GitHub. This is a framework similar to Metasploitable 1 and Metasploitable 2, which makes it easy to use. The katana framework is written in python. This means you must have python installed in your Kali Linux operating system. This framewor... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 768,
"s": 28,
"text": "The Katana Framework is a free and open-source tool available on GitHub. This is a framework similar to Metasploitable 1 and Metasploitable 2, which makes it easy to use. The ... |
Given n appointments, find all conflicting appointments | 24 Jun, 2022
Given n appointments, find all conflicting appointments.
Examples:
Input: appointments[] = { {1, 5} {3, 7}, {2, 6}, {10, 15}, {5, 6}, {4, 100}}
Output: Following are conflicting intervals
[3,7] Conflicts with [1,5]
[2,6] Conflicts with [1,5]
[5,6] Conflicts with [3,7]
[4,100] Conflicts with [1,5]
An appoi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 110,
"s": 52,
"text": "Given n appointments, find all conflicting appointments. "
},
{
"code": null,
"e": 120,
"s": 110,
"text": "Examples:"
},
{
"code": null,
"e": ... |
Minimum number of bombs | 26 May, 2022
There are aliens in n buildings (minimum of 1 in each) and you have to kill all of them minimum number of bombings. Buildings are numbered as 1 – n. Aliens in a bombed building gets injured at the first bombing and die at the second. When a building is bombed for the first time, aliens in that building try... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 May, 2022"
},
{
"code": null,
"e": 591,
"s": 54,
"text": "There are aliens in n buildings (minimum of 1 in each) and you have to kill all of them minimum number of bombings. Buildings are numbered as 1 – n. Aliens in a bombed buildi... |
jQuery | slideUp() with Examples | 13 Feb, 2019
The slideUp() is an inbuilt method in jQuery which is used to hide the selected elements.Syntax:
$(selector).slideUp(speed);
Parameter: It accepts an optional parameter “speed” which specifies the speed of the duration of the effect.
Return Value: It does not return anything simply it hides the selected e... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Feb, 2019"
},
{
"code": null,
"e": 125,
"s": 28,
"text": "The slideUp() is an inbuilt method in jQuery which is used to hide the selected elements.Syntax:"
},
{
"code": null,
"e": 154,
"s": 125,
"text": "$(selecto... |
Scala Char toInt() method with example | 29 Oct, 2019
The toInt() method is utilized to convert a stated character into an integer or its ASCII value of type Int.
Method Definition: def toInt: Int
Return Type: It returns Integer or ASCII value of the corresponding character of type Int.
Example: 1#
// Scala program of toInt()// method // Creating objectobjec... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Oct, 2019"
},
{
"code": null,
"e": 137,
"s": 28,
"text": "The toInt() method is utilized to convert a stated character into an integer or its ASCII value of type Int."
},
{
"code": null,
"e": 171,
"s": 137,
"text"... |
Send Text messages to any mobile number using Fast2SMS API in Python | 02 Sep, 2020
This article is going to be about how can we send text messages using Python. We will be using Fast2SMS API to send messages. You don’t need to install any Python package for this purpose.
First, you need a Fast2SMS account. You can sign up for Fast2SMS from here. Now, go to Dev API option and copy the API... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 241,
"s": 52,
"text": "This article is going to be about how can we send text messages using Python. We will be using Fast2SMS API to send messages. You don’t need to install any Python package for... |
numpy.arccos() in Python | 29 Nov, 2018
numpy.arccos(x[, out]) = ufunc ‘arccos’) : This mathematical function helps user to calculate inverse cos for all x(being the array elements).
Parameters :
array : [array_like]elements are in radians.
out : [array_like]array of same shape as x.
Note :
2pi Radians = 360 degreesThe convention is to ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Nov, 2018"
},
{
"code": null,
"e": 171,
"s": 28,
"text": "numpy.arccos(x[, out]) = ufunc ‘arccos’) : This mathematical function helps user to calculate inverse cos for all x(being the array elements)."
},
{
"code": null,
... |
Stack add(Object) method in Java with Example | 24 Dec, 2018
The add(Object) method of Stack Class appends the specified element to the end of this Stack.
Syntax:
boolean add(Object element)
Parameters: This function accepts a single parameter element as shown in the above syntax. The element specified by this parameter is appended to end of the Stack.
Return Value:... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Dec, 2018"
},
{
"code": null,
"e": 122,
"s": 28,
"text": "The add(Object) method of Stack Class appends the specified element to the end of this Stack."
},
{
"code": null,
"e": 130,
"s": 122,
"text": "Syntax:"
}... |
Why is Java ‘write once and run anywhere’? | 26 May, 2019
JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method present in Java code. JVM is a part of the JRE(Java Runtime Environment).
Java applications are called WORA (Write Once Run Anywhere). This means a programmer can develop Java co... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 May, 2019"
},
{
"code": null,
"e": 256,
"s": 53,
"text": "JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method present in Java code. JVM is a part of the JR... |
DateTime.AddYears() Method in C# | 21 Jan, 2019
This method is used to returns a new DateTime that adds the specified number of years to the value of this instance.
Syntax:
public DateTime AddYears (int value);
Here, the value is the number of years. The value parameter can be negative or positive.
Return Value: This method returns an object whose value... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Jan, 2019"
},
{
"code": null,
"e": 145,
"s": 28,
"text": "This method is used to returns a new DateTime that adds the specified number of years to the value of this instance."
},
{
"code": null,
"e": 153,
"s": 145,
... |
Lambda expression in C++ | 27 Dec, 2021
C++ 11 introduced lambda expression to allow us write an inline function which can be used for short snippets of code that are not going to be reuse and not worth naming. In its simplest form lambda expression can be defined as follows:
[ capture clause ] (parameters) -> return-type
{
definition o... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 Dec, 2021"
},
{
"code": null,
"e": 290,
"s": 52,
"text": "C++ 11 introduced lambda expression to allow us write an inline function which can be used for short snippets of code that are not going to be reuse and not worth naming. In ... |
BabylonJS - Back-Face Culling | Back-face culling determines whether a polygon of a graphical object is visible. Back-face culling determines whether or not a StandardMaterial is visible from its back side (from behind).
<!doctype html>
<html>
<head>
<meta charset = "utf-8">
<title>BabylonJs - Basic Element-Creating Scene</title>
... | [
{
"code": null,
"e": 2506,
"s": 2317,
"text": "Back-face culling determines whether a polygon of a graphical object is visible. Back-face culling determines whether or not a StandardMaterial is visible from its back side (from behind)."
},
{
"code": null,
"e": 4058,
"s": 2506,
"t... |
Python program to find the largest number in a list | In this article, we will learn about the solution to the problem statement given below.
Problem statement − We are given a list, we need to calculate the largest element of the list.
Here we will take the help of built-in functions to reach the solution of the problem statement
# list
list1 = [23,1,32,67,2,34,12]
# sor... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "In this article, we will learn about the solution to the problem statement given below."
},
{
"code": null,
"e": 1245,
"s": 1150,
"text": "Problem statement − We are given a list, we need to calculate the largest element of the list.... |
How to Explain Data using Gaussian Distribution and Summary Statistics with Python | by Harshit Tyagi | Towards Data Science | This is the second blog in the Stats series after explaining the taxonomy of data in the first blog. Here, we’ll learn to apply a few essential foundational concepts that help us describe the data using a set of statistical methods.
A sample is a snapshot of data from a larger dataset; this larger dataset which is all ... | [
{
"code": null,
"e": 405,
"s": 172,
"text": "This is the second blog in the Stats series after explaining the taxonomy of data in the first blog. Here, we’ll learn to apply a few essential foundational concepts that help us describe the data using a set of statistical methods."
},
{
"code": ... |
C Program for Basic Euclidean algorithms - GeeksforGeeks | 05 Nov, 2021
GCD of two numbers is the largest number that divides both of them. A simple way to find GCD is to factorize both numbers and multiply common factors.
C
// C program to demonstrate Basic Euclidean Algorithm#include <stdio.h> // Function to return gcd of a and bint gcd(int a, int b){ if (a == 0) ... | [
{
"code": null,
"e": 24417,
"s": 24389,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 24569,
"s": 24417,
"text": "GCD of two numbers is the largest number that divides both of them. A simple way to find GCD is to factorize both numbers and multiply common factors. "
},
{
... |
ExpressJS - Authentication | Authentication is a process in which the credentials provided are compared to those on file in a database of authorized users' information on a local operating system or within an authentication server. If the credentials match, the process is completed and the user is granted authorization for access.
For us to create... | [
{
"code": null,
"e": 2365,
"s": 2061,
"text": "Authentication is a process in which the credentials provided are compared to those on file in a database of authorized users' information on a local operating system or within an authentication server. If the credentials match, the process is completed... |
Anubis - Subdomain enumeration and information gathering tool in Kali Linux - GeeksforGeeks | 21 Jul, 2021
Anubis is a tool for information gathering. This tool is very useful in the initial phases of penetration testing. The main technique used to find subdomain using many modules is to target bruteforce with an improved wordlist Anubis is a free and open-source tool available on GitHub. This tool is free mean... | [
{
"code": null,
"e": 24015,
"s": 23987,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 25053,
"s": 24015,
"text": "Anubis is a tool for information gathering. This tool is very useful in the initial phases of penetration testing. The main technique used to find subdomain using ... |
The Complete Guide to Cron and Launchd on macOS/Linux | by Shinichi Okada | Towards Data Science | Table of contentsIntroduction1. Papermill and terminal-notifier2. cron for Linux/macOS3. launchd for macOSConclusion
[Update.1 : 2021–05–28]
Do you have a Data Science project that requires your time every day? Do you use data feeds that update daily? For example, the 2019 Novel Coronavirus COVID-19 (2019-nCoV) Data Re... | [
{
"code": null,
"e": 289,
"s": 172,
"text": "Table of contentsIntroduction1. Papermill and terminal-notifier2. cron for Linux/macOS3. launchd for macOSConclusion"
},
{
"code": null,
"e": 313,
"s": 289,
"text": "[Update.1 : 2021–05–28]"
},
{
"code": null,
"e": 574,
... |
Feed Forward Neural Networks — How To Successfully Build Them in Python | by Saul Dobilas | Towards Data Science | Neural Networks have been the central talking point over the last few years. While they may initially seem intimidating, I assure you that you do not need a Ph.D. to understand how they work.
In this article, I will take you through the main ideas behind basic Neural Networks, also known as Feed Forward NNs or Multilay... | [
{
"code": null,
"e": 364,
"s": 172,
"text": "Neural Networks have been the central talking point over the last few years. While they may initially seem intimidating, I assure you that you do not need a Ph.D. to understand how they work."
},
{
"code": null,
"e": 594,
"s": 364,
"te... |
C Program to print contents of file - GeeksforGeeks | 20 May, 2017
fopen() is used to open and fclose() is used to close a file in C
#include <stdio.h>#include <stdlib.h> // For exit() int main(){ FILE *fptr; char filename[100], c; printf("Enter the filename to open \n"); scanf("%s", filename); // Open file fptr = fopen(filename, "r"); if (fptr... | [
{
"code": null,
"e": 24454,
"s": 24426,
"text": "\n20 May, 2017"
},
{
"code": null,
"e": 24520,
"s": 24454,
"text": "fopen() is used to open and fclose() is used to close a file in C"
},
{
"code": "#include <stdio.h>#include <stdlib.h> // For exit() int main(){ FILE *... |
Entity Framework - Stored Procedures | The Entity Framework allows you to use stored procedures in the Entity Data Model instead of, or in combination with, its automatic command generation.
You can use stored procedures to perform predefined logic on database tables, and many organizations have policies in place that require the use of these stored procedu... | [
{
"code": null,
"e": 3184,
"s": 3032,
"text": "The Entity Framework allows you to use stored procedures in the Entity Data Model instead of, or in combination with, its automatic command generation."
},
{
"code": null,
"e": 3357,
"s": 3184,
"text": "You can use stored procedures ... |
Auto Import Python Libraries. Using Pyforest to import important... | by Himanshu Sharma | Towards Data Science | Do you also get stuck in importing libraries while coding in python? It happens with most of us that while coding we forget to import libraries that we will use and we got stuck in importing different libraries which is frustrating, also I must say being a lazy programmer I want a way to solve this importing problem on... | [
{
"code": null,
"e": 508,
"s": 172,
"text": "Do you also get stuck in importing libraries while coding in python? It happens with most of us that while coding we forget to import libraries that we will use and we got stuck in importing different libraries which is frustrating, also I must say being ... |
Building a Sentiment Analysis Model using Yelp Reviews and ML Ensemble Methods | by Ben Chamblee | Towards Data Science | If you’ve ever read through Yelp reviews you might have noticed that there is a lot of inconsistency from reviewer to reviewer. Some reviews say the food is “life-changing” while only leaving three stars, while others say the food is “just okay” and leave five stars. The five-star review system is flawed because there’... | [
{
"code": null,
"e": 857,
"s": 171,
"text": "If you’ve ever read through Yelp reviews you might have noticed that there is a lot of inconsistency from reviewer to reviewer. Some reviews say the food is “life-changing” while only leaving three stars, while others say the food is “just okay” and leave... |
Digital Number System | A digital system can understand positional number system only where there are a few symbols called digits and these symbols represent different values depending on the position they occupy in the number.
A value of each digit in a number can be determined using
The digit
The digit
The position of the digit in the numbe... | [
{
"code": null,
"e": 2175,
"s": 1971,
"text": "A digital system can understand positional number system only where there are a few symbols called digits and these symbols represent different values depending on the position they occupy in the number."
},
{
"code": null,
"e": 2233,
"s... |
Donut Chart using Matplotlib in Python - GeeksforGeeks | 02 Feb, 2022
Prequsities: Pie Chart in matplotlib
Donut charts are the modified version of Pie Charts with the area of center cut out. A donut is more concerned about the use of area of arcs to represent the information in the most effective manner instead of Pie chart which is more focused on comparing the proportion ... | [
{
"code": null,
"e": 23927,
"s": 23899,
"text": "\n02 Feb, 2022"
},
{
"code": null,
"e": 23964,
"s": 23927,
"text": "Prequsities: Pie Chart in matplotlib"
},
{
"code": null,
"e": 24431,
"s": 23964,
"text": "Donut charts are the modified version of Pie Charts w... |
What is strcpy() Function in C language? | The C library function char *strcpy(char *dest, const char *src) copies the string pointed to, by src to dest.
An array of characters is called a string.
Following is the declaration for an array
char stringname [size];
For example − char string[50]; string of length 50 characters
Using single character constant −
char... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "The C library function char *strcpy(char *dest, const char *src) copies the string pointed to, by src to dest."
},
{
"code": null,
"e": 1216,
"s": 1173,
"text": "An array of characters is called a string."
},
{
"code": null,
... |
D3.js | d3.selectAll() Function | 18 Jul, 2019
The d3.selectAll() function in D3.js is used to select all the element that matches the specified selector string.
Syntax:
d3.selectAll("element")
Parameters: This function accepts single parameter HTML tag as a parameter.
Return Value: This function returns the selected elements.
Below programs illustrate... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jul, 2019"
},
{
"code": null,
"e": 143,
"s": 28,
"text": "The d3.selectAll() function in D3.js is used to select all the element that matches the specified selector string."
},
{
"code": null,
"e": 151,
"s": 143,
... |
How to create components in ReactJS ? | 06 Aug, 2021
As we all know, React uses this JSX format so that we can put HTML and JavaScript together. These React components can be defined anywhere in your ReactJS project and can be used anywhere in your ReactJS project. There are two ways to define components in ReactJS, both are used by a wide range of programme... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Aug, 2021"
},
{
"code": null,
"e": 452,
"s": 28,
"text": "As we all know, React uses this JSX format so that we can put HTML and JavaScript together. These React components can be defined anywhere in your ReactJS project and can be u... |
Remove array elements in Ruby | 20 Jul, 2021
In this article, we will learn how to remove elements from an array in Ruby.
Method #1: Using Index
Ruby
# Ruby program to remove elements # in array # creating string using []str = ["GFG", "G4G", "Sudo", "Geeks"] str.delete_at(0)print str
Output:
["G4G", "Sudo", "Geeks"
Method #2: Using delete() metho... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 105,
"s": 28,
"text": "In this article, we will learn how to remove elements from an array in Ruby."
},
{
"code": null,
"e": 128,
"s": 105,
"text": "Method #1: Using Index"
},
... |
Least Frequently Used (LFU) Cache Implementation | 05 Dec, 2019
Least Frequently Used (LFU) is a caching algorithm in which the least frequently used cache block is removed whenever the cache is overflowed. In LFU we check the old page as well as the frequency of that page and if the frequency of the page is larger than the old page we cannot remove it and if all the o... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n05 Dec, 2019"
},
{
"code": null,
"e": 458,
"s": 54,
"text": "Least Frequently Used (LFU) is a caching algorithm in which the least frequently used cache block is removed whenever the cache is overflowed. In LFU we check the old page as... |
Shortest Superstring Problem | 28 Jun, 2022
Given a set of n strings arr[], find the smallest string that contains each string in the given set as substring. We may assume that no string in arr[] is substring of another string.Examples:
Input: arr[] = {"geeks", "quiz", "for"}
Output: geeksquizfor
Input: arr[] = {"catg", "ctaagt", "gcta", "ttca",... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 248,
"s": 54,
"text": "Given a set of n strings arr[], find the smallest string that contains each string in the given set as substring. We may assume that no string in arr[] is substring of anothe... |
Different Forms of Assignment Statements in Python | 10 May, 2020
We use Python assignment statements to assign objects to names. The target of an assignment statement is written on the left side of the equal sign (=), and the object on the right can be an arbitrary expression that computes an object.
There are some important properties of assignment in Python :-
Assignm... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 290,
"s": 53,
"text": "We use Python assignment statements to assign objects to names. The target of an assignment statement is written on the left side of the equal sign (=), and the object on the... |
Efficiency of Stop and Wait Protocol | 22 Jun, 2022
Stop and Wait is a flow control protocol. In which the sender sends one packet and waits for the receiver to acknowledge and then it will send the next packet. In case if the acknowledgement is not received, the sender will retransmit the packet. This is the simplest one and easy to implement. but the main... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 444,
"s": 54,
"text": "Stop and Wait is a flow control protocol. In which the sender sends one packet and waits for the receiver to acknowledge and then it will send the next packet. In case if the... |
Python – Stock Data Visualisation | 17 May, 2020
Python is a great language for making data-based analysis and visualizations. It also helps that there is a wide range of open-source libraries that can be used off the shelf for some great functionalities.Python Dash is a library that allows you to build web dashboards and data visualizations without the ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 533,
"s": 54,
"text": "Python is a great language for making data-based analysis and visualizations. It also helps that there is a wide range of open-source libraries that can be used off the shelf... |
Runtime Polymorphism in various types of Inheritance in C++ | 16 Apr, 2020
C++ allows users to use the concept of Run-Time Polymorphism using Virtual Functions for any type of Inheritance .
Below is how to implement Run-Time Polymorphism in all types of inheritance:
Single Inheritance:// C++ program to demonstrate Run Time// Polymorphism in Single Inheritance #include <iostream>... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Apr, 2020"
},
{
"code": null,
"e": 167,
"s": 52,
"text": "C++ allows users to use the concept of Run-Time Polymorphism using Virtual Functions for any type of Inheritance ."
},
{
"code": null,
"e": 244,
"s": 167,
... |
Matplotlib.figure.Figure.dpi() in Python | 30 Apr, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains all the plot elements. This module is used to control the default spacing of the subplots and top level container for all plot elemen... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Apr, 2020"
},
{
"code": null,
"e": 339,
"s": 28,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains a... |
Python - Print Heart Pattern - GeeksforGeeks | 24 Feb, 2021
Given an even integer input, the task is to write a Python program to print a heart using loops and mathematical formulations.
For n = 8
* * * *
* * *
* *
* G F G *
* *
* *
* *
*
For n = 14
* * ... | [
{
"code": null,
"e": 24001,
"s": 23970,
"text": " \n24 Feb, 2021\n"
},
{
"code": null,
"e": 24128,
"s": 24001,
"text": "Given an even integer input, the task is to write a Python program to print a heart using loops and mathematical formulations."
},
{
"code": null,
"... |
Using Conditional Expressions | General functions are used to handle NULL values in database. The objective of the general NULL handling functions is to replace the NULL values with an alternate value. We shall briefly see through these functions below.
The NVL function substitutes an alternate value for a NULL value.
NVL( Arg1, replace_with )
In th... | [
{
"code": null,
"e": 2685,
"s": 2463,
"text": "General functions are used to handle NULL values in database. The objective of the general NULL handling functions is to replace the NULL values with an alternate value. We shall briefly see through these functions below."
},
{
"code": null,
... |
How to handle a back button in an android activity? | This example demonstrates how do I handle back button in an android activity.
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"?>
<Rela... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "This example demonstrates how do I handle back button in an android activity."
},
{
"code": null,
"e": 1269,
"s": 1140,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details ... |
Parametric and Non-Parametric Confidence Interval Estimation for Machine Learning in 3 Lines of Code | by Giovanni Ciampi | Jan, 2021 | Medium | Towards Data Science | [Edit 11/01/2021] Added better definition and adjusted the example in section 1 according to helpful suggestion by AlexMurphy.
Confidence intervals are a great tool to provide useful information when reporting results of Machine Learning models. They are an easy and straightforward way of assessing, among other things,... | [
{
"code": null,
"e": 298,
"s": 171,
"text": "[Edit 11/01/2021] Added better definition and adjusted the example in section 1 according to helpful suggestion by AlexMurphy."
},
{
"code": null,
"e": 520,
"s": 298,
"text": "Confidence intervals are a great tool to provide useful inf... |
Count of cells in a matrix whose adjacent cells's sum is prime Number - GeeksforGeeks | 30 Mar, 2022
Given a M x N matrix mat[][], the task is to count the number of cells which have the sum of its adjacent cells equal to a prime number. For a cell x[i][j], only x[i+1][j], x[i-1][j], x[i][j+1] and x[i][j-1] are the adjacent cells.Examples:
Input : mat[][] = {{1, 3}, {2, 5}} Output :2 Explanation: Only th... | [
{
"code": null,
"e": 24711,
"s": 24683,
"text": "\n30 Mar, 2022"
},
{
"code": null,
"e": 24953,
"s": 24711,
"text": "Given a M x N matrix mat[][], the task is to count the number of cells which have the sum of its adjacent cells equal to a prime number. For a cell x[i][j], only x... |
Store unicode in a char variable in Java | To store Unicode in a char variable, simply create a char variable.
char c;
Now assign unicode.
char c = '\u00AB';
The following is the complete example that shows what will get displayed: when Unicode is stored in a char variable and displayed.
Live Demo
public class Demo {
public static void main(String []args) {... | [
{
"code": null,
"e": 1130,
"s": 1062,
"text": "To store Unicode in a char variable, simply create a char variable."
},
{
"code": null,
"e": 1138,
"s": 1130,
"text": "char c;"
},
{
"code": null,
"e": 1158,
"s": 1138,
"text": "Now assign unicode."
},
{
"... |
How to Change Tkinter Frame Title? | Tkinter window is the native component of tkinter application that contains some frames, a group of widgets, and some other elements. A Tkinter frame has a group of too many widgets.
Let us suppose that we have created a frame with some widgets and now we want to rename the title of the application. Frame titles are a ... | [
{
"code": null,
"e": 1245,
"s": 1062,
"text": "Tkinter window is the native component of tkinter application that contains some frames, a group of widgets, and some other elements. A Tkinter frame has a group of too many widgets."
},
{
"code": null,
"e": 1487,
"s": 1245,
"text": ... |
Less is More: Labeled data just isn’t as important anymore | by Abhinav Raghunathan | Towards Data Science | I used to always think of data as being inherently calm and ordered — a neatly packaged array of information ready to process. I think most people who haven’t had a taste of the chaos of the real world would believe the same. Professionals (or, really, anyone who has worked with data) know that data is far more fluid a... | [
{
"code": null,
"e": 585,
"s": 166,
"text": "I used to always think of data as being inherently calm and ordered — a neatly packaged array of information ready to process. I think most people who haven’t had a taste of the chaos of the real world would believe the same. Professionals (or, really, an... |
How to print current date and time using Python? | You can get the current date and time using multiple ways. The easiest way is to use the datetime module. It has a function, now, that gives the current date and time.
import datetime
now = datetime.datetime.now()
print("Current date and time: ")
print(str(now))
This will give the output −
2017-12-29 11:24:48.042720
Y... | [
{
"code": null,
"e": 1231,
"s": 1062,
"text": "You can get the current date and time using multiple ways. The easiest way is to use the datetime module. It has a function, now, that gives the current date and time. "
},
{
"code": null,
"e": 1326,
"s": 1231,
"text": "import dateti... |
How does repetition operator work on list in Python? | We are accustomed to using the * symbol to represent multiplication, but when the operand on the left side of the * is a list, it becomes the repetition operator. The repetition operator makes multiple copies of a list and joins them all together. Lists can be created using the repetition operator, *. For example,
numb... | [
{
"code": null,
"e": 1378,
"s": 1062,
"text": "We are accustomed to using the * symbol to represent multiplication, but when the operand on the left side of the * is a list, it becomes the repetition operator. The repetition operator makes multiple copies of a list and joins them all together. Lists... |
Range-based for loop in C++ - GeeksforGeeks | 11 May, 2022
Range-based for loop in C++ is added since C++ 11. It executes a for loop over a range. Used as a more readable equivalent to the traditional for loop operating over a range of values, such as all elements in a container.
Syntax :
for ( range_declaration : range_expression )
loop_statement
Parameters... | [
{
"code": null,
"e": 25591,
"s": 25563,
"text": "\n11 May, 2022"
},
{
"code": null,
"e": 25813,
"s": 25591,
"text": "Range-based for loop in C++ is added since C++ 11. It executes a for loop over a range. Used as a more readable equivalent to the traditional for loop operating ov... |
Check if two PDF documents are identical with Python - GeeksforGeeks | 08 Mar, 2021
Python is an interpreted and general purpose programming language. It is a Object-Oriented and Procedural paradigms programming language. There are various types of modules imported in python such as difflib, hashlib.
difflib : It is a module that contains function that allows to compare set of data.
Seque... | [
{
"code": null,
"e": 25647,
"s": 25619,
"text": "\n08 Mar, 2021"
},
{
"code": null,
"e": 25865,
"s": 25647,
"text": "Python is an interpreted and general purpose programming language. It is a Object-Oriented and Procedural paradigms programming language. There are various types o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.