title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Implicit initialization of variables with 0 or 1 in C - GeeksforGeeks
19 Jun, 2018 In C programming language, the variables should be declared before a value is assigned to it.For Example: // declaration of variable a and // initializing it with 0. int a = 0; // declaring array arr and initializing // all the values of arr as 0. int arr[5] = {0}; However, variables...
[ { "code": null, "e": 26030, "s": 26002, "text": "\n19 Jun, 2018" }, { "code": null, "e": 26136, "s": 26030, "text": "In C programming language, the variables should be declared before a value is assigned to it.For Example:" }, { "code": null, "e": 26319, "s": 2613...
GATE | GATE-CS-2007 | Question 78 - GeeksforGeeks
14 Sep, 2021 Consider the CFG with {S,A,B) as the non-terminal alphabet, {a,b) as the terminal alphabet, S as the start symbol and the following set of production rules S --> aB S --> bA B --> b A --> a B --> bS A --> aS B --> aBB A --> bAA Which of the following strings is generated by the ...
[ { "code": null, "e": 25871, "s": 25843, "text": "\n14 Sep, 2021" }, { "code": null, "e": 26027, "s": 25871, "text": "Consider the CFG with {S,A,B) as the non-terminal alphabet, {a,b) as the terminal alphabet, S as the start symbol and the following set of production rules" }, ...
Underscore.js _.once() Function - GeeksforGeeks
25 Nov, 2021 The Underscore.js is a JavaScript library that provides a lot of useful functions like the map, filter, invoke etc even without using any built-in objects. The _.once function is used in conditions where we want a particular function to be executed only a single time. Even though we execute or call this fu...
[ { "code": null, "e": 34957, "s": 34929, "text": "\n25 Nov, 2021" }, { "code": null, "e": 35113, "s": 34957, "text": "The Underscore.js is a JavaScript library that provides a lot of useful functions like the map, filter, invoke etc even without using any built-in objects." }, ...
Building Jarvis, the Generative Chatbot with an Attitude | by Agustinus Nalwan | Towards Data Science
Carsales.com, the company I work for, is holding a hackathon event. This is an annual event where everyone (tech or non tech) comes together to form a team and build anything — anything at all. Well, preferably you would build something that has a business purpose, but it is really up to you. This idea for this chatbot...
[ { "code": null, "e": 575, "s": 172, "text": "Carsales.com, the company I work for, is holding a hackathon event. This is an annual event where everyone (tech or non tech) comes together to form a team and build anything — anything at all. Well, preferably you would build something that has a busines...
append() and extend() in Python
The append() and extend() functions are used with the python list to increase its number of elements. But the two have different behaviors as shown below. Syntax: list_name.append(‘value’) It takes only one argument. This function appends the incoming element to the end of the list as a single new element. Even if the ...
[ { "code": null, "e": 1217, "s": 1062, "text": "The append() and extend() functions are used with the python list to increase its number of elements. But the two have different behaviors as shown below." }, { "code": null, "e": 1279, "s": 1217, "text": "Syntax: list_name.append(‘v...
CICS - MAP
BMS receives the data entered by the user and then formats it into a symbolic map area. The application program has access only to the data present in the symbolic map. The application program processes the data and the output is sent to the symbolic map. BMS will merge the output of the symbolic data with the physical...
[ { "code": null, "e": 2252, "s": 1926, "text": "BMS receives the data entered by the user and then formats it into a symbolic map area. The application program has access only to the data present in the symbolic map. The application program processes the data and the output is sent to the symbolic ma...
JDBC Insert Example Program | JDBC executeUpdate() Example | OTP
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 this tutorials, we are going to understand...
[ { "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 tune a Decision Tree?. Hyperparameter tuning | by Mukesh Mithrakumar | Towards Data Science
How do the hyperparameters for a decision tree affect your model and how do you choose which ones to tune? Hyperparameter tuning is searching the hyperparameter space for a set of values that will optimize your model architecture. This is different from tuning your model parameters where you search your feature space t...
[ { "code": null, "e": 279, "s": 172, "text": "How do the hyperparameters for a decision tree affect your model and how do you choose which ones to tune?" }, { "code": null, "e": 403, "s": 279, "text": "Hyperparameter tuning is searching the hyperparameter space for a set of values...
Iterate Your R Code Efficiently!. A step-by-step guide to perform clean... | by Manasi Mahadik | Towards Data Science
Inuits do not actually have a hundred names for snow. Turns out that’s part myth and part misunderstanding. Expanding a similar analogy to web speak, there are about a hundred ways to iterate code! To add to this, the syntax can be confusing and some of us also run the risk of just lazily resorting to copy-pasting the ...
[ { "code": null, "e": 767, "s": 171, "text": "Inuits do not actually have a hundred names for snow. Turns out that’s part myth and part misunderstanding. Expanding a similar analogy to web speak, there are about a hundred ways to iterate code! To add to this, the syntax can be confusing and some of u...
Frequencies of even and odd numbers in a matrix - GeeksforGeeks
29 Apr, 2021 Given a matrix of order m*n then the task is to find the frequency of even and odd numbers in matrix Examples: Input : m = 3, n = 3 { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } Output : Frequency of odd number = 5 Frequency of even number = 4 Input : m = 3, n = 3 ...
[ { "code": null, "e": 24530, "s": 24502, "text": "\n29 Apr, 2021" }, { "code": null, "e": 24643, "s": 24530, "text": "Given a matrix of order m*n then the task is to find the frequency of even and odd numbers in matrix Examples: " }, { "code": null, "e": 24983, "s...
What is the basic minimal structure of HTML document?
HTML document is a web page, which helps you in showing content on the website. It consists of tags, which has an opening as well as closing tags. However, some tags do not come in pairs i.e. they do not have a closing tag. The basic minimal structure also has some tags, which you need to add. doctypeThis is a doctype ...
[ { "code": null, "e": 1357, "s": 1062, "text": "HTML document is a web page, which helps you in showing content on the website. It consists of tags, which has an opening as well as closing tags. However, some tags do not come in pairs i.e. they do not have a closing tag. The basic minimal structure a...
An Introduction to Classification Using Mislabeled Data | by Shihab Shahriar Khan | Towards Data Science
The performance of any classifier, or for that matter any machine learning task, depends crucially on the quality of the available data. Data quality in turn depends on several factors- for example accuracy of measurements (i.e. noise), presence of important information, absence of redundant information, how much colle...
[ { "code": null, "e": 907, "s": 172, "text": "The performance of any classifier, or for that matter any machine learning task, depends crucially on the quality of the available data. Data quality in turn depends on several factors- for example accuracy of measurements (i.e. noise), presence of import...
How to Swap a Values in MySQL? - GeeksforGeeks
19 Nov, 2021 The UPDATE statement in SQL is used to update the data of an existing table in the database. We can update single columns as well as multiple columns using the UPDATE statements as per our requirement. Suppose we want to need to write a SQL query to swap all ‘a’ and ‘m’ values (i.e., change all ‘f’ values ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n19 Nov, 2021" }, { "code": null, "e": 25966, "s": 25537, "text": "The UPDATE statement in SQL is used to update the data of an existing table in the database. We can update single columns as well as multiple columns using the UPD...
Reduce size of legend area using ggplot in R - GeeksforGeeks
30 May, 2021 In this article, we will are going to see how to change the size of the legend in the plot in the R programming language. We will change legend size of the plot using cex argument of legend() function. In this approach to change the legend size of the plot, the user needs to use the cex argument of the leg...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n30 May, 2021" }, { "code": null, "e": 26689, "s": 26487, "text": "In this article, we will are going to see how to change the size of the legend in the plot in the R programming language. We will change legend size of the plot us...
Dart - Generics - GeeksforGeeks
12 Mar, 2021 In Dart, by default collections are heterogeneous. However, by the use of generics, we can make a collection to hold homogeneous values. The use of Generics makes the use of a single compulsory data type to be held inside the collection. Such collections are called type-safe collections. By the use of gene...
[ { "code": null, "e": 25261, "s": 25233, "text": "\n12 Mar, 2021" }, { "code": null, "e": 25619, "s": 25261, "text": "In Dart, by default collections are heterogeneous. However, by the use of generics, we can make a collection to hold homogeneous values. The use of Generics makes ...
strconv.Atoi() Function in Golang With Examples - GeeksforGeeks
21 Apr, 2020 Go language provides inbuilt support to implement conversions to and from string representations of basic data types by strconv Package. This package provides an Atoi() function which is equivalent to ParseInt(str string, base int, bitSize int) is used to convert string type into int type. To access Atoi()...
[ { "code": null, "e": 25695, "s": 25667, "text": "\n21 Apr, 2020" }, { "code": null, "e": 26064, "s": 25695, "text": "Go language provides inbuilt support to implement conversions to and from string representations of basic data types by strconv Package. This package provides an A...
ML | Reinforcement Learning Algorithm : Python Implementation using Q-learning - GeeksforGeeks
07 Jun, 2019 Prerequisites: Q-Learning technique. Reinforcement Learning is a type of Machine Learning paradigms in which a learning algorithm is trained not on preset data but rather based on a feedback system. These algorithms are touted as the future of Machine Learning as these eliminate the cost of collecting and ...
[ { "code": null, "e": 25613, "s": 25585, "text": "\n07 Jun, 2019" }, { "code": null, "e": 25650, "s": 25613, "text": "Prerequisites: Q-Learning technique." }, { "code": null, "e": 25939, "s": 25650, "text": "Reinforcement Learning is a type of Machine Learning ...
Calinski-Harabasz Index – Cluster Validity indices | Set 3 - GeeksforGeeks
25 Apr, 2022 Prerequisites: Cluster Validity Index Clustering validation has been recognized as one of the important factors essential to the success of clustering algorithms. How to effectively and efficiently assess the clustering results of clustering algorithms is the key to the problem. Generally, cluster validity...
[ { "code": null, "e": 25665, "s": 25637, "text": "\n25 Apr, 2022" }, { "code": null, "e": 25703, "s": 25665, "text": "Prerequisites: Cluster Validity Index" }, { "code": null, "e": 26105, "s": 25703, "text": "Clustering validation has been recognized as one of ...
Count ancestors with smaller value for each node of a Binary Tree - GeeksforGeeks
01 Jun, 2021 Given a Binary Tree consisting of N nodes, valued from 1 to N, rooted at node 1, the task is for each node is to count the number of ancestors with a value smaller than that of the current node. Examples: Input: Below is the given Tree: 1 / \ 4 5 ...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n01 Jun, 2021" }, { "code": null, "e": 26132, "s": 25937, "text": "Given a Binary Tree consisting of N nodes, valued from 1 to N, rooted at node 1, the task is for each node is to count the number of ancestors with a value smaller...
Express.js | app.listen() Function - GeeksforGeeks
06 Nov, 2021 The app.listen() function is used to bind and listen the connections on the specified host and port. This method is identical to Node’s http.Server.listen() method.If the port number is omitted or is 0, the operating system will assign an arbitrary unused port, which is useful for cases like automated task...
[ { "code": null, "e": 25659, "s": 25631, "text": "\n06 Nov, 2021" }, { "code": null, "e": 26287, "s": 25659, "text": "The app.listen() function is used to bind and listen the connections on the specified host and port. This method is identical to Node’s http.Server.listen() method...
How to Use If Statement in Excel VBA? - GeeksforGeeks
19 Jul, 2021 VBA in Excel stands for Visual Basic for Applications which is Microsoft’s programming language. To optimize the performance and reduce the time in Excel we need Macros and VBA is the tool used in the backend. In this article, we are going to use how to use the If statement in Excel VBA. In the Microsoft E...
[ { "code": null, "e": 26289, "s": 26261, "text": "\n19 Jul, 2021" }, { "code": null, "e": 26499, "s": 26289, "text": "VBA in Excel stands for Visual Basic for Applications which is Microsoft’s programming language. To optimize the performance and reduce the time in Excel we need M...
How to use if, else & elif in Python Lambda Functions - GeeksforGeeks
21 Feb, 2022 Lambda function can have multiple parameters but have only one expression. This one expression is evaluated and returned. Thus, We can use lambda functions as a function object. In this article, we will learn how to use if, else & elif in Lambda Functions. The lambda function will return a value for every ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n21 Feb, 2022" }, { "code": null, "e": 25794, "s": 25537, "text": "Lambda function can have multiple parameters but have only one expression. This one expression is evaluated and returned. Thus, We can use lambda functions as a fu...
MoviePy – Applying Resize effect on Video Clip - GeeksforGeeks
01 Aug, 2020 In this article we will see how we can apply resize effect on the video file clip in MoviePy. MoviePy is a Python module for video editing, which can be used for basic operations on videos and GIF’s. We can resize the video with the help of resize method to resize the video clip, resize filter is the type ...
[ { "code": null, "e": 25607, "s": 25579, "text": "\n01 Aug, 2020" }, { "code": null, "e": 25939, "s": 25607, "text": "In this article we will see how we can apply resize effect on the video file clip in MoviePy. MoviePy is a Python module for video editing, which can be used for b...
Scala - String Methods with Examples - GeeksforGeeks
03 Jul, 2020 In Scala, as in Java, a string is a sequence of characters. In Scala, objects of String are immutable which means a constant and cannot be changed once created. In the rest of this section, we discuss the important methods of java.lang.String class. char charAt(int index): This method is used to returns th...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n03 Jul, 2020" }, { "code": null, "e": 25475, "s": 25225, "text": "In Scala, as in Java, a string is a sequence of characters. In Scala, objects of String are immutable which means a constant and cannot be changed once created. In...
Map of Sets in C++ STL with Examples - GeeksforGeeks
28 Oct, 2021 Maps are associative containers that store elements in a mapped fashion. Each element has a key value and a mapped value. No two mapped values can have same key values. Sets are a type of associative container in which each element has to be unique because the value of the element identifies it. The value ...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n28 Oct, 2021" }, { "code": null, "e": 25536, "s": 25367, "text": "Maps are associative containers that store elements in a mapped fashion. Each element has a key value and a mapped value. No two mapped values can have same key va...
C Program For Writing A Function To Delete A Linked List - GeeksforGeeks
08 Dec, 2021 Algorithm For C:Iterate through the linked list and delete all the nodes one by one. The main point here is not to access the next of the current pointer if the current pointer is deleted. Implementation: C // C program to delete a linked list#include<stdio.h>#include<stdlib.h>#include<assert.h> // Link l...
[ { "code": null, "e": 25531, "s": 25503, "text": "\n08 Dec, 2021" }, { "code": null, "e": 25720, "s": 25531, "text": "Algorithm For C:Iterate through the linked list and delete all the nodes one by one. The main point here is not to access the next of the current pointer if the cu...
Flutter - Material Design - GeeksforGeeks
22 Feb, 2022 If someone wants to quickly build beautiful, scalable apps across platforms? Then Material Design is the way to go. Material is an adaptable design system, backed by open-source code, that helps developers easily build high-quality, digital experiences. From design guidelines to developer components, Mat...
[ { "code": null, "e": 25261, "s": 25233, "text": "\n22 Feb, 2022" }, { "code": null, "e": 25379, "s": 25261, "text": " If someone wants to quickly build beautiful, scalable apps across platforms? Then Material Design is the way to go. " }, { "code": null, "e": 26121, ...
Read File Into an Array in Java - GeeksforGeeks
21 Feb, 2022 In Java, we can store the content of the file into an array either by reading the file using a scanner or bufferedReader or FileReader or by using readAllLines method. To store the content of the file better use the collection storage type instead of a static array as we don’t know the exact lines or word ...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n21 Feb, 2022" }, { "code": null, "e": 25618, "s": 25225, "text": "In Java, we can store the content of the file into an array either by reading the file using a scanner or bufferedReader or FileReader or by using readAllLines met...
Static and Dynamic Libraries | Set 1 - GeeksforGeeks
14 Oct, 2019 When a C program is compiled, the compiler generates object code. After generating the object code, the compiler also invokes linker. One of the main tasks for linker is to make code of library functions (eg printf(), scanf(), sqrt(), ..etc) available to your program. A linker can accomplish this task in t...
[ { "code": null, "e": 25657, "s": 25629, "text": "\n14 Oct, 2019" }, { "code": null, "e": 26159, "s": 25657, "text": "When a C program is compiled, the compiler generates object code. After generating the object code, the compiler also invokes linker. One of the main tasks for lin...
Find missing elements of a range - GeeksforGeeks
20 Apr, 2022 Given an array, arr[0..n-1] of distinct elements and a range [low, high], find all numbers that are in a range, but not the array. The missing elements should be printed in sorted order. Examples: Input: arr[] = {10, 12, 11, 15}, low = 10, high = 15 Output: 13, 14 Input: arr[] = {1, 14, 11, 51, ...
[ { "code": null, "e": 26745, "s": 26717, "text": "\n20 Apr, 2022" }, { "code": null, "e": 26932, "s": 26745, "text": "Given an array, arr[0..n-1] of distinct elements and a range [low, high], find all numbers that are in a range, but not the array. The missing elements should be p...
MongoDB updateOne() Method - db.Collection.updateOne() - GeeksforGeeks
28 Jan, 2021 In MongoDB, updateOne() method updates a first matched document within the collection based on the given query. When you update your document the value of the _id field remains unchanged. This method updates one document at a time and can also add new fields in the given document. It takes three parameters...
[ { "code": null, "e": 25231, "s": 25203, "text": "\n28 Jan, 2021" }, { "code": null, "e": 25682, "s": 25231, "text": "In MongoDB, updateOne() method updates a first matched document within the collection based on the given query. When you update your document the value of the _id ...
Minimum number of adjacent swaps to convert a string into its given anagram - GeeksforGeeks
08 Jun, 2021 Given two strings s1 and s2, the task is to find the minimum number of steps required to convert s1 into s2. The only operation allowed is to swap adjacent elements in the first string. Every swap is counted as a single step.Examples: Input: s1 = “abcd”, s2 = “cdab” Output: 4 Swap 2nd and 3rd element, ab...
[ { "code": null, "e": 26201, "s": 26173, "text": "\n08 Jun, 2021" }, { "code": null, "e": 26438, "s": 26201, "text": "Given two strings s1 and s2, the task is to find the minimum number of steps required to convert s1 into s2. The only operation allowed is to swap adjacent element...
Intersection of two dataframe in Pandas - Python - GeeksforGeeks
26 Jul, 2020 Intersection of Two data frames in Pandas can be easily calculated by using the pre-defined function merge(). This function takes both the data frames as argument and returns the intersection between them. Syntax: pd.merge(df1, df2, how) Example 1: import pandas as pd # Creating Data framesdf1 = {'A': [1,...
[ { "code": null, "e": 25603, "s": 25575, "text": "\n26 Jul, 2020" }, { "code": null, "e": 25809, "s": 25603, "text": "Intersection of Two data frames in Pandas can be easily calculated by using the pre-defined function merge(). This function takes both the data frames as argument ...
What is the difference between fopen modes “r+”, "rw+" and “w+” in PHP? - GeeksforGeeks
07 May, 2020 File handling is a very important part of programming when it comes to making applications. We might require reading input from a file or writing output into a file. File handling in PHP is similar to other programming languages. There are predefined functions that can be used to accomplish the specified t...
[ { "code": null, "e": 26217, "s": 26189, "text": "\n07 May, 2020" }, { "code": null, "e": 26596, "s": 26217, "text": "File handling is a very important part of programming when it comes to making applications. We might require reading input from a file or writing output into a fil...
Ways of transforming one string to other by removing 0 or more characters - GeeksforGeeks
14 Mar, 2022 Given two sequences A, B, find out number of unique ways in sequence A, to form a subsequence of A that is identical to sequence B. Transformation is meant by converting string A (by removing 0 or more characters) to string B. Examples: Input : A = "abcccdf", B = "abccdf" Output : 3 Explanation : Three way...
[ { "code": null, "e": 26587, "s": 26559, "text": "\n14 Mar, 2022" }, { "code": null, "e": 26814, "s": 26587, "text": "Given two sequences A, B, find out number of unique ways in sequence A, to form a subsequence of A that is identical to sequence B. Transformation is meant by conv...
How to find the minimum and maximum element of a Vector using STL in C++? - GeeksforGeeks
20 Mar, 2019 Given a vector, find the minimum and maximum element of this vector using STL in C++. Example: Input: {1, 45, 54, 71, 76, 12} Output: min = 1, max = 76 Input: {10, 7, 5, 4, 6, 12} Output: min = 1, max = 76 Approach: Min or Minimum element can be found with the help of *min_element() function provided in ...
[ { "code": null, "e": 25669, "s": 25641, "text": "\n20 Mar, 2019" }, { "code": null, "e": 25755, "s": 25669, "text": "Given a vector, find the minimum and maximum element of this vector using STL in C++." }, { "code": null, "e": 25764, "s": 25755, "text": "Exam...
Find all combinations of k-bit numbers with n bits set where 1 <= n <= k in sorted order - GeeksforGeeks
21 Mar, 2017 Given a number k, find all the possible combinations of k-bit numbers with n-bits set where 1 <= n <= k. The solution should print all numbers with one set bit first, followed by numbers with two bits set,.. up to the numbers whose all k-bits are set. If two numbers have the same number of set bits, then s...
[ { "code": null, "e": 25941, "s": 25913, "text": "\n21 Mar, 2017" }, { "code": null, "e": 26281, "s": 25941, "text": "Given a number k, find all the possible combinations of k-bit numbers with n-bits set where 1 <= n <= k. The solution should print all numbers with one set bit fir...
How to maintain dictionary in a heap in Python ? - GeeksforGeeks
07 Sep, 2021 Prerequisites: Binary heap data structure heapq module in Python Dictionary in Python. The dictionary can be maintained in heap either based on the key or on the value. The conventions to be maintained are listed below: The key-value pair at index ‘i‘ is considered to be the parent of key-value pair at the...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n07 Sep, 2021" }, { "code": null, "e": 25552, "s": 25537, "text": "Prerequisites:" }, { "code": null, "e": 25579, "s": 25552, "text": "Binary heap data structure" }, { "code": null, "e": 25602, ...
Java Program to Display All Prime Numbers from 1 to N - GeeksforGeeks
21 May, 2021 For a given number N, the purpose is to find all the prime numbers from 1 to N. Examples: Input: N = 11 Output: 2, 3, 5, 7, 11 Input: N = 7 Output: 2, 3, 5, 7 Approach 1: Firstly, consider the given number N as input. Then apply a for loop in order to iterate the numbers from 1 to N. At last, check if e...
[ { "code": null, "e": 26126, "s": 26098, "text": "\n21 May, 2021" }, { "code": null, "e": 26206, "s": 26126, "text": "For a given number N, the purpose is to find all the prime numbers from 1 to N." }, { "code": null, "e": 26218, "s": 26206, "text": "Examples: ...
Difference Between Lock and Monitor in Java Concurrency - GeeksforGeeks
24 Feb, 2022 Java Concurrency basically deals with concepts like multithreading and other concurrent operations. This is done to ensure maximum and efficient utilization of CPU performance thereby reducing its idle time in general. Locks have been in existence to implement multithreading much before the monitors have c...
[ { "code": null, "e": 25249, "s": 25221, "text": "\n24 Feb, 2022" }, { "code": null, "e": 26120, "s": 25249, "text": "Java Concurrency basically deals with concepts like multithreading and other concurrent operations. This is done to ensure maximum and efficient utilization of CPU...
Algorithms | Misc | Question 11 - GeeksforGeeks
28 Jun, 2021 Given 8 identical coins out of which one coin is heavy and a pan balance. How many minimum number of measurements are needed to find the heavy coin?(A) 2(B) 3(C) 4(D) 7Answer: (A)Explanation: Divide the coins into three groups and name the coins according to there group: A: A1, A2, A3 B: B1, B2, B3 C: C1, ...
[ { "code": null, "e": 26031, "s": 26003, "text": "\n28 Jun, 2021" }, { "code": null, "e": 26223, "s": 26031, "text": "Given 8 identical coins out of which one coin is heavy and a pan balance. How many minimum number of measurements are needed to find the heavy coin?(A) 2(B) 3(C) 4...
Node.js http2session.ping() Method - GeeksforGeeks
11 Feb, 2022 The http2session.ping() is an inbuilt application programming interface of class http2session within http2 module which is used to sends a PING frame to the connected HTTP/2 peer. Syntax: const http2session.ping([payload, ]callback) Parameters: This method takes the optional ping payload buffer as a param...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n11 Feb, 2022" }, { "code": null, "e": 26447, "s": 26267, "text": "The http2session.ping() is an inbuilt application programming interface of class http2session within http2 module which is used to sends a PING frame to the connec...
How to design a responsive website?
A responsive website is a website that looks good and amazing on all devices i.e. desktops, tablets, and cell phones. A website should have a responsive design to make it responsive. It’s all about playing around with HTML and CSS for changing the size, hiding, or enlarging the screen. Let’s see an example and what doe...
[ { "code": null, "e": 1349, "s": 1062, "text": "A responsive website is a website that looks good and amazing on all devices i.e. desktops, tablets, and cell phones. A website should have a responsive design to make it responsive. It’s all about playing around with HTML and CSS for changing the size,...
Groovy - Exception Handling
Exception handling is required in any programming language to handle the runtime errors so that normal flow of the application can be maintained. Exception normally disrupts the normal flow of the application, which is the reason why we need to use Exception handling in our application. Exceptions are broadly classifie...
[ { "code": null, "e": 2384, "s": 2238, "text": "Exception handling is required in any programming language to handle the runtime errors so that normal flow of the application can be maintained." }, { "code": null, "e": 2526, "s": 2384, "text": "Exception normally disrupts the norm...
A better EDA with Pandas-profiling | by Thomas Gey | Towards Data Science
Mostly in Data Science, data we collect aren’t as clean and complete as available datasets on internet, designed and prepared for the application of machine learning models. Mostly, data comes from external sources, is not well structured or is simply incomplete, and it’s your job to make this data welcoming and usable...
[ { "code": null, "e": 494, "s": 172, "text": "Mostly in Data Science, data we collect aren’t as clean and complete as available datasets on internet, designed and prepared for the application of machine learning models. Mostly, data comes from external sources, is not well structured or is simply inc...
numpy.rollaxis
This function rolls the specified axis backwards, until it lies in a specified position. The function takes three parameters. numpy.rollaxis(arr, axis, start) Where, arr Input array axis Axis to roll backwards. The position of the other axes do not change relative to one another start Zero by default leading to the co...
[ { "code": null, "e": 2369, "s": 2243, "text": "This function rolls the specified axis backwards, until it lies in a specified position. The function takes three parameters." }, { "code": null, "e": 2403, "s": 2369, "text": "numpy.rollaxis(arr, axis, start)\n" }, { "code":...
GATE | GATE-CS-2016 (Set 1) | Question 42 - GeeksforGeeks
30 Sep, 2021 The stage delays in a 4-stage pipeline are 800, 500, 400 and 300 picoseconds. The first stage (with delay 800 picoseconds) is replaced with a functionally equivalent design involving two stages with respective delays 600 and 350 picoseconds. The throughput increase of the pipeline is _______ percent. [This...
[ { "code": null, "e": 24071, "s": 24043, "text": "\n30 Sep, 2021" }, { "code": null, "e": 24373, "s": 24071, "text": "The stage delays in a 4-stage pipeline are 800, 500, 400 and 300 picoseconds. The first stage (with delay 800 picoseconds) is replaced with a functionally equivale...
How to list files from SD card with runtime permission in android?
This example demonstrates How to list files from SD card with runtime permission in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version = "1.0" encoding = ...
[ { "code": null, "e": 1155, "s": 1062, "text": "This example demonstrates How to list files from SD card with runtime permission in android." }, { "code": null, "e": 1284, "s": 1155, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all re...
NLP | IOB tags - GeeksforGeeks
16 Jul, 2021 What are Chunks ? Chunks are made up of words and the kinds of words are defined using the part-of-speech tags. One can even define a pattern or words that can’t be a part of chuck and such words are known as chinks. What are IOB tags ? It is a format for chunks. These tags are similar to part-of-speech ...
[ { "code": null, "e": 25575, "s": 25547, "text": "\n16 Jul, 2021" }, { "code": null, "e": 25794, "s": 25575, "text": "What are Chunks ? Chunks are made up of words and the kinds of words are defined using the part-of-speech tags. One can even define a pattern or words that can’t b...
Highlight Pandas DataFrame's specific columns using applymap() - GeeksforGeeks
17 Aug, 2020 Let us see how to highlight elements and specific columns of a Pandas DataFrame. We can do this using the applymap() function of the Styler class. Syntax : Styler.applymap(self, func, subset = None, **kwargs) Parameters : func : takes a scalar and returns a scalar. subset : valid indexer to limit data to b...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n17 Aug, 2020" }, { "code": null, "e": 25684, "s": 25537, "text": "Let us see how to highlight elements and specific columns of a Pandas DataFrame. We can do this using the applymap() function of the Styler class." }, { "c...
Computer Organization and Architecture - GeeksforGeeks
19 Nov, 2018 MBR ← PC MAR ← X PC ← Y Memory ← MBR Pipeline will have to be stalled till Ei stage of l4 completes, as Ei stage will tell whether to take branch or not. After that l4(WO) and l9(Fi) can go in parallel and later the following instructions. So, till l4(Ei) completes : 7 cycles * ...
[ { "code": null, "e": 28683, "s": 28655, "text": "\n19 Nov, 2018" }, { "code": null, "e": 28745, "s": 28683, "text": " MBR ← PC \n MAR ← X \n PC ← Y \n Memory ← MBR" }, { "code": null, "e": 29099, "s": 28745, "text": "Pipeline will have to be ...
Smallest integer greater than n such that it consists of digit m exactly k times - GeeksforGeeks
24 Nov, 2021 Given three integer n, m and k, the task is to find the smallest integer > n such that digit m appears exactly k times in it.Examples: Input: n = 111, m = 2, k = 2 Output: 122Input: n = 111, m = 2, k = 3 Output: 222 Approach: Start iterating from n + 1 and for each integer i check whether it consists...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n24 Nov, 2021" }, { "code": null, "e": 26074, "s": 25937, "text": "Given three integer n, m and k, the task is to find the smallest integer > n such that digit m appears exactly k times in it.Examples: " }, { "code": null...
How to Design Phong Shading Graphics using p5.js ? - GeeksforGeeks
12 Aug, 2021 Phong shading is a specific type of shading technique in 3D computer graphics that is useful for smoothing out multi-surface shapes, approximating surface highlights, and creating more sophisticated computer-modeled images. Experts refer to the technique as “interpolation,” where Phong shading visualizes a...
[ { "code": null, "e": 26627, "s": 26599, "text": "\n12 Aug, 2021" }, { "code": null, "e": 27055, "s": 26627, "text": "Phong shading is a specific type of shading technique in 3D computer graphics that is useful for smoothing out multi-surface shapes, approximating surface highligh...
How to read any request header in PHP - GeeksforGeeks
13 Nov, 2018 HTTP Header: HTTP headers are the code that transfers the data between web server and browser. The HTTP headers are mainly intended for the communication between the server and the client in both directions. HTTP Request Header: When type a URL in the address bar of browser and try to access it, the browse...
[ { "code": null, "e": 26011, "s": 25983, "text": "\n13 Nov, 2018" }, { "code": null, "e": 26219, "s": 26011, "text": "HTTP Header: HTTP headers are the code that transfers the data between web server and browser. The HTTP headers are mainly intended for the communication between t...
Is main method compulsory in Java? - GeeksforGeeks
17 Feb, 2021 The answer to this question depends on the version of java you are using. Prior to JDK 7, the main method was not mandatory in a java program. You could write your full code under static block and it ran normally. The static block is first executed as soon as the class is loaded before the main(); the meth...
[ { "code": null, "e": 25031, "s": 25003, "text": "\n17 Feb, 2021" }, { "code": null, "e": 25174, "s": 25031, "text": "The answer to this question depends on the version of java you are using. Prior to JDK 7, the main method was not mandatory in a java program." }, { "code"...
HTML | <input type="checkbox"> - GeeksforGeeks
28 May, 2019 the HTML <input type=”checkbox”> is used to define a checkbox field. The checkbox is shown as a square box that is ticked when it is activated. It allows the user to select one or more option among all the limited choices. Syntax: <input type="checkbox"> Example: <!DOCTYPE html><html> <head> <title> ...
[ { "code": null, "e": 26501, "s": 26473, "text": "\n28 May, 2019" }, { "code": null, "e": 26724, "s": 26501, "text": "the HTML <input type=”checkbox”> is used to define a checkbox field. The checkbox is shown as a square box that is ticked when it is activated. It allows the user ...
Python | Move or Copy Files and Directories - GeeksforGeeks
29 Dec, 2020 Let’s say we want to copy or move files and directories around, but don’t want to do it by calling out to shell commands. The shutil module has portable implementations of functions for copying files and directories. import shutil # Copy src to dst. (cp src dst)shutil.copy(src, dst) # Copy files, but pre...
[ { "code": null, "e": 25629, "s": 25601, "text": "\n29 Dec, 2020" }, { "code": null, "e": 25846, "s": 25629, "text": "Let’s say we want to copy or move files and directories around, but don’t want to do it by calling out to shell commands. The shutil module has portable implementa...
How to Install Seaborn on Windows? - GeeksforGeeks
09 Sep, 2021 In this article, we will look into the process of installing Python Seaborn on Windows. Python PIP or conda (Depending upon user preference) PIP users can open up the command prompt and run the below command to install Python Seaborn Package on Windows: pip install Seaborn The following message will be sho...
[ { "code": null, "e": 26097, "s": 26069, "text": "\n09 Sep, 2021" }, { "code": null, "e": 26185, "s": 26097, "text": "In this article, we will look into the process of installing Python Seaborn on Windows." }, { "code": null, "e": 26192, "s": 26185, "text": "Py...
Dice Rolling Simulator using Python-random - GeeksforGeeks
13 May, 2022 In this article, we will create a classic rolling dice simulator with the help of basic Python knowledge. Here we will be using the random module since we randomize the dice simulator for random outputs. 1) random.randint(): This function generates a random number in the given range. Below is the implement...
[ { "code": null, "e": 25973, "s": 25945, "text": "\n13 May, 2022" }, { "code": null, "e": 26177, "s": 25973, "text": "In this article, we will create a classic rolling dice simulator with the help of basic Python knowledge. Here we will be using the random module since we randomiz...
Remove all the prime numbers from the given array - GeeksforGeeks
28 Jan, 2022 Given an array arr[] of N integers, the task is to remove all the prime numbers. Examples: Input: arr[] = {4, 6, 5, 3, 8, 7, 10, 11, 14, 15} Output: 4 6 8 10 14 15 Input: arr[] = {2, 4, 7, 8, 9, 11} Output: 4 8 9 Approach: Traverse the array and check if the current number is prime, if it is then left s...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n28 Jan, 2022" }, { "code": null, "e": 26122, "s": 26041, "text": "Given an array arr[] of N integers, the task is to remove all the prime numbers." }, { "code": null, "e": 26133, "s": 26122, "text": "Examples:...
HTML | data-* Attributes - GeeksforGeeks
03 May, 2021 Custom Data Attributes allow you to add your own information to tags in HTML. Even though the name suggests otherwise, these are not specific to HTML5 and you can use the data-* attribute on all HTML elements. The data-* attributes can be used to define our own custom data attributes. It is used to store c...
[ { "code": null, "e": 24946, "s": 24918, "text": "\n03 May, 2021" }, { "code": null, "e": 25354, "s": 24946, "text": "Custom Data Attributes allow you to add your own information to tags in HTML. Even though the name suggests otherwise, these are not specific to HTML5 and you can ...
Breadth First Traversal ( BFS ) on a 2D array - GeeksforGeeks
31 May, 2021 Given a matrix of size M x N consisting of integers, the task is to print the matrix elements using Breadth-First Search traversal. Examples: Input: grid[][] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}, {13, 14, 15, 16}}Output: 1 2 5 3 6 9 4 7 10 13 8 11 14 12 15 16 Input: grid[][] = {{-1, 0, 0, 1}, {-1...
[ { "code": null, "e": 26567, "s": 26539, "text": "\n31 May, 2021" }, { "code": null, "e": 26699, "s": 26567, "text": "Given a matrix of size M x N consisting of integers, the task is to print the matrix elements using Breadth-First Search traversal." }, { "code": null, ...
Convert vowels into upper case character in a given string
27 Apr, 2021 Given string str, the task is to convert all the vowels present in the given string to uppercase characters in the given string. Examples: Input: str = “GeeksforGeeks”Output: GEEksfOrGEEksExplanation:Vowels present in the given string are: {‘e’, ‘o’}Replace ‘e’ to ‘E’ and ‘o’ to ‘O’.Therefore, the required...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Apr, 2021" }, { "code": null, "e": 157, "s": 28, "text": "Given string str, the task is to convert all the vowels present in the given string to uppercase characters in the given string." }, { "code": null, "e": 167, ...
Python – Insertion at the beginning in OrderedDict
15 Oct, 2021 Given an ordered dict, write a program to insert items in beginning of ordered dict.Examples – Input: original_dict = {'a':1, 'b':2} item to be inserted ('c', 3) Output: {'c':3, 'a':1, 'b':2} Input: original_dict = {'akshat':1, 'manjeet':2} item to be inserted ('nikhil', 3) Output: {'nikhil':3, 'a...
[ { "code": null, "e": 53, "s": 25, "text": "\n15 Oct, 2021" }, { "code": null, "e": 150, "s": 53, "text": "Given an ordered dict, write a program to insert items in beginning of ordered dict.Examples – " }, { "code": null, "e": 383, "s": 150, "text": "Input: \...
How to send email using PowerShell?
To send email using PowerShell, there are multiple methods but there is a simple command called SendMailMessage. This command is a part of the module called Microsoft.PowerShell.Utility To send email using the specific SMTP server we need to add the SMTP server parameter. Send-MailMessage ` -From 'User1@TestDomain.c...
[ { "code": null, "e": 1248, "s": 1062, "text": "To send email using PowerShell, there are multiple methods but there is a simple command called SendMailMessage. This command is a part of the module called Microsoft.PowerShell.Utility" }, { "code": null, "e": 1335, "s": 1248, "text...
Can neural networks solve any problem? | by Brendan Fortuner | Towards Data Science
At some point in your deep learning journey you probably came across the Universal Approximation Theorem. A feedforward network with a single layer is sufficient to represent any function, but the layer may be infeasibly large and may fail to learn and generalize correctly. — Ian Goodfellow, DLB This is an incredible s...
[ { "code": null, "e": 277, "s": 171, "text": "At some point in your deep learning journey you probably came across the Universal Approximation Theorem." }, { "code": null, "e": 446, "s": 277, "text": "A feedforward network with a single layer is sufficient to represent any functio...
Introduction to Pandas apply, applymap and map | by B. Chen | Towards Data Science
In Data Processing, it is often necessary to perform operations (such as statistical calculations, splitting, or substituting value) on a certain row or column to obtain new data. Writing a for-loop to iterate through Pandas DataFrame and Series will do the job, but that doesn’t seem like a good idea. The for-loop tend...
[ { "code": null, "e": 444, "s": 47, "text": "In Data Processing, it is often necessary to perform operations (such as statistical calculations, splitting, or substituting value) on a certain row or column to obtain new data. Writing a for-loop to iterate through Pandas DataFrame and Series will do th...
Riot API: a machine learning and data analysis application | by Marco Sanguineti | Towards Data Science
A simple python based tutorial for data analysis and machine learning for personal improvement through Riot API. If you are reading this article you might be a fan of League of Legends, a popular online game of the genre MOBA (multiplayer online battle arena). Or maybe you’re interested in the possible applications of ...
[ { "code": null, "e": 285, "s": 172, "text": "A simple python based tutorial for data analysis and machine learning for personal improvement through Riot API." }, { "code": null, "e": 610, "s": 285, "text": "If you are reading this article you might be a fan of League of Legends, ...
Debugging Neural Networks with PyTorch and W&B | by Ayush Thakur | Towards Data Science
In this post, we’ll see what makes a neural network under perform and ways we can debug this by visualizing the gradients and other parameters associated with model training. We’ll also discuss the problem of vanishing and exploding gradients and methods to overcome them. Finally, we’ll see why proper weight initializa...
[ { "code": null, "e": 445, "s": 172, "text": "In this post, we’ll see what makes a neural network under perform and ways we can debug this by visualizing the gradients and other parameters associated with model training. We’ll also discuss the problem of vanishing and exploding gradients and methods ...
Ext.js - Questions and Answers
Ext JS stands for extended JavaScript. It is a JavaScript framework to develop rich UI web based desktop applications. It is a Sencha product which is extended from YUI (Yahoo user interface). These are the main files to include in HTML page to run Ext JS code − Ext-all.js Ext-all.css Customizable UI widgets with colle...
[ { "code": null, "e": 2142, "s": 2023, "text": "Ext JS stands for extended JavaScript. It is a JavaScript framework to develop rich UI web based desktop applications." }, { "code": null, "e": 2216, "s": 2142, "text": "It is a Sencha product which is extended from YUI (Yahoo user i...
10 Jupyter Lab Extensions to Boost Your Productivity | by Christopher Tao | Towards Data Science
If you are a Data Scientist or a Data Engineer using Python as your primary programming language, I believe you must use Jupyter Notebook. As the “next-generation” web-based application for Jupyter Notebook, Jupyter Lab provides much more convenient features than its old bother. One of them is the extensions. Now, even...
[ { "code": null, "e": 483, "s": 172, "text": "If you are a Data Scientist or a Data Engineer using Python as your primary programming language, I believe you must use Jupyter Notebook. As the “next-generation” web-based application for Jupyter Notebook, Jupyter Lab provides much more convenient featu...
GDB - Debugging Symbols
A Debugging Symbol Table maps instructions in the compiled binary program to their corresponding variable, function, or line in the source code. This mapping could be something like: Program instruction ⇒ item name, item type, original file, line number defined. Program instruction ⇒ item name, item type, original file...
[ { "code": null, "e": 1892, "s": 1709, "text": "A Debugging Symbol Table maps instructions in the compiled binary program to their corresponding variable, function, or line in the source code. This mapping could be something like:" }, { "code": null, "e": 1972, "s": 1892, "text": ...
How to Run a Cron Job Every Day on a Linux System
This article will teach you on, how to schedule a corn job for executing a script or command or shell script at a particular time every day. As a system administrator, we know the importance of running the routine maintenance jobs in the background automatically. The Linux corn utility will help us to maintain these jo...
[ { "code": null, "e": 1411, "s": 1062, "text": "This article will teach you on, how to schedule a corn job for executing a script or command or shell script at a particular time every day. As a system administrator, we know the importance of running the routine maintenance jobs in the background auto...
Ruby/TK - Text Widget
A Text widget provides users with an area so that they can enter multiple lines of text. Text widgets are part of the classic Tk widgets, not the themed Tk widgets. Text widgets support three different kinds of annotations on the text − Tags − Allow different portions of the text to be displayed with different fonts an...
[ { "code": null, "e": 2459, "s": 2294, "text": "A Text widget provides users with an area so that they can enter multiple lines of text. Text widgets are part of the classic Tk widgets, not the themed Tk widgets." }, { "code": null, "e": 2531, "s": 2459, "text": "Text widgets supp...
Split a document by its subdocuments in MongoDB
To split a document by its subdocuments, use $unwind in MongoDB. Let us create a collection with documents − > db.demo276.insertOne({"Name":"Chris","Subjects":["MySQL","MongoDB"]}); { "acknowledged" : true, "insertedId" : ObjectId("5e48f953dd099650a5401a51") } Display all documents from a collection with the help...
[ { "code": null, "e": 1171, "s": 1062, "text": "To split a document by its subdocuments, use $unwind in MongoDB. Let us create a collection with documents −" }, { "code": null, "e": 1329, "s": 1171, "text": "> db.demo276.insertOne({\"Name\":\"Chris\",\"Subjects\":[\"MySQL\",\"Mong...
Maven - Quick Guide
Maven is a project management and comprehension tool that provides developers a complete build lifecycle framework. Development team can automate the project's build infrastructure in almost no time as Maven uses a standard directory layout and a default build lifecycle. In case of multiple development teams environmen...
[ { "code": null, "e": 2332, "s": 2060, "text": "Maven is a project management and comprehension tool that provides developers a complete build lifecycle framework. Development team can automate the project's build infrastructure in almost no time as Maven uses a standard directory layout and a defaul...
Goldman Sachs Interview Experience 2021 | 4+ Years Experienced - GeeksforGeeks
21 Jul, 2021 I gave the Goldman Sachs interview this year in June. The whole process took 2 weeks. I had 3 rounds on a single day and after that there was a manager round. Online HackerRank Test: https://leetcode.com/discuss/interview-question/625140/Goldman-Sachs-or-OA-2020-or-Array-Burst-Problem-and-Birthday-Partyhtt...
[ { "code": null, "e": 25215, "s": 25187, "text": "\n21 Jul, 2021" }, { "code": null, "e": 25374, "s": 25215, "text": "I gave the Goldman Sachs interview this year in June. The whole process took 2 weeks. I had 3 rounds on a single day and after that there was a manager round." }...
3 NumPy Functions to Facilitate Data Analysis with Pandas | by Soner Yıldırım | Towards Data Science
Pandas and Numpy are the two most popular Python libraries used for data analysis and manipulation. Pandas is equipped with a lot of practical and handy functions. Pandas also allows for using some Numpy functions which results in more functional and efficient operations with Pandas. In this article, we will go over 3 ...
[ { "code": null, "e": 336, "s": 172, "text": "Pandas and Numpy are the two most popular Python libraries used for data analysis and manipulation. Pandas is equipped with a lot of practical and handy functions." }, { "code": null, "e": 569, "s": 336, "text": "Pandas also allows for...
Count all pairs with given XOR - GeeksforGeeks
05 Nov, 2021 Given an array of distinct positive integers and a number x, find the number of pairs of integers in the array whose XOR is equal to x. Examples: Input : arr[] = {5, 4, 10, 15, 7, 6}, x = 5 Output : 1 Explanation : (10 ^ 15) = 5 Input : arr[] = {3, 6, 8, 10, 15, 50}, x = 5 Output : 2 Explanation : (3 ^...
[ { "code": null, "e": 24863, "s": 24835, "text": "\n05 Nov, 2021" }, { "code": null, "e": 25000, "s": 24863, "text": "Given an array of distinct positive integers and a number x, find the number of pairs of integers in the array whose XOR is equal to x. " }, { "code": null...
LCM And GCD | Practice | GeeksforGeeks
Given two numbers A and B. The task is to find out their LCM and GCD. Example 1: Input: A = 5 , B = 10 Output: 10 5 Explanation: LCM of 5 and 10 is 10, while thier GCD is 5. Example 1: Input: A = 14 , B = 8 Output: 56 2 Explanation: LCM of 14 and 8 is 56, while thier GCD is 2. Your Task: You don't need to read inpu...
[ { "code": null, "e": 308, "s": 238, "text": "Given two numbers A and B. The task is to find out their LCM and GCD." }, { "code": null, "e": 321, "s": 310, "text": "Example 1:" }, { "code": null, "e": 414, "s": 321, "text": "Input:\nA = 5 , B = 10\nOutput:\n10 ...
How to Create Sliding Text Reveal Animation using HTML & CSS ? - GeeksforGeeks
18 Aug, 2021 In this article, we will implement sliding text reveal animation which can be used in personal portfolios, websites, and even in YouTube introduction videos to add an extra edge to our videos so that it looks more interesting and eye-catchy at first instance and the best part is that we will do that using ...
[ { "code": null, "e": 26647, "s": 26619, "text": "\n18 Aug, 2021" }, { "code": null, "e": 26973, "s": 26647, "text": "In this article, we will implement sliding text reveal animation which can be used in personal portfolios, websites, and even in YouTube introduction videos to add...
Python List Comprehension and Slicing - GeeksforGeeks
21 Jan, 2022 List comprehension is an elegant way to define and create a list in python. We can create lists just like mathematical statements and in one line only. The syntax of list comprehension is easier to grasp. A list comprehension generally consists of these parts : Output expression,Input sequence,A variable...
[ { "code": null, "e": 25471, "s": 25443, "text": "\n21 Jan, 2022" }, { "code": null, "e": 25677, "s": 25471, "text": "List comprehension is an elegant way to define and create a list in python. We can create lists just like mathematical statements and in one line only. The syntax ...
How to delete rows of R dataframe based on string match? - GeeksforGeeks
26 Apr, 2022 In this article, we will discuss how to delete rows of a dataframe based on string match in R Programming Language. For this grep() function can be used. This function searches for matches of certain character patterns in a vector of character strings and returns a boolean value as TRUE if that string is p...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n26 Apr, 2022" }, { "code": null, "e": 26603, "s": 26487, "text": "In this article, we will discuss how to delete rows of a dataframe based on string match in R Programming Language." }, { "code": null, "e": 26824, ...
Vertical Sum in a given Binary Tree | Set 1 - GeeksforGeeks
14 Feb, 2022 Given a Binary Tree, find the vertical sum of the nodes that are in the same vertical line. Print all sums through different vertical lines.Examples: 1 / \ 2 3 / \ / \ 4 5 6 7 The tree has 5 vertical linesVertical-Line-1 has only one node 4 => vertical sum is 4 Vertical-Line-2...
[ { "code": null, "e": 37093, "s": 37065, "text": "\n14 Feb, 2022" }, { "code": null, "e": 37245, "s": 37093, "text": "Given a Binary Tree, find the vertical sum of the nodes that are in the same vertical line. Print all sums through different vertical lines.Examples: " }, { ...
Count square and non-square numbers before n - GeeksforGeeks
23 Feb, 2021 Given a number n, we need to count square numbers smaller than or equal to n.Examples : Input : n = 5 Output : Square Number : 2 Non-square numbers : 3 Explanation : Square numbers are 1 and 4. Non square numbers are 2, 3 and 5. Input : n = 10 Output : Square Number : 3 Non-square numb...
[ { "code": null, "e": 26496, "s": 26468, "text": "\n23 Feb, 2021" }, { "code": null, "e": 26586, "s": 26496, "text": "Given a number n, we need to count square numbers smaller than or equal to n.Examples : " }, { "code": null, "e": 26904, "s": 26586, "text": "...
Program to find the Area and Perimeter of a Semicircle - GeeksforGeeks
01 Apr, 2021 Given the radius of the semicircle as r, the task is to find out the Area and Perimeter of that semicircle.Examples: Input: r = 10 Output: Area = 157.00, Perimeter = 31.4 Input: r = 25 Output: Area =981.250000, Perimeter = 78.500000 Approach: In mathematics, a semicircle is a one-dimensional locus of ...
[ { "code": null, "e": 26561, "s": 26533, "text": "\n01 Apr, 2021" }, { "code": null, "e": 26680, "s": 26561, "text": "Given the radius of the semicircle as r, the task is to find out the Area and Perimeter of that semicircle.Examples: " }, { "code": null, "e": 26797, ...
Bar Graph in MATLAB - GeeksforGeeks
15 Nov, 2021 A Bar Graph is a diagrammatic representation of non-continuous or discrete variables. It is of 2 types vertical and horizontal. When the height axis is on the y-axis then it is a vertical Bar Graph and when the height axis is on the x-axis then it is a horizontal Bar Graph. In MATLAB we have a function nam...
[ { "code": null, "e": 25861, "s": 25833, "text": "\n15 Nov, 2021" }, { "code": null, "e": 26136, "s": 25861, "text": "A Bar Graph is a diagrammatic representation of non-continuous or discrete variables. It is of 2 types vertical and horizontal. When the height axis is on the y-ax...
How to align item to the flex-end in the container using CSS ? - GeeksforGeeks
06 Apr, 2021 In this article, we will learn how to align item flex-end at the end of the container using CSS. The align-items and display property of CSS is used to align items at the end of the container. Approach: The align-items and display property of CSS are used to align items at the end of the container. To alig...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n06 Apr, 2021" }, { "code": null, "e": 26814, "s": 26621, "text": "In this article, we will learn how to align item flex-end at the end of the container using CSS. The align-items and display property of CSS is used to align items...
Python - Compute the frequency of words after removing stop words and stemming - GeeksforGeeks
10 Nov, 2021 In this article we are going to tokenize sentence, paragraph, webpage contents using NLTK toolkit in the python environment then we will remove stop words and apply stemming on the contents of sentence, paragraph, webpage. Finally, we will Compute the frequency of words after removing stop words and stemmi...
[ { "code": null, "e": 25563, "s": 25535, "text": "\n10 Nov, 2021" }, { "code": null, "e": 25874, "s": 25563, "text": "In this article we are going to tokenize sentence, paragraph, webpage contents using NLTK toolkit in the python environment then we will remove stop words and appl...
Recursion in Perl - GeeksforGeeks
27 Jun, 2021 Recursion is a mechanism when a function calls itself again and again till the required condition is met. When the function call statement is written inside the same function then such a function is referred to as a recursive function.The argument passed to a function is retrieved from the default array @_...
[ { "code": null, "e": 25543, "s": 25515, "text": "\n27 Jun, 2021" }, { "code": null, "e": 25972, "s": 25543, "text": "Recursion is a mechanism when a function calls itself again and again till the required condition is met. When the function call statement is written inside the sa...
Circular Linked List | Set 2 (Traversal) - GeeksforGeeks
20 Oct, 2021 We have discussed Circular Linked List Introduction and Applications, in the previous post on Circular Linked List. In this post, traversal operation is discussed. In a conventional linked list, we traverse the list from the head node and stop the traversal when we reach NULL. In a circular linked list, w...
[ { "code": null, "e": 39003, "s": 38975, "text": "\n20 Oct, 2021" }, { "code": null, "e": 39168, "s": 39003, "text": "We have discussed Circular Linked List Introduction and Applications, in the previous post on Circular Linked List. In this post, traversal operation is discussed....
Visualizing Decision Trees with Pybaobabdt | by Parul Pandey | Towards Data Science
Data visualization is the language of decision-making. Good charts effectively convey information. Great charts enable, inform, and improve decision making: Dante Vitagliano Decision trees can be visualized in multiple ways. Take, for instance, the indentation nodes where every internal and leaf node is depicted as tex...
[ { "code": null, "e": 346, "s": 172, "text": "Data visualization is the language of decision-making. Good charts effectively convey information. Great charts enable, inform, and improve decision making: Dante Vitagliano" }, { "code": null, "e": 591, "s": 346, "text": "Decision tre...
HackerRank Interview Experience for SDE (Bangalore) - GeeksforGeeks
22 Feb, 2021 I applied for this role at hackerrank.com/careers Round 1(Online coding round in HackerRank): I got a Hackerrank test link. I had 2 questions asked in the test Given an array of elements, Find the count of unique elements in an array.Encrypt a string, as below Given an array of elements, Find the count of ...
[ { "code": null, "e": 26371, "s": 26343, "text": "\n22 Feb, 2021" }, { "code": null, "e": 26421, "s": 26371, "text": "I applied for this role at hackerrank.com/careers" }, { "code": null, "e": 26531, "s": 26421, "text": "Round 1(Online coding round in HackerRan...
Angular ng bootstrap Tooltip Component - GeeksforGeeks
19 Jul, 2021 Angular ng bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use Tooltip in angular ng bootstrap. Tooltip is used to display informative text when ...
[ { "code": null, "e": 25109, "s": 25081, "text": "\n19 Jul, 2021" }, { "code": null, "e": 25367, "s": 25109, "text": "Angular ng bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make ...
GATE | GATE-CS-2003 | Question 5 - GeeksforGeeks
28 Jun, 2021 n couples are invited to a party with the condition that every husband should be accompanied by his wife. However, a wife need not be accompanied by her husband. The number of different gatherings possible at the party is(A) A(B) B(C) C(D) DAnswer: (B)Explanation: There are three options for every couple. ...
[ { "code": null, "e": 24360, "s": 24332, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24667, "s": 24360, "text": "n couples are invited to a party with the condition that every husband should be accompanied by his wife. However, a wife need not be accompanied by her husband. T...
Function that returns the minimum and maximum value of an array in JavaScript
We are required to write a JavaScript function that takes in an array and return another array, the first element of this array should be the smallest element of input array and second should be the greatest element of the input array. Following is the code − Live Demo const arr = [56, 34, 23, 687, 2, 56, 567]; const ...
[ { "code": null, "e": 1298, "s": 1062, "text": "We are required to write a JavaScript function that takes in an array and return another array, the first element of this array should be the smallest element of input array and second should be the greatest element of the input array." }, { "co...
Understanding Deep Learning Models with Integrated Gradients | by Renu Khandelwal | Towards Data Science
This post will help you to understand the two basic axioms of Integrated Gradients and how to implement Integrated Gradient using TensorFlow using a transfer learned model. What is Integrated Gradient? Integrated Gradient(IG) is an interpretability or explainability technique for deep neural networks which visualizes i...
[ { "code": null, "e": 344, "s": 171, "text": "This post will help you to understand the two basic axioms of Integrated Gradients and how to implement Integrated Gradient using TensorFlow using a transfer learned model." }, { "code": null, "e": 373, "s": 344, "text": "What is Integ...
Learn Web Scraping using Python in under 5 minutes | by Kaustumbh Jaiswal | Towards Data Science
Web scraping is harvesting or extracting desired information from a webpage. For web scraping we are going to use the very popular Python library called BeautifulSoup. For web scraping you first need to have some basic knowledge about the HTML tags. Some of the tags used in HTML are shown below. For more information on...
[ { "code": null, "e": 248, "s": 171, "text": "Web scraping is harvesting or extracting desired information from a webpage." }, { "code": null, "e": 468, "s": 248, "text": "For web scraping we are going to use the very popular Python library called BeautifulSoup. For web scraping y...
Winner of an election | Practice | GeeksforGeeks
Given an array of names of candidates in an election. A candidate name in array represents a vote casted to the candidate. The task is to print the name of candidates received maximum vote. If there is tie, print lexicographically smaller name. Input: The first line of input contains an integer T denoting the number of...
[ { "code": null, "e": 483, "s": 238, "text": "Given an array of names of candidates in an election. A candidate name in array represents a vote casted to the candidate. The task is to print the name of candidates received maximum vote. If there is tie, print lexicographically smaller name." }, { ...
How to Counting Chars in EditText Changed Listener in Android?
Some situations, we have to restrict an edit text for some characters. To solve this situation, in this example demonstrate how to Counting Chars in Edit Text Changed Listener. Step 1 - Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 - Add t...
[ { "code": null, "e": 1239, "s": 1062, "text": "Some situations, we have to restrict an edit text for some characters. To solve this situation, in this example demonstrate how to Counting Chars in Edit Text Changed Listener." }, { "code": null, "e": 1368, "s": 1239, "text": "Step ...