title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Difference between Iterator and Enumeration in Java | Iterator and Enumeration both are the cursors to traverse and access an element from the collection. They both belong to the collection framework. Enumeration was added in JDK1.0 and Iterator in the JDK.1.2 version in the collection framework.
Enumeration can’t make structural changes in the collection because it has ... | [
{
"code": null,
"e": 1307,
"s": 1062,
"text": "Iterator and Enumeration both are the cursors to traverse and access an element from the collection. They both belong to the collection framework. Enumeration was added in JDK1.0 and Iterator in the JDK.1.2 version in the collection framework. "
},
... |
Organizing Your First Text Analytics Project | by Sakshi Gupta | Towards Data Science | Using Natural Language tools to uncover conversational data.
Text analytics or text mining is the analysis of “unstructured” data contained in natural language text using various methods, tools and techniques.
The popularity of text mining today is driven by statistics and the availability of unstructured data. With th... | [
{
"code": null,
"e": 232,
"s": 171,
"text": "Using Natural Language tools to uncover conversational data."
},
{
"code": null,
"e": 381,
"s": 232,
"text": "Text analytics or text mining is the analysis of “unstructured” data contained in natural language text using various methods... |
Deep Learning Side By Side: Julia v.s. Python | by DJ Passey | Towards Data Science | Julia could possibly be the biggest threat to Python. For a variety of applications, Julia is hands-down faster than Python and is almost as fast as C. Julia also offers features like multiple dispatch and metaprogramming that give it an edge over Python.
At the same time, Python is established, widely used, and has a ... | [
{
"code": null,
"e": 428,
"s": 172,
"text": "Julia could possibly be the biggest threat to Python. For a variety of applications, Julia is hands-down faster than Python and is almost as fast as C. Julia also offers features like multiple dispatch and metaprogramming that give it an edge over Python.... |
Objective-C Arrays | Objective-C programming language provides a data structure called the array, which can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.
Instead of declari... | [
{
"code": null,
"e": 2862,
"s": 2560,
"text": "Objective-C programming language provides a data structure called the array, which can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an arra... |
Common Subexpression Elimination - Code optimization Technique in Compiler Design - GeeksforGeeks | 03 Dec, 2021
Code Optimization Technique is an approach to enhance the performance of the code by either eliminating or rearranging the code lines. Code Optimization techniques are as follows:
Compile-time evaluation Common Sub-expression elimination Dead code elimination Code movement Strength reduction
Compile-time... | [
{
"code": null,
"e": 24642,
"s": 24614,
"text": "\n03 Dec, 2021"
},
{
"code": null,
"e": 24822,
"s": 24642,
"text": "Code Optimization Technique is an approach to enhance the performance of the code by either eliminating or rearranging the code lines. Code Optimization techniques... |
Replace part of a string with another string in C++ | Here we will see how to replace a part of a string by another string in C++. In C++ the replacing is very easy. There is a function called string.replace(). This replace function replaces only the first occurrence of the match. To do it for all we have used loop. This replace function takes the index from where it will... | [
{
"code": null,
"e": 1495,
"s": 1062,
"text": "Here we will see how to replace a part of a string by another string in C++. In C++ the replacing is very easy. There is a function called string.replace(). This replace function replaces only the first occurrence of the match. To do it for all we have ... |
Data Structures and Algorithms | Set 17 - GeeksforGeeks | 27 Mar, 2017
Following questions have been asked in GATE CS 2006 exam.
1. An implementation of a queue Q, using two stacks S1 and S2, is given below:
void insert(Q, x) { push (S1, x);} void delete(Q){ if(stack-empty(S2)) then if(stack-empty(S1)) then { print(“Q is empty”); return; } ... | [
{
"code": null,
"e": 24382,
"s": 24354,
"text": "\n27 Mar, 2017"
},
{
"code": null,
"e": 24440,
"s": 24382,
"text": "Following questions have been asked in GATE CS 2006 exam."
},
{
"code": null,
"e": 24519,
"s": 24440,
"text": "1. An implementation of a queue ... |
GraphQL - Introduction | GraphQL is an open source server-side technology which was developed by Facebook to optimize RESTful API calls. It is an execution engine and a data query language. In this chapter, we discuss about the advantages of using GraphQL.
RESTful APIs follow clear and well-structured resource-oriented approach. However, when ... | [
{
"code": null,
"e": 2183,
"s": 1951,
"text": "GraphQL is an open source server-side technology which was developed by Facebook to optimize RESTful API calls. It is an execution engine and a data query language. In this chapter, we discuss about the advantages of using GraphQL."
},
{
"code":... |
cp command in Linux with examples - GeeksforGeeks | 19 Feb, 2021
cp stands for copy. This command is used to copy files or group of files or directory. It creates an exact image of a file on a disk with different file name. cp command require at least two filenames in its arguments.
Syntax:
cp [OPTION] Source Destination
cp [OPTION] Source Directory
cp [OPTION] Source-1... | [
{
"code": null,
"e": 23957,
"s": 23929,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 24176,
"s": 23957,
"text": "cp stands for copy. This command is used to copy files or group of files or directory. It creates an exact image of a file on a disk with different file name. cp c... |
Design and Analysis Fractional Knapsack | The Greedy algorithm could be understood very well with a well-known problem referred to as Knapsack problem. Although the same problem could be solved by employing other algorithmic approaches, Greedy approach solves Fractional Knapsack problem reasonably in a good time. Let us discuss the Knapsack problem in detail.
... | [
{
"code": null,
"e": 2919,
"s": 2599,
"text": "The Greedy algorithm could be understood very well with a well-known problem referred to as Knapsack problem. Although the same problem could be solved by employing other algorithmic approaches, Greedy approach solves Fractional Knapsack problem reasona... |
VueJS - Render Function | We have seen components and the usage of it. For example, we have a content that needs to be reused across the project. We can convert the same as a component and use it.
Let’s take a look at an example of a simple component and see what the render function has to do within it.
<html>
<head>
<title>VueJs Insta... | [
{
"code": null,
"e": 2107,
"s": 1936,
"text": "We have seen components and the usage of it. For example, we have a content that needs to be reused across the project. We can convert the same as a component and use it."
},
{
"code": null,
"e": 2215,
"s": 2107,
"text": "Let’s take ... |
Find Sum, Mean and Product of a Vector in R - GeeksforGeeks | 26 Mar, 2021
sum(), mean(), and prod() methods are available in R which are used to compute the specified operation over the arguments specified in the method. In case, a single vector is specified, then the operation is performed over individual elements, which is equivalent to the application of for loop.
mean() fu... | [
{
"code": null,
"e": 24634,
"s": 24603,
"text": " \n26 Mar, 2021\n"
},
{
"code": null,
"e": 24931,
"s": 24634,
"text": "sum(), mean(), and prod() methods are available in R which are used to compute the specified operation over the arguments specified in the method. In case, a si... |
How to Enable or Install Byobu for Terminal Management on Ubuntu 16.04 | In this article, we will learn about Byobu on the Ubuntu 16.04, Byobu which is a terminal multiplexer and easy to use, Byobu is used to have multiple windows, consoles and split panes within the windows and will also show the status badges and notifications on the terminal.
To complete this tutorial we needed an Ubuntu... | [
{
"code": null,
"e": 1337,
"s": 1062,
"text": "In this article, we will learn about Byobu on the Ubuntu 16.04, Byobu which is a terminal multiplexer and easy to use, Byobu is used to have multiple windows, consoles and split panes within the windows and will also show the status badges and notificat... |
How to run PowerShell commands from the command prompt? | To run Powershell commands from the command prompt or cmd, we need to call the PowerShell process PowerShell.exe.
See the sample example,
C:\> Powershell.exe -Command "Write-Output 'Hello world'"
Hello world
Similarly, you can call any command. We will use another example to get service information
C:\> Powershell.exe ... | [
{
"code": null,
"e": 1301,
"s": 1187,
"text": "To run Powershell commands from the command prompt or cmd, we need to call the PowerShell process PowerShell.exe."
},
{
"code": null,
"e": 1325,
"s": 1301,
"text": "See the sample example,"
},
{
"code": null,
"e": 1395,
... |
Convert String to LowerCase | Practice | GeeksforGeeks | Given a string S. The task is to convert characters of string to lowercase.
Example 1:
Input: S = "ABCddE"
Output: "abcdde"
Explanation: A, B, C and E are converted to
a, b, c and E thus all uppercase characters
of the string converted to lowercase letter.
Example 2:
Input: S = "LMNOppQQ"
Output: "lmnoppqq"
Explanatio... | [
{
"code": null,
"e": 302,
"s": 226,
"text": "Given a string S. The task is to convert characters of string to lowercase."
},
{
"code": null,
"e": 313,
"s": 302,
"text": "Example 1:"
},
{
"code": null,
"e": 484,
"s": 313,
"text": "Input: S = \"ABCddE\"\nOutput:... |
Private Constructors in C# | 23 Jan, 2019
Prerequisite: Constructors in C# Private Constructor is a special instance constructor present in C# language. Basically, private constructors are used in class that contains only static members. The private constructor is always declared by using a private keyword.
Important points:
It is the implementati... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Jan, 2019"
},
{
"code": null,
"e": 295,
"s": 28,
"text": "Prerequisite: Constructors in C# Private Constructor is a special instance constructor present in C# language. Basically, private constructors are used in class that contains ... |
Variable Entrant Map (VEM) in Digital Logic | 18 Jan, 2022
Prerequisite – Karnaugh Map (K-map)K-map is the best manual technique to solve Boolean equations, but it becomes difficult to manage when number of variables exceed 5 or 6. So, a technique called Variable Entrant Map (VEM) is used to increase the effective size of k-map. It allows a smaller map to handle l... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 437,
"s": 54,
"text": "Prerequisite – Karnaugh Map (K-map)K-map is the best manual technique to solve Boolean equations, but it becomes difficult to manage when number of variables exceed 5 or 6. S... |
MySQL | BINARY Function | 21 Nov, 2019
The MySQL BINARY function is used for converting a value to a binary string. The BINARY function can also be implemented using CAST function as CAST(value AS BINARY).The BINARY function accepts one parameter which is the value to be converted and returns a binary string.
Syntax:
BINARY value
Parameters Use... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Nov, 2019"
},
{
"code": null,
"e": 300,
"s": 28,
"text": "The MySQL BINARY function is used for converting a value to a binary string. The BINARY function can also be implemented using CAST function as CAST(value AS BINARY).The BINAR... |
Grouped Boxplots in Python with Seaborn | 26 Nov, 2020
Boxplot depicts the distribution of quantitative data facilitating comparisons between different variables, continuous or categorical. It is a common data dispersion measure. Boxplots consist of a five-number summary which helps in detecting and removing outliers from the dataset.
Minimum observationQ1 (25... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 310,
"s": 28,
"text": "Boxplot depicts the distribution of quantitative data facilitating comparisons between different variables, continuous or categorical. It is a common data dispersion measure. ... |
Program to print first n Fibonacci Numbers | Set 1 | 07 Jul, 2022
Following is a simple program to print first n Fibonacci numbers.
Examples :
Input : n = 3
Output : 0 1 1
Input : n = 7
Output : 0 1 1 2 3 5 8
C++
C
Java
Python3
C#
PHP
Javascript
// C++ program to print// first n Fibonacci numbers#include <bits/stdc++.h>using namespace std; // Function to print// first... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 119,
"s": 52,
"text": "Following is a simple program to print first n Fibonacci numbers. "
},
{
"code": null,
"e": 131,
"s": 119,
"text": "Examples : "
},
{
"code": null... |
Perl chop Function | This function removes the last character from EXPR, each element of LIST, or $_ if no value is specified.
Following is the simple syntax for this function −
chop VARIABLE
chop( LIST )
chop
This function returns the character removed from EXPR and in list context, the character is removed from the last element of LIS... | [
{
"code": null,
"e": 2460,
"s": 2354,
"text": "This function removes the last character from EXPR, each element of LIST, or $_ if no value is specified."
},
{
"code": null,
"e": 2511,
"s": 2460,
"text": "Following is the simple syntax for this function −"
},
{
"code": nul... |
Trains, Boats and Streams | 01 Jun, 2022
We recommend that you read about Time Speed Distance before proceeding on with this topic.
If two trains are moving in same direction with speeds a km / hr and b km / hr, then their relative speed would be |a – b| km / hr.
If two trains are moving in different directions, i.e., coming towards each othe... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Jun, 2022"
},
{
"code": null,
"e": 145,
"s": 52,
"text": "We recommend that you read about Time Speed Distance before proceeding on with this topic. "
},
{
"code": null,
"e": 279,
"s": 147,
"text": "If two train... |
Ways to print escape characters in Python | 17 Nov, 2017
Escape characters are characters that are generally used to perform certain tasks and their usage in code directs the compiler to take a suitable action mapped to that character.
Example :
'\n' --> Leaves a line
'\t' --> Leaves a space
# Python code to demonstrate escape character# string ch = "I\n... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Nov, 2017"
},
{
"code": null,
"e": 231,
"s": 52,
"text": "Escape characters are characters that are generally used to perform certain tasks and their usage in code directs the compiler to take a suitable action mapped to that charac... |
GATE | GATE-CS-2016 (Set 2) | Question 56 - GeeksforGeeks | 16 Sep, 2021
A student wrote two context-free grammars G1 and G2 for generating a single C-like array declaration. The dimension of the array is at least one. For example,
int a[10][3];
The grammars use D as the start symbol, and use six terminal symbols int ; id [ ] num.
Grammar G1
D → int L;
L → id [E
E → num]
E → n... | [
{
"code": null,
"e": 24169,
"s": 24141,
"text": "\n16 Sep, 2021"
},
{
"code": null,
"e": 24328,
"s": 24169,
"text": "A student wrote two context-free grammars G1 and G2 for generating a single C-like array declaration. The dimension of the array is at least one. For example,"
}... |
How to build a simple Neural Network from scratch with Python | by Konstantinos Kitsios | Towards Data Science | Neural Networks are becoming more and more popular every day and as a core field of Machine Learning and Artificial Intelligence, they are going to play a major role in technology, science and industry over the next years. This high popularity has given rise to many frameworks that allow you to implement Neural Network... | [
{
"code": null,
"e": 688,
"s": 172,
"text": "Neural Networks are becoming more and more popular every day and as a core field of Machine Learning and Artificial Intelligence, they are going to play a major role in technology, science and industry over the next years. This high popularity has given r... |
How to implement a custom AlertDialog View in Android? | This example demonstrates how to implement a custom AlertDialog View in Android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<andro... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "This example demonstrates how to implement a custom AlertDialog View in Android."
},
{
"code": null,
"e": 1272,
"s": 1143,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required detai... |
How to Invest like a Data Scientist | by Noah Xiao | Towards Data Science | Surely you know data science is a multi-disciplinary field that has something to do with statistics, mathematics, computer science, and business knowledge.
The mindset and the multi-disciplinary skill set required for being a data scientist are powerful tools. Instead of a Ph.D. degree1, they are the qualifications of ... | [
{
"code": null,
"e": 327,
"s": 171,
"text": "Surely you know data science is a multi-disciplinary field that has something to do with statistics, mathematics, computer science, and business knowledge."
},
{
"code": null,
"e": 630,
"s": 327,
"text": "The mindset and the multi-disc... |
Check if a point lies on or inside a rectangle in Python | Suppose we have a rectangle represented by two points bottom-left and top-right corner points. We have to check whether a given point (x, y) is present inside this rectangle or not.
So, if the input is like bottom_left = (1, 1), top_right = (8, 5), point = (5, 4), then the output will be True
To solve this, we will fol... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "Suppose we have a rectangle represented by two points bottom-left and top-right corner points. We have to check whether a given point (x, y) is present inside this rectangle or not."
},
{
"code": null,
"e": 1356,
"s": 1244,
"text": "... |
What is the #define Preprocessor in C++? | The #define creates a macro, which is the association of an identifier or parameterized identifier with a token string. After the macro is defined, the compiler can substitute the token string for each occurrence of the identifier in the source file.
#define identifier token-string
This is how the preprocessor is used.... | [
{
"code": null,
"e": 1313,
"s": 1062,
"text": "The #define creates a macro, which is the association of an identifier or parameterized identifier with a token string. After the macro is defined, the compiler can substitute the token string for each occurrence of the identifier in the source file."
... |
Python SQLite - Create Table | Using the SQLite CREATE TABLE statement you can create a table in a database.
Following is the syntax to create a table in SQLite database −
CREATE TABLE database_name.table_name(
column1 datatype PRIMARY KEY(one or more columns),
column2 datatype,
column3 datatype,
.....
columnN datatype
);
Following S... | [
{
"code": null,
"e": 2060,
"s": 1982,
"text": "Using the SQLite CREATE TABLE statement you can create a table in a database."
},
{
"code": null,
"e": 2123,
"s": 2060,
"text": "Following is the syntax to create a table in SQLite database −"
},
{
"code": null,
"e": 2291... |
SymPy - Logical Expressions | Boolean functions are defined in sympy.basic.booleanarg module. It is possible to build Boolean expressions with the standard python operators & (And), | (Or), ~ (Not) as well as with >> and <<. Boolean expressions inherit from Basic class defined in SymPy's core module.
This function is equivalent of True as in core P... | [
{
"code": null,
"e": 2291,
"s": 2019,
"text": "Boolean functions are defined in sympy.basic.booleanarg module. It is possible to build Boolean expressions with the standard python operators & (And), | (Or), ~ (Not) as well as with >> and <<. Boolean expressions inherit from Basic class defined in Sy... |
C program to find the length of linked list | Linked lists use dynamic memory allocation i.e. they grow and shrink accordingly. They are defined as a collection of nodes. Here, nodes have two parts, which are data and link. The representation of data, link and linked lists is given below −
Linked lists have four types, which are as follows −
Single / Singly linked... | [
{
"code": null,
"e": 1307,
"s": 1062,
"text": "Linked lists use dynamic memory allocation i.e. they grow and shrink accordingly. They are defined as a collection of nodes. Here, nodes have two parts, which are data and link. The representation of data, link and linked lists is given below −"
},
... |
A Comprehensive Guide for Classes in Python | by Soner Yıldırım | Towards Data Science | We see a bunch of different clocks in this photo. They have different shapes, colors, and sizes. However, all of them are a type of clock. We can think of classes in Python in a similar way. A class represents a type (clock) and we can create many instances of that type (clocks in the photo above).
Object oriented prog... | [
{
"code": null,
"e": 472,
"s": 172,
"text": "We see a bunch of different clocks in this photo. They have different shapes, colors, and sizes. However, all of them are a type of clock. We can think of classes in Python in a similar way. A class represents a type (clock) and we can create many instanc... |
The Top 5 Data Science Certifications | Towards Data Science | IntroductionTensorFlowSASIBM Data Science — PythonTableauGoogle Machine LearningSummaryReferences
Introduction
TensorFlow
SAS
IBM Data Science — Python
Tableau
Google Machine Learning
Summary
References
While there are countless articles on this particular topic, I wanted to search unique, yet commonly used programs or... | [
{
"code": null,
"e": 270,
"s": 172,
"text": "IntroductionTensorFlowSASIBM Data Science — PythonTableauGoogle Machine LearningSummaryReferences"
},
{
"code": null,
"e": 283,
"s": 270,
"text": "Introduction"
},
{
"code": null,
"e": 294,
"s": 283,
"text": "Tensor... |
How to Get the Minimum and maximum Value of a Column of a MySQL Table Using Python? - GeeksforGeeks | 23 Dec, 2020
Prerequisite: Python: MySQL Create Table
In this article, we are going to see how to get the Minimum and Maximum Value of a Column of a MySQL Table Using Python. Python allows the integration of a wide range of database servers with applications. A database interface is required to access a database from P... | [
{
"code": null,
"e": 25665,
"s": 25637,
"text": "\n23 Dec, 2020"
},
{
"code": null,
"e": 25706,
"s": 25665,
"text": "Prerequisite: Python: MySQL Create Table"
},
{
"code": null,
"e": 26071,
"s": 25706,
"text": "In this article, we are going to see how to get t... |
Python program for removing i-th character from a string - GeeksforGeeks | 20 Apr, 2020
Given the string, we have to remove the ith indexed character from the string.
In any string, indexing always start from 0. Suppose we have a string geeks then its indexing will be as –
g e e k s
0 1 2 3 4
Examples :
Input : Geek
i = 1
Output : Gek
Input : Peter
i = 4
Output : Pete
A... | [
{
"code": null,
"e": 26131,
"s": 26103,
"text": "\n20 Apr, 2020"
},
{
"code": null,
"e": 26210,
"s": 26131,
"text": "Given the string, we have to remove the ith indexed character from the string."
},
{
"code": null,
"e": 26317,
"s": 26210,
"text": "In any stri... |
Common Field Calculations using Python in ArcGIS | by Paul Bartsch | Towards Data Science | The ArcGIS field calculator can save a person time and allow for fairly quick data cleanup IF you can remember how to use it. I don’t know about you, but for me the layout of the field calculator, the separation of the formula field and the code block area and the minor changes from standard Python formatting are enoug... | [
{
"code": null,
"e": 697,
"s": 171,
"text": "The ArcGIS field calculator can save a person time and allow for fairly quick data cleanup IF you can remember how to use it. I don’t know about you, but for me the layout of the field calculator, the separation of the formula field and the code block are... |
Convert a sentence into its equivalent mobile numeric keypad sequence | Practice | GeeksforGeeks | Given a sentence in the form of a string in uppercase, convert it into its equivalent mobile numeric keypad sequence.
Example 1:
Input:
S = "GFG"
Output: 43334
Explanation: For 'G' press '4' one time.
For 'F' press '3' three times.
Example 2:
Input:
S = "HEY U"
Output: 4433999088
Explanation: For 'H' press '4' two t... | [
{
"code": null,
"e": 344,
"s": 226,
"text": "Given a sentence in the form of a string in uppercase, convert it into its equivalent mobile numeric keypad sequence."
},
{
"code": null,
"e": 357,
"s": 346,
"text": "Example 1:"
},
{
"code": null,
"e": 461,
"s": 357,
... |
Intersection() function Python - GeeksforGeeks | 05 Oct, 2021
Python intersection() function return a new set with an element that is common to all set
The intersection of two given sets is the largest set which contains all the elements that are common to both sets. The intersection of two given sets A and B is a set which consists of all the elements which are comm... | [
{
"code": null,
"e": 24916,
"s": 24888,
"text": "\n05 Oct, 2021"
},
{
"code": null,
"e": 25006,
"s": 24916,
"text": "Python intersection() function return a new set with an element that is common to all set"
},
{
"code": null,
"e": 25244,
"s": 25006,
"text": "... |
Python Program to print unique values from a list | Given a list, our task is to print all the unique numbers.
Input:A = [1, 2, 3, 4, 2, 1, 9]
Unique list is [1, 2, 3, 4, 9]
Step 1: Create user input list.
Step 2: Create an empty list.
Step 3: Traverse all elements in the list.
Step 4: Check the unique element is present or not.
Step 5: Append unique element one by one ... | [
{
"code": null,
"e": 1121,
"s": 1062,
"text": "Given a list, our task is to print all the unique numbers."
},
{
"code": null,
"e": 1184,
"s": 1121,
"text": "Input:A = [1, 2, 3, 4, 2, 1, 9]\nUnique list is [1, 2, 3, 4, 9]"
},
{
"code": null,
"e": 1431,
"s": 1184,
... |
C Program for compound interest? | Here we will see how to get the compound interest by writing one C program. The logic is very easy. Here we need some parameters −
P − Principle amount
R − Rate of interest
T − Time span
The compound interest formula is like below
#include<stdio.h>
#include<math.h>
float compoundInterest(float P, float T, float R) {
... | [
{
"code": null,
"e": 1193,
"s": 1062,
"text": "Here we will see how to get the compound interest by writing one C program. The logic is very easy. Here we need some parameters −"
},
{
"code": null,
"e": 1214,
"s": 1193,
"text": "P − Principle amount"
},
{
"code": null,
... |
Difference between List VS Set VS Tuple in Python - GeeksforGeeks | 08 Jun, 2021
List: Lists are just like dynamic sized arrays, declared in other languages (vector in C++ and ArrayList in Java). Lists need not be homogeneous always which makes it the most powerful tool in Python. The main characteristics of lists are –
The list is a datatype available in Python which can be written a... | [
{
"code": null,
"e": 24359,
"s": 24331,
"text": "\n08 Jun, 2021"
},
{
"code": null,
"e": 24601,
"s": 24359,
"text": "List: Lists are just like dynamic sized arrays, declared in other languages (vector in C++ and ArrayList in Java). Lists need not be homogeneous always which makes... |
Extracting Keys and Values from Hash in Perl | You can get a list of all of the keys from a hash in Perl by using keys function, which has the following syntax −
keys %HASH
This function returns an array of all the keys of the named hash. Following is the example −
Live Demo
#!/usr/bin/perl
%data = ('John Paul' => 45, 'Lisa' => 30, 'Kumar' => 40);
@names = keys %d... | [
{
"code": null,
"e": 1177,
"s": 1062,
"text": "You can get a list of all of the keys from a hash in Perl by using keys function, which has the following syntax −"
},
{
"code": null,
"e": 1188,
"s": 1177,
"text": "keys %HASH"
},
{
"code": null,
"e": 1281,
"s": 1188... |
Brewing up custom ML models on AWS SageMaker | by Thushan Ganegedara | Towards Data Science | I recently fell in love with SageMaker. Simply because it is so convenient! I really love their approach hiding all the infrastructural needs from the customer and letting them focus on the more important ML aspects of their solutions. Few clicks and typing here and there, voilà, you’ve got a production ready model re... | [
{
"code": null,
"e": 645,
"s": 172,
"text": "I recently fell in love with SageMaker. Simply because it is so convenient! I really love their approach hiding all the infrastructural needs from the customer and letting them focus on the more important ML aspects of their solutions. Few clicks and typi... |
Mockito - Behavior Driven Development | Behavior Driven Development is a style of writing tests uses given, when and then format as test methods. Mockito provides special methods to do so. Take a look at the following code snippet.
//Given
given(calcService.add(20.0,10.0)).willReturn(30.0);
//when
double result = calcService.add(20.0,10.0);
//then
Assert.a... | [
{
"code": null,
"e": 2172,
"s": 1980,
"text": "Behavior Driven Development is a style of writing tests uses given, when and then format as test methods. Mockito provides special methods to do so. Take a look at the following code snippet."
},
{
"code": null,
"e": 2335,
"s": 2172,
... |
JavaTuples - Create Tuples | A tuple using JavaTuple classes can be created using multiple options. Following are the examples −
Each tuple class has a with() method with corresponding parameters. For example −
Pair<String, Integer> pair = Pair.with("Test", Integer.valueOf(5));
Triplet<String, Integer, Double> triplet = Triplet.with("Test", Intege... | [
{
"code": null,
"e": 2639,
"s": 2539,
"text": "A tuple using JavaTuple classes can be created using multiple options. Following are the examples −"
},
{
"code": null,
"e": 2721,
"s": 2639,
"text": "Each tuple class has a with() method with corresponding parameters. For example −"... |
Ratios - Solved Examples | Q 1 - On the off chance that a:b=2:3 and b:c=5:7, discover a:c.
A - 10:11
B - 10:21
C - 21:10
D - 11:10
Answer - B
Explanation
We have a/b = 2/3 and b/c = 5/7
So a/c = (a/b*b/c) = (2/3*5/7) = 10/21
So its demonstrate that a:c = 10:21
Q 2 - On the off chance that a:b=2:3 and b:c=5:7, discover a:b:c.
A - 10:15:21
B - ... | [
{
"code": null,
"e": 3956,
"s": 3892,
"text": "Q 1 - On the off chance that a:b=2:3 and b:c=5:7, discover a:c."
},
{
"code": null,
"e": 3966,
"s": 3956,
"text": "A - 10:11"
},
{
"code": null,
"e": 3976,
"s": 3966,
"text": "B - 10:21"
},
{
"code": null,... |
Scala String trim() method with example - GeeksforGeeks | 29 Oct, 2019
The trim() method is utilized to omit the leading and trailing spaces in the stated string.
Method Definition: String trim()
Return Type: It returns the stated string after removing all the white spaces.
Example: 1#
// Scala program of trim()// method // Creating objectobject GfG{ // Main method ... | [
{
"code": null,
"e": 23707,
"s": 23679,
"text": "\n29 Oct, 2019"
},
{
"code": null,
"e": 23799,
"s": 23707,
"text": "The trim() method is utilized to omit the leading and trailing spaces in the stated string."
},
{
"code": null,
"e": 23832,
"s": 23799,
"text":... |
Display month by name and number in Java | Use the ‘b’ conversion character for month name in Java.
Use the ‘m’ conversion character for month number in Java.
Here, we are using Formatter and Calendar class, therefore import the following packages.
import java.util.Calendar;
import java.util.Formatter;
The following is an example to display month name and numbe... | [
{
"code": null,
"e": 1119,
"s": 1062,
"text": "Use the ‘b’ conversion character for month name in Java."
},
{
"code": null,
"e": 1178,
"s": 1119,
"text": "Use the ‘m’ conversion character for month number in Java."
},
{
"code": null,
"e": 1268,
"s": 1178,
"tex... |
PyQt5 QSpinBox - Making text bold - GeeksforGeeks | 19 May, 2020
In this article we will see how we can make the text of the spin box bold, in order to set the font use setFont method which takes QFont object as argument. In order to make the the text i.e font bold we have to get the QFont object of the spin box then make it bold then reassign it to the spin box.
In ord... | [
{
"code": null,
"e": 24501,
"s": 24473,
"text": "\n19 May, 2020"
},
{
"code": null,
"e": 24802,
"s": 24501,
"text": "In this article we will see how we can make the text of the spin box bold, in order to set the font use setFont method which takes QFont object as argument. In ord... |
How to update the value of a key in a dictionary in Python? | Python dictionary object is an unordered collection of key:value pairs. Ina dictionary object d, the value associated to any key can be obtained by d[k].
>>> d={'one':1, 'two':2,'three':3,'four':4}
>>> d['two']
2
The assignment d[k]=v will update the dictionary object. If existing key is used in the expression, its ass... | [
{
"code": null,
"e": 1216,
"s": 1062,
"text": "Python dictionary object is an unordered collection of key:value pairs. Ina dictionary object d, the value associated to any key can be obtained by d[k]."
},
{
"code": null,
"e": 1275,
"s": 1216,
"text": ">>> d={'one':1, 'two':2,'thr... |
Check Power BI usage metrics on Report Server | by Nikola Ilic | Towards Data Science | Building Power BI reports is a cool thing, I won’t argue about it! And I am pretty sure that each time we build a report, we firmly believe that this report is a “real deal” and that it will be consumed by a large majority of our users.
However, reality is often completely opposite! There are many reports that are bein... | [
{
"code": null,
"e": 408,
"s": 171,
"text": "Building Power BI reports is a cool thing, I won’t argue about it! And I am pretty sure that each time we build a report, we firmly believe that this report is a “real deal” and that it will be consumed by a large majority of our users."
},
{
"cod... |
TypeScript - String slice() | This method extracts a section of a string and returns a new string.
string.slice( beginslice [, endSlice] );
beginSlice − The zero-based index at which to begin extraction.
beginSlice − The zero-based index at which to begin extraction.
endSlice − The zero-based index at which to end extraction. If omitted, slice ext... | [
{
"code": null,
"e": 2117,
"s": 2048,
"text": "This method extracts a section of a string and returns a new string."
},
{
"code": null,
"e": 2159,
"s": 2117,
"text": "string.slice( beginslice [, endSlice] );\n"
},
{
"code": null,
"e": 2223,
"s": 2159,
"text": ... |
PyGTK - Quick Guide | PyGTK is a set of wrappers written in Python and C for GTK + GUI library. It is part of the GNOME project. It offers comprehensive tools for building desktop applications in Python. Python bindings for other popular GUI libraries are also available.
PyQt is a Python port of QT library. Our PyQt tutorial can be found he... | [
{
"code": null,
"e": 2984,
"s": 2734,
"text": "PyGTK is a set of wrappers written in Python and C for GTK + GUI library. It is part of the GNOME project. It offers comprehensive tools for building desktop applications in Python. Python bindings for other popular GUI libraries are also available."
... |
Andrew Ng’s Machine Learning Course in Python (Neural Networks) | by Benjamin Lau | Towards Data Science | This article will look at both programming assignment 3 and 4 on neural networks from Andrew Ng’s Machine Learning Course. This is also the first complex non-linear algorithms we have encounter so far in the course. I do not know about you but there is definitely a steep learning curve for this assignment for me. Neura... | [
{
"code": null,
"e": 746,
"s": 172,
"text": "This article will look at both programming assignment 3 and 4 on neural networks from Andrew Ng’s Machine Learning Course. This is also the first complex non-linear algorithms we have encounter so far in the course. I do not know about you but there is de... |
What’s new in YOLO v3?. A review of the YOLO v3 object... | by Ayoosh Kathuria | Towards Data Science | You only look once, or YOLO, is one of the faster object detection algorithms out there. Though it is no longer the most accurate object detection algorithm, it is a very good choice when you need real-time detection, without loss of too much accuracy.
A few weeks back, the third version of YOLO came out, and this post... | [
{
"code": null,
"e": 425,
"s": 172,
"text": "You only look once, or YOLO, is one of the faster object detection algorithms out there. Though it is no longer the most accurate object detection algorithm, it is a very good choice when you need real-time detection, without loss of too much accuracy."
... |
Tryit Editor v3.7 | Tryit: Responsive framework: W3.CSS | [] |
Nth element of the Fibonacci series JavaScript | We are required to write a JavaScript function that takes in a single number as the first and the only argument, let’s call that number n.
The function should return the nth element of the Fibonacci series.
For example −
fibonacci(10) should return 55
fibonacci(3) should return 2
fibonacci(6) should return 8
fibonacci(... | [
{
"code": null,
"e": 1201,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a single number as the first and the only argument, let’s call that number n."
},
{
"code": null,
"e": 1269,
"s": 1201,
"text": "The function should return the nth element ... |
Print Postorder traversal from given Inorder and Preorder traversals | Given with inorder and preorder of a tree program must find the postroder traversal and print the same
Input:
Inorder traversal in[] = {4, 2, 5, 1, 3, 6}
Preorder traversal pre[] = {1, 2, 4, 5, 3, 6}
Output:
Postorder traversal post[] = {4, 5, 2, 6, 3, 1}
START
Step 1 -> declare function as find_value(int p, int in_ord... | [
{
"code": null,
"e": 1165,
"s": 1062,
"text": "Given with inorder and preorder of a tree program must find the postroder traversal and print the same"
},
{
"code": null,
"e": 1318,
"s": 1165,
"text": "Input:\nInorder traversal in[] = {4, 2, 5, 1, 3, 6}\nPreorder traversal pre[] =... |
new and delete operators in C++ - GeeksQuiz | 29 Jul, 2020
int **arr = new int *[10];
Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.
Comments
Old Comments
Must Do Coding Questions for Product Based Companies
How to set background images in ReactJS ?
Microsoft Interview Experience for Internship (Via Engage)
Diffe... | [
{
"code": null,
"e": 27610,
"s": 27582,
"text": "\n29 Jul, 2020"
},
{
"code": null,
"e": 27638,
"s": 27610,
"text": "int **arr = new int *[10]; "
},
{
"code": null,
"e": 27736,
"s": 27638,
"text": "Writing code in comment? Please use ide.geeksforgeeks.org, gen... |
Comb Sort - GeeksforGeeks | 18 Jan, 2022
Comb Sort is mainly an improvement over Bubble Sort. Bubble sort always compares adjacent values. So all inversions are removed one by one. Comb Sort improves on Bubble Sort by using gap of size more than 1. The gap starts with a large value and shrinks by a factor of 1.3 in every iteration until it reache... | [
{
"code": null,
"e": 23828,
"s": 23800,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 24484,
"s": 23828,
"text": "Comb Sort is mainly an improvement over Bubble Sort. Bubble sort always compares adjacent values. So all inversions are removed one by one. Comb Sort improves on B... |
Python Program to Implement Shell Sort | When it is required to implement shell sort, a function is defined, and this takes a list and the length of the list as arguments. This list is sorted up to a specific number of elements, wherein the number of elements is the largest value. This is done until the number of elements has the smallest value.
This is done ... | [
{
"code": null,
"e": 1369,
"s": 1062,
"text": "When it is required to implement shell sort, a function is defined, and this takes a list and the length of the list as arguments. This list is sorted up to a specific number of elements, wherein the number of elements is the largest value. This is done... |
Node.js Debugging | 07 Oct, 2021
Node.js Debugging: Debugging is a concept to identify and remove errors from software applications. In this article, we will learn about the technique to debug a Node.js application.
Why not to use console.log()?Using console.log to debug the code generally dives into an infinite loop of “stopping the app ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 237,
"s": 54,
"text": "Node.js Debugging: Debugging is a concept to identify and remove errors from software applications. In this article, we will learn about the technique to debug a Node.js appl... |
Introduction to Arrays | 05 Jul, 2022
An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. This makes it easier to calculate the position of each element by simply adding an offset to a base value, i.e., the memory location of the first element of the array (gen... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n05 Jul, 2022"
},
{
"code": null,
"e": 798,
"s": 53,
"text": "An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. This makes it easier to calculate the ... |
Sum of all proper divisors of a natural number | 23 Jun, 2022
Given a natural number, calculate sum of all its proper divisors. A proper divisor of a natural number is the divisor that is strictly less than the number. For example, number 20 has 5 proper divisors: 1, 2, 4, 5, 10, and the divisor summation is: 1 + 2 + 4 + 5 + 10 = 22.Examples :
Input : num = 10
Outp... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 338,
"s": 52,
"text": "Given a natural number, calculate sum of all its proper divisors. A proper divisor of a natural number is the divisor that is strictly less than the number. For example, numb... |
Find middle of singly linked list Recursively | 21 Jun, 2021
Given a singly linked list and the task is to find the middle of the linked list. Examples:
Input : 1->2->3->4->5
Output : 3
Input : 1->2->3->4->5->6
Output : 4
We have already discussed Iterative Solution. In this post iterative solution is discussed. Count total number of nodes in the list in re... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 146,
"s": 52,
"text": "Given a singly linked list and the task is to find the middle of the linked list. Examples: "
},
{
"code": null,
"e": 220,
"s": 146,
"text": "Input : 1-... |
Find strings that end with a given suffix | 16 Jun, 2022
Given a set of strings S and a string P, the task is to print all strings from the set with suffix P. Examples:
Input: S = {“geeks”, “geeksforgeeks”, “geek”, “newgeeks”, “friendsongeeks”, “toppergeek”} P = “geeks” Output: geeks friendsongeeks geeksforgeeks newgeeks Input: S = {“wideworld”, “webworld”, “cla... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 164,
"s": 52,
"text": "Given a set of strings S and a string P, the task is to print all strings from the set with suffix P. Examples:"
},
{
"code": null,
"e": 438,
"s": 164,
"t... |
How to enable Session in C# ASP.NET Core? | Session is a feature in ASP.NET Core that enables us to save/store the user data.
Session stores the data in the dictionary on the Server and SessionId is used as a key.
The SessionId is stored on the client at cookie. The SessionId cookie is sent with
every request.
The SessionId cookie is per browser and it cannot be... | [
{
"code": null,
"e": 1269,
"s": 1187,
"text": "Session is a feature in ASP.NET Core that enables us to save/store the user data."
},
{
"code": null,
"e": 1455,
"s": 1269,
"text": "Session stores the data in the dictionary on the Server and SessionId is used as a key.\nThe Session... |
Feature Matching using Brute Force in OpenCV | 10 Aug, 2021
In this article, we will do feature matching using Brute Force in Python by using OpenCV library.
Prerequisites: OpenCV
OpenCV is a python library which is used to solve the computer vision problems.
OpenCV is an open source Computer Vision library. So computer vision is a way of teaching intelligence to... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 Aug, 2021"
},
{
"code": null,
"e": 150,
"s": 52,
"text": "In this article, we will do feature matching using Brute Force in Python by using OpenCV library."
},
{
"code": null,
"e": 172,
"s": 150,
"text": "Prerequ... |
How to delete columns in PySpark dataframe ? | 17 Jun, 2021
In this article, we are going to delete columns in Pyspark dataframe. To do this we will be using the drop() function. This function can be used to remove values from the dataframe.
Syntax: dataframe.drop(‘column name’)
Python code to create student dataframe with three columns:
Python3
# importing modulei... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 210,
"s": 28,
"text": "In this article, we are going to delete columns in Pyspark dataframe. To do this we will be using the drop() function. This function can be used to remove values from the data... |
Node.js __dirname Variable | 08 Apr, 2021
The __dirname string gives the directory path of the current module, this is also similar to that of path.dirname() of the filename.
Return Value : It returns the directory path of the current module.
Example 1: Let’s create a file main.js
main.js
import path from 'path';const __dirname = path.resolve();co... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Apr, 2021"
},
{
"code": null,
"e": 161,
"s": 28,
"text": "The __dirname string gives the directory path of the current module, this is also similar to that of path.dirname() of the filename."
},
{
"code": null,
"e": 229,
... |
Hover Text and Formatting in Python-Plotly | 06 Jul, 2022
Prerequisites: Python Plotly
In this article, we will explore how to Hover Text and Formatting in Python.
It is a useful approach to Hover Text and Formatting as it allows to reveal a large amount of data about complex information. One of the most deceptively-powerful features of data visualization is the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 57,
"s": 28,
"text": "Prerequisites: Python Plotly"
},
{
"code": null,
"e": 134,
"s": 57,
"text": "In this article, we will explore how to Hover Text and Formatting in Python."
... |
MATLAB - Algebra | So far, we have seen that all the examples work in MATLAB as well as its GNU, alternatively called Octave. But for solving basic algebraic equations, both MATLAB and Octave are little different, so we will try to cover MATLAB and Octave in separate sections.
We will also discuss factorizing and simplification of alge... | [
{
"code": null,
"e": 2536,
"s": 2275,
"text": "So far, we have seen that all the examples work in MATLAB as well as its GNU, alternatively called Octave. But for solving basic algebraic equations, both MATLAB and Octave are little different, so we will try to cover MATLAB and Octave in separate se... |
javap tool in Java with Examples | 10 May, 2019
javap tool
The javap tool is used to get the information of any class or interface. The javap command (also known as the Java Disassembler) disassembles one or more class files. Its output depends on the options used (“-c” or “-verbose” for byte code and byte code along with innards info, respectively). If... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 May, 2019"
},
{
"code": null,
"e": 63,
"s": 52,
"text": "javap tool"
},
{
"code": null,
"e": 488,
"s": 63,
"text": "The javap tool is used to get the information of any class or interface. The javap command (also... |
Minimum number of operations on an array to make all elements 0 | 11 May, 2021
Given an array arr[] of N integers and an integer cost, the task is to calculate the cost of making all the elements of the array 0 with the given operation. In a single operation, an index 0 ≤ i < N and an integer X > 0 can be chosen such that 0 ≤ i + X < N then elements can be updated as arr[i] = arr[i] ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 May, 2021"
},
{
"code": null,
"e": 495,
"s": 28,
"text": "Given an array arr[] of N integers and an integer cost, the task is to calculate the cost of making all the elements of the array 0 with the given operation. In a single opera... |
How to use ngfor to make a dropdown in Angular from an array ? | 12 Mar, 2021
In this post, we will see how we can display the array elements in the drop-down menu using AngularJS. Sometimes we need to display dynamically fetched data and this is where features ngFor come into the scene. We can iterate over the array, apply conditions and display the data easily.
Using ngFor: NgFor ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 Mar, 2021"
},
{
"code": null,
"e": 342,
"s": 54,
"text": "In this post, we will see how we can display the array elements in the drop-down menu using AngularJS. Sometimes we need to display dynamically fetched data and this is where... |
Set a Minimum Field Width in Java | The minimum field width specifier is what you include between % and the format conversion code.
To include a 0 before the field width specifier, pad with 0's. An integer between the % sign and the format conversion code acts as a minimum field width specifier.
Let us see an example −
Live Demo
import java.util.Formatt... | [
{
"code": null,
"e": 1158,
"s": 1062,
"text": "The minimum field width specifier is what you include between % and the format conversion code."
},
{
"code": null,
"e": 1323,
"s": 1158,
"text": "To include a 0 before the field width specifier, pad with 0's. An integer between the ... |
Erlang - Databases | Erlang has the ability to connect to the traditional databases such as SQL Server and Oracle. Erlang has an inbuilt odbc library that can be used to work with databases.
In our example, we are going to make use of the Microsoft SQL Server. Before connecting to a Microsoft SQL Server database, make sure that the followi... | [
{
"code": null,
"e": 2471,
"s": 2301,
"text": "Erlang has the ability to connect to the traditional databases such as SQL Server and Oracle. Erlang has an inbuilt odbc library that can be used to work with databases."
},
{
"code": null,
"e": 2646,
"s": 2471,
"text": "In our examp... |
Classification Algorithms - Naà ̄ve Bayes | Naïve Bayes algorithms is a classification technique based on applying Bayes’ theorem with a strong assumption that all the predictors are independent to each other. In simple words, the assumption is that the presence of a feature in a class is independent to the presence of any other feature in the same class. For e... | [
{
"code": null,
"e": 2873,
"s": 2304,
"text": "Naïve Bayes algorithms is a classification technique based on applying Bayes’ theorem with a strong assumption that all the predictors are independent to each other. In simple words, the assumption is that the presence of a feature in a class is indepe... |
Machine Learning with Datetime Feature Engineering: Predicting Healthcare Appointment No-Shows | by Andrew Long | Towards Data Science | Dates and times are rich sources of information that can be used with machine learning models. However, these datetime variables do require some feature engineering to turn them into numerical data. In this post, I will demonstrate how to create datetime features with built in pandas functions for your machine learning... | [
{
"code": null,
"e": 500,
"s": 171,
"text": "Dates and times are rich sources of information that can be used with machine learning models. However, these datetime variables do require some feature engineering to turn them into numerical data. In this post, I will demonstrate how to create datetime ... |
Extract keywords from documents, an unsupervised solution | by Andrew Zhu | Towards Data Science | Imagine you have millions(maybe billions) of text documents in hand. No matter it is customer support tickets, social media data, or community forum posts. There were no tags when the data was generated. You are scratching your head hard to giving tags to those random documents.
Manually tagging is unpractical; Giving ... | [
{
"code": null,
"e": 452,
"s": 172,
"text": "Imagine you have millions(maybe billions) of text documents in hand. No matter it is customer support tickets, social media data, or community forum posts. There were no tags when the data was generated. You are scratching your head hard to giving tags to... |
Collapsible Pane in Tkinter Python | Tkinter is the GUI building library of python. In this article we will see how we can create a collapsible pane. They are usefult when we have some large amount of data to be displayed over a GUI canvas but we do not want to be displayed always. It is made collapsible so that it can be displayed as and when needed.
The... | [
{
"code": null,
"e": 1379,
"s": 1062,
"text": "Tkinter is the GUI building library of python. In this article we will see how we can create a collapsible pane. They are usefult when we have some large amount of data to be displayed over a GUI canvas but we do not want to be displayed always. It is m... |
Node.js Yargs Module - GeeksforGeeks | 08 Oct, 2021
Yargs module is used for creating your own command-line commands in node.js and helps in generating an elegant user interface. This module makes command-line arguments flexible and easy to use.
Installation of yargs module:
You can visit the link Install yargs module. You can install this package by using ... | [
{
"code": null,
"e": 24325,
"s": 24297,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 24519,
"s": 24325,
"text": "Yargs module is used for creating your own command-line commands in node.js and helps in generating an elegant user interface. This module makes command-line argum... |
Defining Dependencies in Makefile | It is very common that a final binary will be dependent on various source code and source header files. Dependencies are important because they let the make Known about the source for any target. Consider the following example −
hello: main.o factorial.o hello.o
$(CC) main.o factorial.o hello.o -o hello
Here, we tel... | [
{
"code": null,
"e": 2013,
"s": 1784,
"text": "It is very common that a final binary will be dependent on various source code and source header files. Dependencies are important because they let the make Known about the source for any target. Consider the following example −"
},
{
"code": nu... |
C++ ios Library - Function Scientific | It is used to sets the floatfield format flag for the str stream to scientific. When floatfield is set to scientific, floating-point values are written using scientific notation: the value is represented always with only one digit before the decimal point, followed by the decimal point and as many decimal digits as the... | [
{
"code": null,
"e": 3098,
"s": 2603,
"text": "It is used to sets the floatfield format flag for the str stream to scientific. When floatfield is set to scientific, floating-point values are written using scientific notation: the value is represented always with only one digit before the decimal poi... |
C++ Program for Derivative of a Polynomial | Given a string containing the polynomial term, the task is to evaluate the derivative of that polynomial.
What is a Polynomial?
Polynomial comes from two words: - “Poly” which means “many” and “nomial” means “terms”, which comprises many terms. Polynomial expression is an expression containing variables, coefficients a... | [
{
"code": null,
"e": 1168,
"s": 1062,
"text": "Given a string containing the polynomial term, the task is to evaluate the derivative of that polynomial."
},
{
"code": null,
"e": 1190,
"s": 1168,
"text": "What is a Polynomial?"
},
{
"code": null,
"e": 1493,
"s": 11... |
The complete guide to start your Data Science and AI journey. | by Defend Intelligence | Towards Data Science | AI & Data Science are already skills that everyone should develop. With this guide we will go through a fast tutorial to present you how to start this technical journey (platforms to learn and apply skills, installation on your computer, useful software). At the end of this article you will be able to run your first Ma... | [
{
"code": null,
"e": 575,
"s": 171,
"text": "AI & Data Science are already skills that everyone should develop. With this guide we will go through a fast tutorial to present you how to start this technical journey (platforms to learn and apply skills, installation on your computer, useful software).... |
Advanced SQL Interview Questions - GeeksforGeeks | 18 Sep, 2019
Different companies have a different approach to their interviewing process. Some would be concentrating on work experience and knowledge; others might focus on personality, while the rest fall somewhere in between.
Therefore, finding and learning from different interview questions and answers can help see... | [
{
"code": null,
"e": 24011,
"s": 23983,
"text": "\n18 Sep, 2019"
},
{
"code": null,
"e": 24227,
"s": 24011,
"text": "Different companies have a different approach to their interviewing process. Some would be concentrating on work experience and knowledge; others might focus on pe... |
Node.js assert.deepStrictEqual() Function - GeeksforGeeks | 07 Aug, 2020
The assert module provides a set of assertion functions for verifying invariants. The assert.deepStrictEqual() function tests for deep equality between the actual and expected parameters. If the condition is true it will not produce an output else an assertion error is raised.
Syntax:
assert.deepStrictEq... | [
{
"code": null,
"e": 38501,
"s": 38473,
"text": "\n07 Aug, 2020"
},
{
"code": null,
"e": 38780,
"s": 38501,
"text": "The assert module provides a set of assertion functions for verifying invariants. The assert.deepStrictEqual() function tests for deep equality between the actual ... |
Fractional Knapsack Problem - GeeksforGeeks | 25 Apr, 2022
Given the weights and values of n items, we need to put these items in a knapsack of capacity W to get the maximum total value in the knapsack.
In the 0-1 Knapsack problem, we are not allowed to break items. We either take the whole item or don’t take it.
Input: Items as (value, weight) pairs arr[] = {{60... | [
{
"code": null,
"e": 26065,
"s": 26037,
"text": "\n25 Apr, 2022"
},
{
"code": null,
"e": 26209,
"s": 26065,
"text": "Given the weights and values of n items, we need to put these items in a knapsack of capacity W to get the maximum total value in the knapsack."
},
{
"code... |
How to move an array element from one array position to another in JavaScript? - GeeksforGeeks | 23 Mar, 2022
In JavaScript we can access an array element as other programming languages like C, C++, Java etc. Also there is a method called splice() in JavaScript, by which an array can be removed or replaced by another element for an index. So to move an array element from one array position to another we can splice... | [
{
"code": null,
"e": 25897,
"s": 25869,
"text": "\n23 Mar, 2022"
},
{
"code": null,
"e": 26258,
"s": 25897,
"text": "In JavaScript we can access an array element as other programming languages like C, C++, Java etc. Also there is a method called splice() in JavaScript, by which a... |
Joining of Dataframes in R Programming - GeeksforGeeks | 28 Jul, 2020
In R Language, dataframes are generic data objects which are used to store the tabular data. Dataframes are considered to be the most popular data objects in R programming because it is more comfortable to analyze the data in the tabular form. Dataframes can also be taught as mattresses where each column o... | [
{
"code": null,
"e": 25980,
"s": 25952,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 26415,
"s": 25980,
"text": "In R Language, dataframes are generic data objects which are used to store the tabular data. Dataframes are considered to be the most popular data objects in R pro... |
HTML | DOM getBoundingClientRect() Method - GeeksforGeeks | 25 Jul, 2019
HTML DOM getBoundingClientRect() Method returns the relative positioning to the viewport.It returns eight properties: left, top, right, bottom, x, y, width, height.Scrolling will change the position value.
Syntax:
var rect = div.getBoundingClientRect();
Example:
<!DOCTYPE html><html> <head> <title> ... | [
{
"code": null,
"e": 26979,
"s": 26951,
"text": "\n25 Jul, 2019"
},
{
"code": null,
"e": 27185,
"s": 26979,
"text": "HTML DOM getBoundingClientRect() Method returns the relative positioning to the viewport.It returns eight properties: left, top, right, bottom, x, y, width, height... |
Pointer Expressions in C with Examples - GeeksforGeeks | 27 Feb, 2020
Prerequisite: Pointers in C
Pointers are used to point to address the location of a variable. A pointer is declared by preceding the name of the pointer by an asterisk(*).Syntax:
datatype *pointer_name;
When we need to initialize a pointer with variable’s location, we use ampersand sign(&) before the vari... | [
{
"code": null,
"e": 25671,
"s": 25643,
"text": "\n27 Feb, 2020"
},
{
"code": null,
"e": 25699,
"s": 25671,
"text": "Prerequisite: Pointers in C"
},
{
"code": null,
"e": 25850,
"s": 25699,
"text": "Pointers are used to point to address the location of a variab... |
View Binding with Fragments in Android Jetpack - GeeksforGeeks | 25 Feb, 2021
In the Previous article View Binding in Android Jetpack, it’s been discussed why acquiring the ViewBinding feature in the Android project provides a lot of benefits. But when it comes to ViewBinding with fragments the scenario changes. Because the lifecycle of the Fragment is different and that of activity... | [
{
"code": null,
"e": 26381,
"s": 26353,
"text": "\n25 Feb, 2021"
},
{
"code": null,
"e": 27256,
"s": 26381,
"text": "In the Previous article View Binding in Android Jetpack, it’s been discussed why acquiring the ViewBinding feature in the Android project provides a lot of benefit... |
Creating PDF Documents With Python - GeeksforGeeks | 05 May, 2021
In this article, we will be learning how to create PDFs in Python. A very famous module named pypdf2 is used to modify and read existing pdfs but its major disadvantage is that it cannot create new pdf files. So Today we are looking to learn about another python module named reportlab that helps us to crea... | [
{
"code": null,
"e": 25561,
"s": 25533,
"text": "\n05 May, 2021"
},
{
"code": null,
"e": 25921,
"s": 25561,
"text": "In this article, we will be learning how to create PDFs in Python. A very famous module named pypdf2 is used to modify and read existing pdfs but its major disadva... |
Print all possible joints of a Trie constructed from a given list of strings - GeeksforGeeks | 21 Jun, 2021
Given a set of strings str, the task is to print all the joints of the Trie constructed from the given set of strings.
Joints of a Trie is the nodes in a trie that have more than one child.
Examples:
Input:
str = {"cat", "there", "caller",
"their", "calling"}
Output: l, a, e
Explanation:
... | [
{
"code": null,
"e": 25707,
"s": 25679,
"text": "\n21 Jun, 2021"
},
{
"code": null,
"e": 25827,
"s": 25707,
"text": "Given a set of strings str, the task is to print all the joints of the Trie constructed from the given set of strings. "
},
{
"code": null,
"e": 25900,... |
Python - Find starting index of all Nested Lists - GeeksforGeeks | 31 May, 2021
In this article given a matrix, the task is to write a Python program to compute the starting index of all the nested lists.
Example:
Input : test_list = [[5], [9, 3, 1, 4], [3, 2], [4, 7, 8, 3, 1, 2], [3, 4, 5]]
Output : [0, 1, 5, 7, 13]
Explanation : 1 + 4 = lengths of 2 initial lists = 5, 3, of 3rd list... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 25662,
"s": 25537,
"text": "In this article given a matrix, the task is to write a Python program to compute the starting index of all the nested lists."
},
{
"code": null,
"e": 2... |
Python | Tensorflow log() method - GeeksforGeeks | 13 Dec, 2021
Tensorflow is an open-source machine learning library developed by Google. One of its applications is to develop deep neural networks. The module tensorflow.math provides support for many basic mathematical operations. Function tf.log() [alias tf.math.log] provides support for the natural logarithmic funct... | [
{
"code": null,
"e": 25999,
"s": 25971,
"text": "\n13 Dec, 2021"
},
{
"code": null,
"e": 26518,
"s": 25999,
"text": "Tensorflow is an open-source machine learning library developed by Google. One of its applications is to develop deep neural networks. The module tensorflow.math p... |
How to hide a div when the user clicks outside of it using jQuery? - GeeksforGeeks | 03 Aug, 2021
An element can be hidden or shown based on if the mouse is clicked outside the element using two methods.
Method 1: Using the closest method:
A mouseup event is to first checked upon the document$(document).mouseup(function (e) { // rest code here}The closest() method is called on the target click. This... | [
{
"code": null,
"e": 26705,
"s": 26677,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 26811,
"s": 26705,
"text": "An element can be hidden or shown based on if the mouse is clicked outside the element using two methods."
},
{
"code": null,
"e": 26847,
"s": 2681... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.