title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Fortran - Basic Input Output
We have so far seen that we can read data from keyboard using the read * statement, and display output to the screen using the print* statement, respectively. This form of input-output is free format I/O, and it is called list-directed input-output. The free format simple I/O has the form − read(*,*) item1, item2, item...
[ { "code": null, "e": 2396, "s": 2146, "text": "We have so far seen that we can read data from keyboard using the read * statement, and display output to the screen using the print* statement, respectively. This form of input-output is free format I/O, and it is called list-directed input-output." ...
Tryit Editor v3.6 - Show Sass
@mixin important-text { color: red; font-size: 25px; font-weight: bold; border: 1px solid blue; } .danger { @include important-text; background-color: green; } .danger { color: red; font-size: 25px; font-weight: bold; border: 1px solid blue; background-color: green; } <!DOCTYPE html> <html> <li...
[ { "code": null, "e": 174, "s": 0, "text": "\n@mixin important-text {\n color: red;\n font-size: 25px;\n font-weight: bold;\n border: 1px solid blue;\n}\n\n.danger {\n @include important-text;\n background-color: green;\n}" }, { "code": null, "e": 294, "s": 174, "text": "\n....
Comparator reverseOrder() method in Java with examples
29 Apr, 2019 The reverseOrder() method of Comparator Interface in Java returns a comparator that use to compare Comparable objects in reverse of natural order. The returned comparator by this method is serializable and throws NullPointerException when comparing null. Syntax: static <T extends Comparable<T>> Compar...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Apr, 2019" }, { "code": null, "e": 283, "s": 28, "text": "The reverseOrder() method of Comparator Interface in Java returns a comparator that use to compare Comparable objects in reverse of natural order. The returned comparator by t...
Number of ways to form an array with distinct adjacent elements
02 Jul, 2021 Given three integers N, M and X, the task is to find the number of ways to form an array, such that all consecutive numbers of the array are distinct, and the value at any index of the array from 2 to N – 1(Considering 1 based indexing) lies between 1 and M, while the value at index 1 is X and the value at...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Jul, 2021" }, { "code": null, "e": 424, "s": 52, "text": "Given three integers N, M and X, the task is to find the number of ways to form an array, such that all consecutive numbers of the array are distinct, and the value at any in...
Problems on Percentage
13 Jul, 2022 Question 1: Ram gets 55 % of total valid votes in an election. If the total votes were 9000, what is the number of valid votes that the other candidate Shyam gets if 30 % of the total votes were declared invalid? Solution: Total votes= 9000 Total valid votes=70 % of 9000 = 6300 Shyam gets 45 % of 6300 =(45...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jul, 2022" }, { "code": null, "e": 386, "s": 52, "text": "Question 1: Ram gets 55 % of total valid votes in an election. If the total votes were 9000, what is the number of valid votes that the other candidate Shyam gets if 30 % of ...
Given a string, find its first non-repeating character
23 Jun, 2022 Given a string, find the first non-repeating character in it. For example, if the input string is “GeeksforGeeks”, then the output should be ‘f’ and if the input string is “GeeksQuiz”, then the output should be ‘G’. Example: Input: "geeksforgeeks" Explanation: Step 1: Construct a character count array ...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 269, "s": 52, "text": "Given a string, find the first non-repeating character in it. For example, if the input string is “GeeksforGeeks”, then the output should be ‘f’ and if the input string is “G...
Create a database in MongoDB using Python
22 Apr, 2022 MongoDB is a general-purpose, document-based, distributed database built for modern application developers and the cloud. It is a document database, which means it stores data in JSON-like documents. This is an efficient way to think about data and is more expressive and powerful than the traditional table...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Apr, 2022" }, { "code": null, "e": 661, "s": 52, "text": "MongoDB is a general-purpose, document-based, distributed database built for modern application developers and the cloud. It is a document database, which means it stores dat...
Trim a String to a Specified Display Width in R Programming – strtrim() Function
12 Jun, 2020 strtrim() function in R Language is used to trim a string to a specified display width. Syntax: strtrim(x, width) Parameters:x: character vectorwidth: specified width Example 1: # R program to trim a string# to specified width # Creating a vectorx1 <- "GeeksforGeeks"x2 <- "R Programming" # Calling strtri...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jun, 2020" }, { "code": null, "e": 116, "s": 28, "text": "strtrim() function in R Language is used to trim a string to a specified display width." }, { "code": null, "e": 142, "s": 116, "text": "Syntax: strtrim(x,...
Python | os.path.isabs() method
26 Aug, 2019 OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. os.path module is sub module of OS module in Python used for common path name manipulati...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Aug, 2019" }, { "code": null, "e": 339, "s": 28, "text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usin...
How to create a Splash Screen using Tkinter? - GeeksforGeeks
12 Dec, 2021 Prerequisite: Python GUI – tkinter Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. A splash screen in tkinter is a tkinter windo...
[ { "code": null, "e": 24318, "s": 24290, "text": "\n12 Dec, 2021" }, { "code": null, "e": 24353, "s": 24318, "text": "Prerequisite: Python GUI – tkinter" }, { "code": null, "e": 24580, "s": 24353, "text": "Python offers multiple options for developing a GUI (Gr...
Emojis in Your Data 🤓. Everything you need to know about emoji... | by Jonathan Law | Towards Data Science
Let us face it, it is 2021 and emojis are inevitable. You see it everywhere from chats to product reviews, and in some cases usernames. Today we will be answering some questions: What are emojis How are emojis stored in a database How important is it to retain emojis in my dataset or database What’s next 🤷 Everyone kn...
[ { "code": null, "e": 350, "s": 171, "text": "Let us face it, it is 2021 and emojis are inevitable. You see it everywhere from chats to product reviews, and in some cases usernames. Today we will be answering some questions:" }, { "code": null, "e": 366, "s": 350, "text": "What ar...
C++ | new and delete | Question 1 - GeeksforGeeks
29 Jul, 2020 How to create a dynamic array of pointers (to integers) of size 10 using new in C++? Hint: We can create a non-dynamic array using int *arr[10](A) int *arr = new int *[10];(B) int **arr = new int *[10];(C) int *arr = new int [10];(D) Not PossibleAnswer: (B)Explanation: Dynamic array of pointer having size ...
[ { "code": null, "e": 24552, "s": 24524, "text": "\n29 Jul, 2020" }, { "code": null, "e": 24637, "s": 24552, "text": "How to create a dynamic array of pointers (to integers) of size 10 using new in C++?" }, { "code": null, "e": 24887, "s": 24637, "text": "Hint:...
Batch Script - If Statement
The first decision-making statement is the ‘if’ statement. The general form of this statement in Batch Script is as follows − if(condition) do_something The general working of this statement is that first a condition is evaluated in the ‘if’ statement. If the condition is true, it then executes the statements. The fol...
[ { "code": null, "e": 2295, "s": 2169, "text": "The first decision-making statement is the ‘if’ statement. The general form of this statement in Batch Script is as follows −" }, { "code": null, "e": 2323, "s": 2295, "text": "if(condition) do_something\n" }, { "code": null,...
Missing element of AP | Practice | GeeksforGeeks
Find the missing element from an ordered array arr[], consisting of N elements representing an Arithmetic Progression(AP). Note: There always exists an element which upon inserting into sequence forms Arithmetic progression. Example 1: Input: N = 6 Arr[] = {2, 4, 8, 10, 12, 14} Output: 6 Explanation: Actual AP should ...
[ { "code": null, "e": 361, "s": 238, "text": "Find the missing element from an ordered array arr[], consisting of N elements representing an Arithmetic Progression(AP)." }, { "code": null, "e": 475, "s": 361, "text": "Note: There always exists an element which upon inserting into ...
C# | Remove the element with the specified key from a SortedList - GeeksforGeeks
11 Oct, 2018 SortedList class is a collection of (key, value) pairs which are sorted according to keys. Those pairs can be accessible by key and as well as by index(zero-based indexing). This comes under System.Collections namespace. SortedList.Remove(Object) method is used to remove the element with the specified key ...
[ { "code": null, "e": 24717, "s": 24689, "text": "\n11 Oct, 2018" }, { "code": null, "e": 25050, "s": 24717, "text": "SortedList class is a collection of (key, value) pairs which are sorted according to keys. Those pairs can be accessible by key and as well as by index(zero-based ...
Natural Scene Recognition Using Deep Learning | by Shubham Gupta | Towards Data Science
Recognizing the environment in one glance is one of the human brain’s most accomplished deeds. While the tremendous recent progress in object recognition tasks originates from the availability of large datasets such as COCO and the rise of Convolution Neural Networks ( CNNs) to learn high-level features, scene recognit...
[ { "code": null, "e": 552, "s": 172, "text": "Recognizing the environment in one glance is one of the human brain’s most accomplished deeds. While the tremendous recent progress in object recognition tasks originates from the availability of large datasets such as COCO and the rise of Convolution Neu...
XOR Cipher - GeeksforGeeks
30 Jun, 2021 XOR Encryption is an encryption method used to encrypt data and is hard to crack by brute-force method, i.e generating random encryption keys to match with the correct one. Below is a simple implementation in C++. The concept of implementation is to first define XOR – encryption key and then to perform XO...
[ { "code": null, "e": 24260, "s": 24232, "text": "\n30 Jun, 2021" }, { "code": null, "e": 24434, "s": 24260, "text": "XOR Encryption is an encryption method used to encrypt data and is hard to crack by brute-force method, i.e generating random encryption keys to match with the cor...
Reverse every word of the string except the first and the last character - GeeksforGeeks
07 Feb, 2022 Given string str consisting of a sentence, the task is to reverse every word of the sentence except the first and last character of the words. Examples: Input: str = “geeks for geeks” Output: gkees for gkees Input: str = “this is a string” Output: this is a snirtg Approach: Break the string into words ...
[ { "code": null, "e": 24437, "s": 24409, "text": "\n07 Feb, 2022" }, { "code": null, "e": 24580, "s": 24437, "text": "Given string str consisting of a sentence, the task is to reverse every word of the sentence except the first and last character of the words." }, { "code"...
XPath Evaluator in Java - GeeksforGeeks
15 Oct, 2021 As we know XML document is used to store and transport data. So, to access data from XML, we need something which could access each node and respective attributes data. Then the solution is XPath. XPath can be used to traverse through XML documents, to select nodes/elements, and attribute data. It is a W3C...
[ { "code": null, "e": 23581, "s": 23553, "text": "\n15 Oct, 2021" }, { "code": null, "e": 24128, "s": 23581, "text": "As we know XML document is used to store and transport data. So, to access data from XML, we need something which could access each node and respective attributes ...
How to fill the missing values of an R data frame from the mean of columns?
Dealing with missing values is one of the initial steps in data analysis and it is also most difficult because we don’t fill the missing values with the appropriate method then the result of the whole analysis might become meaningless. Therefore, we must be very careful about dealing with missing values. Mostly for lea...
[ { "code": null, "e": 1606, "s": 1062, "text": "Dealing with missing values is one of the initial steps in data analysis and it is also most difficult because we don’t fill the missing values with the appropriate method then the result of the whole analysis might become meaningless. Therefore, we mus...
Download a Flask template ready to plug in your business logic | by Anirudh Lohia | Towards Data Science
Let’s assume after lots of hard work you have your machine learning model running the way it should. This model could be one which responds to a user’s request to classify a tweet sentiment or identify objects in an image or recommend a product or some other algorithm unique to your needs. You would now like to quickly...
[ { "code": null, "e": 619, "s": 172, "text": "Let’s assume after lots of hard work you have your machine learning model running the way it should. This model could be one which responds to a user’s request to classify a tweet sentiment or identify objects in an image or recommend a product or some ot...
C - Bit Fields
Suppose your C program contains a number of TRUE/FALSE variables grouped in a structure called status, as follows − struct { unsigned int widthValidated; unsigned int heightValidated; } status; This structure requires 8 bytes of memory space but in actual, we are going to store either 0 or 1 in each of the variab...
[ { "code": null, "e": 2200, "s": 2084, "text": "Suppose your C program contains a number of TRUE/FALSE variables grouped in a structure called status, as follows −" }, { "code": null, "e": 2284, "s": 2200, "text": "struct {\n unsigned int widthValidated;\n unsigned int heightV...
How to Use SQL Query to Rename a Constraint? - GeeksforGeeks
09 Nov, 2021 In SQL, we sometimes need to rename the constraints of a table. The whole process for doing the same is demonstrated below. For this article, we will be using the Microsoft SQL Server as our database. Step 1: Create a Database. For this use the below command to create a database named GeeksForGeeks. Query:...
[ { "code": null, "e": 23903, "s": 23875, "text": "\n09 Nov, 2021" }, { "code": null, "e": 24104, "s": 23903, "text": "In SQL, we sometimes need to rename the constraints of a table. The whole process for doing the same is demonstrated below. For this article, we will be using the ...
Merge two sets in Java
To merge two sets in Java, the code is as follows − Live Demo import java.util.stream.*; import java.util.*; import java.io.*; public class Demo{ public static <T> Set<T> set_merge(Set<T> set_1, Set<T> set_2){ Set<T> my_set = set_1.stream().collect(Collectors.toSet()); my_set.addAll(set_2); return...
[ { "code": null, "e": 1114, "s": 1062, "text": "To merge two sets in Java, the code is as follows −" }, { "code": null, "e": 1125, "s": 1114, "text": " Live Demo" }, { "code": null, "e": 1914, "s": 1125, "text": "import java.util.stream.*;\nimport java.util.*;\...
Preparing the data for Transformer pre-training — a write-up | by Steven van de Graaf | Towards Data Science
Introduced only a little over a year ago, the best-known incarnation of the Transformer model introduced by Vaswani et al. (2017), the Bidirectional Encoder Representations from Transformers (better known as BERT) model by Devlin et al. (2018) has since become hugely popular within the Natural Language Processing (NLP)...
[ { "code": null, "e": 735, "s": 171, "text": "Introduced only a little over a year ago, the best-known incarnation of the Transformer model introduced by Vaswani et al. (2017), the Bidirectional Encoder Representations from Transformers (better known as BERT) model by Devlin et al. (2018) has since b...
Count Inversions in an array | Set 1 (Using Merge Sort) - GeeksforGeeks
20 Apr, 2022 Inversion Count for an array indicates – how far (or close) the array is from being sorted. If the array is already sorted, then the inversion count is 0, but if the array is sorted in the reverse order, the inversion count is the maximum. Formally speaking, two elements a[i] and a[j] form an inversion if ...
[ { "code": null, "e": 34514, "s": 34486, "text": "\n20 Apr, 2022" }, { "code": null, "e": 34853, "s": 34514, "text": "Inversion Count for an array indicates – how far (or close) the array is from being sorted. If the array is already sorted, then the inversion count is 0, but if t...
MongoDB | ObjectID() Function - GeeksforGeeks
05 Jun, 2020 ObjectID() Function: MongoDB uses ObjectID to create unique identifiers for all the documents in the database. It is different than the traditional autoincrementing integer ID, but it comes with its own set of advantages. An ObjectID is a GUID (Globally Unique Identifier). GUIDs are generated randomly via ...
[ { "code": null, "e": 24695, "s": 24667, "text": "\n05 Jun, 2020" }, { "code": null, "e": 24917, "s": 24695, "text": "ObjectID() Function: MongoDB uses ObjectID to create unique identifiers for all the documents in the database. It is different than the traditional autoincrementin...
Find the element that appears once - GeeksforGeeks
04 Feb, 2022 Given an array where every element occurs three times, except one element which occurs only once. Find the element that occurs once. The expected time complexity is O(n) and O(1) extra space. Examples: Input: arr[] = {12, 1, 12, 3, 12, 1, 1, 2, 3, 3} Output: 2 In the given array all element appear three t...
[ { "code": null, "e": 34203, "s": 34175, "text": "\n04 Feb, 2022" }, { "code": null, "e": 34396, "s": 34203, "text": "Given an array where every element occurs three times, except one element which occurs only once. Find the element that occurs once. The expected time complexity i...
How to add super privileges to MySQL database?
Firstly, check the MySQL database with DESC command. mysql>DESC mysql.db; The following is the output. +-----------------------+---------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------------------+---------------+------+-----+---------+-------...
[ { "code": null, "e": 1115, "s": 1062, "text": "Firstly, check the MySQL database with DESC command." }, { "code": null, "e": 1136, "s": 1115, "text": "mysql>DESC mysql.db;" }, { "code": null, "e": 1165, "s": 1136, "text": "The following is the output." }, ...
Hibernate - Persistent Class
The entire concept of Hibernate is to take the values from Java class attributes and persist them to a database table. A mapping document helps Hibernate in determining how to pull the values from the classes and map them with table and associated fields. Java classes whose objects or instances will be stored in databa...
[ { "code": null, "e": 2319, "s": 2063, "text": "The entire concept of Hibernate is to take the values from Java class attributes and persist them to a database table. A mapping document helps Hibernate in determining how to pull the values from the classes and map them with table and associated field...
MariaDB - Quick Guide
A database application exists separate from the main application and stores data collections. Every database employs one or multiple APIs for the creation, access, management, search, and replication of the data it contains. Databases also use non-relational data sources such as objects or files. However, databases pro...
[ { "code": null, "e": 2587, "s": 2362, "text": "A database application exists separate from the main application and stores data collections. Every database employs one or multiple APIs for the creation, access, management, search, and replication of the data it contains." }, { "code": null, ...
How to automatically segment customers using purchase data and a few lines of Python | by Tristan Ganry | Towards Data Science
Why should you care about customer segmentation? To deliver personalized experiences to customers, segmentation is key. It can provide insights into your customers behavior, habits, and preferences, allowing you to offer tailored marketing campaigns increasing your odds of success as well as improving your customers ex...
[ { "code": null, "e": 524, "s": 172, "text": "Why should you care about customer segmentation? To deliver personalized experiences to customers, segmentation is key. It can provide insights into your customers behavior, habits, and preferences, allowing you to offer tailored marketing campaigns incre...
Add elements to a Queue using Javascript
Enqueuing elements to a Queue means adding them to the end of the array. We are taking the end of the container array to be the tail of the queue as we'll perform all insertions operations with respect to it. So we can implement the enqueue function as follows − enqueue(element) { // Check if Queue is full if (th...
[ { "code": null, "e": 1271, "s": 1062, "text": "Enqueuing elements to a Queue means adding them to the end of the array. We are taking the end of the container array to be the tail of the queue as we'll perform all insertions operations with respect to it." }, { "code": null, "e": 1325, ...
Gensim - Vector & Model
Here, we shall learn about the core concepts of Gensim, with main focus on the vector and the model. What if we want to infer the latent structure in our corpus? For this, we need to represent the documents in a such a way that we can manipulate the same mathematically. One popular kind of representation is to represen...
[ { "code": null, "e": 2153, "s": 2052, "text": "Here, we shall learn about the core concepts of Gensim, with main focus on the vector and the model." }, { "code": null, "e": 2517, "s": 2153, "text": "What if we want to infer the latent structure in our corpus? For this, we need to...
How to change Row Names of DataFrame in R ? - GeeksforGeeks
28 Apr, 2021 The rows are stacked together, each denoted by a unique name. By default, the integer identifiers beginning from 1 to the number of rows are assigned to the data frame by default. The task here is to change the Rows names in given dataframe using R programming. Dataset in use: A data frame’s rows can be ac...
[ { "code": null, "e": 24303, "s": 24275, "text": "\n28 Apr, 2021" }, { "code": null, "e": 24565, "s": 24303, "text": "The rows are stacked together, each denoted by a unique name. By default, the integer identifiers beginning from 1 to the number of rows are assigned to the data f...
Check if a directed graph is connected or not in C++
To check connectivity of a graph, we will try to traverse all nodes using any traversal algorithm. After completing the traversal, if there is any node, which is not visited, then the graph is not connected. For the directed graph, we will start traversing from all nodes to check connectivity. Sometimes one edge can ha...
[ { "code": null, "e": 1270, "s": 1062, "text": "To check connectivity of a graph, we will try to traverse all nodes using any traversal algorithm. After completing the traversal, if there is any node, which is not visited, then the graph is not connected." }, { "code": null, "e": 1484, ...
What are annotations in Java?
Annotations are a tag (metadata) which provides info about a program. Annotations in Java Start with the symbol ‘@’. They are used by the compiler to detect errors. Software tools to generate code. They are used to show attributes of an element: e.g. @Deprecated, @Override. Annotation are used to describe the purpose o...
[ { "code": null, "e": 1132, "s": 1062, "text": "Annotations are a tag (metadata) which provides info about a program." }, { "code": null, "e": 1179, "s": 1132, "text": "Annotations in Java Start with the symbol ‘@’." }, { "code": null, "e": 1227, "s": 1179, "te...
Bootstrap 4 - Pagination
Pagination is used to divide the related content across multiple pages. The basic pagination can be created by using .pagination class to an <ul> element. The following example demonstrates this − <html lang = "en"> <head> <!-- Meta tags --> <meta charset = "utf-8"> <meta name = "viewport" content ...
[ { "code": null, "e": 1971, "s": 1816, "text": "Pagination is used to divide the related content across multiple pages. The basic pagination can be created by using .pagination class to an <ul> element." }, { "code": null, "e": 2013, "s": 1971, "text": "The following example demon...
How do we send an email using HTML forms?
To send an email using HTML forms, you need to add the email id to the action attribute of the form. In that, add email proceeding with mailto: i.e. mailto:emailid@example.com. You can try to run the following code to send an email using HTML forms − Live Demo <!DOCTYPE html> <html> <body> <h2>Student Contact ...
[ { "code": null, "e": 1239, "s": 1062, "text": "To send an email using HTML forms, you need to add the email id to the action attribute of the form. In that, add email proceeding with mailto: i.e. mailto:emailid@example.com." }, { "code": null, "e": 1313, "s": 1239, "text": "You c...
C++ Program For Counting Inversions In An Array - Set 1 (Using Merge Sort) - GeeksforGeeks
13 Dec, 2021 Inversion Count for an array indicates – how far (or close) the array is from being sorted. If the array is already sorted, then the inversion count is 0, but if the array is sorted in the reverse order, the inversion count is the maximum. Formally speaking, two elements a[i] and a[j] form an inversion if ...
[ { "code": null, "e": 24716, "s": 24688, "text": "\n13 Dec, 2021" }, { "code": null, "e": 25055, "s": 24716, "text": "Inversion Count for an array indicates – how far (or close) the array is from being sorted. If the array is already sorted, then the inversion count is 0, but if t...
Multithreading in Python | Set 1
15 Dec, 2021 This article covers the basics of multithreading in Python programming language. Just like multiprocessing, multithreading is a way of achieving multitasking. In multithreading, the concept of threads is used. Let us first understand the concept of thread in computer architecture. Thread In computing, a pr...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Dec, 2021" }, { "code": null, "e": 262, "s": 52, "text": "This article covers the basics of multithreading in Python programming language. Just like multiprocessing, multithreading is a way of achieving multitasking. In multithreadi...
D E Shaw Interview | Set 1
28 Jul, 2021 Total 3 rounds. 1st written followed by 2 face to face and every round was ELIMINATION one. Round 1(Written – 1hr): 3 sections. 20 min each. section 1: 20 aptitude questions and was really hard. Avg no of questions solved is 4. section 2: 20 (C++ & Java) oops related questions and other output questions...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jul, 2021" }, { "code": null, "e": 147, "s": 54, "text": "Total 3 rounds. 1st written followed by 2 face to face and every round was ELIMINATION one. " }, { "code": null, "e": 197, "s": 147, "text": "Round 1(Writ...
is keyword in Python
26 Mar, 2020 In programming, a keyword is a “reserved word” by the language which conveys special meaning to the interpreter. It may be a command or a parameter. Keywords cannot be used as a variable name in the program snippet. Python language also reserves some of the keywords that convey special meaning. In Python, ...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Mar, 2020" }, { "code": null, "e": 390, "s": 54, "text": "In programming, a keyword is a “reserved word” by the language which conveys special meaning to the interpreter. It may be a command or a parameter. Keywords cannot be used a...
ISRO | ISRO CS 2017 | Question 78
15 Mar, 2018 Consider the results of a medical experiment that aims to predict whether someone is going to develop myopia based on some physical measurements and heredity. In this case, the input dataset consists of the person’s medical characteristics and the target variable is binary: 1 for those who are likely to de...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Mar, 2018" }, { "code": null, "e": 1190, "s": 28, "text": "Consider the results of a medical experiment that aims to predict whether someone is going to develop myopia based on some physical measurements and heredity. In this case, t...
Sort elements by frequency | Set 4 (Efficient approach using hash)
08 Jul, 2022 Print the elements of an array in the decreasing frequency if 2 numbers have the same frequency then print the one which came first.Examples: Input : arr[] = {2, 5, 2, 8, 5, 6, 8, 8} Output : arr[] = {8, 8, 8, 2, 2, 5, 5, 6} Input : arr[] = {2, 5, 2, 6, -1, 9999999, 5, 8, 8, 8} Output : arr[] = {8, 8, 8...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jul, 2022" }, { "code": null, "e": 196, "s": 52, "text": "Print the elements of an array in the decreasing frequency if 2 numbers have the same frequency then print the one which came first.Examples: " }, { "code": null, ...
How to change selection background color of a canvas circle using Fabric.js ?
12 May, 2020 In this article, we are going to see how to change the selection background color of a canvas circle using FabricJS. The canvas means the circle is movable and can be stretched according to requirement. Further, the circle can be customized when it comes to initial stroke color, fill color, stroke width or...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 May, 2020" }, { "code": null, "e": 344, "s": 28, "text": "In this article, we are going to see how to change the selection background color of a canvas circle using FabricJS. The canvas means the circle is movable and can be stretche...
Count the total number of squares that can be visited by Bishop in one move
23 Jun, 2022 Given the position of a Bishop on an 8 * 8 chessboard, the task is to count the total number of squares that can be visited by the Bishop in one move. The position of the Bishop is denoted using row and column number of the chessboard. Examples: Input: Row = 4, Column = 4 Output: 13Input: Row = 1, Column...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 300, "s": 52, "text": "Given the position of a Bishop on an 8 * 8 chessboard, the task is to count the total number of squares that can be visited by the Bishop in one move. The position of the Bis...
Print Ancestors of a given node in Binary Tree
17 Jun, 2022 Given a Binary Tree and a key, write a function that prints all the ancestors of the key in the given binary tree. For example, if the given tree is following Binary Tree and key is 7, then your function should print 4, 2 and 1. 1 / \ 2 3 / \ 4 ...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Jun, 2022" }, { "code": null, "e": 170, "s": 54, "text": "Given a Binary Tree and a key, write a function that prints all the ancestors of the key in the given binary tree. " }, { "code": null, "e": 285, "s": 170, ...
C# | Removing all the elements from the List
01 Feb, 2019 List class represents the list of objects which can be accessed by index. It comes under the System.Collection.Generic namespace. List class can be used to create a collection of different types like integers, strings etc. List class also provides the methods to search, sort, and manipulate lists. List.Cle...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Feb, 2019" }, { "code": null, "e": 396, "s": 28, "text": "List class represents the list of objects which can be accessed by index. It comes under the System.Collection.Generic namespace. List class can be used to create a collection...
Iterative Postorder Traversal of N-ary Tree
21 Jun, 2022 Given an N-ary tree, the task is to find the post-order traversal of the given tree iteratively.Examples: Input: 1 / | \ 3 2 4 / \ 5 6 Output: [5, 6, 3, 2, 4, 1] Input: 1 / \ 2 3 Output: [2, 3, 1] Approach:We have already discussed iterative post-order traversal of binary tree us...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Jun, 2022" }, { "code": null, "e": 161, "s": 54, "text": "Given an N-ary tree, the task is to find the post-order traversal of the given tree iteratively.Examples: " }, { "code": null, "e": 276, "s": 161, "text":...
Perl | Removing leading and trailing white spaces (trim)
05 Jun, 2020 Removing unwanted spaces from a string can be used to store only the required data and to remove the unnecessary trailing spaces. This can be done using the trim function in Perl. The trim function uses a regular expression to remove white spaces. It is not a library function but defined by the user whenev...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2020" }, { "code": null, "e": 381, "s": 28, "text": "Removing unwanted spaces from a string can be used to store only the required data and to remove the unnecessary trailing spaces. This can be done using the trim function in P...
Socket Programming in C/C++
08 Jul, 2022 What is socket programming?Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular port at an IP, while the other socket reaches out to the other to form a connection. The server forms the listener socket while the client rea...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jul, 2022" }, { "code": null, "e": 385, "s": 54, "text": "What is socket programming?Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular port at a...
Prime numbers after prime P with sum S
06 May, 2021 Given three numbers sum S, prime P, and N, find all N prime numbers after prime P such that their sum is equal to S.Examples : Input : N = 2, P = 7, S = 28 Output : 11 17 Explanation : 11 and 17 are primes after prime 7 and (11 + 17 = 28) Input : N = 3, P = 2, S = 23 Output : 3 7 13 5 7 11...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 May, 2021" }, { "code": null, "e": 183, "s": 54, "text": "Given three numbers sum S, prime P, and N, find all N prime numbers after prime P such that their sum is equal to S.Examples : " }, { "code": null, "e": 670, ...
Time class in Java SQL
26 Oct, 2018 Time class is a part of Java SQL package.This class is a thin wrapper around java.util.Date that allows JDBC API to identify this as a SQL TIME value. The initial value of time is set to 1st January, 1970. All values of time after that is positive and time before that is negative. Class Hierarchy: java.lan...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Oct, 2018" }, { "code": null, "e": 310, "s": 28, "text": "Time class is a part of Java SQL package.This class is a thin wrapper around java.util.Date that allows JDBC API to identify this as a SQL TIME value. The initial value of tim...
Python | Form validation using django
20 Jan, 2022 Prerequisites: Django Installation | Introduction to DjangoDjango works on an MVT pattern. So there is a need to create data models (or tables). For every table, a model class is created. Suppose there is a form that takes Username, gender, and text as input from the user, the task is to validate the data ...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Jan, 2022" }, { "code": null, "e": 412, "s": 52, "text": "Prerequisites: Django Installation | Introduction to DjangoDjango works on an MVT pattern. So there is a need to create data models (or tables). For every table, a model clas...
Return Value from R Function
12 May, 2022 In this article, we will discuss how to return value from a function in R Programming Language. In this scenario, we will use the return statement to return some value Syntax: function_name <- function(parameters) { statements return(value) } function_name(values) Where, function_name is the name of...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 May, 2022" }, { "code": null, "e": 124, "s": 28, "text": "In this article, we will discuss how to return value from a function in R Programming Language." }, { "code": null, "e": 196, "s": 124, "text": "In this sc...
How to Move Image in HTML ?
24 Jun, 2021 You can easily move images in HTML using <marquee> tag. It is used to create scrolling images either from horizontally left to right or right to left, or vertically top to bottom or bottom to top. By default, image found within the <marquee> tag will scroll from right to left. Syntax: <marquee> <img src...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Jun, 2021" }, { "code": null, "e": 332, "s": 54, "text": "You can easily move images in HTML using <marquee> tag. It is used to create scrolling images either from horizontally left to right or right to left, or vertically top to bo...
What is method hiding in Java and how to use it?
When super class and sub class contains same method including parameters and if they are static. The method in the super class will be hidden by the one that is in the sub class. This mechanism is known as method hiding. Live Demo class Demo{ public static void demoMethod() { System.out.println("method of su...
[ { "code": null, "e": 1285, "s": 1187, "text": "When super class and sub class contains same method including parameters and if they are static.\n" }, { "code": null, "e": 1409, "s": 1285, "text": "The method in the super class will be hidden by the one that is in the sub class. T...
MultiThreading in Android with Examples
01 Aug, 2020 Working on multiple tasks at the same time is Multitasking. In the same way, multiple threads running at the same time in a machine is called Multi-Threading. Technically, a thread is a unit of a process. Multiple such threads combine to form a process. This means when a process is broken, the equivalent n...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Aug, 2020" }, { "code": null, "e": 604, "s": 28, "text": "Working on multiple tasks at the same time is Multitasking. In the same way, multiple threads running at the same time in a machine is called Multi-Threading. Technically, a t...
CSS cursor Property
11 Oct, 2021 The cursor property is used to specify the mouse cursor to be displayed while pointing on an element. This property is defined with zero or more <url> values that are separated by commas followed by 1 keyword value as mandatory & each <url> will point to the image file. Syntax: cursor: value; Property Va...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Oct, 2021" }, { "code": null, "e": 299, "s": 28, "text": "The cursor property is used to specify the mouse cursor to be displayed while pointing on an element. This property is defined with zero or more <url> values that are separate...
How to set background-image for the body element using CSS ?
23 Dec, 2020 In this article, we set the image into the background using CSS property. The background-image property is used to set one or more background images to an element. By default, it places the image on the top left corner. To specify two or more images, separate the URLs with a comma. Syntax: background-image...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Dec, 2020" }, { "code": null, "e": 311, "s": 28, "text": "In this article, we set the image into the background using CSS property. The background-image property is used to set one or more background images to an element. By default,...
How to begin with Competitive Programming? - GeeksforGeeks
11 May, 2022 At the very beginning to competitive programming, barely anyone knows the coding style to be followed. Below is an example to help you understand how problems are crafted in competitive programming. Let us consider below problem statement as an example. Problem Statement: Linear Search: Given an integer...
[ { "code": null, "e": 26251, "s": 26223, "text": "\n11 May, 2022" }, { "code": null, "e": 26451, "s": 26251, "text": "At the very beginning to competitive programming, barely anyone knows the coding style to be followed. Below is an example to help you understand how problems are ...
Convert List to Set in Java - GeeksforGeeks
11 Dec, 2018 Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can accommodate only one null element. Few important features of Java Set interface are as follows: The set interface is an unordered collection of objects in which...
[ { "code": null, "e": 25515, "s": 25487, "text": "\n11 Dec, 2018" }, { "code": null, "e": 25758, "s": 25515, "text": "Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can accommodate only...
Check if a point is inside, outside or on the parabola - GeeksforGeeks
15 Mar, 2021 Given a parabola with vertex (h, k), and , the distance between focus and vertex. The task is to determine if the point (x, y) is inside, outside or on the parabola.Examples: Input: h = 100, k = 500, x = 20, y = 10, a = 4 Output: Outside Input: h = 0, k = 0, x = 2, y = 1, a = 4 Output: Inside Appro...
[ { "code": null, "e": 26561, "s": 26533, "text": "\n15 Mar, 2021" }, { "code": null, "e": 26738, "s": 26561, "text": "Given a parabola with vertex (h, k), and , the distance between focus and vertex. The task is to determine if the point (x, y) is inside, outside or on the parabol...
Implementation of Tic-Tac-Toe game - GeeksforGeeks
08 Feb, 2018 Rules of the Game The game is to be played between two people (in this program between HUMAN and COMPUTER). One of the player chooses ‘O’ and the other ‘X’ to mark their respective cells. The game starts with one of the players and the game ends when one of the players has one whole row/ column/ diagonal f...
[ { "code": null, "e": 26459, "s": 26431, "text": "\n08 Feb, 2018" }, { "code": null, "e": 26477, "s": 26459, "text": "Rules of the Game" }, { "code": null, "e": 26567, "s": 26477, "text": "The game is to be played between two people (in this program between HUM...
Introduction to Altair in Python - GeeksforGeeks
12 Nov, 2020 Altair is a statistical visualization library in Python. It is a declarative in nature and is based on Vega and Vega-Lite visualization grammars. It is fast becoming the first choice of people looking for a quick and efficient way to visualize datasets. If you have used imperative visualization libraries l...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n12 Nov, 2020" }, { "code": null, "e": 25927, "s": 25537, "text": "Altair is a statistical visualization library in Python. It is a declarative in nature and is based on Vega and Vega-Lite visualization grammars. It is fast becomi...
Print all Possible Decodings of a given Digit Sequence - GeeksforGeeks
06 Oct, 2021 Given the numeric string str, where 1 represents ‘a’, 2 represents ‘b’, ..., 26 represents ‘z’, the task is to print all possible alphabetical strings that can be obtained from str. Examples: Input: str = “1123” Output: aabc kbc alc aaw kw Explanation: The given string can be splitted as: 1) “1123” = “1”...
[ { "code": null, "e": 26337, "s": 26309, "text": "\n06 Oct, 2021" }, { "code": null, "e": 26519, "s": 26337, "text": "Given the numeric string str, where 1 represents ‘a’, 2 represents ‘b’, ..., 26 represents ‘z’, the task is to print all possible alphabetical strings that can be ...
Create a tree in level order - GeeksforGeeks
08 Feb, 2022 Given an array of elements, the task is to insert these elements in level order and construct a tree. Input : arr[] = {10, 20, 30, 40, 50, 60} Output : 10 / \ 20 30 / \ / 40 50 60 The task is to construct a whole tree from a given...
[ { "code": null, "e": 26184, "s": 26156, "text": "\n08 Feb, 2022" }, { "code": null, "e": 26286, "s": 26184, "text": "Given an array of elements, the task is to insert these elements in level order and construct a tree." }, { "code": null, "e": 26441, "s": 26286, ...
Downloading files from web using Python - GeeksforGeeks
19 Nov, 2020 Requests is a versatile HTTP library in python with various applications. One of its applications is to download a file from web using the file URL.Installation: First of all, you would need to download the requests library. You can directly install it using pip by typing following command: pip install req...
[ { "code": null, "e": 26385, "s": 26357, "text": "\n19 Nov, 2020" }, { "code": null, "e": 26677, "s": 26385, "text": "Requests is a versatile HTTP library in python with various applications. One of its applications is to download a file from web using the file URL.Installation: F...
Program to print V and inverted-V pattern - GeeksforGeeks
25 May, 2021 Inverted V pattern: Given the value of n, print the inverted V pattern.Examples : Input : n = 5 Output : E D D C C B B A A Input : n = 7 Output : G F F E E D D C C B B A A Below is the program to print the above pattern C++...
[ { "code": null, "e": 25465, "s": 25437, "text": "\n25 May, 2021" }, { "code": null, "e": 25549, "s": 25465, "text": "Inverted V pattern: Given the value of n, print the inverted V pattern.Examples : " }, { "code": null, "e": 25717, "s": 25549, "text": "Input ...
Python | File chooser in kivy - GeeksforGeeks
09 Sep, 2021 Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux, and Windows, etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications. Kivy Tutorial – Learn Kivy with Examples. The FileChooser module prov...
[ { "code": null, "e": 25529, "s": 25501, "text": "\n09 Sep, 2021" }, { "code": null, "e": 25767, "s": 25529, "text": "Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux, and Windows, etc. It is basically used to develop the Android applicati...
CSS :hover Selector - GeeksforGeeks
01 Nov, 2021 The :hover selector CSS pseudo-class is used to style elements when the mouse hovers over them. It can be used on every element. We can style the links for unvisited pages using the :link selector, for styling the links to visited pages, use the :visited selector & for styling the active link, use the :act...
[ { "code": null, "e": 29316, "s": 29288, "text": "\n01 Nov, 2021" }, { "code": null, "e": 29445, "s": 29316, "text": "The :hover selector CSS pseudo-class is used to style elements when the mouse hovers over them. It can be used on every element." }, { "code": null, "e...
C Program to concatenate two strings without using strcat - GeeksforGeeks
16 Oct, 2019 Given two strings str1 and str2, the task is to write a C Program to concatenate these two strings without using the strcat() function Examples: Input: str1 = "hello", str2 = "world" Output: helloworld Input: str1 = "Geeks", str2 = "World" Output: GeeksWorld Approach: Get the two Strings to be concatenat...
[ { "code": null, "e": 26003, "s": 25975, "text": "\n16 Oct, 2019" }, { "code": null, "e": 26138, "s": 26003, "text": "Given two strings str1 and str2, the task is to write a C Program to concatenate these two strings without using the strcat() function" }, { "code": null, ...
Python | Pandas dataframe.rolling() - GeeksforGeeks
21 Feb, 2022 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages which makes importing and analyzing data much easier.Pandas dataframe.rolling() function provides the feature of rolling window calculations. The...
[ { "code": null, "e": 26115, "s": 26087, "text": "\n21 Feb, 2022" }, { "code": null, "e": 26762, "s": 26115, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages w...
Aliquot Sequence - GeeksforGeeks
11 Nov, 2019 Given a number n, the task is to print its Aliquot Sequence. Aliquot Sequence of a number starts with itself, remaining terms of the sequence are sum of proper divisors of immediate previous term. For example, Aliquot Sequence for 10 is 10, 8, 7, 1, 0. The sequence may repeat. For example, for 6, we have a...
[ { "code": null, "e": 24860, "s": 24832, "text": "\n11 Nov, 2019" }, { "code": null, "e": 25252, "s": 24860, "text": "Given a number n, the task is to print its Aliquot Sequence. Aliquot Sequence of a number starts with itself, remaining terms of the sequence are sum of proper div...
Writing a multi-file-upload Python-web app with user authentication | by Daniel Ellis | Towards Data Science
When building a webserver we often wish to present an idea or topic. In the case of a static website, this can be done by including the relevant information within the source files. In more dynamic examples, an API (application programming interface) can be used to pre-process information before returning it to the use...
[ { "code": null, "e": 495, "s": 172, "text": "When building a webserver we often wish to present an idea or topic. In the case of a static website, this can be done by including the relevant information within the source files. In more dynamic examples, an API (application programming interface) can ...
How to correctly use delimiter in a MySQL stored procedure and insert values?
Let us first create a table − mysql> create table DemoTable2028 -> ( -> StudentFirstName varchar(20), -> StudentLastName varchar(20) -> ); Query OK, 0 rows affected (0.87 sec) Here is the query to create a stored procedure and insert values (using delimiter correctly) − mysql> delimiter // mysql> create pro...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first create a table −" }, { "code": null, "e": 1250, "s": 1092, "text": "mysql> create table DemoTable2028\n -> (\n -> StudentFirstName varchar(20),\n -> StudentLastName varchar(20)\n -> );\nQuery OK, 0 rows affected ...
Different Ways to Print First K Characters of the String in Java - GeeksforGeeks
30 Aug, 2020 Given a string str and a positive integer k, the task is to write a Java program to print the first k characters of the string. If the length of the string is less than k then print the string as it is. Examples: Input: str = “GeeksForGeeks”, k = 5 Output: Geeks Explanation: The first k characters of the g...
[ { "code": null, "e": 25112, "s": 25084, "text": "\n30 Aug, 2020" }, { "code": null, "e": 25315, "s": 25112, "text": "Given a string str and a positive integer k, the task is to write a Java program to print the first k characters of the string. If the length of the string is less...
Feature Engineering on Time-Series Data for Human Activity Recognition | by Pratik Nabriya | Towards Data Science
While exploring the area of human activity recognition out of research interest, I came across several publications, research-articles and blogs. The researchers have done phenomenal work in this area and achieved state-of-the-art (SOTA) results by using some sophisticated machine learning algorithms. But most of these...
[ { "code": null, "e": 660, "s": 172, "text": "While exploring the area of human activity recognition out of research interest, I came across several publications, research-articles and blogs. The researchers have done phenomenal work in this area and achieved state-of-the-art (SOTA) results by using ...
Python Design Patterns - Adapter
Adapter pattern works as a bridge between two incompatible interfaces. This type of design pattern comes under structural pattern as this pattern combines the capability of two independent interfaces. This pattern involves a single class, which is responsible to join functionalities of independent or incompatible inter...
[ { "code": null, "e": 2680, "s": 2479, "text": "Adapter pattern works as a bridge between two incompatible interfaces. This type of design pattern comes under structural pattern as this pattern combines the capability of two independent interfaces." }, { "code": null, "e": 3054, "s": ...
JavaScript array.includes() function
The array.includes() method of JavaScript is used to check whether an array contains a specified element. The syntax is as follows − array.includes(ele, start) Above, the parameter ele is the element to search for. The start parameter is the position to begin the search with. Let us now implement the array.includes() m...
[ { "code": null, "e": 1168, "s": 1062, "text": "The array.includes() method of JavaScript is used to check whether an array contains a specified element." }, { "code": null, "e": 1195, "s": 1168, "text": "The syntax is as follows −" }, { "code": null, "e": 1222, "s...
An Easy Introduction to SQL for Data Scientists | by George Seif | Towards Data Science
Want to be inspired? Come join my Super Quotes newsletter. 😎 SQL (Structured Query Language) is a standardised programming language designed for data storage and management. It allows one to create, parse, and manipulate data fast and easy. With the AI-hype of recent years, technology companies serving all kinds of in...
[ { "code": null, "e": 233, "s": 172, "text": "Want to be inspired? Come join my Super Quotes newsletter. 😎" }, { "code": null, "e": 413, "s": 233, "text": "SQL (Structured Query Language) is a standardised programming language designed for data storage and management. It allows o...
EfficientNet: Scaling of Convolutional Neural Networks done right | by Armughan Shahid | Towards Data Science
Ever since Alex net won the 2012 ImageNet Challenge, Convolutional Neural Networks have become ubiquitous in the world of Computer Vision. They have even found their applications in natural language processing, with state of the art models using convolution operations to retain context and provide better predictions. H...
[ { "code": null, "e": 671, "s": 172, "text": "Ever since Alex net won the 2012 ImageNet Challenge, Convolutional Neural Networks have become ubiquitous in the world of Computer Vision. They have even found their applications in natural language processing, with state of the art models using convoluti...
Java Concurrency - Quick Guide
Java is a multi-threaded programming language which means we can develop multi-threaded program using Java. A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making optimal use of the available resources specially when your computer ...
[ { "code": null, "e": 2996, "s": 2657, "text": "Java is a multi-threaded programming language which means we can develop multi-threaded program using Java. A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making o...
Gradle - Deployment
Gradle offers several ways to deploy build artifacts repositories. When deploying signatures for your artifacts to a Maven repository, you will also want to sign the published POM file. By default, maven-publish plugin is provided by Gradle. It is used to publish the gradle script. Take a look into the following code. ...
[ { "code": null, "e": 2068, "s": 1882, "text": "Gradle offers several ways to deploy build artifacts repositories. When deploying signatures for your artifacts to a Maven repository, you will also want to sign the published POM file." }, { "code": null, "e": 2202, "s": 2068, "text...
What is the difference between prefix and postfix operators in C++?
In the prefix version (i.e., ++i), the value of i is incremented, and the value of the expression is the new value of i. So basically it first increments then assigns a value to the expression. In the postfix version (i.e., i++), the value of i is incremented, however, the {value|the worth} of the expression is that t...
[ { "code": null, "e": 1256, "s": 1062, "text": "In the prefix version (i.e., ++i), the value of i is incremented, and the value of the expression is the new value of i. So basically it first increments then assigns a value to the expression." }, { "code": null, "e": 1492, "s": 1256, ...
H2 Database - Update
The UPDATE query is used to update or modify the existing records in a table. We can use WHERE clause with UPDATE query to update the selected rows, otherwise all the rows would be affected. Following is the basic syntax of the UPDATE query. UPDATE tableName [ [ AS ] newTableAlias ] SET { { columnName = { DEFAULT | ex...
[ { "code": null, "e": 2298, "s": 2107, "text": "The UPDATE query is used to update or modify the existing records in a table. We can use WHERE clause with UPDATE query to update the selected rows, otherwise all the rows would be affected." }, { "code": null, "e": 2349, "s": 2298, ...
ZigZag Tree Traversal | Practice | GeeksforGeeks
Given a Binary Tree. Find the Zig-Zag Level Order Traversal of the Binary Tree. Example 1: Input: 3 / \ 2 1 Output: 3 1 2 Example 2: Input: 7 / \ 9 7 / \ / 8 8 6 / \ 10 9 Output: 7 7 9 8 8 6 9 10 Your Task: You don't ...
[ { "code": null, "e": 318, "s": 238, "text": "Given a Binary Tree. Find the Zig-Zag Level Order Traversal of the Binary Tree." }, { "code": null, "e": 331, "s": 320, "text": "Example 1:" }, { "code": null, "e": 388, "s": 331, "text": "Input:\n 3\n /...
Everything about dictionaries in Python | Nouman | Towards Data Science
Dictionaries in Python, or hash tables in other programming languages, are one of the most efficient data structures for storing and retrieving values. They store each value against a key making a key-value pair. In this article, we will be learning everything that one should know about dictionaries to get started in P...
[ { "code": null, "e": 499, "s": 172, "text": "Dictionaries in Python, or hash tables in other programming languages, are one of the most efficient data structures for storing and retrieving values. They store each value against a key making a key-value pair. In this article, we will be learning every...
Understanding Learning Rates and How It Improves Performance in Deep Learning | by Hafidz Zulkifli | Towards Data Science
This post is an attempt to document my understanding on the following topic: What is the learning rate? What is it’s significance? How does one systematically arrive at a good learning rate? Why do we change the learning rate during training? How do we deal with learning rates when using pretrained model? Much of this ...
[ { "code": null, "e": 249, "s": 172, "text": "This post is an attempt to document my understanding on the following topic:" }, { "code": null, "e": 303, "s": 249, "text": "What is the learning rate? What is it’s significance?" }, { "code": null, "e": 363, "s": 303,...
Add a light grey background color to the Bootstrap 4 card
To add a light grey background color to a card in Bootstrap, use the bg-light contextual class with the card class. To set light grey background, add it to the <div> class − <div class="card bg-light text-dark"> <div class="card-body">Reduce size of images</div> </div> You can try to run the following code to add lig...
[ { "code": null, "e": 1178, "s": 1062, "text": "To add a light grey background color to a card in Bootstrap, use the bg-light contextual class with the card class." }, { "code": null, "e": 1236, "s": 1178, "text": "To set light grey background, add it to the <div> class −" }, ...
Python List Data Structure In Depth - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws In Python, If we want to represent a group of...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
How to Change or Set System Locales in Linux
We often need to customise the operating system to become useful to our own preferences like the language we want to use the time zone we are in the type of currency which would become the default currency in the OS etc. In this article we will see how to customise these options which is known as locale. We can check t...
[ { "code": null, "e": 1368, "s": 1062, "text": "We often need to customise the operating system to become useful to our own preferences like the language we want to use the time zone we are in the type of currency which would become the default currency in the OS etc. In this article we will see how ...
Quadrant Analysis in Tableau. Learn how to analyze data in the form... | by Parul Pandey | Towards Data Science
If you are a part of the Data Science ecosystem, you must have heard about Gartner’s Magic Quadrant(MQ). These MQs are a series of reports containing the market research and analysis of several technology companies. They are one of the most anticipated and awaited reports in this space. Here is the 2020 Magic Quadrant ...
[ { "code": null, "e": 627, "s": 172, "text": "If you are a part of the Data Science ecosystem, you must have heard about Gartner’s Magic Quadrant(MQ). These MQs are a series of reports containing the market research and analysis of several technology companies. They are one of the most anticipated an...
Entity Framework - Types
In Entity Framework, there are two types of entities that allow developers to use their own custom data classes together with data model without making any modifications to the data classes themselves. POCO entities Dynamic Proxy POCO stands for "plain-old" CLR objects which can be used as existing domain objects with ...
[ { "code": null, "e": 3234, "s": 3032, "text": "In Entity Framework, there are two types of entities that allow developers to use their own custom data classes together with data model without making any modifications to the data classes themselves." }, { "code": null, "e": 3248, "s":...
How to apply forEach tag in JSP?
The <c:forEach> tag is a commonly used tag because it iterates over a collection of objects. The <c:forTokens> tag is used to break a string into tokens and iterate through each of the tokens. The <c:forEach> tag has the following attributes − <%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %> <html> ...
[ { "code": null, "e": 1255, "s": 1062, "text": "The <c:forEach> tag is a commonly used tag because it iterates over a collection of objects. The <c:forTokens> tag is used to break a string into tokens and iterate through each of the tokens." }, { "code": null, "e": 1306, "s": 1255, ...
C Program To Check whether Matrix is Skew Symmetric or not?
Square Matrix A is said to be skew-symmetric if aij=−aji for all i and j. In other words, we can say that matrix A is said to be skew-symmetric if transpose of matrix A is equal to negative of Matrix A i.e (AT=−A). Note that all the main diagonal elements in the skew-symmetric matrix are zero. lets take an example of a...
[ { "code": null, "e": 1277, "s": 1062, "text": "Square Matrix A is said to be skew-symmetric if aij=−aji for all i and j. In other words, we can say that matrix A is said to be skew-symmetric if transpose of matrix A is equal to negative of Matrix A i.e (AT=−A)." }, { "code": null, "e": 1...
Coronavirus Mutation Analysis using Python | Towards Data Science
The novel coronavirus Sars Cov-2 was first identified and it’s genome sequenced from Wuhan, China. The genome of any organism will consist of four nucleotide bases (Adenine -A, Guanine -G, Cytosine -C, Thymine -T) placed in a specific order, in a molecule named DNA (DeoxyriboNucleic Acid). The order in which these four...
[ { "code": null, "e": 1160, "s": 171, "text": "The novel coronavirus Sars Cov-2 was first identified and it’s genome sequenced from Wuhan, China. The genome of any organism will consist of four nucleotide bases (Adenine -A, Guanine -G, Cytosine -C, Thymine -T) placed in a specific order, in a molecul...
Catalog external assets for a 360° data lineage | by Yannick Saillet | Towards Data Science
In a previous article I have shown how to automatically catalog a high number of data sets by using IBM Cloudpak for Data and in particular Watson Knowledge Catalog. A good enterprise catalog is the key stone of data governance. It is the place where the existence of all data and governance assets can be documented as ...
[ { "code": null, "e": 338, "s": 172, "text": "In a previous article I have shown how to automatically catalog a high number of data sets by using IBM Cloudpak for Data and in particular Watson Knowledge Catalog." }, { "code": null, "e": 718, "s": 338, "text": "A good enterprise ca...
How to Calculate Time in Excel?
29 Jun, 2021 In this article, we will look into methods for calculating time and time variance in Excel. In Excel, time is stored as numbers where day and part of the day are represented by the whole numbers and decimal numbers respectively. It is also important to note that the whole number 1 represents 01 Jan 1900 wh...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jun, 2021" }, { "code": null, "e": 400, "s": 28, "text": "In this article, we will look into methods for calculating time and time variance in Excel. In Excel, time is stored as numbers where day and part of the day are represented b...