title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Check if a number is divisible by 41 or not - GeeksforGeeks
17 May, 2021 Given a number, the task is to quickly check if the number is divisible by 41 or not. Examples: Input : x = 123 Output : Yes Input : 104413920565933 Output : YES A solution to the problem is to extract the last digit and subtract 4 times of the last digit from the remaining number and repeat this proce...
[ { "code": null, "e": 25360, "s": 25332, "text": "\n17 May, 2021" }, { "code": null, "e": 25447, "s": 25360, "text": "Given a number, the task is to quickly check if the number is divisible by 41 or not. " }, { "code": null, "e": 25458, "s": 25447, "text": "Exa...
PL/SQL - Relational Operators
Relational operators compare two expressions or values and return a Boolean result. Following table shows all the relational operators supported by PL/SQL. Let us assume variable A holds 10 and variable B holds 20, then − != <> ~= DECLARE a number (2) := 21; b number (2) := 10; BEGIN IF (a = b) then ...
[ { "code": null, "e": 2287, "s": 2065, "text": "Relational operators compare two expressions or values and return a Boolean result. Following table shows all the relational operators supported by PL/SQL. Let us assume variable A holds 10 and variable B holds 20, then −" }, { "code": null, ...
How to filter data using where Clause and “AND” in Android sqlite?
Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you d...
[ { "code": null, "e": 1457, "s": 1062, "text": "Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the re...
Short Circuit Logical Operators in Java with Examples - GeeksforGeeks
02 Dec, 2021 In Java logical operators, if the evaluation of a logical expression exits in between before complete evaluation, then it is known as Short-circuit. A short circuit happens because the result is clear even before the complete evaluation of the expression, and the result is returned. Short circuit evaluatio...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n02 Dec, 2021" }, { "code": null, "e": 23925, "s": 23557, "text": "In Java logical operators, if the evaluation of a logical expression exits in between before complete evaluation, then it is known as Short-circuit. A short circui...
Implementation of Basic NLP Techniques with spaCy | Towards Data Science
Natural Language Processing (NLP) is a very interesting technique because, with this technique, the computer can recognize our natural language and respond like an intelligent person. At first, when I came to know about the magic of NLP, it was amazing to me. [If you want to know about my journey to NLP as well as the ...
[ { "code": null, "e": 425, "s": 165, "text": "Natural Language Processing (NLP) is a very interesting technique because, with this technique, the computer can recognize our natural language and respond like an intelligent person. At first, when I came to know about the magic of NLP, it was amazing to...
Express.js | app.set() Function - GeeksforGeeks
10 Jun, 2020 The app.set() function is used to assigns the setting name to value. You may store any value that you want, but certain names can be used to configure the behavior of the server. Syntax: app.set(name, value) Installation of express module: You can visit the link to Install express module. You can install t...
[ { "code": null, "e": 24439, "s": 24411, "text": "\n10 Jun, 2020" }, { "code": null, "e": 24618, "s": 24439, "text": "The app.set() function is used to assigns the setting name to value. You may store any value that you want, but certain names can be used to configure the behavior...
CSS | font-size Property - GeeksforGeeks
25 Aug, 2021 The font-size property in CSS is used to set the font size of text in HTML document. Syntax: font-size: medium|xx-small|x-small|small|large|x-large |xx-large|smaller|larger|length|initial|inherit; Default Value: medium Property Values: absolute-size: The absolute-size is used to set the fon...
[ { "code": null, "e": 23586, "s": 23558, "text": "\n25 Aug, 2021" }, { "code": null, "e": 23671, "s": 23586, "text": "The font-size property in CSS is used to set the font size of text in HTML document." }, { "code": null, "e": 23681, "s": 23671, "text": "Synta...
How does 'void*' differ in C and C++? - GeeksforGeeks
28 Nov, 2021 C allows a void* pointer to be assigned to any pointer type without a cast, whereas in C++, it does not. We have to explicitly typecast the void* pointer in C++ For example, the following is valid in C but not C++: void* ptr; int *i = ptr; // Implicit conversion from void* to int* Similarly, int *j = mall...
[ { "code": null, "e": 25769, "s": 25741, "text": "\n28 Nov, 2021" }, { "code": null, "e": 25930, "s": 25769, "text": "C allows a void* pointer to be assigned to any pointer type without a cast, whereas in C++, it does not. We have to explicitly typecast the void* pointer in C++" ...
C++ Program for How to check if a given number is Fibonacci number? - GeeksforGeeks
14 Jan, 2022 Given a number ‘n’, how to check if n is a Fibonacci number. First few Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 141, .. Examples : Input : 8 Output : Yes Input : 34 Output : Yes Input : 41 Output : No Following is an interesting property about Fibonacci numbers that can also be use...
[ { "code": null, "e": 24553, "s": 24525, "text": "\n14 Jan, 2022" }, { "code": null, "e": 24707, "s": 24553, "text": "Given a number ‘n’, how to check if n is a Fibonacci number. First few Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 141, .. Examples : " }, {...
Literals in C#
The fixed values are called literals. The constants refer to fixed values that the program may not alter during its execution. Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal. There are also enumeration constants as well. Let us le...
[ { "code": null, "e": 1189, "s": 1062, "text": "The fixed values are called literals. The constants refer to fixed values that the program may not alter during its execution." }, { "code": null, "e": 1373, "s": 1189, "text": "Constants can be of any of the basic data types like an...
LocalTime plusMinutes() method in Java with Examples - GeeksforGeeks
04 Dec, 2018 The plusMinutes() method of LocalTime class is used to add specified number of Minutes value to this LocalTime and return the result as a LocalTime object. This instant is immutable. The calculation wraps around midnight. Syntax: public LocalTime plusMinutes(long MinutesToAdd) Parameters: This method acce...
[ { "code": null, "e": 23945, "s": 23917, "text": "\n04 Dec, 2018" }, { "code": null, "e": 24167, "s": 23945, "text": "The plusMinutes() method of LocalTime class is used to add specified number of Minutes value to this LocalTime and return the result as a LocalTime object. This in...
Feature selection techniques for classification and Python tips for their application | by Gabriel Azevedo | Towards Data Science
Selecting which features to use is a crucial step in any machine learning project and a recurrent task in the day-to-day of a Data Scientist. In this article, I review the most common types of feature selection techniques used in practice for classification problems, dividing them into 6 major categories. I provide tip...
[ { "code": null, "e": 609, "s": 171, "text": "Selecting which features to use is a crucial step in any machine learning project and a recurrent task in the day-to-day of a Data Scientist. In this article, I review the most common types of feature selection techniques used in practice for classificati...
Playit
#myDIV { background-color:lightblue; transform:scaleY(1.1);}
[]
Asymptotic Analysis and comparison of sorting algorithms - GeeksforGeeks
30 May, 2018 It is a well established fact that merge sort runs faster than insertion sort. Using asymptotic analysis we can prove that merge sort runs in O(nlogn) time and insertion sort takes O(n^2). It is obvious because merge sort uses a divide-and-conquer approach by recursively solving the problems where as inser...
[ { "code": null, "e": 25046, "s": 25018, "text": "\n30 May, 2018" }, { "code": null, "e": 26279, "s": 25046, "text": "It is a well established fact that merge sort runs faster than insertion sort. Using asymptotic analysis we can prove that merge sort runs in O(nlogn) time and ins...
How to select subset of data with Index Labels?
Pandas have a dual selection capability to select the subset of data using the Index position or by using the Index labels. In this post, I will show you how to “Select a Subset Of Data Using Index Labels” using the index label. Remember, Python dictionaries and lists are built-in data structures that select their data...
[ { "code": null, "e": 1291, "s": 1062, "text": "Pandas have a dual selection capability to select the subset of data using the Index position or by using the Index labels. In this post, I will show you how to “Select a Subset Of Data Using Index Labels” using the index label." }, { "code": nu...
Correlated Variables in Monte Carlo Simulations | by Bassel Karami | Towards Data Science
Table of contents: Introduction Problem Statement Data preparation Wrong method 1 — Independent simulation (parametric) Wrong method 2 — Independent simulation (non-parametric) Method 1 — Multivariate distribution Method 2— Copulas with marginal distributions Method 3— Simulating historical combinations of sales growth...
[ { "code": null, "e": 191, "s": 172, "text": "Table of contents:" }, { "code": null, "e": 204, "s": 191, "text": "Introduction" }, { "code": null, "e": 222, "s": 204, "text": "Problem Statement" }, { "code": null, "e": 239, "s": 222, "text":...
GATE | GATE-CS-2004 | Question 82 - GeeksforGeeks
04 Feb, 2019 Let A[1, ..., n] be an array storing a bit (1 or 0) at each location, and f(m) is a function whose time complexity is θ(m). Consider the following program fragment written in a C like language: counter = 0;for (i = 1; i < = n; i++){ if (A[i] == 1) counter++; else { f(counter); ...
[ { "code": null, "e": 24075, "s": 24047, "text": "\n04 Feb, 2019" }, { "code": null, "e": 24269, "s": 24075, "text": "Let A[1, ..., n] be an array storing a bit (1 or 0) at each location, and f(m) is a function whose time complexity is θ(m). Consider the following program fragment...
How can I create MySQL stored procedure with IN parameter?
To make it understand we are using the table named ‘student_info’ which have the following values − mysql> Select * from student_info; +-----+---------+------------+------------+ | id | Name | Address | Subject | +-----+---------+------------+------------+ | 101 | YashPal | Amritsar | History | | 105 | G...
[ { "code": null, "e": 1162, "s": 1062, "text": "To make it understand we are using the table named ‘student_info’ which have the following values −" }, { "code": null, "e": 1574, "s": 1162, "text": "mysql> Select * from student_info;\n+-----+---------+------------+------------+\n|...
C++ Vector Library - pop_back() Function
The C++ function std::vector::pop_back() removes last element from vector and reduces size of vector by one. Following is the declaration for std::vector::pop_back() function form std::vector header. void pop_back(); None None This member function never throws exception. Calling this function on empty vector causes un...
[ { "code": null, "e": 2712, "s": 2603, "text": "The C++ function std::vector::pop_back() removes last element from vector and reduces size of vector by one." }, { "code": null, "e": 2803, "s": 2712, "text": "Following is the declaration for std::vector::pop_back() function form st...
How do I close all the open pyplot windows (Matplotlib)?
plt.figure().close(): Close a figure window. close() by itself closes the current figure close(h), where h is a Figure instance, closes that figure close(num) closes the figure with number=num close(name), where name is a string, closes the figure with that label close('all') closes all the figure windows from matplotl...
[ { "code": null, "e": 1107, "s": 1062, "text": "plt.figure().close(): Close a figure window." }, { "code": null, "e": 1151, "s": 1107, "text": "close() by itself closes the current figure" }, { "code": null, "e": 1210, "s": 1151, "text": "close(h), where h is a...
How to download all historic intraday OHCL data from IEX: with Python, asynchronously, via API & for free. | by Julius Kittler | Towards Data Science
Are you looking for a way to get large amounts of 1-min intraday stock price data for free? To backtest your trading algorithms and train your models locally? There is a very sweet way to do this and I will show you right below. In this article, I will show you how to download free intraday data from the IEX exchange. ...
[ { "code": null, "e": 401, "s": 172, "text": "Are you looking for a way to get large amounts of 1-min intraday stock price data for free? To backtest your trading algorithms and train your models locally? There is a very sweet way to do this and I will show you right below." }, { "code": null...
Multiplication of Matrix using threads - GeeksforGeeks
17 Aug, 2021 Multiplication of matrix does take time surely. Time complexity of matrix multiplication is O(n^3) using normal matrix multiplication. And Strassen algorithm improves it and its time complexity is O(n^(2.8074)).But, Is there any way to improve the performance of matrix multiplication using the normal metho...
[ { "code": null, "e": 26167, "s": 26139, "text": "\n17 Aug, 2021" }, { "code": null, "e": 27182, "s": 26167, "text": "Multiplication of matrix does take time surely. Time complexity of matrix multiplication is O(n^3) using normal matrix multiplication. And Strassen algorithm impro...
How to create a new thread in Python - GeeksforGeeks
30 Sep, 2021 Threads in python are an entity within a process that can be scheduled for execution. In simpler words, a thread is a computation process that is to be performed by a computer. It is a sequence of such instructions within a program that can be executed independently of other codes. In Python, there are two...
[ { "code": null, "e": 25941, "s": 25913, "text": "\n30 Sep, 2021" }, { "code": null, "e": 26224, "s": 25941, "text": "Threads in python are an entity within a process that can be scheduled for execution. In simpler words, a thread is a computation process that is to be performed b...
Node.js fs.write() Method - GeeksforGeeks
11 Oct, 2021 File-writing is an important aspect of programming. Every programming language has a well-defined file module that can be used to perform file operations. JavaScript and Node.js also have file module which provides various inbuilt methods for performing read, write, rename, delete and other operations on f...
[ { "code": null, "e": 25795, "s": 25767, "text": "\n11 Oct, 2021" }, { "code": null, "e": 26228, "s": 25795, "text": "File-writing is an important aspect of programming. Every programming language has a well-defined file module that can be used to perform file operations. JavaScri...
Create a DataFrame from a Numpy array and specify the index column and column headers - GeeksforGeeks
28 Jul, 2020 Let us see how to create a DataFrame from a Numpy array. We will also learn how to specify the index and the column headers of the DataFrame. Approach : Import the Pandas and Numpy modules.Create a Numpy array.Create list of index values and column values for the DataFrame.Create the DataFrame.Display the ...
[ { "code": null, "e": 26311, "s": 26283, "text": "\n28 Jul, 2020" }, { "code": null, "e": 26453, "s": 26311, "text": "Let us see how to create a DataFrame from a Numpy array. We will also learn how to specify the index and the column headers of the DataFrame." }, { "code":...
Python | Pandas DatetimeIndex.to_frame() - GeeksforGeeks
29 Dec, 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 DatetimeIndex.to_frame() function create a DataFrame with a column containing the Inde...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n29 Dec, 2018" }, { "code": null, "e": 25751, "s": 25537, "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...
Perl | File Handling Introduction - GeeksforGeeks
01 Apr, 2019 In Perl, a FileHandle associates a name to an external file, that can be used until the end of the program or until the FileHandle is closed. In short, a FileHandle is like a connection that can be used to modify the contents of an external file and a name is given to the connection (the FileHandle) for fa...
[ { "code": null, "e": 26549, "s": 26521, "text": "\n01 Apr, 2019" }, { "code": null, "e": 27034, "s": 26549, "text": "In Perl, a FileHandle associates a name to an external file, that can be used until the end of the program or until the FileHandle is closed. In short, a FileHandl...
How to Install Linux on Windows PowerShell Subsystem? - GeeksforGeeks
06 Oct, 2021 There are several ways to Install a Linux subsystem on your Windows PC Powershell Environment. It is good for learners, but it is recommended using original Linux OS if you are a developer as the Subsystem lacks the pre-installed Linux tools. Before we begin installing a Linux subsystem, we need to first e...
[ { "code": null, "e": 25935, "s": 25907, "text": "\n06 Oct, 2021" }, { "code": null, "e": 26178, "s": 25935, "text": "There are several ways to Install a Linux subsystem on your Windows PC Powershell Environment. It is good for learners, but it is recommended using original Linux ...
Detect Cycle in a 2D grid - GeeksforGeeks
14 Jun, 2021 Given a 2D grid arr[][] with different characters, the task is to detect whether it contains a cycle or not. A sequence of characters or integers c1, c2, .... cM is called a cycle if and only if it meets the following condition: M should at least be 4. All characters belong to the same character or intege...
[ { "code": null, "e": 26067, "s": 26039, "text": "\n14 Jun, 2021" }, { "code": null, "e": 26176, "s": 26067, "text": "Given a 2D grid arr[][] with different characters, the task is to detect whether it contains a cycle or not." }, { "code": null, "e": 26297, "s": 2...
Maximize the number of segments of length p, q and r - GeeksforGeeks
29 Nov, 2021 Given a rod of length L, the task is to cut the rod in such a way that the total number of segments of length p, q and r is maximized. The segments can only be of length p, q, and r. Examples: Input: l = 11, p = 2, q = 3, r = 5 Output: 5 Segments of 2, 2, 2, 2 and 3 Input: l = 7, p = 2, q = 5, r = 5 Outp...
[ { "code": null, "e": 26281, "s": 26253, "text": "\n29 Nov, 2021" }, { "code": null, "e": 26465, "s": 26281, "text": "Given a rod of length L, the task is to cut the rod in such a way that the total number of segments of length p, q and r is maximized. The segments can only be of ...
Primitive Wrapper Classes are Immutable in Java
In Java Immutable class is a class which once created and it's contents can not be changed.On same concept Immutable objects are the objects whose state can not be changed once constructed. Wrapper classes are made to be immutable due to following advantages − Since the state of the immutable objects can not be changed...
[ { "code": null, "e": 1252, "s": 1062, "text": "In Java Immutable class is a class which once created and it's contents can not be changed.On same concept Immutable objects are the objects whose state can not be changed once constructed." }, { "code": null, "e": 1323, "s": 1252, "...
Rust - Tuple
Tuple is a compound data type. A scalar type can store only one type of data. For example, an i32 variable can store only a single integer value. In compound types, we can store more than one value at a time and it can be of different types. Tuples have a fixed length - once declared they cannot grow or shrink in size....
[ { "code": null, "e": 2329, "s": 2087, "text": "Tuple is a compound data type. A scalar type can store only one type of data. For example, an i32 variable can store only a single integer value. In compound types, we can store more than one value at a time and it can be of different types." }, { ...
Symfony - Components
As discussed earlier, Symfony components are standalone PHP library providing a specific feature, which can be used in any PHP application. Useful new components are being introduced in each and every release of Symfony. Currently, there are 30+ high quality components in Symfony framework. Let us learn about the usage...
[ { "code": null, "e": 2563, "s": 2203, "text": "As discussed earlier, Symfony components are standalone PHP library providing a specific feature, which can be used in any PHP application. Useful new components are being introduced in each and every release of Symfony. Currently, there are 30+ high qu...
Generating distinct subsequences of a given string in lexicographic order
07 Jul, 2022 Given a string s, make a list of all possible combinations of letters of a given string S. If there are two strings with the same set of characters, print the lexicographically smallest arrangement of the two stringsFor string abc, the list in lexicographic order subsequences are, a ab abc ac b bc cExample...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jul, 2022" }, { "code": null, "e": 364, "s": 52, "text": "Given a string s, make a list of all possible combinations of letters of a given string S. If there are two strings with the same set of characters, print the lexicographical...
How to change Bootstrap datepicker with specific date format ?
23 Jul, 2021 DatePicker is a component of Bootstrap Framework that allows users to select the date by providing a user-friendly interface. Using DatePicker, we can select a date from the DatePicker dialog which is far better than manually typing the date in the input field. Also, we can format the DatePicker as per the...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jul, 2021" }, { "code": null, "e": 290, "s": 28, "text": "DatePicker is a component of Bootstrap Framework that allows users to select the date by providing a user-friendly interface. Using DatePicker, we can select a date from the D...
Class Factories: A powerful pattern in Python
25 Oct, 2020 A Class Factory is a function that creates and returns a class. It is one of the powerful patterns in Python. In this section, we will cover how to design class factories and the use cases of it. As mentioned, class factories are functions that create and return a class. It can create a class at the coding...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Oct, 2020" }, { "code": null, "e": 224, "s": 28, "text": "A Class Factory is a function that creates and returns a class. It is one of the powerful patterns in Python. In this section, we will cover how to design class factories and ...
Largest subsequence having GCD greater than 1
11 Aug, 2021 Given an array, arr[], find the largest subsequence such that GCD of all those subsequences are greater than 1. Examples: Input: 3, 6, 2, 5, 4 Output: 3 Explanation: There are only three elements(6, 2, 4) having GCD greater than 1 i.e., 2. So the largest subsequence will be 3 Input: 10, 15, 7, 25, 9, ...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Aug, 2021" }, { "code": null, "e": 178, "s": 54, "text": "Given an array, arr[], find the largest subsequence such that GCD of all those subsequences are greater than 1. Examples: " }, { "code": null, "e": 374, "s":...
Print all full nodes in a Binary Tree
08 Jul, 2022 Given a binary tree, print all nodes will are full nodes. Full Nodes are nodes which has both left and right children as non-empty. Examples: Input : 10 / \ 8 2 / \ / 3 5 7 Output : 10 8 Input : 1 / \ 2 3 / \ 4 6 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jul, 2022" }, { "code": null, "e": 184, "s": 52, "text": "Given a binary tree, print all nodes will are full nodes. Full Nodes are nodes which has both left and right children as non-empty." }, { "code": null, "e": 195, ...
LeafletJS – Interacting with Maps using JavaScript
11 Sep, 2021 Maps have become an integral part of our everyday lives. From driving to a location to finding some restaurants or stores nearby or while planning travel, almost every type of app uses maps. Using maps helps us to add location-based services in our application. One way to add maps in a web application is u...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Sep, 2021" }, { "code": null, "e": 290, "s": 28, "text": "Maps have become an integral part of our everyday lives. From driving to a location to finding some restaurants or stores nearby or while planning travel, almost every type of...
File getCanonicalFile() method in Java with Examples
30 Jan, 2019 The getCanonicalFile() method is a part of File class. This function returns the Canonical File of the given file object.If the File path of the file object is Canonical then it simply returns the File of the current file object.The Canonical File is always absolute and unique, the function removes the ‘.’...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jan, 2019" }, { "code": null, "e": 380, "s": 28, "text": "The getCanonicalFile() method is a part of File class. This function returns the Canonical File of the given file object.If the File path of the file object is Canonical then ...
Reshaping array dimensions in Julia | Array reshape() Method
23 Mar, 2020 The reshape() is an inbuilt function in julia which is used to return an array with the same data as the specified array, but with different specified dimension sizes. Syntax:reshape(A, dims) Parameters: A: Specified array. dims: Specified dimension. Returns: It returns an array with the same data as the s...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Mar, 2020" }, { "code": null, "e": 196, "s": 28, "text": "The reshape() is an inbuilt function in julia which is used to return an array with the same data as the specified array, but with different specified dimension sizes." }, ...
Flutter Development in Ubuntu 20.04
30 Aug, 2020 In this article, let’s look at how you can set up a development environment for Flutter, if you’re using Ubuntu 20.04. It was difficult earlier and was kind of a nightmare to get it done. But now, it has changed and anyone can easily set up a flutter development environment on their Ubuntu system in a few ...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Aug, 2020" }, { "code": null, "e": 371, "s": 54, "text": "In this article, let’s look at how you can set up a development environment for Flutter, if you’re using Ubuntu 20.04. It was difficult earlier and was kind of a nightmare to...
Side of a regular n-sided polygon circumscribed in a circle
24 Jun, 2022 Given two integers r and n where n is the number of sides of a regular polygon and r is the radius of the circle this polygon is circumscribed in. The task is to find the length of the side of polygon. Examples: Input: n = 5, r = 11 Output: 12.9256Input: n = 3, r = 5 Output: 8.6576 Approach: Consider ...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jun, 2022" }, { "code": null, "e": 232, "s": 28, "text": "Given two integers r and n where n is the number of sides of a regular polygon and r is the radius of the circle this polygon is circumscribed in. The task is to find the leng...
Square root of a number without using sqrt() function
22 Apr, 2021 Given a number N, the task is to find the square root of N without using sqrt() function. Examples: Input: N = 25 Output: 5 Input: N = 3 Output: 1.73205 Input: N = 2.5 Output: 1.58114 Approach: Start iterating from i = 1. If i * i = n, then print i as n is a perfect square whose square root is i. Else...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Apr, 2021" }, { "code": null, "e": 142, "s": 52, "text": "Given a number N, the task is to find the square root of N without using sqrt() function." }, { "code": null, "e": 153, "s": 142, "text": "Examples: " }...
G-Fact 21 | Collatz Sequence
07 Jul, 2021 Starting with any positive integer N, we define the Collatz sequence corresponding to N as the numbers formed by the following operations: N → N/2 ( if N is even) N → 3N + 1 (if N is odd) i.e. If N is even, divide it by 2 to get N/2. If N is odd, multiply it by 3 and add 1 to obtain 3N + 1. It is conjec...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jul, 2021" }, { "code": null, "e": 191, "s": 52, "text": "Starting with any positive integer N, we define the Collatz sequence corresponding to N as the numbers formed by the following operations:" }, { "code": null, "e"...
help_text – Django Form Field Validation
13 Feb, 2020 Built-in Form Field Validations in Django Forms are the default validations that come predefined to all fields. Every field comes in with some built-in validations from Django validators. Each Field class constructor takes some fixed arguments. The help_text argument lets you specify descriptive text for t...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Feb, 2020" }, { "code": null, "e": 273, "s": 28, "text": "Built-in Form Field Validations in Django Forms are the default validations that come predefined to all fields. Every field comes in with some built-in validations from Django...
Node.js console.trace() Method - GeeksforGeeks
13 Jul, 2020 The console.trace() method is an inbuilt application programming interface of the console module which is used to print stack trace messages to stderr in a newline. Similar to console.error() method. Syntax: console.trace(message, args); Parameters: This method has two parameters as mentioned above and des...
[ { "code": null, "e": 25049, "s": 25021, "text": "\n13 Jul, 2020" }, { "code": null, "e": 25249, "s": 25049, "text": "The console.trace() method is an inbuilt application programming interface of the console module which is used to print stack trace messages to stderr in a newline...
Python Forensics - Dshell and Scapy
Dshell is a Python-based network forensic analysis toolkit. This toolkit was developed by the US Army Research Laboratory. The release of this open source toolkit was in the year 2014. The major focus of this toolkit is to make forensic investigations with ease. The toolkit consists of large number of decoders which ar...
[ { "code": null, "e": 2255, "s": 1992, "text": "Dshell is a Python-based network forensic analysis toolkit. This toolkit was developed by the US Army Research Laboratory. The release of this open source toolkit was in the year 2014. The major focus of this toolkit is to make forensic investigations w...
Activity Selection Problem | Greedy Algo-1 - GeeksforGeeks
12 Jan, 2022 Greedy is an algorithmic paradigm that builds up a solution piece by piece, always choosing the next piece that offers the most obvious and immediate benefit. Greedy algorithms are used for optimization problems. An optimization problem can be solved using Greedy if the problem has the following property: ...
[ { "code": null, "e": 30545, "s": 30517, "text": "\n12 Jan, 2022" }, { "code": null, "e": 33320, "s": 30545, "text": "Greedy is an algorithmic paradigm that builds up a solution piece by piece, always choosing the next piece that offers the most obvious and immediate benefit. Gree...
How to create Python dictionary from JSON input?
You can parse JSON files using the json module in Python. This module parses the json and puts it in a dict. You can then get the values from this like a normal dict. For example, if you have a json with the following content { "id": "file", "value": "File", "popup": { "menuitem": [ {"value": "N...
[ { "code": null, "e": 1288, "s": 1062, "text": "You can parse JSON files using the json module in Python. This module parses the json and puts it in a dict. You can then get the values from this like a normal dict. For example, if you have a json with the following content" }, { "code": null,...
Submit a form data using PHP, AJAX and Javascript
Theory of Computation In this article, you will learn how to submit a form data without refreshing the web page using PHP, Ajax and Javascript. Generally, we have all seen that when we submit some form or fetch some records, the page refreshing or reloading may take some time. We can do the same process without refresh...
[ { "code": null, "e": 112, "s": 90, "text": "Theory of Computation" }, { "code": null, "e": 439, "s": 112, "text": "In this article, you will learn how to submit a form data without refreshing the web page using PHP, Ajax and Javascript. Generally, we have all seen that when we su...
How to extract the attribute value of an element in Selenium?
We can extract the attribute value of an element in Selenium with the help of getAttribute() method. Once we locate the element, this method is used to get the attribute value of the element and assigned to a variable. import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver;...
[ { "code": null, "e": 1281, "s": 1062, "text": "We can extract the attribute value of an element in Selenium with the help of getAttribute() method. Once we locate the element, this method is used to get the attribute value of the element and assigned to a variable." }, { "code": null, "e...
AngularJS | angular.bind() Function - GeeksforGeeks
30 Mar, 2021 The angular.bind() Function in AngularJS is used to bind the current context to a function, but actually execute it at a later time. It can also be used in Partial Applications. Partial Applications is when you want to make a function but some of the arguments have been passed already.Syntax: angular.bin...
[ { "code": null, "e": 26354, "s": 26326, "text": "\n30 Mar, 2021" }, { "code": null, "e": 26650, "s": 26354, "text": "The angular.bind() Function in AngularJS is used to bind the current context to a function, but actually execute it at a later time. It can also be used in Partial...
Minimum operations to convert an Array into a Permutation of 1 to N by replacing with remainder from some d - GeeksforGeeks
12 Jan, 2022 Given an array arr[] of size N, the task is to find the minimum number of operations to convert the array into a permutation of [1, n], in each operation, an element a[i] can be replaced by a[i] % d where d can be different in each operation performed. If it is not possible print -1. Examples: Input: arr[]...
[ { "code": null, "e": 26352, "s": 26324, "text": "\n12 Jan, 2022" }, { "code": null, "e": 26637, "s": 26352, "text": "Given an array arr[] of size N, the task is to find the minimum number of operations to convert the array into a permutation of [1, n], in each operation, an eleme...
Convert decimal point numbers to percentage using filters in Vue.js - GeeksforGeeks
17 Mar, 2021 Vue is a progressive framework for building user interfaces. The core library is focused on the view layer only and is easy to pick up and integrate with other libraries. Vue is also perfectly capable of powering sophisticated Single-Page Applications in combination with modern tooling and supporting libra...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n17 Mar, 2021" }, { "code": null, "e": 26858, "s": 26545, "text": "Vue is a progressive framework for building user interfaces. The core library is focused on the view layer only and is easy to pick up and integrate with other lib...
Create Password Protected Zip of a file using Python - GeeksforGeeks
24 Jan, 2021 ZIP is an archive file format that supports lossless data compression. By lossless compression, we mean that the compression algorithm allows the original data to be perfectly reconstructed from the compressed data. So, a ZIP file is a single file containing one or more compressed files, offering an ideal ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n24 Jan, 2021" }, { "code": null, "e": 24664, "s": 24292, "text": "ZIP is an archive file format that supports lossless data compression. By lossless compression, we mean that the compression algorithm allows the original data to ...
MySQL query to get the current date records wherein one of the columns displays current date
To achieve this, following is the syntax wherein we have used DATE(NOW()) − select *from yourTableName where DATE(yourColumnName)=DATE(NOW()); Let us first create a table − mysql> create table DemoTable706 ( UserId varchar(100), UserName varchar(100), UserSignupDate datetime ); Query OK, 0 rows affected (0.57 ...
[ { "code": null, "e": 1138, "s": 1062, "text": "To achieve this, following is the syntax wherein we have used DATE(NOW()) −" }, { "code": null, "e": 1205, "s": 1138, "text": "select *from yourTableName where DATE(yourColumnName)=DATE(NOW());" }, { "code": null, "e": 12...
Extract all integers from string in C++
Here we will see how to extract all integers from strings in C++. We can put a string where numbers and no-numbers are present. We will extract all numeric values from it. To solve this problem, we will use the stringstream class in C++. We will cut the string word by word and then try to convert it into integer type d...
[ { "code": null, "e": 1234, "s": 1062, "text": "Here we will see how to extract all integers from strings in C++. We can put a string where numbers and no-numbers are present. We will extract all numeric values from it." }, { "code": null, "e": 1454, "s": 1234, "text": "To solve t...
Change Spacing of Axis Tick Marks in Base R Plot - GeeksforGeeks
28 Apr, 2021 In this article, we are going to see how to modify the space between axis tick marks of a Base R plot in R programming. It can be done in the following ways: Using xaxp & yaxp method.Using axis() Function. Using xaxp & yaxp method. Using axis() Function. Method 1: Using xaxp & yaxp method The first tick m...
[ { "code": null, "e": 24851, "s": 24823, "text": "\n28 Apr, 2021" }, { "code": null, "e": 24971, "s": 24851, "text": "In this article, we are going to see how to modify the space between axis tick marks of a Base R plot in R programming." }, { "code": null, "e": 25009,...
Write your own memcpy() in C
Here we will see how to implement memcpy() function in C. The memcpy() function is used to copy a block of data from one location to another. The syntax of the memcpy() is like below − void * memcpy(void * dest, const void * srd, size_t num); To make our own memcpy, we have to typecast the given address to char*, then ...
[ { "code": null, "e": 1247, "s": 1062, "text": "Here we will see how to implement memcpy() function in C. The memcpy() function is used to copy a block of data from one location to another. The syntax of the memcpy() is like below −" }, { "code": null, "e": 1305, "s": 1247, "text"...
How to call an interface method in Java?
In order to call an interface method from a java program, the program must instantiate the interface implementation program. A method can then be called using the implementation object. public interface InterfaceDemo{ default public void displayNameDefault(String name){ System.out.println("Your name is : " +...
[ { "code": null, "e": 1248, "s": 1062, "text": "In order to call an interface method from a java program, the program must instantiate the interface implementation program. A method can then be called using the implementation object." }, { "code": null, "e": 1515, "s": 1248, "text...
H2 Database - Delete
The SQL DELETE query is used to delete the existing records from a table. We can use WHERE clause with DELETE query to delete selected records, otherwise all the records will be deleted. Following is the generic query syntax of the delete command. DELETE [ TOP term ] FROM tableName [ WHERE expression ] [ LIMIT term ] ...
[ { "code": null, "e": 2294, "s": 2107, "text": "The SQL DELETE query is used to delete the existing records from a table. We can use WHERE clause with DELETE query to delete selected records, otherwise all the records will be deleted." }, { "code": null, "e": 2355, "s": 2294, "tex...
C++ Program to Implement Gauss Jordan Elimination
This is a C++ Program to Implement Gauss Jordan Elimination. It is used to analyze linear system of simultaneous equations. It is mainly focused on reducing the system of equations to a diagonal matrix form by row operations such that the solution is obtained directly. Begin n = size of the input matrix To find t...
[ { "code": null, "e": 1332, "s": 1062, "text": "This is a C++ Program to Implement Gauss Jordan Elimination. It is used to analyze linear system of simultaneous equations. It is mainly focused on reducing the system of equations to a diagonal matrix form by row operations such that the solution is ob...
Analyzing Employee Reviews: Google vs Amazon vs Apple vs Microsoft | by Andres Vourakis | Towards Data Science
Whether it is for their ability to offer high salaries, extravagant perks, or their exciting mission statements, it is clear that top companies like Google and Microsoft have become talent magnets. To put it into perspective, Google alone receives more than two million job applications each year. Working for a top tech...
[ { "code": null, "e": 345, "s": 47, "text": "Whether it is for their ability to offer high salaries, extravagant perks, or their exciting mission statements, it is clear that top companies like Google and Microsoft have become talent magnets. To put it into perspective, Google alone receives more tha...
How to attach a Scrollbar to a Text widget in Tkinter?
Tkinter Text widget is used to accept multiline user Input. It is similar to Entry Widget but the only difference is that Text widget supports multiple line texts. In order to create a Text widget, we have to instantiate a text object. Adding multiple texts will require to add the ScrollBar. In order to add a scrollbar...
[ { "code": null, "e": 1298, "s": 1062, "text": "Tkinter Text widget is used to accept multiline user Input. It is similar to Entry Widget but the only difference is that Text widget supports multiple line texts. In order to create a Text widget, we have to instantiate a text object." }, { "co...
Count distinct elements in every window | Practice | GeeksforGeeks
Given an array of integers and a number K. Find the count of distinct elements in every window of size K in the array. Example 1: Input: N = 7, K = 4 A[] = {1,2,1,3,4,2,3} Output: 3 4 4 3 Explanation: Window 1 of size k = 4 is 1 2 1 3. Number of distinct elements in this window are 3. Window 2 of size k = 4 is 2 1 3 4...
[ { "code": null, "e": 357, "s": 238, "text": "Given an array of integers and a number K. Find the count of distinct elements in every window of size K in the array." }, { "code": null, "e": 368, "s": 357, "text": "Example 1:" }, { "code": null, "e": 781, "s": 368, ...
How to create a date spinner in Java?
To create a date spinner, use the SpinnerDateModel class. Within that set the date format − Date today = new Date(); JSpinner spinner2 = new JSpinner(new SpinnerDateModel(today, null, null, Calendar.MONTH)); JSpinner.DateEditor editor = new JSpinner.DateEditor(spinner2, "dd/MM/yy"); spinner2.setEditor(editor); Above, w...
[ { "code": null, "e": 1154, "s": 1062, "text": "To create a date spinner, use the SpinnerDateModel class. Within that set the date format −" }, { "code": null, "e": 1374, "s": 1154, "text": "Date today = new Date();\nJSpinner spinner2 = new JSpinner(new SpinnerDateModel(today, nul...
A demonstration of carrying data analysis (New York City Airbnb Open Data) | by WY Fok | Towards Data Science
In this article, I will perform data analysis by using Python and record down every finding and thought during the analysis. Practicing with real data can not only help me have more experience in analyzing different data but also help me discover more techniques and skills when compared with others’ works. The dataset ...
[ { "code": null, "e": 480, "s": 172, "text": "In this article, I will perform data analysis by using Python and record down every finding and thought during the analysis. Practicing with real data can not only help me have more experience in analyzing different data but also help me discover more tec...
Python String isalpha() Method - GeeksforGeeks
12 Aug, 2021 Python String isalpha() method is a built-in method used for string handling. The isalpha() methods returns “True” if all characters in the string are alphabets, Otherwise, It returns “False”. This function is used to check if the argument includes only alphabet characters (mentioned below). ABCDEFGHIJKL...
[ { "code": null, "e": 23894, "s": 23866, "text": "\n12 Aug, 2021" }, { "code": null, "e": 24189, "s": 23894, "text": "Python String isalpha() method is a built-in method used for string handling. The isalpha() methods returns “True” if all characters in the string are alphabets, O...
Apache Oozie - CLI and Extensions
By this time, you have a good understanding of Oozie workflows, coordinators and bundles. In the last part of this tutorial, let’s touch base some of the other important concepts in Oozie. We have seen a few commands earlier to run the jobs of workflow, coordinator and bundle. Oozie provides a command line utility, Ooz...
[ { "code": null, "e": 1964, "s": 1775, "text": "By this time, you have a good understanding of Oozie workflows, coordinators and bundles. In the last part of this tutorial, let’s touch base some of the other important concepts in Oozie." }, { "code": null, "e": 2131, "s": 1964, "t...
Console.SetWindowSize() Method in C# - GeeksforGeeks
20 Feb, 2019 Console.SetWindowSize(Int32, Int32) Method is used to change the height and width of the console window to the specified values. Syntax: public static void SetWindowSize (int width, int height); Parameters:width: The width of the console window measured in columns.height: The height of the console window m...
[ { "code": null, "e": 26830, "s": 26802, "text": "\n20 Feb, 2019" }, { "code": null, "e": 26959, "s": 26830, "text": "Console.SetWindowSize(Int32, Int32) Method is used to change the height and width of the console window to the specified values." }, { "code": null, "e...
How to get all combinations of some arrays in JavaScript?
You can use your own function to get all combinations. Following is the code − function combination(values) { function * combinationRepeat(size, v) { if (size) for (var chr of values) yield * combinationRepeat(size - 1, v + chr); else yield v; } return [...combinationRepeat(values.le...
[ { "code": null, "e": 1117, "s": 1062, "text": "You can use your own function to get all combinations." }, { "code": null, "e": 1141, "s": 1117, "text": "Following is the code −" }, { "code": null, "e": 1450, "s": 1141, "text": "function combination(values) {\n...
Count of common subarrays in two different permutations of 1 to N - GeeksforGeeks
17 Aug, 2021 Given two arrays A and B of the same length N, filled with a permutation of natural numbers from 1 to N, the task is to count the number of common subarrays in A and B.Examples: Input: A = [1, 2, 3], B = [2, 3, 1] Output: 4 Explanation: The common subarrays are [1], [2], [3], [2, 3] Hence, total count = 4...
[ { "code": null, "e": 26675, "s": 26647, "text": "\n17 Aug, 2021" }, { "code": null, "e": 26854, "s": 26675, "text": "Given two arrays A and B of the same length N, filled with a permutation of natural numbers from 1 to N, the task is to count the number of common subarrays in A a...
Data Visualization with Python | Towards Data Science
“A picture is worth a thousand words” -Fred R. Barnard Data visualization is a visual (or graphic) representation of data to find useful insights (i.e. trends and patterns) in the data and making the process of data analysis easier and simpler. Aim of the data visualization is to make a quick and clear understanding of...
[ { "code": null, "e": 209, "s": 171, "text": "“A picture is worth a thousand words”" }, { "code": null, "e": 226, "s": 209, "text": "-Fred R. Barnard" }, { "code": null, "e": 416, "s": 226, "text": "Data visualization is a visual (or graphic) representation of ...
LCA for general or n-ary trees (Sparse Matrix DP approach )
06 Jul, 2022 In previous posts, we have discussed how to calculate the Lowest Common Ancestor (LCA) for a binary tree and a binary search tree (this, this and this). Now let’s look at a method that can calculate LCA for any tree (not only for binary tree). We use Dynamic Programming with Sparse Matrix Approach in our m...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jul, 2022" }, { "code": null, "e": 462, "s": 52, "text": "In previous posts, we have discussed how to calculate the Lowest Common Ancestor (LCA) for a binary tree and a binary search tree (this, this and this). Now let’s look at a m...
Maximum length of Strictly Increasing Sub-array after removing at most one element
01 Apr, 2022 Given an array arr[], the task is to remove at most one element and calculate the maximum length of strictly increasing subarray. Examples: Input: arr[] = {1, 2, 5, 3, 4} Output: 4 After deleting 5, the resulting array will be {1, 2, 3, 4} and the maximum length of its strictly increasing subarray is 4. I...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 Apr, 2022" }, { "code": null, "e": 184, "s": 54, "text": "Given an array arr[], the task is to remove at most one element and calculate the maximum length of strictly increasing subarray." }, { "code": null, "e": 195, ...
How to make rounded corner using CSS ?
14 Sep, 2021 To create a rounded corner, we use the CSS border-radius property. This property is used to set the border-radius of element. Syntax: /* It sets the radius value to all 4 corners */ border-radius: value; Example 1: This example describes the border-radius to make the rounded corners. HTML <!DOCTYPE html><h...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Sep, 2021" }, { "code": null, "e": 154, "s": 28, "text": "To create a rounded corner, we use the CSS border-radius property. This property is used to set the border-radius of element." }, { "code": null, "e": 162, "s"...
Sklearn.StratifiedShuffleSplit() function in Python
28 Dec, 2021 In this article, we’ll learn about the StratifiedShuffleSplit cross validator from sklearn library which gives train-test indices to split the data into train-test sets. StratifiedShuffleSplit is a combination of both ShuffleSplit and StratifiedKFold. Using StratifiedShuffleSplit the proportion of distrib...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Dec, 2021" }, { "code": null, "e": 199, "s": 28, "text": "In this article, we’ll learn about the StratifiedShuffleSplit cross validator from sklearn library which gives train-test indices to split the data into train-test sets. " }...
Meta Strings (Check if two strings can become same after a swap in one string)
11 Jul, 2022 Given two strings, the task is to check whether these strings are meta strings or not. Meta strings are the strings which can be made equal by exactly one swap in any of the strings. Equal string are not considered here as Meta strings. Examples: Input : str1 = "geeks" str2 = "keegs" Output : Yes...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jul, 2022" }, { "code": null, "e": 289, "s": 52, "text": "Given two strings, the task is to check whether these strings are meta strings or not. Meta strings are the strings which can be made equal by exactly one swap in any of the ...
Rotating 3D Image Previewer Cube using CSS
25 Feb, 2021 The 3D Rotating Image Previewer cube is an effect in which a set of images appear on the faces of a revolving 3D cube. This effect can be created using HTML and CSS. Approach: The best way to animate HTML objects is by using CSS @keyframes and by setting transition state at different animation states. HTML...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Feb, 2021" }, { "code": null, "e": 220, "s": 54, "text": "The 3D Rotating Image Previewer cube is an effect in which a set of images appear on the faces of a revolving 3D cube. This effect can be created using HTML and CSS." }, ...
Facebook Login using Python
16 Jul, 2020 Python scripting is one of the most intriguing and fascinating things to do meanwhile learning Python. Automation and controlling the browser is one of them. In this particular article, we will see how to log in to the Facebook account using Python and the power of selenium. Selenium automates and controls...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jul, 2020" }, { "code": null, "e": 210, "s": 52, "text": "Python scripting is one of the most intriguing and fascinating things to do meanwhile learning Python. Automation and controlling the browser is one of them." }, { "c...
seq command in Linux with Examples
06 Jul, 2021 seq command in Linux is used to generate numbers from FIRST to LAST in steps of INCREMENT. It is a very useful command where we had to generate list of numbers in while, for, until loop. Syntax: seq [OPTION]... LAST or seq [OPTION]... FIRST LAST or seq [OPTION]... FIRST INCREMENT LAST Options: seq...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jul, 2021" }, { "code": null, "e": 240, "s": 52, "text": "seq command in Linux is used to generate numbers from FIRST to LAST in steps of INCREMENT. It is a very useful command where we had to generate list of numbers in while, for,...
How to underline a text content using HTML ?
09 Feb, 2021 In this article, we will create an underline text by using the <u> tag in the document. It stands for underline and it is used to underline the text enclosed within the <u> tag. This tag is generally used to underline misspelled words. This tag requires a starting as well as ending tag. Syntax: <u> Conte...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Feb, 2021" }, { "code": null, "e": 326, "s": 28, "text": "In this article, we will create an underline text by using the <u> tag in the document. It stands for underline and it is used to underline the text enclosed within the <u> ta...
Introduction to Node.js - GeeksforGeeks
10 Nov, 2021 Introduction: Node.js is an open-source and cross-platform runtime environment for executing JavaScript code outside a browser. You need to remember that NodeJS is not a framework and it’s not a programming language. Most people are confused and understand it’s a framework or a programming language. We oft...
[ { "code": null, "e": 36627, "s": 36599, "text": "\n10 Nov, 2021" }, { "code": null, "e": 37112, "s": 36627, "text": "Introduction: Node.js is an open-source and cross-platform runtime environment for executing JavaScript code outside a browser. You need to remember that NodeJS is...
SWING - JMenu Class
The Menu class represents the pull-down menu component which is deployed from a menu bar. Following is the declaration for javax.swing.JMenu class − public class JMenu extends JMenuItem implements Accessible, MenuElement Following is the field for java.awt.Component class − protected JMenu.WinListener popupLi...
[ { "code": null, "e": 1853, "s": 1763, "text": "The Menu class represents the pull-down menu component which is deployed from a menu bar." }, { "code": null, "e": 1912, "s": 1853, "text": "Following is the declaration for javax.swing.JMenu class −" }, { "code": null, "...
Downloading Tableau crosstabs like a boss using Python and Pandas | by Elliott Stam | Towards Data Science
In another article we covered how you can query your Tableau view data like a boss, and I received some feedback from one person that they wanted to tumble deeper down the rabbit hole. That brings us to this article, where we will demonstrate how you can download view data for a table (crosstab) in Tableau, and reconst...
[ { "code": null, "e": 357, "s": 172, "text": "In another article we covered how you can query your Tableau view data like a boss, and I received some feedback from one person that they wanted to tumble deeper down the rabbit hole." }, { "code": null, "e": 547, "s": 357, "text": "T...
Implementation of Ridge Regression from Scratch using Python - GeeksforGeeks
18 Sep, 2020 Prerequisites: Linear RegressionGradient Descent Linear Regression Gradient Descent Introduction:Ridge Regression ( or L2 Regularization ) is a variation of Linear Regression. In Linear Regression, it minimizes the Residual Sum of Squares ( or RSS or cost function ) to fit the training examples perfectly a...
[ { "code": null, "e": 24361, "s": 24333, "text": "\n18 Sep, 2020" }, { "code": null, "e": 24376, "s": 24361, "text": "Prerequisites:" }, { "code": null, "e": 24410, "s": 24376, "text": "Linear RegressionGradient Descent" }, { "code": null, "e": 2442...
CSS | grid-auto-flow Property - GeeksforGeeks
08 Aug, 2019 The grid-auto-flow property Specifying exactly how auto-placed items get flowed into the grid. Syntax: grid-auto-flow: row|column|row dense|column dense; Row: auto-placement algorithm places items, by filling each row in turn, adding new rows as necessary.Syntax:grid-auto-flow: row; Example-1:<!DOCTYPE h...
[ { "code": null, "e": 23325, "s": 23297, "text": "\n08 Aug, 2019" }, { "code": null, "e": 23420, "s": 23325, "text": "The grid-auto-flow property Specifying exactly how auto-placed items get flowed into the grid." }, { "code": null, "e": 23428, "s": 23420, "tex...
Similarities between Java and C++
01 Jul, 2022 Both are very successful and popular programming languages. Though there are many differences between the both, there are considerable similarities which are given as follows: Both C++ and Java supports Object Oriented Programming: OOPs is a modular approach, which allows the data to be applied within stip...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Jul, 2022" }, { "code": null, "e": 204, "s": 28, "text": "Both are very successful and popular programming languages. Though there are many differences between the both, there are considerable similarities which are given as follows:...
Program to print the series 1, 3, 4, 8, 15, 27, 50... till N terms
19 Mar, 2021 Given a number N, the task is to print the first N terms of the following series: 1, 3, 4, 8, 15, 27, 50... Examples: Input: N = 7 Output: 1, 3, 4, 8, 15, 27, 50Input: N = 3 Output: 1, 3, 4 Approach: From the given series we can find the formula for Nth term: 1st term = 1, 2nd term = 3, 3rd term = 4 4th ...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Mar, 2021" }, { "code": null, "e": 110, "s": 28, "text": "Given a number N, the task is to print the first N terms of the following series:" }, { "code": null, "e": 136, "s": 110, "text": "1, 3, 4, 8, 15, 27, 50.....
Powershell - For Loop
The following scripts demonstrates the for loop. > $array = @("item1", "item2", "item3") > for($i = 0; $i -lt $array.length; $i++){ $array[$i] }
[ { "code": null, "e": 2217, "s": 2168, "text": "The following scripts demonstrates the for loop." } ]
How to remove unused dependencies from composer?
27 Jan, 2021 Removing unused Dependencies from Composer is very easy. Following are the two approaches: 1. Using Composer Remove:This is the simplest command to remove unused Dependencies from Composer. Syntax: composer remove dependency_name Firstly decide which dependency you want to remove from the composer. Here w...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Jan, 2021" }, { "code": null, "e": 143, "s": 52, "text": "Removing unused Dependencies from Composer is very easy. Following are the two approaches:" }, { "code": null, "e": 243, "s": 143, "text": "1. Using Compo...
How to set column in center using Bootstrap 5?
05 Nov, 2021 The goal here is to center a column in bootstrap. Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web development. There are two approaches to centering a column <div> in Bootstrap. Approach 1 (offsets): The first approach uses bootstrap offset class. The ...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Nov, 2021" }, { "code": null, "e": 259, "s": 28, "text": "The goal here is to center a column in bootstrap. Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web development. There are t...
Node in Apache Cassandra
15 Jul, 2020 In this article, we are going to discuss what is a node in Cassandra, information of node, how we can access the information about the node, and by using Nodetool utility we will also discuss some nodetool commands. let’s discuss one by one. Node : A node in Cassandra contains the actual data and it’s info...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Jul, 2020" }, { "code": null, "e": 270, "s": 28, "text": "In this article, we are going to discuss what is a node in Cassandra, information of node, how we can access the information about the node, and by using Nodetool utility we w...
How to Calculate Euclidean Distance in R?
28 Nov, 2021 Euclidean distance between two points in Euclidean space is the length of a line segment between the two points. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, therefore occasionally being called the Pythagorean distance. The Euclidean distance between the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2021" }, { "code": null, "e": 361, "s": 28, "text": "Euclidean distance between two points in Euclidean space is the length of a line segment between the two points. It can be calculated from the Cartesian coordinates of the poi...
Jump Statements in Java
19 Oct, 2021 Jumping statements are control statements that transfer execution control from one point to another point in the program. There are two Jump statements that are provided in the Java programming language: Break statement.Continue statement. Break statement. Continue statement. 1. Using Break Statement to ex...
[ { "code": null, "e": 53, "s": 25, "text": "\n19 Oct, 2021" }, { "code": null, "e": 257, "s": 53, "text": "Jumping statements are control statements that transfer execution control from one point to another point in the program. There are two Jump statements that are provided in t...
GATE | GATE-CS-2014-(Set-3) | Question 65
28 Jun, 2021 Consider the transactions T1, T2, and T3 and the schedules S1 and S2 given below. T1: r1(X); r1(Z); w1(X); w1(Z) T2: r2(Y); r2(Z); w2(Z) T3: r3(Y); r3(X); w3(Y) S1: r1(X); r3(Y); r3(X); r2(Y); r2(Z); w3(Y); w2(Z); r1(Z); w1(X); w1(Z) S2: r1(X); r3(Y); r2(Y); r3(X); r1(Z); r2(Z); w3(Y); w1(X); w2(Z)...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2021" }, { "code": null, "e": 136, "s": 54, "text": "Consider the transactions T1, T2, and T3 and the schedules S1 and S2 given below." }, { "code": null, "e": 370, "s": 136, "text": "T1: r1(X); r1(Z); w1(X)...
The Slowest Sorting Algorithms
30 Jun, 2022 A Sorting Algorithm is used to rearrange a given array or list elements according to a comparison operator on the elements. The comparison operator is used to decide the new order of the element in the respective data structure. But Below is some of the slowest sorting algorithms: Stooge Sort: A Stooge sor...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2022" }, { "code": null, "e": 334, "s": 52, "text": "A Sorting Algorithm is used to rearrange a given array or list elements according to a comparison operator on the elements. The comparison operator is used to decide the new ...
Python math function | modf()
11 Jan, 2018 modf() function is an inbuilt function in Python that returns the fractional and integer parts of the number in a two-item tuple. Both parts have the same sign as the number. The integer part is returned as a float. Syntax : modf(number) Parameter : There is only one mandatory parameter which is the numbe...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Jan, 2018" }, { "code": null, "e": 269, "s": 53, "text": "modf() function is an inbuilt function in Python that returns the fractional and integer parts of the number in a two-item tuple. Both parts have the same sign as the number....
Total area of two overlapping rectangles
13 Jun, 2022 Given two overlapping rectangles on a plane. We are given bottom left and top right points of the two rectangles. We need to find the total area (Green and pink areas in the below diagram). Examples: Input : Point l1 = {2, 2}, r1 = {5, 7}; Point l2 = {3, 4}, r2 = {6, 9}; Output :Total Area = 24 ...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Jun, 2022" }, { "code": null, "e": 245, "s": 54, "text": "Given two overlapping rectangles on a plane. We are given bottom left and top right points of the two rectangles. We need to find the total area (Green and pink areas in the ...