title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
JavaScript Course | Printing Hello World in JavaScript
03 Jan, 2022 Previous article: JavaScript Course | What is JavaScript? Whenever we write javascript we make use of the ‘script’ tag. We know what a normal HTML document is made up of. The ‘script’ tag is used to write javascript code and this ‘script’ tag is either placed inside the ‘head’ tag or inside the ‘body’ tag...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Jan, 2022" }, { "code": null, "e": 111, "s": 52, "text": "Previous article: JavaScript Course | What is JavaScript? " }, { "code": null, "e": 362, "s": 111, "text": "Whenever we write javascript we make use of th...
Java Program to Determine the Unicode Code Point at Given Index in String
21 Apr, 2022 ASCII is a code that converts the English alphabets to numerics as numeric can convert to the assembly language which our computer understands. For that, we have assigned a number against each character ranging from 0 to 127. Alphabets are case-sensitive lowercase and uppercase are treated differently. Com...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Apr, 2022" }, { "code": null, "e": 713, "s": 28, "text": "ASCII is a code that converts the English alphabets to numerics as numeric can convert to the assembly language which our computer understands. For that, we have assigned a nu...
Python | Pandas dataframe.corrwith()
16 May, 2020 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandasis one of those packages and makes importing and analyzing data much easier. Pandas dataframe.corrwith() is used to compute pairwise correlation between rows or columns of...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 May, 2020" }, { "code": null, "e": 241, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandasis one of those packages and makes impo...
Sorting 2D Vector of Pairs in C++
12 Jul, 2022 A 2D vector also known as vector of vectors is a vector in which each element is a vector on its own. In other words, It is a matrix implemented with the help of vectors. What is a 2D vector of pairs? A 2D vector of pairs is a vector in which each element is a vector of pairs on its own. In other words, It...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jul, 2022" }, { "code": null, "e": 199, "s": 28, "text": "A 2D vector also known as vector of vectors is a vector in which each element is a vector on its own. In other words, It is a matrix implemented with the help of vectors." }...
How to add/remove values in the array in PowerShell?
An array is always a fixed size. To add value to the array, you need to create a new copy of the array and add value to it. To do so, you simply need to use += operator. For example, you have an existing array as given below. $array = 1,2,3,4,5 To add value “Hello” to the array, we will use += sign. $array += "Hello" N...
[ { "code": null, "e": 1232, "s": 1062, "text": "An array is always a fixed size. To add value to the array, you need to create a new copy of the array and add value to it. To do so, you simply need to use += operator." }, { "code": null, "e": 1288, "s": 1232, "text": "For example,...
Const member functions in C++ - GeeksforGeeks
27 Mar, 2021 Like member functions and member function arguments, the objects of a class can also be declared as const. an object declared as const cannot be modified and hence, can invoke only const member functions as these functions ensure not to modify the object. A const object can be created by prefixing the cons...
[ { "code": null, "e": 23769, "s": 23741, "text": "\n27 Mar, 2021" }, { "code": null, "e": 24210, "s": 23769, "text": "Like member functions and member function arguments, the objects of a class can also be declared as const. an object declared as const cannot be modified and hence...
Difference Between Virtual and Pure Virtual Function
In this post, we will understand the difference between virtual and pure virtual functions. It has its own definition inside the class. It has its own definition inside the class. The base class can override a virtual function. The base class can override a virtual function. It doesn’t have a derived class. It doesn’t ...
[ { "code": null, "e": 1154, "s": 1062, "text": "In this post, we will understand the difference between virtual and pure virtual functions." }, { "code": null, "e": 1198, "s": 1154, "text": "It has its own definition inside the class." }, { "code": null, "e": 1242, ...
Aptitude - Speed and Distance
Speed = Distance⁄Time Time = Distance⁄Speed P km/hr = (P x 5⁄18)m/sec P m/sec = (P x 18⁄5)km/hr If the ratio of the speeds of P and Q is p:q, then the ratio of the times taken by them to cover the same distance is 1⁄p:1⁄q or q : p The average speed of the journey is (2pq⁄p+q)km/hr if a man covers a certain distanc...
[ { "code": null, "e": 3989, "s": 3892, "text": "Speed = Distance⁄Time\nTime = Distance⁄Speed\nP km/hr = (P x 5⁄18)m/sec\nP m/sec = (P x 18⁄5)km/hr\n" }, { "code": null, "e": 4107, "s": 3989, "text": "If the ratio of the speeds of P and Q is p:q, then the ratio of the times taken b...
Data Structure and Algorithms Binary Search
Binary search is a fast search algorithm with run-time complexity of Ο(log n). This search algorithm works on the principle of divide and conquer. For this algorithm to work properly, the data collection should be in the sorted form. Binary search looks for a particular item by comparing the middle most item of the col...
[ { "code": null, "e": 2814, "s": 2580, "text": "Binary search is a fast search algorithm with run-time complexity of Ο(log n). This search algorithm works on the principle of divide and conquer. For this algorithm to work properly, the data collection should be in the sorted form." }, { "code...
Binary Search - GeeksforGeeks
25 Mar, 2022 Problem: Given a sorted array arr[] of n elements, write a function to search a given element x in arr[]. Examples: Input: arr[] = {10, 20, 30, 50, 60, 80, 110, 130, 140, 170}, x = 110Output: 6Explanation: Element x is present at index 6 Input: arr[] = {10, 20, 30, 40, 60, 110, 120, 130, 170}, x = 175Out...
[ { "code": null, "e": 24031, "s": 24000, "text": " \n25 Mar, 2022\n" }, { "code": null, "e": 24137, "s": 24031, "text": "Problem: Given a sorted array arr[] of n elements, write a function to search a given element x in arr[]." }, { "code": null, "e": 24148, "s": 2...
LESS - Import Directives
The @import directive is used to import the files in the code. It spreads the LESS code over different files and allows to maintain the structure of code easily. You can put the @import statements anywhere in the code. For instance, you can import the file by using @import keyword as @import "file_name.less". You can u...
[ { "code": null, "e": 2769, "s": 2550, "text": "The @import directive is used to import the files in the code. It spreads the LESS code over different files and allows to maintain the structure of code easily. You can put the @import statements anywhere in the code." }, { "code": null, "e...
GDB - Quick Guide
A debugger is a program that runs other programs, allowing the user to exercise control over these programs, and to examine variables when problems arise. GNU Debugger, which is also called gdb, is the most popular debugger for UNIX systems to debug C and C++ programs. GNU Debugger helps you in getting information abou...
[ { "code": null, "e": 1864, "s": 1709, "text": "A debugger is a program that runs other programs, allowing the user to exercise control over these programs, and to examine variables when problems arise." }, { "code": null, "e": 1979, "s": 1864, "text": "GNU Debugger, which is also...
CSS | translate3d() Function - GeeksforGeeks
07 Aug, 2019 The translate3d() function is an inbuilt function which is used to reposition an element in 3D space. Syntax: translate3d( tx, ty, tz ) Parameters: This function accepts three parameters as mentioned above and described below: tx: This parameter holds the length of translation corresponding to x-axis. This...
[ { "code": null, "e": 25296, "s": 25268, "text": "\n07 Aug, 2019" }, { "code": null, "e": 25398, "s": 25296, "text": "The translate3d() function is an inbuilt function which is used to reposition an element in 3D space." }, { "code": null, "e": 25406, "s": 25398, ...
Apache Presto - split(string,delimiter)
presto:default> select split('apache presto','e') as string_split; string_split ------------------- [apach, pr, sto] 46 Lectures 3.5 hours Arnab Chakraborty 23 Lectures 1.5 hours Mukund Kumar Mishra 16 Lectures 1 hours Nilay Mehta 52 Lectures 1.5 hours B...
[ { "code": null, "e": 2074, "s": 2006, "text": "presto:default> select split('apache presto','e') as string_split; " }, { "code": null, "e": 2133, "s": 2074, "text": " string_split \n------------------- \n [apach, pr, sto] \n" }, { "code": null, "e": 2168, "s": ...
Find the first repeated word in a string - GeeksforGeeks
22 Apr, 2022 Given a string, Find the 1st repeated word in a stringExamples: Input : "Ravi had been saying that he had been there" Output : had Input : "Ravi had been saying that" Output : No Repetition Input : "he had had he" Output : he question source : https://www.geeksforgeeks.org/goldman-sachs-interview-experi...
[ { "code": null, "e": 24934, "s": 24906, "text": "\n22 Apr, 2022" }, { "code": null, "e": 24999, "s": 24934, "text": "Given a string, Find the 1st repeated word in a stringExamples: " }, { "code": null, "e": 25163, "s": 24999, "text": "Input : \"Ravi had been s...
Create an ordered list in HTML
The HTML <ol> tag is used for creating an ordered list. You can try to run the following code to create an ordered list using the <ol> tag − The HTML <ol> tag supports the following additional attributes − You can try to run the following code to create an ordered list using the <ol> tag − <!DOCTYPE html> <html> <he...
[ { "code": null, "e": 1203, "s": 1062, "text": "The HTML <ol> tag is used for creating an ordered list. You can try to run the following code to create an ordered list using the <ol> tag −" }, { "code": null, "e": 1268, "s": 1203, "text": "The HTML <ol> tag supports the following ...
Python | Pandas series.cummax() to find Cumulative maximum of a series - GeeksforGeeks
20 Nov, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Series.cummax() is used to find Cumulative maximum of a series. In cumulative maximum,...
[ { "code": null, "e": 24230, "s": 24202, "text": "\n20 Nov, 2018" }, { "code": null, "e": 24444, "s": 24230, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages a...
Solidity – While, Do-While, and For Loop
11 May, 2022 Loops are used when we have to perform an action over and over again. While writing a contract there may be a situation when we have to do some action repeatedly, In this situation, loops are implemented to reduce the number of lines of the statements. Solidity supports following loops too ease down the pr...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 May, 2022" }, { "code": null, "e": 355, "s": 28, "text": "Loops are used when we have to perform an action over and over again. While writing a contract there may be a situation when we have to do some action repeatedly, In this situ...
How to handle the modal closing event in Twitter Bootstrap?
03 Jun, 2020 Modal Closing Event in Twitter Bootstrap | Set 1 Prerequisite Knowledge: Bootstrap 4 | Modal Twitter Bootstrap’s modal class offer a few events that are fired at the standard Bootstrap modal class. Bootstrap Modals offer a lightweight, multi-purpose JavaScript popup that is customizable and responsive. The...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Jun, 2020" }, { "code": null, "e": 103, "s": 54, "text": "Modal Closing Event in Twitter Bootstrap | Set 1" }, { "code": null, "e": 147, "s": 103, "text": "Prerequisite Knowledge: Bootstrap 4 | Modal" }, { ...
Rotate a Linked List
24 Jun, 2022 Given a singly linked list, rotate the linked list counter-clockwise by k nodes. Where k is a given positive integer. For example, if the given linked list is 10->20->30->40->50->60 and k is 4, the list should be modified to 50->60->10->20->30->40. Assume that k is smaller than the count of nodes in a link...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2022" }, { "code": null, "e": 368, "s": 52, "text": "Given a singly linked list, rotate the linked list counter-clockwise by k nodes. Where k is a given positive integer. For example, if the given linked list is 10->20->30->40-...
Longest Subarray having sum of elements atmost ‘k’
25 May, 2022 Given an array of integers, our goal is to find the length of the largest subarray having the sum of its elements at most ‘k’ where k>0. Examples: Input : arr[] = {1, 2, 1, 0, 1, 1, 0}, k = 4 Output : 5 Explanation: {1, 2, 1} => sum = 4, length = 3 {1, 2, 1, 0}, {2, 1, 0, 1} => sum = 4, length = 4 {1, ...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 May, 2022" }, { "code": null, "e": 191, "s": 54, "text": "Given an array of integers, our goal is to find the length of the largest subarray having the sum of its elements at most ‘k’ where k>0." }, { "code": null, "e": ...
Python | Find most frequent element in a list
17 Jul, 2021 Given a list, find the most frequent element in it. If there are multiple elements that appear maximum number of times, print any one of them. Examples: Input : [2, 1, 2, 2, 1, 3] Output : 2 Input : ['Dog', 'Cat', 'Dog'] Output : Dog Approach #1 : Naive ApproachThis is a brute force approach in which we ...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Jul, 2021" }, { "code": null, "e": 195, "s": 52, "text": "Given a list, find the most frequent element in it. If there are multiple elements that appear maximum number of times, print any one of them." }, { "code": null, ...
PHP array_key_exists() Function
01 Dec, 2021 In this article, we will see how to get the array key using the array_key_exists() function in PHP, & will also see its implementation through the example. The array_key_exists() is an inbuilt function of PHP that is used to check whether a specific key or index is present inside an array or not. The funct...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Dec, 2021" }, { "code": null, "e": 591, "s": 28, "text": "In this article, we will see how to get the array key using the array_key_exists() function in PHP, & will also see its implementation through the example. The array_key_exist...
How to standardized a column of R DataFrame ?
05 Apr, 2021 A large dataset that had multiple columns with varying ranges and units may need to be standardized before further processing. In this article, we will be discussing how to standardize a column of dataframe in R Programming Language. Let’s first discuss standardization. Standardization is a feature scaling...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Apr, 2021" }, { "code": null, "e": 262, "s": 28, "text": "A large dataset that had multiple columns with varying ranges and units may need to be standardized before further processing. In this article, we will be discussing how to st...
What is Vagrant?
09 Jun, 2021 Vagrant is an open-source tool that helps us to automate the creation and management of Virtual Machines. In a nutshell, we can specify the configuration of a virtual machine in a simple configuration file, and Vagrant creates the same Virtual machine using just one simple command. It provides command-line...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Jun, 2021" }, { "code": null, "e": 372, "s": 28, "text": "Vagrant is an open-source tool that helps us to automate the creation and management of Virtual Machines. In a nutshell, we can specify the configuration of a virtual machine ...
How to Improve Performance of PC/Laptop?
21 Aug, 2021 More often than not people encounter performance issues with their personal computer after a significant time. These can occur due to various issues. Some key factors and their resolution is given in this article. Follow the below steps to delete all temporary files: Click on the start button and type “RUN...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Aug, 2021" }, { "code": null, "e": 242, "s": 28, "text": "More often than not people encounter performance issues with their personal computer after a significant time. These can occur due to various issues. Some key factors and thei...
How to Resize JPEG Image in PHP ?
27 May, 2020 Why do we need to resize images?In a website, often, we need to scale an image to fit a particular section. Sometimes, it becomes necessary to scale down any image of random size to fit a cover photo section or profile picture section. Also, we need to show a thumbnail of a bigger image. In those cases, it...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 May, 2020" }, { "code": null, "e": 388, "s": 28, "text": "Why do we need to resize images?In a website, often, we need to scale an image to fit a particular section. Sometimes, it becomes necessary to scale down any image of random s...
tidyr Package in R Programming
06 Aug, 2020 Packages in the R language are a collection of R functions, compiled code, and sample data. They are stored under a directory called “library” in the R environment. By default, R installs a set of packages during installation. One of the most important packages in R is the tidyr package. The sole purpose ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Aug, 2020" }, { "code": null, "e": 647, "s": 28, "text": "Packages in the R language are a collection of R functions, compiled code, and sample data. They are stored under a directory called “library” in the R environment. By default...
Project Idea | God’s Eye
11 May, 2022 Project Idea: Complete user’s Activities tracking with Remote Assistance This Program is divided into two major modules one is for complete activity tracking and can even tell which activity is currently active on the user’s side. Can also work as a Global Keylogger to log the text written by a user on any...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 May, 2022" }, { "code": null, "e": 696, "s": 52, "text": "Project Idea: Complete user’s Activities tracking with Remote Assistance This Program is divided into two major modules one is for complete activity tracking and can even tel...
Python Program for Program to calculate area of a Tetrahedron
16 Jun, 2022 A Tetrahedron is simply a pyramid with a triangular base. It is a solid object with four triangular faces, three on the sides or lateral faces, one on the bottom or the base and four vertices or corners. If the faces are all congruent equilateral triangles, then the tetrahedron is called regular. The volum...
[ { "code": null, "e": 53, "s": 25, "text": "\n16 Jun, 2022" }, { "code": null, "e": 427, "s": 53, "text": "A Tetrahedron is simply a pyramid with a triangular base. It is a solid object with four triangular faces, three on the sides or lateral faces, one on the bottom or the base ...
C++ default constructor | Built-in types - GeeksforGeeks
29 May, 2017 Predict the output of following program? #include <iostream>using namespace std; int main() { cout << int() << endl; return 0;} A constructor without any arguments or with default values for every argument, is treated as default constructor. It will be called by the compiler when in need (precisely ...
[ { "code": null, "e": 24620, "s": 24592, "text": "\n29 May, 2017" }, { "code": null, "e": 24661, "s": 24620, "text": "Predict the output of following program?" }, { "code": "#include <iostream>using namespace std; int main() { cout << int() << endl; return 0;}", ...
Design Pattern - Abstract Factory Pattern
Abstract Factory patterns work around a super-factory which creates other factories. This factory is also called as factory of factories. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object. In Abstract Factory pattern an interface is responsible ...
[ { "code": null, "e": 3015, "s": 2751, "text": "Abstract Factory patterns work around a super-factory which creates other factories. This factory is also called as factory of factories. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create ...
Find K Closest Points to the Origin in C++
Suppose we have a set of points. Our task is to find K points which are closest to the origin. Suppose the points are (3, 3), (5, -1) and (-2, 4). Then the closest two (K = 2) points are (3, 3), (-2, 4). To solve this problem, we will sort the list of points based on their Euclidean distance, after that take the top mo...
[ { "code": null, "e": 1266, "s": 1062, "text": "Suppose we have a set of points. Our task is to find K points which are closest to the origin. Suppose the points are (3, 3), (5, -1) and (-2, 4). Then the closest two (K = 2) points are (3, 3), (-2, 4)." }, { "code": null, "e": 1450, "s...
Program to find root of an equations using secant method - GeeksforGeeks
08 Oct, 2021 The secant method is used to find the root of an equation f(x) = 0. It is started from two distinct estimates x1 and x2 for the root. It is an iterative procedure involving linear interpolation to a root. The iteration stops if the difference between two intermediate values is less than the convergence fac...
[ { "code": null, "e": 24880, "s": 24852, "text": "\n08 Oct, 2021" }, { "code": null, "e": 25192, "s": 24880, "text": "The secant method is used to find the root of an equation f(x) = 0. It is started from two distinct estimates x1 and x2 for the root. It is an iterative procedure ...
C++ program to find two numbers with sum and product both same as N
In this tutorial, we will be discussing a program to find two numbers (say ‘a’ and ‘b’) such that both a+b = N and a*b = N are satisfied. Eliminating ‘a’ from both the equations, we get a quadratic equation in ‘b’ and ‘N’ i.e b2 - bN + N = 0 This equation will have two roots which will give us the value of both ‘a’ and...
[ { "code": null, "e": 1165, "s": 1062, "text": "In this tutorial, we will be discussing a program to find two numbers (say ‘a’ and ‘b’) such that both" }, { "code": null, "e": 1200, "s": 1165, "text": "a+b = N and a*b = N are satisfied." }, { "code": null, "e": 1288, ...
Copy char array to string in Java
Use the valueOf() method in Java to copy char array to string. You can also use the copyValueOf() method, which represents the character sequence in the array specified. Here, you can specify the part of array to be copied. Let us first create a character array. char[] arr = { 'p', 'q', 'r', 's' }; The method valueOf()...
[ { "code": null, "e": 1286, "s": 1062, "text": "Use the valueOf() method in Java to copy char array to string. You can also use the copyValueOf() method, which represents the character sequence in the array specified. Here, you can specify the part of array to be copied." }, { "code": null, ...
How to extract a single column of an R data frame as a data frame?
Generally, we extract columns as a vector from an R data frame but sometimes we might need a column as a data frame, therefore, we can use as.data.frame to extract columns that we want to extract as a data frame with single square brackets. The purpose behind this could be merging the column with another data frame. Co...
[ { "code": null, "e": 1380, "s": 1062, "text": "Generally, we extract columns as a vector from an R data frame but sometimes we might need a column as a data frame, therefore, we can use as.data.frame to extract columns that we want to extract as a data frame with single square brackets. The purpose ...
Jackson - Quick Guide
Jackson is a simple java based library to serialize java objects to JSON and vice versa. Easy to use. - jackson API provides a high level facade to simplify commonly used use cases. Easy to use. - jackson API provides a high level facade to simplify commonly used use cases. No need to create mapping. - jackson API pro...
[ { "code": null, "e": 1842, "s": 1753, "text": "Jackson is a simple java based library to serialize java objects to JSON and vice versa." }, { "code": null, "e": 1935, "s": 1842, "text": "Easy to use. - jackson API provides a high level facade to simplify commonly used use cases."...
abs() in Python
The abs() function in python represents the absolute value of a numeric input. The absolute value is concerned with the value or magnitude of a number instead of the sign attached to the number. It is even more useful for complex numbers where the calculation of magnitude involves many steps. The syntax of the function...
[ { "code": null, "e": 1356, "s": 1062, "text": "The abs() function in python represents the absolute value of a numeric input. The absolute value is concerned with the value or magnitude of a number instead of the sign attached to the number. It is even more useful for complex numbers where the calcu...
Count ways to reach the n’th stair
There are n stairs. One person will go to 1'st to the n'th stair. Maximum how many stairs he/she can cross in one step is also given. With this information, we have to find possible ways to go to the n'th stairs. Let us consider one can cross a maximum two stairs in each step. So we can find recursive relations to solv...
[ { "code": null, "e": 1275, "s": 1062, "text": "There are n stairs. One person will go to 1'st to the n'th stair. Maximum how many stairs he/she can cross in one step is also given. With this information, we have to find possible ways to go to the n'th stairs." }, { "code": null, "e": 151...
Counting occurrences of vowel, consonants - JavaScript
We are required to write a JavaScript function that takes in a string which contains English alphabet, for example − const str = 'This is a sample string, will be used to collect some data'; The function should return an object containing the count of vowels and consonants in the string i.e. the output should be − { vo...
[ { "code": null, "e": 1179, "s": 1062, "text": "We are required to write a JavaScript function that takes in a string which contains English alphabet, for example −" }, { "code": null, "e": 1253, "s": 1179, "text": "const str = 'This is a sample string, will be used to collect som...
Maximum number of fixed points using atmost 1 swap - GeeksforGeeks
10 Feb, 2022 Given a permutation of N elements (Elements are in range 0 to N-1). A fixed point is an index at which the value is same as the index (That is, a[i]=i). You are allowed to make atmost 1 swap. Find the maximum number of fixed points that you can get.Examples: Input : N = 5 arr[] = {0, 1, 3, 4, 2} ...
[ { "code": null, "e": 24431, "s": 24403, "text": "\n10 Feb, 2022" }, { "code": null, "e": 24692, "s": 24431, "text": "Given a permutation of N elements (Elements are in range 0 to N-1). A fixed point is an index at which the value is same as the index (That is, a[i]=i). You are al...
Hide content depending on screen size with Bootstrap
Use the .hidden-* class in Bootstrap to hide content depending on screen size with Bootstrap Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script sr...
[ { "code": null, "e": 1155, "s": 1062, "text": "Use the .hidden-* class in Bootstrap to hide content depending on screen size with Bootstrap" }, { "code": null, "e": 1165, "s": 1155, "text": "Live Demo" }, { "code": null, "e": 1696, "s": 1165, "text": "<!DOCTYP...
K distance from root | Practice | GeeksforGeeks
Given a Binary Tree of size N and an integer K. Print all nodes that are at distance k from root (root is considered at distance 0 from itself). Nodes should be printed from left to right. If k is more that height of tree, nothing should be printed. For example, if below is given tree and k is 2. Output should be 4 5 6...
[ { "code": null, "e": 488, "s": 238, "text": "Given a Binary Tree of size N and an integer K. Print all nodes that are at distance k from root (root is considered at distance 0 from itself). Nodes should be printed from left to right. If k is more that height of tree, nothing should be printed." },...
Python | Test if dictionary contains unique keys and values
29 Apr, 2019 Sometimes, we just wish to work with unique elements and any type of repetition is not desired, for these cases, we need to have techniques to solve these problems. One such problem can be to test for unique keys and values. For keys, they are by default unique, hence no external testing is required, but a...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Apr, 2019" }, { "code": null, "e": 431, "s": 28, "text": "Sometimes, we just wish to work with unique elements and any type of repetition is not desired, for these cases, we need to have techniques to solve these problems. One such p...
Difference Between Iterator VS Generator
24 Jan, 2021 A process that is repeated more than one time by applying the same logic is called an Iteration. In programming languages like python, a loop is created with few conditions to perform iteration till it exceeds the limit. If the loop is executed 6 times continuously, then we could say the particular block ...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jan, 2021" }, { "code": null, "e": 382, "s": 52, "text": "A process that is repeated more than one time by applying the same logic is called an Iteration. In programming languages like python, a loop is created with few conditions ...
Explain spread operator in ES6 with an Example
21 Oct, 2021 In this article, we will try to understand the basic details which are associated with the Spread operator which includes the syntax of the spread operator and its usage with the help of certain examples in ES6. Let us first understand what is exactly Spread Operator is and what is its syntax and then furt...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Oct, 2021" }, { "code": null, "e": 266, "s": 54, "text": "In this article, we will try to understand the basic details which are associated with the Spread operator which includes the syntax of the spread operator and its usage with...
Find three element from different three arrays such that a + b + c = sum
07 Jul, 2022 Given three integer arrays and a “sum”, the task is to check if there are three elements a, b, c such that a + b + c = sum and a, b and c belong to three different arrays. Examples : Input : a1[] = { 1 , 2 , 3 , 4 , 5 }; a2[] = { 2 , 3 , 6 , 1 , 2 }; a3[] = { 3 , 2 , 4 , 5 , 6 }; sum = ...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jul, 2022" }, { "code": null, "e": 227, "s": 54, "text": "Given three integer arrays and a “sum”, the task is to check if there are three elements a, b, c such that a + b + c = sum and a, b and c belong to three different arrays. " ...
Python | Splitting string list by strings
05 Sep, 2019 Sometimes, while working with Python strings, we might have a problem in which we need to perform a split on a string. But we can have a more complex problem of having a front and rear string and need to perform a split on them. This can be multiple pairs for split. Let’s discuss certain way to solve this ...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Sep, 2019" }, { "code": null, "e": 355, "s": 28, "text": "Sometimes, while working with Python strings, we might have a problem in which we need to perform a split on a string. But we can have a more complex problem of having a front...
Fallthrough in C++
13 Jan, 2021 Fall through is a type of error that occurs in various programming languages like C, C++, Java, Dart ...etc. It occurs in switch-case statements where when we forget to add a break statement and in that case flow of control jumps to the next line. Due to this when any case is matched with the specified val...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jan, 2021" }, { "code": null, "e": 564, "s": 52, "text": "Fall through is a type of error that occurs in various programming languages like C, C++, Java, Dart ...etc. It occurs in switch-case statements where when we forget to add a...
Multithreaded Servers in Java
09 Nov, 2020 Prerequisites: Socket Programming in Java Multithreaded Server: A server having more than one thread is known as Multithreaded Server. When a client sends the request, a thread is generated through which a user can communicate with the server. We need to generate multiple threads to accept multiple request...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Nov, 2020" }, { "code": null, "e": 94, "s": 52, "text": "Prerequisites: Socket Programming in Java" }, { "code": null, "e": 402, "s": 94, "text": "Multithreaded Server: A server having more than one thread is kno...
Draw Chess Board Using Turtle in Python
01 Aug, 2020 Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To move turtle, there are some functions i.e forward(), backward(), etc. For drawing Chess Board following steps are used : Import turtl...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Aug, 2020" }, { "code": null, "e": 272, "s": 28, "text": "Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To m...
Sorted order printing of a given array that represents a BST
16 Jun, 2022 Given an array that stores a complete Binary Search Tree, write a function that efficiently prints the given array in ascending order. For example, given an array [4, 2, 5, 1, 3], the function should print 1, 2, 3, 4, 5 Solution: Inorder traversal of BST prints it in ascending order. The only trick is to ...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jun, 2022" }, { "code": null, "e": 273, "s": 52, "text": "Given an array that stores a complete Binary Search Tree, write a function that efficiently prints the given array in ascending order. For example, given an array [4, 2, 5, 1...
How to Add padding to a tkinter widget only on one side ?
15 Mar, 2021 In this article, we will discuss the procedure of adding padding to a Tkinter widget only on one side. Here, we create a widget and use widget.grid() method in tkinter to padding the content of the widget. For example, let’s create a label and use label.grid() method. Below the syntax is given: label1 = Wi...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Mar, 2021" }, { "code": null, "e": 348, "s": 52, "text": "In this article, we will discuss the procedure of adding padding to a Tkinter widget only on one side. Here, we create a widget and use widget.grid() method in tkinter to pad...
Create pandas dataframe from lists using dictionary
13 Dec, 2018 Creating pandas data-frame from lists using dictionary can be achieved in multiple ways. Method #1: Using pandas.DataFrame With this method in Pandas we can transform a dictionary of list to a dataframe. # importing pandas as pdimport pandas as pd # dictionary of listsdict = {'name':["aparna", "pankaj", "...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Dec, 2018" }, { "code": null, "e": 117, "s": 28, "text": "Creating pandas data-frame from lists using dictionary can be achieved in multiple ways." }, { "code": null, "e": 151, "s": 117, "text": "Method #1: Using ...
List addAll() Method in Java with Examples
02 Jan, 2019 This method appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection’s iterator. Syntax: boolean addAll(Collection c) Parameters: This function has a single parameter, i.e, Collection c, whose elements are to be appende...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Jan, 2019" }, { "code": null, "e": 221, "s": 52, "text": "This method appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection’s iterator." },...
Working with Excel Spreadsheets in Python
12 May, 2021 You all must have worked with Excel at some time in your life and must have felt the need for automating some repetitive or tedious task. Don’t worry in this tutorial we are going to learn about how to work with Excel using Python, or automating Excel using Python. We will be covering this with the help of...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 May, 2021" }, { "code": null, "e": 357, "s": 28, "text": "You all must have worked with Excel at some time in your life and must have felt the need for automating some repetitive or tedious task. Don’t worry in this tutorial we are g...
TypeScript | Array splice() Method
18 Jun, 2020 The Array.splice() is an inbuilt TypeScript function which is used to change the content of an array, adding new elements while removing old elements.Syntax: array.splice(index, howMany, [element1][, ..., elementN]); Parameter: This method accept three parameter as mentioned above and described below: i...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jun, 2020" }, { "code": null, "e": 187, "s": 28, "text": "The Array.splice() is an inbuilt TypeScript function which is used to change the content of an array, adding new elements while removing old elements.Syntax: " }, { "c...
Permutation with Spaces | Practice | GeeksforGeeks
Given a string you need to print all possible strings that can be made by placing spaces (zero or one) in between them. The output should be printed in sorted increasing order of strings Example 1: Input: S = "ABC" Output: (A B C)(A BC)(AB C)(ABC) Explanation: ABC AB C A BC A B C These are the possible combination of "...
[ { "code": null, "e": 425, "s": 238, "text": "Given a string you need to print all possible strings that can be made by placing spaces (zero or one) in between them. The output should be printed in sorted increasing order of strings" }, { "code": null, "e": 436, "s": 425, "text": ...
Scala Set foreach() method with example
18 Oct, 2019 The foreach() method is utilized to apply the given function to all the elements of the set. Method Definition: def foreach(f: (A) => Unit): Unit Return Type: It returns all the elements of the set after applying the given function to each of them. Example #1: // Scala program of foreach() // method // C...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Oct, 2019" }, { "code": null, "e": 121, "s": 28, "text": "The foreach() method is utilized to apply the given function to all the elements of the set." }, { "code": null, "e": 174, "s": 121, "text": "Method Defini...
Why Matplotlib can’t be installed in Visual Studio Code | by Xue Wang | Towards Data Science
We know “Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python”. If Anaconda is permitted to be installed, normally there is no problem using Matplotlib. But recently there are Terms of Service updates for commercial users from Anaconda. The detailed info is expla...
[ { "code": null, "e": 507, "s": 172, "text": "We know “Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python”. If Anaconda is permitted to be installed, normally there is no problem using Matplotlib. But recently there are Terms of Service updat...
Longest Non-Increasing Subsequence in a Binary String - GeeksforGeeks
21 May, 2021 Given a binary string S of size N, the task is to find the length of the longest non-increasing subsequence in the given string S. Examples: Input: S = “0101110110100001011”Output: 12 Explanation: The longest non-increasing subsequence is “111111100000”, having length equal to 12. Input: S = 10101Output: 3...
[ { "code": null, "e": 24301, "s": 24273, "text": "\n21 May, 2021" }, { "code": null, "e": 24432, "s": 24301, "text": "Given a binary string S of size N, the task is to find the length of the longest non-increasing subsequence in the given string S." }, { "code": null, ...
Search Element in a Dictionary using Javascript
We'll implement the get method that searches a given key in the dictionary. get(key) { if(this.hasKey(key)) { return this.container[key]; } return undefined; } Again, JS objects are very much implemented like dictionaries, hence have most of the functionality we can use directly without any more code ne...
[ { "code": null, "e": 1139, "s": 1062, "text": "We'll implement the get method that searches a given key in the dictionary. " }, { "code": null, "e": 1238, "s": 1139, "text": "get(key) {\n if(this.hasKey(key)) {\n return this.container[key];\n }\n return undefined;\n}" ...
Understanding Data Analysis Step-By-Step | by Himanshu Sharma | Towards Data Science
In today’s world, over 2.5 quintillion bytes of data are created every single day. Being a Data Science Engineer/Data Scientist/ML Engineer or whatever you might call the art of data analysis is the first thing that you should master. It is a process of inspecting, cleansing, transforming, and modeling data so that we ...
[ { "code": null, "e": 407, "s": 172, "text": "In today’s world, over 2.5 quintillion bytes of data are created every single day. Being a Data Science Engineer/Data Scientist/ML Engineer or whatever you might call the art of data analysis is the first thing that you should master." }, { "code"...
C++ Program to Check Whether a Number is Palindrome or Not
A palindrome number remains the same if its digits are reversed i.e its value does not change. A palindrome number can also be called symmetric. For example: The numbers 12321, 1551, 11 etc are palindromes as they do not change even if their digits are reversed. A program that checks if a number is palindrome or not is...
[ { "code": null, "e": 1325, "s": 1062, "text": "A palindrome number remains the same if its digits are reversed i.e its value does not change. A palindrome number can also be called symmetric. For example: The numbers 12321, 1551, 11 etc are palindromes as they do not change even if their digits are ...
Map of list and forward_list in C++ STL with Examples - GeeksforGeeks
10 Jan, 2022 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 the same key values. Lists are sequence containers that allow non-contiguous memory allocation. As compared to vector, the list has slow traversal, but onc...
[ { "code": null, "e": 23707, "s": 23679, "text": "\n10 Jan, 2022" }, { "code": null, "e": 23880, "s": 23707, "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 the same ke...
Check if the given Binary Expressions are valid - GeeksforGeeks
01 Oct, 2021 Given n expressions of the type x = y and x != y where 1 ≤ x, y ≤ n, the task is to check whether the integers from 1 to n can be assigned to x and y such that all the equations are satisfied. Examples: Input: x[] = {1, 2, 3}, op[] = {“=”, “=”, “!=”}, y[] = {2, 3, 1} Output: Invalid If 1 = 2 and 2 = 3 the...
[ { "code": null, "e": 24822, "s": 24794, "text": "\n01 Oct, 2021" }, { "code": null, "e": 25015, "s": 24822, "text": "Given n expressions of the type x = y and x != y where 1 ≤ x, y ≤ n, the task is to check whether the integers from 1 to n can be assigned to x and y such that all...
Android FrameLayout in Kotlin - GeeksforGeeks
21 Feb, 2022 Android Framelayout is a ViewGroup subclass which is used to specify the position of multiple views placed on the top of each other to represent a single view screen. Generally, we can say FrameLayout simply blocks a particular area on the screen to display a single view. Here, all the child views or eleme...
[ { "code": null, "e": 24518, "s": 24490, "text": "\n21 Feb, 2022" }, { "code": null, "e": 24685, "s": 24518, "text": "Android Framelayout is a ViewGroup subclass which is used to specify the position of multiple views placed on the top of each other to represent a single view scre...
A Comprehensive Case-Study of GraphSage with Hands-on-Experience using PyTorchGeometric Library and Open-Graph-Benchmark’s Amazon Product Recommendation Dataset | by Sachin Sharma | Towards Data Science
This blogpost provides a comprehensive study on theoretical and practical understanding of GraphSage which is an inductive graph representation learning algorithm. For a practical application we are going to use the popular PyTorch Geometric library and Open-Graph-Benchmark dataset. We use ogbn-products dataset which i...
[ { "code": null, "e": 926, "s": 172, "text": "This blogpost provides a comprehensive study on theoretical and practical understanding of GraphSage which is an inductive graph representation learning algorithm. For a practical application we are going to use the popular PyTorch Geometric library and O...
HTML - <ilayer> Tag
The HTML <ilayer> tag is used to create a layer that occupies space in the containing text flow. Subsequent content is placed after the space occupied by the <ilayer>. This is in contrast to the <layer> tag, which creates a layer above the containing text flow, allowing subsequent content to be placed under the layer j...
[ { "code": null, "e": 2542, "s": 2374, "text": "The HTML <ilayer> tag is used to create a layer that occupies space in the containing text flow. Subsequent content is placed after the space occupied by the <ilayer>." }, { "code": null, "e": 2707, "s": 2542, "text": "This is in con...
Array.prototype.find() method in JavaScript.
The Array.prototype.find() method returns the first element value that satisfy a given condition in an array. Following is the code for the Array.prototype.find() method − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />...
[ { "code": null, "e": 1172, "s": 1062, "text": "The Array.prototype.find() method returns the first element value that satisfy a given\ncondition in an array." }, { "code": null, "e": 1234, "s": 1172, "text": "Following is the code for the Array.prototype.find() method −" }, {...
How can an exception be thrown manually by a programmer in java?
An exception is an issue (run time error) occurred during the execution of a program. When an exception occurred the program gets terminated abruptly and, the code past the line that generated the exception never gets executed. import java.util.Scanner; public class ExceptionExample { public static void main(String ...
[ { "code": null, "e": 1290, "s": 1062, "text": "An exception is an issue (run time error) occurred during the execution of a program. When an exception occurred the program gets terminated abruptly and, the code past the line that generated the exception never gets executed." }, { "code": nul...
Python | Convert number to list of integers - GeeksforGeeks
26 Jan, 2019 The interconversion of data types is a problem that is quite common in programming. Sometimes we need to convert a single number to list of integers and we don’t wish to spend several lines of codes doing it. Hence having ways to perform this task using shorthands comes handy. Let’s discuss ways in which t...
[ { "code": null, "e": 24490, "s": 24462, "text": "\n26 Jan, 2019" }, { "code": null, "e": 24819, "s": 24490, "text": "The interconversion of data types is a problem that is quite common in programming. Sometimes we need to convert a single number to list of integers and we don’t w...
How to Train StyleGAN2-ADA with Custom Dataset | by Fathy Rashad | Towards Data Science
Have you always wondered how to train your own generative model? The first time I discovered GAN applications like this face generating website, I always wondered how to train GAN on other things. Luckily, I recently had the opportunity to train a bike generating model as part of my research. In this article, I will do...
[ { "code": null, "e": 562, "s": 171, "text": "Have you always wondered how to train your own generative model? The first time I discovered GAN applications like this face generating website, I always wondered how to train GAN on other things. Luckily, I recently had the opportunity to train a bike ge...
Locality of Reference and Cache Operation in Cache Memory - GeeksforGeeks
21 Aug, 2019 Locality of reference refers to a phenomenon in which a computer program tends to access same set of memory locations for a particular time period. In other words, Locality of Reference refers to the tendency of the computer program to access instructions whose addresses are near one another. The property ...
[ { "code": null, "e": 24320, "s": 24292, "text": "\n21 Aug, 2019" }, { "code": null, "e": 24712, "s": 24320, "text": "Locality of reference refers to a phenomenon in which a computer program tends to access same set of memory locations for a particular time period. In other words,...
Home Automation with Alexa. Voice commands with IoT emulated... | by Marcelo Rovai | Towards Data Science
A few years ago, I explored how to use Alexa, an intelligent personal assistant made popular by the Amazon Echo and Echo-Dot, in Home Automation projects: When IoT Meets AI: Home Automation With Alexa and NodeMCU and Alexa — NodeMCU: WeMo Emulation Made Simple Alexa is capable of voice interaction, music playback, maki...
[ { "code": null, "e": 326, "s": 171, "text": "A few years ago, I explored how to use Alexa, an intelligent personal assistant made popular by the Amazon Echo and Echo-Dot, in Home Automation projects:" }, { "code": null, "e": 388, "s": 326, "text": "When IoT Meets AI: Home Automat...
How to convert empty values to NA in an R data frame?
When our data has empty values then it is difficult to perform the analysis, we might to convert those empty values to NA so that we can understand the number of values that are not available. This can be done by using single square brackets. Consider the below data frame that has some empty values − > x1<-c(rep(c(1,2,...
[ { "code": null, "e": 1305, "s": 1062, "text": "When our data has empty values then it is difficult to perform the analysis, we might to convert those empty values to NA so that we can understand the number of values that are not available. This can be done by using single square brackets." }, { ...
Binary Tree (Array implementation) - GeeksforGeeks
27 Dec, 2021 Given an array that represents a tree in such a way that array indexes are values in tree nodes and array values give the parent node of that particular index (or node). The value of the root node index would always be -1 as there is no parent for root. Construct the standard linked representation of given...
[ { "code": null, "e": 35846, "s": 35818, "text": "\n27 Dec, 2021" }, { "code": null, "e": 36299, "s": 35846, "text": "Given an array that represents a tree in such a way that array indexes are values in tree nodes and array values give the parent node of that particular index (or ...
GWT - Event Handling
GWT provides a event handler model similar to Java AWT or SWING User Interface frameworks. A listener interface defines one or more methods that the widget calls to announce an event. GWT provides a list of interfaces corresponding to various possible events. A listener interface defines one or more methods that the wi...
[ { "code": null, "e": 2114, "s": 2023, "text": "GWT provides a event handler model similar to Java AWT or SWING User Interface frameworks." }, { "code": null, "e": 2283, "s": 2114, "text": "A listener interface defines one or more methods that the widget calls to announce an event...
Building Surveillance System using USB Camera and Wireless-Connected Raspberry Pi | by Ahmed Gad | Towards Data Science
This tutorial discusses building a surveillance system using a USB camera plugged into Raspberry Pi (RPi) which is connected a PC using its wireless interface. PyGame is used for accessing the camera and capturing images which are stored inside the SD card of RPi. A background model is created for the scene to discover...
[ { "code": null, "e": 620, "s": 171, "text": "This tutorial discusses building a surveillance system using a USB camera plugged into Raspberry Pi (RPi) which is connected a PC using its wireless interface. PyGame is used for accessing the camera and capturing images which are stored inside the SD car...
How to Remove Spaces from String in Python | Python Regex
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 tutorial, we will see how to remove s...
[ { "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, ...
Redeclaration of global variable in C - GeeksforGeeks
28 May, 2017 Consider the below two programs: // Program 1int main(){ int x; int x = 5; printf("%d", x); return 0; } Output in C: redeclaration of ‘x’ with no linkage // Program 2int x;int x = 5; int main(){ printf("%d", x); return 0; } Output in C: 5 In C, the first program fails in compilation, but secon...
[ { "code": null, "e": 24029, "s": 24001, "text": "\n28 May, 2017" }, { "code": null, "e": 24062, "s": 24029, "text": "Consider the below two programs:" }, { "code": "// Program 1int main(){ int x; int x = 5; printf(\"%d\", x); return 0; }", "e": 24141, "s":...
Java Examples - Retrieve Table Contents
How to retrieve contents of a table using JDBC connection? Following example uses getString, getInt & executeQuery methods to fetch & display the contents of the table. import java.sql.*; public class jdbcResultSet { public static void main(String[] args) { try { Class.forName("org.apache.derby.jdbc....
[ { "code": null, "e": 2127, "s": 2068, "text": "How to retrieve contents of a table using JDBC connection?" }, { "code": null, "e": 2237, "s": 2127, "text": "Following example uses getString, getInt & executeQuery methods to fetch & display the contents of the table." }, { ...
Predicting the Price of the Beyond Meat Stock Using Random Forest in Python | by Sadrach Pierre, Ph.D. | Towards Data Science
In this post we will predict the price of the Beyond Meat stock using random forest. Beyond Meat is a producer of plant-based meat substitutes and was founded by Ethan Brown in Los Angeles in 2009. First thing we can do is import the necessary libraries. We will be using the yahoo finance API, seaborn, matplotlib, pand...
[ { "code": null, "e": 369, "s": 171, "text": "In this post we will predict the price of the Beyond Meat stock using random forest. Beyond Meat is a producer of plant-based meat substitutes and was founded by Ethan Brown in Los Angeles in 2009." }, { "code": null, "e": 515, "s": 369, ...
Python | Scipy integrate.quadrature() method - GeeksforGeeks
23 Jan, 2020 With the help of scipy.integrate.quadrature() method, we can get the computation of definite integral using fixed tolerance gaussian quadrature by using scipy.integrate.quadrature() method. Syntax : scipy.integrate.quadrature(func, a, b) Return : Return gaussian quadrature approximation to integral. Exampl...
[ { "code": null, "e": 24746, "s": 24718, "text": "\n23 Jan, 2020" }, { "code": null, "e": 24936, "s": 24746, "text": "With the help of scipy.integrate.quadrature() method, we can get the computation of definite integral using fixed tolerance gaussian quadrature by using scipy.inte...
CNN-LSTM: Predicting Daily Hotel Cancellations | by Michael Grogan | Towards Data Science
An LSTM (long-short term memory network) is a type of recurrent neural network that allows for the accounting of sequential dependencies in a time series. Given that correlations exist between observations in a given time series (a phenomenon known as autocorrelation), a standard neural network would treat all observat...
[ { "code": null, "e": 327, "s": 172, "text": "An LSTM (long-short term memory network) is a type of recurrent neural network that allows for the accounting of sequential dependencies in a time series." }, { "code": null, "e": 571, "s": 327, "text": "Given that correlations exist b...
Laravel - Guest User Gates
The Guest User Gates feature is an add-on to the latest 5.7 version released in September 2018. This feature is used to initiate the authorization process for specific users. In Laravel 5.6, there was a procedure where it used to return false for unauthenticated users. In Laravel 5.7, we can allow guests to go authoriz...
[ { "code": null, "e": 2647, "s": 2472, "text": "The Guest User Gates feature is an add-on to the latest 5.7 version released in September 2018. This feature is used to initiate the authorization process for specific users." }, { "code": null, "e": 2895, "s": 2647, "text": "In Lara...
How to Create Multi-Category Charts in Excel? - GeeksforGeeks
24 May, 2021 The multi-category chart is used when we handle data sets that have the main category followed by a subcategory. For example: “Fruits” is a main category and bananas, apples, grapes are subcategories under fruits. These charts help to infer data when we deal with dynamic categories of data sets. By using a...
[ { "code": null, "e": 25070, "s": 25042, "text": "\n24 May, 2021" }, { "code": null, "e": 25438, "s": 25070, "text": "The multi-category chart is used when we handle data sets that have the main category followed by a subcategory. For example: “Fruits” is a main category and banan...
Image recognition with Machine Learning on Python, Convolutional Neural Network | by Jonathan Leban | Towards Data Science
This article follows the article I wrote on image processing. After making the data available for image recognition task, it is time to create an algorithm that will perform the task. Among many techniques used to recognize images as multilayer perceptron model, Convolution Neural Network (CNN) appears as a very effici...
[ { "code": null, "e": 593, "s": 172, "text": "This article follows the article I wrote on image processing. After making the data available for image recognition task, it is time to create an algorithm that will perform the task. Among many techniques used to recognize images as multilayer perceptron...
Java Modifiers
By now, you are quite familiar with the public keyword that appears in almost all of our examples: public class Main The public keyword is an access modifier, meaning that it is used to set the access level for classes, attributes, methods and constructors. We divide modifiers into two groups: Access Modifiers - co...
[ { "code": null, "e": 100, "s": 0, "text": "By now, you are quite familiar with the public keyword that appears in almost \nall of our examples:" }, { "code": null, "e": 119, "s": 100, "text": "public class Main\n" }, { "code": null, "e": 262, "s": 119, "text":...
Splitting an object into an array of objects in JavaScript
Suppose, we have an object like this − const obj = { "value 0": "value", "value 1": "value", "value 2": "value", "value 3": "value", "value 4": "value", "value 5": "value", "value 6": "value", "value 7": "value", "value 8": "value", "value 9": "value" }; We are required to write a JavaScri...
[ { "code": null, "e": 1101, "s": 1062, "text": "Suppose, we have an object like this −" }, { "code": null, "e": 1347, "s": 1101, "text": "const obj = {\n \"value 0\": \"value\",\n \"value 1\": \"value\",\n \"value 2\": \"value\",\n \"value 3\": \"value\",\n \"value 4\": ...
Creating dictionary of sets in Python - GeeksforGeeks
24 Oct, 2021 In this article, we will discuss how to create a dictionary of sets in Python. We can create a dictionary of sets by passing sets as values to the keys. Syntax: { ‘Key’: Set 1, ‘Key’:Set 2,..............,’Key’: Set n} Example: Python program to create a dictionary of sets for student details Python3 # crea...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n24 Oct, 2021" }, { "code": null, "e": 24371, "s": 24292, "text": "In this article, we will discuss how to create a dictionary of sets in Python." }, { "code": null, "e": 24445, "s": 24371, "text": "We can crea...
How to a plot stem plot in Matplotlib Python?
To plot a stem plot in Matplotlib, we can use stem() method. It creates vertical lines from a baseline to the Y-coordinate and places a marker at the tip. Set the figure size and adjust the padding between and around the subplots. Create x and y data points using numpy. Create a stem plot using stem() method. Set the m...
[ { "code": null, "e": 1217, "s": 1062, "text": "To plot a stem plot in Matplotlib, we can use stem() method. It creates vertical lines from a baseline to the Y-coordinate and places a marker at the tip." }, { "code": null, "e": 1293, "s": 1217, "text": "Set the figure size and adj...
Output of Java Program | Set 2 - GeeksforGeeks
18 May, 2021 Predict the output of the following Java programs. Question 1: Java package main; class Base { public void Print() { System.out.println("Base"); }} class Derived extends Base { public void Print() { System.out.println("Derived"); }} class Main { public static void DoPri...
[ { "code": null, "e": 25693, "s": 25665, "text": "\n18 May, 2021" }, { "code": null, "e": 25745, "s": 25693, "text": "Predict the output of the following Java programs. " }, { "code": null, "e": 25758, "s": 25745, "text": "Question 1: " }, { "code": nul...
How to find min/max values without Math functions in JavaScript ? - GeeksforGeeks
09 Nov, 2021 In this article, we will learn how to find the minimum and maximum values in an array without using Math functions. We know that Math.max() returns the maximum number passed in an array whereas Math.min() returns the minimum number passed. Approach: The same functionality of the Math functions can be imple...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n09 Nov, 2021" }, { "code": null, "e": 26785, "s": 26545, "text": "In this article, we will learn how to find the minimum and maximum values in an array without using Math functions. We know that Math.max() returns the maximum num...
How to Get Bank Details from IFSC Code in Android? - GeeksforGeeks
15 Jan, 2021 Many apps such as the E-commerce app requires to accept payments from their users for providing different products or services or for their users. So this apps requires the users to enter bank details for payments. In this payment gateway, users are asked to add their banks IFSC code to get the details of ...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n15 Jan, 2021" }, { "code": null, "e": 27013, "s": 26381, "text": "Many apps such as the E-commerce app requires to accept payments from their users for providing different products or services or for their users. So this apps req...
Power of 3 | Practice | GeeksforGeeks
Given a number N, the task is to count the numbers in the range [1, N] which can be represented as power of 3. Note: 1 can be represented as the power of 3. Input: 1. The first line of the input contains a single integer T denoting the number of test cases. The description of T test cases follows. 2. The first line...
[ { "code": null, "e": 385, "s": 226, "text": "Given a number N, the task is to count the numbers in the range [1, N] which can be represented as power of 3.\n\nNote: 1 can be represented as the power of 3. " }, { "code": null, "e": 592, "s": 385, "text": "Input: \n1. The first lin...
Python | Pandas Series.set_value() - GeeksforGeeks
05 Feb, 2019 Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index. Pandas Series.set_value() function is used to set ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n05 Feb, 2019" }, { "code": null, "e": 25794, "s": 25537, "text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label...
Check if the array has an element which is equal to product of remaining elements - GeeksforGeeks
25 Aug, 2021 Given an array of N elements, the task is to check if the array has an element which is equal to the product of all the remaining elements. Examples: Input: arr[] = {1, 2, 12, 3, 2} Output: YES 12 is the product of all the remaining elements i.e. 1 * 2 * 3 * 2 = 12 Input: arr[] = {1, 2, 3} Output: NO Me...
[ { "code": null, "e": 26443, "s": 26415, "text": "\n25 Aug, 2021" }, { "code": null, "e": 26583, "s": 26443, "text": "Given an array of N elements, the task is to check if the array has an element which is equal to the product of all the remaining elements." }, { "code": n...
Maximum number of multiplication by 3 or division by 2 operations possible on an array - GeeksforGeeks
12 Jul, 2021 Given an array arr[] consisting of N positive integers, the task is to find the maximum number of times each array element can either be multiplied by M or divided by K. Note: At least one element needs to be divided by M and K respectively in each operation. Examples: Input: arr[] = {5, 2, 4}, M = 3, K = ...
[ { "code": null, "e": 26067, "s": 26039, "text": "\n12 Jul, 2021" }, { "code": null, "e": 26327, "s": 26067, "text": "Given an array arr[] consisting of N positive integers, the task is to find the maximum number of times each array element can either be multiplied by M or divided...