title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
DynamoDB – Data Types
01 Aug, 2020 DynamoDB supports many different data types for attributes within a table. They can be categorized as follows: Scalar Types – A scalar type can represent exactly one value. The scalar types are number, string, binary, Boolean, and null. Document Types – A document type can represent a complex structure wi...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Aug, 2020" }, { "code": null, "e": 140, "s": 28, "text": " DynamoDB supports many different data types for attributes within a table. They can be categorized as follows:" }, { "code": null, "e": 266, "s": 140, "te...
Node.js urlSearchParams.get() Method
07 Oct, 2021 The urlSearchParams.get() method is an inbuilt application programming interface of class URLSearchParams within url module which is used to get the value for particular name entry present in the URL search params object. Syntax: const urlSearchParams.get( name ) Parameter: This method takes the name as a ...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Oct, 2021" }, { "code": null, "e": 250, "s": 28, "text": "The urlSearchParams.get() method is an inbuilt application programming interface of class URLSearchParams within url module which is used to get the value for particular name ...
Structure and Members of the Java Program
20 Aug, 2021 When we are writing any program in any language we need to follow a standard structure for writing the program which is recommended by the language experts. A java program may contain many classes of which only one class will have a main method. Class will contain data members and methods that operate on t...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Aug, 2021" }, { "code": null, "e": 563, "s": 52, "text": "When we are writing any program in any language we need to follow a standard structure for writing the program which is recommended by the language experts. A java program ma...
Authentication using Python requests
05 Mar, 2020 Authentication refers to giving a user permissions to access a particular resource. Since, everyone can’t be allowed to access data from every URL, one would require authentication primarily. To achieve this authentication, typically one provides authentication data through Authorization header or a custom...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Mar, 2020" }, { "code": null, "e": 388, "s": 54, "text": "Authentication refers to giving a user permissions to access a particular resource. Since, everyone can’t be allowed to access data from every URL, one would require authenti...
JavaScript | Window print() Method
22 Nov, 2021 Page print in JavaScript is a simple code in JavaScript used to print the content of the web pages. The print() method prints the contents of the current window. It basically opens Print dialog box which lets you choose between various printing options. Syntax: window.print() Parameters: No parameters ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Nov, 2021" }, { "code": null, "e": 130, "s": 28, "text": "Page print in JavaScript is a simple code in JavaScript used to print the content of the web pages. " }, { "code": null, "e": 192, "s": 130, "text": "The ...
Calendar getInstance() Method in Java with Examples
18 Feb, 2019 The getInstance() method in Calendar class is used to get a calendar using the current time zone and locale of the system. Syntax: public static Calendar getInstance() Parameters: The method does not take any parameters. Return Value: The method returns the calendar. Below program illustrates the working o...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Feb, 2019" }, { "code": null, "e": 151, "s": 28, "text": "The getInstance() method in Calendar class is used to get a calendar using the current time zone and locale of the system." }, { "code": null, "e": 159, "s": 1...
BinaryOperator Interface in Java
The BinaryOperator interface represents an operation upon two operands of the same type, producing a result of the same type as the operands. Following are the methods − Let us now see an example − Live Demo import java.util.function.BinaryOperator; public class Demo { public static void main(String args[]) { ...
[ { "code": null, "e": 1204, "s": 1062, "text": "The BinaryOperator interface represents an operation upon two operands of the same type, producing a result of the same type as the operands." }, { "code": null, "e": 1232, "s": 1204, "text": "Following are the methods −" }, { ...
Middle of Three | Practice | GeeksforGeeks
Given three distinct numbers A, B and C. Find the number with value in middle (Try to do it with minimum comparisons). Example 1: Input: A = 978, B = 518, C = 300 Output: 518 Explanation: Since 518>300 and 518<978, so 518 is the middle element. Example 2: Input: A = 162, B = 934, C = 200 Output: 200 Exaplanation: Si...
[ { "code": null, "e": 357, "s": 238, "text": "Given three distinct numbers A, B and C. Find the number with value in middle (Try to do it with minimum comparisons)." }, { "code": null, "e": 369, "s": 357, "text": "\nExample 1:" }, { "code": null, "e": 485, "s": 369...
An easy introduction to Pytorch for Neural Networks | by George Seif | Towards Data Science
Want to be inspired? Come join my Super Quotes newsletter. 😎 Deep Learning has reignited the public interest in AI. The reason is simple: Deep Learning just works. It’s given us the ability to build technologies that we previously weren’t able to. It’s created new business opportunities and improved the technology wor...
[ { "code": null, "e": 232, "s": 171, "text": "Want to be inspired? Come join my Super Quotes newsletter. 😎" }, { "code": null, "e": 505, "s": 232, "text": "Deep Learning has reignited the public interest in AI. The reason is simple: Deep Learning just works. It’s given us the abi...
Fast inverse square root - GeeksforGeeks
26 Mar, 2018 Fast inverse square root is an algorithm that estimates , the reciprocal (or multiplicative inverse) of the square root of a 32-bit floating-point number x in IEEE 754 floating-point format. Computing reciprocal square roots is necessary in many applications, such as vector normalization in video games and...
[ { "code": null, "e": 24621, "s": 24593, "text": "\n26 Mar, 2018" }, { "code": null, "e": 25357, "s": 24621, "text": "Fast inverse square root is an algorithm that estimates , the reciprocal (or multiplicative inverse) of the square root of a 32-bit floating-point number x in IEEE...
C++ Program to Implement Heap Sort
A Heap is a complete binary tree which is either Min Heap or Max Heap. In a Max Heap, the key at root must be maximum among all keys present in Heap. This property must be recursively true for all nodes in that Binary Tree. Min Heap is similar to MinHeap. void BHeap::Insert(int ele): Perform insertion operation to inse...
[ { "code": null, "e": 1318, "s": 1062, "text": "A Heap is a complete binary tree which is either Min Heap or Max Heap.\nIn a Max Heap, the key at root must be maximum among all keys\npresent in Heap. This property must be recursively true for all nodes in\nthat Binary Tree. Min Heap is similar to Min...
Practical Statistics & Visualization With Python & Plotly | by Susan Li | Towards Data Science
One day last week, I was googling “statistics with Python”, the results were somewhat unfruitful. Most literature, tutorials and articles focus on statistics with R, because R is a language dedicated to statistics and has more statistical analysis features than Python. In two excellent statistics books, “Practical Stat...
[ { "code": null, "e": 442, "s": 172, "text": "One day last week, I was googling “statistics with Python”, the results were somewhat unfruitful. Most literature, tutorials and articles focus on statistics with R, because R is a language dedicated to statistics and has more statistical analysis feature...
PHP | similar_text() Function - GeeksforGeeks
23 Mar, 2018 The similar_text() function is a built-in function in PHP. This function calculates the similarity of two strings and returns the number of matching characters in the two strings. The function operates by finding the longest first common sub-string, and repeating this for the prefixes and the suffixes, rec...
[ { "code": null, "e": 24581, "s": 24553, "text": "\n23 Mar, 2018" }, { "code": null, "e": 24960, "s": 24581, "text": "The similar_text() function is a built-in function in PHP. This function calculates the similarity of two strings and returns the number of matching characters in ...
Adding extra axis ticks using Matplotlib
To add extra ticks in matplotlib, we can take the following Steps − Create x and y points using numpy. Create x and y points using numpy. Plot x and y points over the plot, where x ticks could be from 1 to 10 (100 data points) on the curve. Plot x and y points over the plot, where x ticks could be from 1 to 10 (100 dat...
[ { "code": null, "e": 1130, "s": 1062, "text": "To add extra ticks in matplotlib, we can take the following Steps −" }, { "code": null, "e": 1165, "s": 1130, "text": "Create x and y points using numpy." }, { "code": null, "e": 1200, "s": 1165, "text": "Create x...
Scala | Tuple
01 Mar, 2019 Tuple is a collection of elements. Tuples are heterogeneous data structures, i.e., is they can store elements of different data types. A tuple is immutable, unlike an array in scala which is mutable.An example of a tuple storing an integer, a string, and boolean value. val name = (15, "Chandan", true) Typ...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Mar, 2019" }, { "code": null, "e": 322, "s": 52, "text": "Tuple is a collection of elements. Tuples are heterogeneous data structures, i.e., is they can store elements of different data types. A tuple is immutable, unlike an array i...
Get column names from CSV using Python
14 Aug, 2021 CSV stands for Comma Separated Values and CSV files are essentially text files which are used to store data in a tabular fashion using commas (,) as delimiters. CSV is a file format and all the files of this format are stored with a .csv extension. It is a very popular and extensively used format for stori...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Aug, 2021" }, { "code": null, "e": 652, "s": 54, "text": "CSV stands for Comma Separated Values and CSV files are essentially text files which are used to store data in a tabular fashion using commas (,) as delimiters. CSV is a file...
Tekion Corp Interview Experience for SDE | On-Campus 2021
09 Aug, 2021 Tekion arrived for hiring in the last week of July 2021 in our campus for the SDE role (INTERNSHIP + FTE). We had a total of 4 rounds ( 1 Online Coding on HackerEarth + 2 Technical Interviews+ 1 HR Interview). Here is my interview experience for the same. Round 1 ( Online Coding Round) : This round was c...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Aug, 2021" }, { "code": null, "e": 240, "s": 28, "text": "Tekion arrived for hiring in the last week of July 2021 in our campus for the SDE role (INTERNSHIP + FTE). We had a total of 4 rounds ( 1 Online Coding on HackerEarth + 2 Tec...
PostgreSQL – NUMERIC Data Type
28 Aug, 2020 PostgreSQL supports the NUMERIC type for storing numbers with a very large number of digits. Generally NUMERIC type are used for the monetary or amounts storage where precision is required. Syntax: NUMERIC(precision, scale) Where, Precision: Total number of digits. Scale: Number of digits in ter...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 218, "s": 28, "text": "PostgreSQL supports the NUMERIC type for storing numbers with a very large number of digits. Generally NUMERIC type are used for the monetary or amounts storage where precisio...
Range and Indices in C# 8.0
28 Nov, 2019 As we already know about the Range and Indices. We use them several times in our programs, they provide a short syntax to represent or access a single or a range of elements from the given sequence or collections. In this article, we will learn what’s newly added in the range and indices in C# 8.0. In C# 8...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2019" }, { "code": null, "e": 400, "s": 28, "text": "As we already know about the Range and Indices. We use them several times in our programs, they provide a short syntax to represent or access a single or a range of elements f...
Minimum number of Binary strings to represent a Number
17 Nov, 2021 Given a number N. The task is to find the minimum number of binary strings required to represent the given number as the sum of the binary strings.Examples: Input : 131 Output : Minimum Number of binary strings needed: 3 111 10 10 Input : 564 Output :Minimum Number of binary strings needed: 6 111 111 111...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Nov, 2021" }, { "code": null, "e": 187, "s": 28, "text": "Given a number N. The task is to find the minimum number of binary strings required to represent the given number as the sum of the binary strings.Examples: " }, { "c...
Python | Tensorflow nn.sigmoid()
12 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.nn provides support for many basic neural network operations.One of the many activation functions is the sigmoid function which is defined as .Sigmoid...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Dec, 2021" }, { "code": null, "e": 1193, "s": 28, "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.nn provides suppo...
Stream mapToDouble() in Java with examples
06 Dec, 2018 Stream mapToDouble (ToDoubleFunction mapper) returns a DoubleStream consisting of the results of applying the given function to the elements of this stream. Stream mapToDouble (ToDoubleFunction mapper) is an intermediate operation. These operations are always lazy. Intermediate operations are invoked on a ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Dec, 2018" }, { "code": null, "e": 185, "s": 28, "text": "Stream mapToDouble (ToDoubleFunction mapper) returns a DoubleStream consisting of the results of applying the given function to the elements of this stream." }, { "cod...
Elasticsearch - Aggregations
The aggregations framework collects all the data selected by the search query and consists of many building blocks, which help in building complex summaries of the data. The basic structure of an aggregation is shown here − "aggregations" : { "" : { "" : { } [,"meta" : { [] } ]? [,"aggrega...
[ { "code": null, "e": 2939, "s": 2715, "text": "The aggregations framework collects all the data selected by the search query and consists of many building blocks, which help in building complex summaries of the data. The basic structure of an aggregation is shown here −" }, { "code": null, ...
sqrt, sqrtl and sqrtf in C++
13 Jun, 2022 There are various functions available in the C++ Library to calculate the square root of a number. Most prominently, sqrt is used. It takes double as an argument. The <cmath> header defines two more inbuilt functions for calculating the square root of a number (apart from sqrt) which has an argument of typ...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jun, 2022" }, { "code": null, "e": 434, "s": 28, "text": "There are various functions available in the C++ Library to calculate the square root of a number. Most prominently, sqrt is used. It takes double as an argument. The <cmath> ...
What are the differences between props and state ?
28 Jun, 2021 Have you ever wondered how can we pass the data between the components in ReactJS? We can pass the data between the components using Props and State. So, let us know how we can pass the data using props and state and understand the difference between the two. We will learn about props and state with the he...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 Jun, 2021" }, { "code": null, "e": 313, "s": 53, "text": "Have you ever wondered how can we pass the data between the components in ReactJS? We can pass the data between the components using Props and State. So, let us know how we c...
Extract CSS tag from a given HTML using Python
24 Oct, 2020 Prerequisite: Implementing Web Scraping in Python with BeautifulSoup In this article, we are going to see how to extract CSS from an HTML document or URL using python. Module Needed: bs4: Beautiful Soup(bs4) is a Python library for pulling data out of HTML and XML files. This module does not come built-in...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Oct, 2020" }, { "code": null, "e": 97, "s": 28, "text": "Prerequisite: Implementing Web Scraping in Python with BeautifulSoup" }, { "code": null, "e": 196, "s": 97, "text": "In this article, we are going to see ho...
How to encrypt passwords in a Spring Boot project using Jasypt
14 Feb, 2020 Spring boot is a Java-based framework to develop microservices in order to build enterprise-level applications. You often come across developing projects where you have to connect to databases like MongoDB, etc and store the authentic password of DB connection in the config file of spring boot project (app...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Feb, 2020" }, { "code": null, "e": 140, "s": 28, "text": "Spring boot is a Java-based framework to develop microservices in order to build enterprise-level applications." }, { "code": null, "e": 484, "s": 140, "te...
How to deallocate memory without using free() in C?
28 May, 2017 Question: How to deallocate dynamically allocate memory without using “free()” function. Solution: Standard library function realloc() can be used to deallocate previously allocated memory. Below is function declaration of “realloc()” from “stdlib.h” void *realloc(void *ptr, size_t size); If “size” is zero...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 May, 2017" }, { "code": null, "e": 143, "s": 54, "text": "Question: How to deallocate dynamically allocate memory without using “free()” function." }, { "code": null, "e": 305, "s": 143, "text": "Solution: Standa...
Delete an element from array (Using two traversals and one traversal)
27 Jun, 2022 Given an array and a number ‘x’, write a function to delete ‘x’ from the given array. We assume that array maintains two things with it, capacity and size. So when we remove an item, capacity does not change, only size changes. Example: Input: arr[] = {3, 1, 2, 5, 90}, x = 2, size = 5, capacity = 5 Outpu...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Jun, 2022" }, { "code": null, "e": 280, "s": 52, "text": "Given an array and a number ‘x’, write a function to delete ‘x’ from the given array. We assume that array maintains two things with it, capacity and size. So when we remove ...
Java Nested Loops with Examples
01 Oct, 2021 Nested loop means a loop statement inside another loop statement. That is why nested loops are also called as “loop inside loop“.Syntax for Nested For loop: for ( initialization; condition; increment ) { for ( initialization; condition; increment ) { // statement of inside loop } ...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Oct, 2021" }, { "code": null, "e": 211, "s": 52, "text": "Nested loop means a loop statement inside another loop statement. That is why nested loops are also called as “loop inside loop“.Syntax for Nested For loop: " }, { "...
Python Program to convert Kilometers to Miles
19 Dec, 2017 Kilometer is a unit of length in the metric system equivalent to 1000 meters. Miles is also the unit of length equal to 1760 yards. Example: Input: 5.5 Output: 3.418 Input: 6.5 Output: 4.039 Formula: 1 kilometer equals 0.62137 miles. Miles = kilometer * 0.62137 Kilometer = Miles / 0.62137 # Python3...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Dec, 2017" }, { "code": null, "e": 132, "s": 54, "text": "Kilometer is a unit of length in the metric system equivalent to 1000 meters." }, { "code": null, "e": 186, "s": 132, "text": "Miles is also the unit of l...
Packages In Java
04 Mar, 2022 Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces. Packages are used for: Preventing naming conflicts. For example there can be two classes with name Employee in two packages, college.staff.cse.Employee and college.staff.ee.Employee Making searching/locating and ...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Mar, 2022" }, { "code": null, "e": 170, "s": 52, "text": "Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces. Packages are used for:" }, { "code": null, "e": 329, "s": 170, ...
How Does Threading Work in Android?
23 Jul, 2021 When an application is launched in Android, it creates the primary thread of execution, referred to as the “main” thread. Most thread is liable for dispatching events to the acceptable interface widgets also as communicating with components from the Android UI toolkit. To keep your application responsive, ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jul, 2021" }, { "code": null, "e": 451, "s": 28, "text": "When an application is launched in Android, it creates the primary thread of execution, referred to as the “main” thread. Most thread is liable for dispatching events to the a...
HTML | <table> summary Attribute
29 May, 2019 The HTML <table> summary Attribute is used to specify the summary of the table content. Syntax: <table summary="text"> Attribute Values: text: It holds the summary of the table content. Note: The <table> summary Attribute is not supported by HTML 5. Example: <!DOCTYPE html><html> <head> <title> ...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 May, 2019" }, { "code": null, "e": 116, "s": 28, "text": "The HTML <table> summary Attribute is used to specify the summary of the table content." }, { "code": null, "e": 124, "s": 116, "text": "Syntax:" }, { ...
Positional-only Parameter in Python3.8
03 Jul, 2020 Python introduces the new function syntax in Python3.8.2 Version, Where we can introduce the / forward slash to compare the positional only parameter which comes before the / slash and parameters that comes after * is keyword only arguments. Rest of the arguments that are come between / and * can be either...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jul, 2020" }, { "code": null, "e": 511, "s": 28, "text": "Python introduces the new function syntax in Python3.8.2 Version, Where we can introduce the / forward slash to compare the positional only parameter which comes before the / ...
Boolean Masking with Pandas. Filtering Pandas Dataframes | by Leah Pope | Towards Data Science
One of the topics in Miki Tebeka’s excellent “Faster Pandas” course was how to use Boolean masks to filter data in Pandas. I wanted to practice what I had learned, so I updated a recent project to use Boolean masks. I think this is a very useful technique, so I wanted to share how I updated my code. I’ll show you how t...
[ { "code": null, "e": 583, "s": 172, "text": "One of the topics in Miki Tebeka’s excellent “Faster Pandas” course was how to use Boolean masks to filter data in Pandas. I wanted to practice what I had learned, so I updated a recent project to use Boolean masks. I think this is a very useful technique...
TypeScript - Array unshift()
unshift() method adds one or more elements to the beginning of an array and returns the new length of the array. array.unshift( element1, ..., elementN ); element1, ..., elementN − The elements to add to the front of the array. Returns the length of the new array. It returns undefined in IE browser. var arr = new Arra...
[ { "code": null, "e": 2161, "s": 2048, "text": "unshift() method adds one or more elements to the beginning of an array and returns the new length of the array." }, { "code": null, "e": 2204, "s": 2161, "text": "array.unshift( element1, ..., elementN );\n" }, { "code": nul...
Best Way to Solve Python Coding Questions | by Luay Matalka | Towards Data Science
There is certainly some controversy regarding the benefits of Python coding websites such as codewars or leetcode, and whether or not using them actually makes us better programmers. Despite that, many people still use them to prepare for Python interview questions, keeping their Python programming skills sharp, and/or...
[ { "code": null, "e": 613, "s": 172, "text": "There is certainly some controversy regarding the benefits of Python coding websites such as codewars or leetcode, and whether or not using them actually makes us better programmers. Despite that, many people still use them to prepare for Python interview...
GATE-CS-2006 - GeeksforGeeks
02 Dec, 2021 p = a3 X x ------------ (1) q = (a2 + p) X x ---------(2) r = (a1 + q) X x ---------(3) result = a0 + r S -> S * E S -> E E -> F + E E -> F F -> id (i) S -> S * .E (ii) E -> F. + E (iii) E -> F + .E Here, size of instruction = 24/8 = 3 bytes. Program Counter can shift 3 bytes at a time to jum...
[ { "code": null, "e": 28965, "s": 28937, "text": "\n02 Dec, 2021" }, { "code": null, "e": 29079, "s": 28965, "text": "\np = a3 X x ------------ (1)\n\nq = (a2 + p) X x ---------(2)\n\nr = (a1 + q) X x ---------(3)\n\nresult = a0 + r " }, { "code": null, "e": 29123...
Can We Have Multiple Main Methods in Java? - GeeksforGeeks
03 Aug, 2021 Java is an object-oriented language all processing is carried within classes. Execution of a program means dictates java virtual machine to load the class and then start execution of its main method. Java’s main method is entry point of any Java program. Public access modifier is used before the main metho...
[ { "code": null, "e": 25788, "s": 25760, "text": "\n03 Aug, 2021" }, { "code": null, "e": 26243, "s": 25788, "text": "Java is an object-oriented language all processing is carried within classes. Execution of a program means dictates java virtual machine to load the class and then...
C++ Pointers
C++ pointers are easy and fun to learn. Some C++ tasks are performed more easily with pointers, and other C++ tasks, such as dynamic memory allocation, cannot be performed without them. As you know every variable is a memory location and every memory location has its address defined which can be accessed using ampersan...
[ { "code": null, "e": 2504, "s": 2318, "text": "C++ pointers are easy and fun to learn. Some C++ tasks are performed more easily with pointers, and other C++ tasks, such as dynamic memory allocation, cannot be performed without them." }, { "code": null, "e": 2768, "s": 2504, "text...
Distribution-based loss functions for deep learning models | by Andrea C. | Towards Data Science
Information is made of data. During training step, an artificial neural network learns to map (predict) a set of inputs to a set of outputs from a labeled dataset. Computing the optimal weights is an optimization problem and it is usually solved by the stochastic gradient descent: weights are updated using the backprop...
[ { "code": null, "e": 735, "s": 171, "text": "Information is made of data. During training step, an artificial neural network learns to map (predict) a set of inputs to a set of outputs from a labeled dataset. Computing the optimal weights is an optimization problem and it is usually solved by the st...
What are Inline List Items in CSS
Use Inline List Items to build a horizontal navigation bar. Set the &amp;lt;li&amp;gt; elements as inline. You can try to run the following code to create horizontal navigation bar: Live Demo <!DOCTYPE html> <html> <head> <style> ul { list-style-type: none; margin: 0; ...
[ { "code": null, "e": 1169, "s": 1062, "text": "Use Inline List Items to build a horizontal navigation bar. Set the &amp;lt;li&amp;gt; elements as inline." }, { "code": null, "e": 1244, "s": 1169, "text": "You can try to run the following code to create horizontal navigation bar:"...
Get Enumeration over Java HashSet - GeeksforGeeks
03 Mar, 2021 The HashSet class implements the Set interface, backed by a hash table which is a HashMap instance. There is no assurance as to the iteration order of the set, which implies that over time, the class does not guarantee the constant order of elements. The null element is allowed by this class. The java.util...
[ { "code": null, "e": 23892, "s": 23864, "text": "\n03 Mar, 2021" }, { "code": null, "e": 24300, "s": 23892, "text": "The HashSet class implements the Set interface, backed by a hash table which is a HashMap instance. There is no assurance as to the iteration order of the set, whi...
C++ Floating Point Manipulation
Numerical implementation of a decimal number is a float point number. In C++ programming language the size of a float is 32 bits. And there are some floating point manipulation functions that work on floating-point numbers. Here we have introduced some of the floating-point manipulation functions. The fmod() function o...
[ { "code": null, "e": 1361, "s": 1062, "text": "Numerical implementation of a decimal number is a float point number. In C++ programming language the size of a float is 32 bits. And there are some floating point manipulation functions that work on floating-point numbers. Here we have introduced some ...
Updating Nested Embedded Documents in MongoDB?
To update bested documents in MongDB, use UPDATE() and positional($) operator. Let us create a collection with documents − > db.demo643.insertOne({ ... details : [ ... { ... "CountryName":"US", ... StudentDetails:[{Name:"Chris"},{SubjectName:"MySQL"}] ... }, ... ... { ... ...
[ { "code": null, "e": 1185, "s": 1062, "text": "To update bested documents in MongDB, use UPDATE() and positional($) operator. Let us create a collection with documents −" }, { "code": null, "e": 1585, "s": 1185, "text": "> db.demo643.insertOne({\n... details : [\n... {\n...
Java - Thread Synchronization
When we start two or more threads within a program, there may be a situation when multiple threads try to access the same resource and finally they can produce unforeseen result due to concurrency issues. For example, if multiple threads try to write within a same file then they may corrupt the data because one of the ...
[ { "code": null, "e": 2832, "s": 2377, "text": "When we start two or more threads within a program, there may be a situation when multiple threads try to access the same resource and finally they can produce unforeseen result due to concurrency issues. For example, if multiple threads try to write wi...
Laravel - Error Handling
Most web applications have specific mechanisms for error handling. Using these, they track errors and exceptions, and log them to analyze the performance. In this chapter, you will read about error handling in Laravel applications. Before proceeding further to learn in detail about error handling in Laravel, please not...
[ { "code": null, "e": 2704, "s": 2472, "text": "Most web applications have specific mechanisms for error handling. Using these, they track errors and exceptions, and log them to analyze the performance. In this chapter, you will read about error handling in Laravel applications." }, { "code":...
Minimum Swaps to Group All 1's Together in Python
Suppose we have a binary array data, we have to find the minimum number of swaps required to group all 1’s stored in the array together in any place in the array. So if the array is like [1,0,1,0,1,0,0,1,1,0,1], then the output will be 3, as possible solution is [0,0,0,0,0,1,1,1,1,1,1] To solve this, we will follow the...
[ { "code": null, "e": 1349, "s": 1062, "text": "Suppose we have a binary array data, we have to find the minimum number of swaps required to group all 1’s stored in the array together in any place in the array. So if the array is like [1,0,1,0,1,0,0,1,1,0,1], then the output will be 3, as possible so...
RESTful APIs in Python. What are RESTful APIs and implementing... | by Shivangi Sareen | Towards Data Science
API is a hypothetical contract between two softwares. Web APIs have made it easy for cross-language applications to work well. Application Programming Interfaces are commonly used to retrieve data from remote websites. To make a request to a remote web server and retrieve data, we make use of the URL endpoint from wher...
[ { "code": null, "e": 299, "s": 172, "text": "API is a hypothetical contract between two softwares. Web APIs have made it easy for cross-language applications to work well." }, { "code": null, "e": 601, "s": 299, "text": "Application Programming Interfaces are commonly used to ret...
Perl - DBI(Database Independent) Module | Set - 2 - GeeksforGeeks
10 Jul, 2020 Perl allows the handling of Databases with the help of Perl Scripts. These scripts run with the help of a module known as DBI(Database Independent Interface) module. DBI module provides an API to interact with many databases such as MySQL, Oracle, etc. This module provides a set of variables and methods th...
[ { "code": null, "e": 24034, "s": 24006, "text": "\n10 Jul, 2020" }, { "code": null, "e": 24433, "s": 24034, "text": "Perl allows the handling of Databases with the help of Perl Scripts. These scripts run with the help of a module known as DBI(Database Independent Interface) modul...
MATLAB - Concatenating Matrices
You can concatenate two matrices to create a larger matrix. The pair of square brackets '[]' is the concatenation operator. MATLAB allows two types of concatenations − Horizontal concatenation Vertical concatenation When you concatenate two matrices by separating those using commas, they are just appended horizontally....
[ { "code": null, "e": 2265, "s": 2141, "text": "You can concatenate two matrices to create a larger matrix. The pair of square brackets '[]' is the concatenation operator." }, { "code": null, "e": 2309, "s": 2265, "text": "MATLAB allows two types of concatenations −" }, { ...
How to Plot a Confidence Interval in Python?
03 Jan, 2021 Confidence Interval is a type of estimate computed from the statistics of the observed data which gives a range of values that’s likely to contain a population parameter with a particular level of confidence. A confidence interval for the mean is a range of values between which the population mean possibly...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jan, 2021" }, { "code": null, "e": 237, "s": 28, "text": "Confidence Interval is a type of estimate computed from the statistics of the observed data which gives a range of values that’s likely to contain a population parameter with ...
XAML - Menu
A Menu is a control that enables you to hierarchically organize the elements associated with the commands and event handlers. Menu is an ItemsControl, so it can contain a collection of any object type such as string, image, or panel. The hierarchical inheritance of Menu class is as follows − Background Gets or sets a b...
[ { "code": null, "e": 2350, "s": 2057, "text": "A Menu is a control that enables you to hierarchically organize the elements associated with the commands and event handlers. Menu is an ItemsControl, so it can contain a collection of any object type such as string, image, or panel. The hierarchical in...
Optional stream() method in Java with examples
30 Jul, 2019 The stream() method of java.util.Optional class in Java is used to get the sequential stream of the only value present in this Optional instance. If there is no value present in this Optional instance, then this method returns returns an empty Stream. Syntax: public Stream<T> stream() Parameters: This met...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jul, 2019" }, { "code": null, "e": 280, "s": 28, "text": "The stream() method of java.util.Optional class in Java is used to get the sequential stream of the only value present in this Optional instance. If there is no value present ...
Sum of subsets of all the subsets of an array | O(2^N)
21 Apr, 2021 Given an array arr[] of length N, the task is to find the overall sum of subsets of all the subsets of the array.Examples: Input: arr[] = {1, 1} Output: 6 All possible subsets: a) {} : 0 All the possible subsets of this subset will be {}, Sum = 0 b) {1} : 1 All the possible subsets of this subset will be...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Apr, 2021" }, { "code": null, "e": 179, "s": 54, "text": "Given an array arr[] of length N, the task is to find the overall sum of subsets of all the subsets of the array.Examples: " }, { "code": null, "e": 660, "s"...
Python program to find sum of elements in list
14 Jun, 2022 Given a list of numbers, write a Python program to find the sum of all the elements in the list.Example: Input: [12, 15, 3, 10] Output: 40 Input: [17, 5, 3, 5] Output: 30 Example #1: Python3 # Python program to find sum of elements in listtotal = 0 # creating a listlist1 = [11, 5, 17, 18, 23] # Iterat...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jun, 2022" }, { "code": null, "e": 159, "s": 52, "text": "Given a list of numbers, write a Python program to find the sum of all the elements in the list.Example: " }, { "code": null, "e": 226, "s": 159, "text":...
Primality Test | Set 2 (Fermat Method)
15 Jun, 2021 Given a number n, check if it is prime or not. We have introduced and discussed the School method for primality testing in Set 1.Primality Test | Set 1 (Introduction and School Method)In this post, Fermat’s method is discussed. This method is a probabilistic method and is based on Fermat’s Little Theorem. ...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jun, 2021" }, { "code": null, "e": 359, "s": 52, "text": "Given a number n, check if it is prime or not. We have introduced and discussed the School method for primality testing in Set 1.Primality Test | Set 1 (Introduction and Scho...
Twitter Interview | Set 1
22 Oct, 2021 Phone screen – I 1. Fibonacci series without using an array – this is a typical favorite question w.r.t. Dynamic Programming where you will ask not to use Memoization or any extra storage to store the values of the previous iterations. (More complicated version of the same problem: Generate Nth row of pas...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Oct, 2021" }, { "code": null, "e": 72, "s": 54, "text": "Phone screen – I " }, { "code": null, "e": 419, "s": 72, "text": "1. Fibonacci series without using an array – this is a typical favorite question w.r.t. D...
Visualization of a correlation matrix using ggplot2 in R
21 Jul, 2021 In this article, we will discuss how to visualize a correlation matrix using ggplot2 package in R programming language. In order to do this, we will install a package called ggcorrplot package. With the help of this package, we can easily visualize a correlation matrix. We can also compute a matrix of corr...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jul, 2021" }, { "code": null, "e": 148, "s": 28, "text": "In this article, we will discuss how to visualize a correlation matrix using ggplot2 package in R programming language." }, { "code": null, "e": 559, "s": 148,...
Structures in C++
25 May, 2021 We often come around situations where we need to store a group of data whether of similar data types or non-similar data types. We have seen Arrays in C++ which are used to store set of data of similar data types at contiguous memory locations.Unlike Arrays, Structures in C++ are user defined data types wh...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 May, 2021" }, { "code": null, "e": 424, "s": 52, "text": "We often come around situations where we need to store a group of data whether of similar data types or non-similar data types. We have seen Arrays in C++ which are used to s...
Find Square Root under Modulo p | Set 1 (When p is in form of 4*i + 3)
12 Apr, 2021 Given a number ‘n’ and a prime ‘p’, find square root of n under modulo p if it exists. It may be given that p is in the form for 4*i + 3 (OR p % 4 = 3) where i is an integer. Examples of such primes are 7, 11, 19, 23, 31, ... etc,Examples: Input: n = 2, p = 7 Output: 3 or 4 3 and 4 both are square roots...
[ { "code": null, "e": 54, "s": 26, "text": "\n12 Apr, 2021" }, { "code": null, "e": 296, "s": 54, "text": "Given a number ‘n’ and a prime ‘p’, find square root of n under modulo p if it exists. It may be given that p is in the form for 4*i + 3 (OR p % 4 = 3) where i is an integer....
How to do pagination in Node.js using sorting ids ?
21 Jun, 2021 Pagination in NodeJS is defined as adding the numbers to identify the sequential number of the pages. In pagination, we used to skip and limit for reducing the size of data in the database when they are very large in numbers. In this article, we will do pagination in NodeJS using sorting IDs. Approach: Sor...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Jun, 2021" }, { "code": null, "e": 348, "s": 54, "text": "Pagination in NodeJS is defined as adding the numbers to identify the sequential number of the pages. In pagination, we used to skip and limit for reducing the size of data i...
HTTP headers | ETag
06 Sep, 2021 ETag or Entity Tag is a response-type header that works as a validator to let client make conditional requests. It makes re-validation requests more efficient by triggering request headers which help with web cache validation that makes economical use of network bandwidth. ETag is generated as identificat...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Sep, 2021" }, { "code": null, "e": 303, "s": 28, "text": "ETag or Entity Tag is a response-type header that works as a validator to let client make conditional requests. It makes re-validation requests more efficient by triggering re...
GSmartControl – Tool to Check SSD/HDD Health on Linux
29 Jan, 2021 Gsmart control (Self-Monitoring, Analysis, and Reporting Technology)is a GUI tool that clearly shows if there is a problem with your hard drive/SSDs or not, It generally checks and displays the present condition of your hard drive/SSDs and also run the various test on it. Installation (for Debian GNU/Linu...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Jan, 2021" }, { "code": null, "e": 328, "s": 54, "text": "Gsmart control (Self-Monitoring, Analysis, and Reporting Technology)is a GUI tool that clearly shows if there is a problem with your hard drive/SSDs or not, It generally che...
How to Compute a Discrete-Fourier Transform Coefficients Directly in Java?
19 Nov, 2021 The Discrete Fourier Transform (DFT) generally varies from 0 to 360. There are basically N-sample DFT, where N is the number of samples. It ranges from n=0 to N-1. We can get the co-efficient by getting the cosine term which is the real part and the sine term which is the imaginary part. The formula of DF...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Nov, 2021" }, { "code": null, "e": 318, "s": 28, "text": "The Discrete Fourier Transform (DFT) generally varies from 0 to 360. There are basically N-sample DFT, where N is the number of samples. It ranges from n=0 to N-1. We can get ...
HTML | <video> controls Attribute
28 Jun, 2019 The HTML <video> controls Attribute is used to specify the control to play video. It is the Boolean value. This attribute is new in HTML5. The video control should include: Play Pause Volume Full-screen Mode Seeking Captions/Subtitles(if available) Track(if available) Syntax: <video controls> Example: <!DO...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2019" }, { "code": null, "e": 167, "s": 28, "text": "The HTML <video> controls Attribute is used to specify the control to play video. It is the Boolean value. This attribute is new in HTML5." }, { "code": null, "e":...
AIML - <set>, <get> Tags
<set> and <get> tags are used to work with variables in AIML. Variables can be predefined variables or programmer created variables. <set> tag is used to set value in a variable. <set name = "variable-name"> variable-value </set> <get> tag is used to get value from a variable. <get name = "variable-name"></get> For e...
[ { "code": null, "e": 1944, "s": 1811, "text": "<set> and <get> tags are used to work with variables in AIML. Variables can be predefined variables or programmer created variables." }, { "code": null, "e": 1990, "s": 1944, "text": "<set> tag is used to set value in a variable." ...
JavaScript Array Methods
The JavaScript method toString() converts an array to a string of (comma separated) array values. Result: The join() method also joins all array elements into a string. It behaves just like toString(), but in addition you can specify the separator: Result: When you work with arrays, it is easy to remove elements and a...
[ { "code": null, "e": 99, "s": 0, "text": "The JavaScript method toString() converts an array to a \nstring of (comma separated) array values." }, { "code": null, "e": 107, "s": 99, "text": "Result:" }, { "code": null, "e": 170, "s": 107, "text": "The join() me...
How to Specify the Path to save Newman report on Jenkins using Postman?
We can specify the path to save Newman's report on Jenkins. Jenkins reports are available in various formats and can be managed by appending flags in the build commands. Besides, we can mention the path of the directory where the reports shall get saved with the help of these build commands. The steps to specify the pa...
[ { "code": null, "e": 1355, "s": 1062, "text": "We can specify the path to save Newman's report on Jenkins. Jenkins reports are available in various formats and can be managed by appending flags in the build commands. Besides, we can mention the path of the directory where the reports shall get saved...
How to get selected option using Selenium WebDriver with Python?
We can obtain the option selected in a dropdown with Selenium webdriver. The first_selected_option method fetches the option selected in the dropdown. Once the option is returned we need to apply a text method to get option text. Let us consider the select dropdown Continents and fetch its selected item − from selenium...
[ { "code": null, "e": 1292, "s": 1062, "text": "We can obtain the option selected in a dropdown with Selenium webdriver. The first_selected_option method fetches the option selected in the dropdown. Once the option is returned we need to apply a text method to get option text." }, { "code": n...
Super Prime in c programming
A super-prime number is A number that occupies prime number position in the sequence of all prime numbers. also known as high order primes, These numbers occupy the position in the sequence of prime number which is equal to Prime number. some super prime numbers are 3,5,11,1 7... For Example let us Find all super prime...
[ { "code": null, "e": 1343, "s": 1062, "text": "A super-prime number is A number that occupies prime number position in the sequence of all prime numbers. also known as high order primes, These numbers occupy the position in the sequence of prime number which is equal to Prime number. some super prim...
CherryPy - Quick Guide
CherryPy is a web framework of Python which provides a friendly interface to the HTTP protocol for Python developers. It is also called a web application library. CherryPy uses Python’s strengths as a dynamic language to model and bind HTTP protocol into an API. It is one of the oldest web frameworks for Python, which ...
[ { "code": null, "e": 2048, "s": 1885, "text": "CherryPy is a web framework of Python which provides a friendly interface to the HTTP protocol for Python developers. It is also called a web application library." }, { "code": null, "e": 2253, "s": 2048, "text": "CherryPy uses Pytho...
The Birthday Paradox. How this counter-intuitive statistical... | by Richard Farnworth | Towards Data Science
If you have a group of people in a room, how many do you need to for it to be more likely than not, that two or more will have the same birthday? Theoretically, the chances of two people having the same birthday are 1 in 365 (not accounting for leap years and the uneven distribution of birthdays across the year), and s...
[ { "code": null, "e": 318, "s": 172, "text": "If you have a group of people in a room, how many do you need to for it to be more likely than not, that two or more will have the same birthday?" }, { "code": null, "e": 645, "s": 318, "text": "Theoretically, the chances of two people...
Support Vector Machine (SVM)
Support vector machines (SVMs) are powerful yet flexible supervised machine learning algorithms which are used both for classification and regression. But generally, they are used in classification problems. In 1960s, SVMs were first introduced but later they got refined in 1990. SVMs have their unique way of implement...
[ { "code": null, "e": 2797, "s": 2304, "text": "Support vector machines (SVMs) are powerful yet flexible supervised machine learning algorithms which are used both for classification and regression. But generally, they are used in classification problems. In 1960s, SVMs were first introduced but late...
How to get data from 2 different collections of mongoDB using Node.js ? - GeeksforGeeks
22 Jun, 2021 Mongoose is an Object Data Modeling (ODM) library for MongoDB. It defines a strongly-typed-schema, with default values and schema validations which are later mapped to a MongoDB document. For getting data from a collection with Mongoose in NodeJS you have to have two necessary things: Schema: It is a docum...
[ { "code": null, "e": 24557, "s": 24529, "text": "\n22 Jun, 2021" }, { "code": null, "e": 24745, "s": 24557, "text": "Mongoose is an Object Data Modeling (ODM) library for MongoDB. It defines a strongly-typed-schema, with default values and schema validations which are later mappe...
Table Variable in SQL Server
24 Sep, 2020 Table variable is a type of local variable that used to store data temporarily, similar to the temp table in SQL Server. Tempdb database is used to store table variables. To declare a table variable, start the DECLARE statement. The name of table variable must start with at(@) sign. The TABLE keyword defin...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Sep, 2020" }, { "code": null, "e": 199, "s": 28, "text": "Table variable is a type of local variable that used to store data temporarily, similar to the temp table in SQL Server. Tempdb database is used to store table variables." }...
Remove Trailing Zeros From string in C++
31 May, 2017 Given a string of digits, remove trailing zeros from it. Examples: Input : 00000123569 Output : 123569 Input : 000012356090 Output : 12356090 1) Count trailing zeros.2) Use string erase function to remove characters equal to above count. Below is C++ implementation. // C++ program to remove trailing/prec...
[ { "code": null, "e": 54, "s": 26, "text": "\n31 May, 2017" }, { "code": null, "e": 111, "s": 54, "text": "Given a string of digits, remove trailing zeros from it." }, { "code": null, "e": 121, "s": 111, "text": "Examples:" }, { "code": null, "e": 1...
GATE | GATE CS 2008 | Question 41
28 Jun, 2021 A B-tree of order 4 is built from scratch by 10 successive insertions. What is the maximum number of node splitting operations that may take place?(A) 3(B) 4(C) 5(D) 6Answer: (C)Explanation: Insertion of 3 keys 10 20 30 Insertion of 4th key (1st split) 30 / \ 10*20 40 Insertion of 5th key no...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2021" }, { "code": null, "e": 245, "s": 54, "text": "A B-tree of order 4 is built from scratch by 10 successive insertions. What is the maximum number of node splitting operations that may take place?(A) 3(B) 4(C) 5(D) 6Answer:...
How to get the path of current script in R ?
30 May, 2021 In this article, we will see how to determine the path of the current script in R Programming Language. If we want to check the current directory of the R script, we can use getwd( ) function. For getwd( ), no need to pass any parameters. If we run this function we will get the current working directory or...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 May, 2021" }, { "code": null, "e": 132, "s": 28, "text": "In this article, we will see how to determine the path of the current script in R Programming Language." }, { "code": null, "e": 490, "s": 132, "text": "If...
PHP Multidimensional Array.
A multidimensional array in PHP an be treated as an array of arrays so that each element within the array is an array itself. Inner elements of a multi dimensional array may be associative or indexed. Although arrays can be nested upto any levels, two dimensional array with more than one dimensional arrays inside outer...
[ { "code": null, "e": 1388, "s": 1187, "text": "A multidimensional array in PHP an be treated as an array of arrays so that each element within the array is an array itself. Inner elements of a multi dimensional array may be associative or indexed." }, { "code": null, "e": 1532, "s": ...
Python | Sort a list according to the second element in sublist
21 Nov, 2018 In this article, we will learn how to sort any list, according to the second element of the sublist present within the main list. We will see two methods of doing this. We will learn three methods of performing this sort. One by the use of Bubble Sort, second by using the sort() method and last but not the...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Nov, 2018" }, { "code": null, "e": 467, "s": 52, "text": "In this article, we will learn how to sort any list, according to the second element of the sublist present within the main list. We will see two methods of doing this. We wi...
TypeScript | String toString() Method
18 Jun, 2020 The toString() is an inbuilt function in TypeScript which is used to return a string representing the specified object. Syntax: string.toString( ) Parameter: This methods does not accept any parameter. Return Value: This method returns the string representing the specified object. Below examples illustra...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jun, 2020" }, { "code": null, "e": 148, "s": 28, "text": "The toString() is an inbuilt function in TypeScript which is used to return a string representing the specified object." }, { "code": null, "e": 157, "s": 148,...
Create the Mean and Standard Deviation of the Data of a Pandas Series
17 Aug, 2020 Standard Deviation is the square root of the Variance. The Standard Deviation denoted by sigma is a measure of the spread of numbers. In pandas, the std() function is used to find the standard Deviation of the series.The mean can be simply defined as the average of numbers. In pandas, the mean() function i...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Aug, 2020" }, { "code": null, "e": 374, "s": 28, "text": "Standard Deviation is the square root of the Variance. The Standard Deviation denoted by sigma is a measure of the spread of numbers. In pandas, the std() function is used to ...
Runge-Kutta 4th Order Method to Solve Differential Equation
09 Jun, 2022 Given following inputs, An ordinary differential equation that defines value of dy/dx in the form x and y. Initial value of y, i.e., y(0) Thus we are given below.The task is to find value of unknown function y at a given point x.The Runge-Kutta method finds approximate value of y for a given x. Only first...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Jun, 2022" }, { "code": null, "e": 79, "s": 54, "text": "Given following inputs, " }, { "code": null, "e": 162, "s": 79, "text": "An ordinary differential equation that defines value of dy/dx in the form x and y....
Comparing Maps in Golang
06 Nov, 2020 In Go language, a map is a powerful, ingenious, and versatile data structure. Golang Maps is a collection of unordered pairs of key-value. It is widely used because it provides fast lookups and values that can retrieve, update, or delete with the help of keys. In Go language, you are allowed to compare two...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Nov, 2020" }, { "code": null, "e": 519, "s": 52, "text": "In Go language, a map is a powerful, ingenious, and versatile data structure. Golang Maps is a collection of unordered pairs of key-value. It is widely used because it provid...
GATE | GATE-CS-2005 | Question 45
28 Jun, 2021 Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2 is undecidable. Which one of the following is TRUE?(A) P3 is decidable if P1 is reducible to P3(B) P3 is undecidable if P3 is reducible to P2(C) P3 is undecidable if P2 is reducible to P3(D) P3 is decidable if P3 is red...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2021" }, { "code": null, "e": 772, "s": 28, "text": "Consider three decision problems P1, P2 and P3. It is known that P1 is decidable and P2 is undecidable. Which one of the following is TRUE?(A) P3 is decidable if P1 is reducib...
turtle.left() method in Python
16 Jul, 2020 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. The turtle.left() method is used to change the direction of the turtle by the value of the...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jul, 2020" }, { "code": null, "e": 245, "s": 28, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ver...
Union of two arrays | Practice | GeeksforGeeks
Given two arrays a[] and b[] of size n and m respectively. The task is to find union between these two arrays. Union of the two arrays can be defined as the set containing distinct elements from both the arrays. If there are repetitions, then only one occurrence of element should be printed in the union. Example 1: In...
[ { "code": null, "e": 350, "s": 238, "text": "Given two arrays a[] and b[] of size n and m respectively. The task is to find union between these two arrays. " }, { "code": null, "e": 545, "s": 350, "text": "Union of the two arrays can be defined as the set containing distinct elem...
Sort an array according to the order defined by another array
23 Jun, 2022 Given two arrays A1[] and A2[], sort A1 in such a way that the relative order among the elements will be same as those are in A2. For the elements not present in A2, append them at last in sorted order. Example: Input: A1[] = {2, 1, 2, 5, 7, 1, 9, 3, 6, 8, 8} A2[] = {2, 1, 8, 3} Output: A1[] = {2,...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2022" }, { "code": null, "e": 258, "s": 54, "text": "Given two arrays A1[] and A2[], sort A1 in such a way that the relative order among the elements will be same as those are in A2. For the elements not present in A2, append t...
How to set the background color of a ttk.Combobox in tkinter?
Tkinter supports ttk widget which is used to change the style and properties of any widget in a tkinter application. We can set the background color, foreground color, and other attributes of the Combobox widget by visiting the configure function in ttk and passing 'TCombobox' as the first parameter. In this example, w...
[ { "code": null, "e": 1489, "s": 1187, "text": "Tkinter supports ttk widget which is used to change the style and properties of any widget in a tkinter application. We can set the background color, foreground color, and other attributes of the Combobox widget by visiting the configure function in ttk...
How to specify multiple forms the select field belongs to in HTML ? - GeeksforGeeks
22 Apr, 2021 The task is to specify multiple forms the select field belongs to. In simple wording, we have to find out which form the specific select belongs to. You can achieve this task by using the form attribute. select element – It is used to create a drop-down list in HTML. form element – It is used to create a f...
[ { "code": null, "e": 33003, "s": 32975, "text": "\n22 Apr, 2021" }, { "code": null, "e": 33207, "s": 33003, "text": "The task is to specify multiple forms the select field belongs to. In simple wording, we have to find out which form the specific select belongs to. You can achiev...
Java TreeSet Special Methods - GeeksforGeeks
25 Jan, 2022 TreeSet is one of the most important implementations of the SortedSet interface in Java that uses a Tree for storage. The TreeSet implements a NavigableSet interface by inheriting AbstractSet class. This means that the elements stored in a TreeSet are in an ordered way, i.e. in the ascending order. Because...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n25 Jan, 2022" }, { "code": null, "e": 25692, "s": 25225, "text": "TreeSet is one of the most important implementations of the SortedSet interface in Java that uses a Tree for storage. The TreeSet implements a NavigableSet interfa...
Comparison between Tarjan's and Kosaraju's Algorithm - GeeksforGeeks
30 Jun, 2021 Tarjan’s Algorithm: The Tarjan’s Algorithm is an efficient graph algorithm that is used to find the Strongly Connected Component(SCC) in a directed graph by using only one DFS traversal in linear time complexity. Working: Perform a DFS traversal over the nodes so that the sub-trees of the Strongly Connecte...
[ { "code": null, "e": 26509, "s": 26481, "text": "\n30 Jun, 2021" }, { "code": null, "e": 26722, "s": 26509, "text": "Tarjan’s Algorithm: The Tarjan’s Algorithm is an efficient graph algorithm that is used to find the Strongly Connected Component(SCC) in a directed graph by using ...
How to Add Labels in a Plot using Python? - GeeksforGeeks
20 Oct, 2021 Prerequisites: Python Matplotlib In this article, we will discuss adding labels to the plot using Matplotlib in Python. But first, understand what are labels in a plot. The heading or sub-heading written at the vertical axis (say Y-axis) and the horizontal axis(say X-axis) improves the quality of understa...
[ { "code": null, "e": 25563, "s": 25535, "text": "\n20 Oct, 2021" }, { "code": null, "e": 25597, "s": 25563, "text": "Prerequisites: Python Matplotlib " }, { "code": null, "e": 25894, "s": 25597, "text": "In this article, we will discuss adding labels to the pl...
Insert statement in MS SQL Server - GeeksforGeeks
05 Aug, 2020 A database contains of many tables which has data stored in an order. To add up the rows, the user needs to use insert statement. Syntax : insert into table_name(column_list) values(values_list) For better understanding, an example is given below. Example – A table named student must have values ins...
[ { "code": null, "e": 25137, "s": 25109, "text": "\n05 Aug, 2020" }, { "code": null, "e": 25269, "s": 25137, "text": "A database contains of many tables which has data stored in an order. To add up the rows, the user needs to use insert statement. " }, { "code": null, ...
How to limit a number between a min/max value in JavaScript ? - GeeksforGeeks
19 Feb, 2020 Given the HTML document. The task is, while taking input a number from the user via input element, verify that the number is in the specified range. If it is not then changing it to within the range. Here 2 approaches are discussed with the help of JavaScript.Approach 1: Take the input from the input eleme...
[ { "code": null, "e": 26101, "s": 26073, "text": "\n19 Feb, 2020" }, { "code": null, "e": 26373, "s": 26101, "text": "Given the HTML document. The task is, while taking input a number from the user via input element, verify that the number is in the specified range. If it is not t...
Python | Monitor hard-disk health using smartmontools - GeeksforGeeks
25 Jun, 2019 Smartmontools, an acronym for ‘S.M.A.R.T monitoring’ tools is a package that is used to control and monitor computer storage systems using S.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology) system built into most modern (P)ATA, Serial ATA, SCSI/SAS devices.It contains 2 utility programs: smart...
[ { "code": null, "e": 25653, "s": 25625, "text": "\n25 Jun, 2019" }, { "code": null, "e": 26205, "s": 25653, "text": "Smartmontools, an acronym for ‘S.M.A.R.T monitoring’ tools is a package that is used to control and monitor computer storage systems using S.M.A.R.T. (Self-Monitor...
HTML | Marquee direction attribute - GeeksforGeeks
17 Mar, 2022 The Marquee direction attribute in HTML is used to set the direction of scrolling. The default direction of scrolling is left. Possible values are up, down, left, right.Syntax: <marquee direction= up | down | left | right> Attribute Value up: It sets the direction to upward. down: It sets the direction...
[ { "code": null, "e": 25463, "s": 25435, "text": "\n17 Mar, 2022" }, { "code": null, "e": 25642, "s": 25463, "text": "The Marquee direction attribute in HTML is used to set the direction of scrolling. The default direction of scrolling is left. Possible values are up, down, left, ...
C# | Char.GetHashCode() Method with Examples - GeeksforGeeks
19 Dec, 2019 This method is used to return the hash code for this instance. Syntax: public override int GetHashCode (); Return Value: This method returns a 32-bit signed integer hash code. Below programs illustrate the use of Char.GetHashCode() Method: Example 1: // C# program to demonstrate// Char.GetHashCode() Method...
[ { "code": null, "e": 25277, "s": 25249, "text": "\n19 Dec, 2019" }, { "code": null, "e": 25340, "s": 25277, "text": "This method is used to return the hash code for this instance." }, { "code": null, "e": 25348, "s": 25340, "text": "Syntax:" }, { "code...