title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Fast Exponention using Bit Manipulation - GeeksforGeeks
17 Jul, 2021 Given two integers A and N, the task is to calculate A raised to power N (i.e. AN). Examples: Input: A = 3, N = 5 Output: 243 Explanation: 3 raised to power 5 = (3*3*3*3*3) = 243 Input: A = 21, N = 4Output: 194481 Explanation: 21 raised to power 4 = (21*21*21*21) = 194481 Naive Approach: The simplest ap...
[ { "code": null, "e": 25014, "s": 24986, "text": "\n17 Jul, 2021" }, { "code": null, "e": 25098, "s": 25014, "text": "Given two integers A and N, the task is to calculate A raised to power N (i.e. AN)." }, { "code": null, "e": 25109, "s": 25098, "text": "Exampl...
String Arrays in Java - GeeksforGeeks
15 Dec, 2021 In programming, an array is a collection of the homogeneous types of data stored in a consecutive memory location and each data can be accessed using its index. In the Java programming language, we have a String data type. The string is nothing but an object representing a sequence of char values. Strings...
[ { "code": null, "e": 25788, "s": 25760, "text": "\n15 Dec, 2021" }, { "code": null, "e": 25950, "s": 25788, "text": "In programming, an array is a collection of the homogeneous types of data stored in a consecutive memory location and each data can be accessed using its index. " ...
Traffic Shaping - GeeksforGeeks
10 Aug, 2020 Traffic shaping is used to control bandwidth of the network to ensure quality of service to business-critical applications. It can be validated at : Port group levelVirtual or distributed virtual switch Port group level Virtual or distributed virtual switch This technique uses three parameters to shape the...
[ { "code": null, "e": 26430, "s": 26402, "text": "\n10 Aug, 2020" }, { "code": null, "e": 26579, "s": 26430, "text": "Traffic shaping is used to control bandwidth of the network to ensure quality of service to business-critical applications. It can be validated at :" }, { ...
Geostatistics in practice using R | by Arthur Mello | Towards Data Science
In this article, you will understand what is geostatistics, and how to use kriging, an interpolation method, to make estimates using geolocation data. In our example, we will take prices of real estate sales in New York and create a model that gives us a price estimate for any location within the city. Before we start,...
[ { "code": null, "e": 476, "s": 172, "text": "In this article, you will understand what is geostatistics, and how to use kriging, an interpolation method, to make estimates using geolocation data. In our example, we will take prices of real estate sales in New York and create a model that gives us a ...
Stack toString() method in Java with Example
24 Dec, 2018 The toString() method of Java Stack is used to return a string representation of the elements of the Collection. The String representation comprises a set representation of the elements of the Collection in the order they are picked by the iterator closed in square brackets[].This method is used mainly to ...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Dec, 2018" }, { "code": null, "e": 141, "s": 28, "text": "The toString() method of Java Stack is used to return a string representation of the elements of the Collection." }, { "code": null, "e": 436, "s": 141, "t...
PostgreSQL – NOT LIKE operator
28 Aug, 2020 The PostgreSQL NOT LIKE works exactly opposite to that of the LIKE operator. It is used to data using pattern matching techniques that explicitly excludes the mentioned pattern from the query result set.Its result include strings that are case-sensitive and doesn’t follow the mentioned pattern.It is import...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 454, "s": 28, "text": "The PostgreSQL NOT LIKE works exactly opposite to that of the LIKE operator. It is used to data using pattern matching techniques that explicitly excludes the mentioned patter...
Difference between constant pointer, pointers to constant, and constant pointers to constants
26 Apr, 2021 In this article, we will discuss the differences between constant pointer, pointers to constant & constant pointers to constants. Pointers are the variables that hold the address of some other variables, constants, or functions. There are several ways to qualify pointers using const. Pointers to constant. ...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Apr, 2021" }, { "code": null, "e": 339, "s": 54, "text": "In this article, we will discuss the differences between constant pointer, pointers to constant & constant pointers to constants. Pointers are the variables that hold the add...
Can We Instantiate an Abstract Class in Java?
07 Jan, 2021 Abstract class, we have heard that abstract class are classes which can have abstract methods and it can’t be instantiated. We cannot instantiate an abstract class in Java because it is abstract, it is not complete, hence it cannot be used. Example 1 Java // Java program to demonstrate abstract class// can...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jan, 2021" }, { "code": null, "e": 295, "s": 54, "text": "Abstract class, we have heard that abstract class are classes which can have abstract methods and it can’t be instantiated. We cannot instantiate an abstract class in Java be...
Searching in Array for a given element in Julia
10 May, 2020 Given an array (1D, 2D or 3D), and an element to look for in the array. If the element is present in the array, then print the position of the element in the array, else print “Element not found”.In the recent updates to Julia, the developers have unified the search() and find() functions into a simpler fi...
[ { "code": null, "e": 53, "s": 25, "text": "\n10 May, 2020" }, { "code": null, "e": 628, "s": 53, "text": "Given an array (1D, 2D or 3D), and an element to look for in the array. If the element is present in the array, then print the position of the element in the array, else prin...
Python Program for Matrix Chain Multiplication | DP-8
07 Jun, 2022 Given a sequence of matrices, find the most efficient way to multiply these matrices together. The problem is not actually to perform the multiplications, but merely to decide in which order to perform the multiplications. We have many options to multiply a chain of matrices because matrix multiplication i...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jun, 2022" }, { "code": null, "e": 532, "s": 54, "text": "Given a sequence of matrices, find the most efficient way to multiply these matrices together. The problem is not actually to perform the multiplications, but merely to decid...
LinkedList removeLast() Method in Java
29 Nov, 2020 The Java.util.LinkedList.removeLast() method is used to remove the last element from the LinkedList. This method also returns the element after removing it.Syntax: LinkedList.removeLast() Parameters: This function does not take any parameters.Return Value: The method returns the last element or the eleme...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2020" }, { "code": null, "e": 194, "s": 28, "text": "The Java.util.LinkedList.removeLast() method is used to remove the last element from the LinkedList. This method also returns the element after removing it.Syntax: " }, {...
How to create Tabs in ReactJS ?
12 Feb, 2021 Tabs make it easy to explore and switch between different views. Material UI for React has this component available for us and it is very easy to integrate. We can use Tabs Component in ReactJS using the following approach. Creating React Application And Installing Module: Step 1: Create a React applicatio...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Feb, 2021" }, { "code": null, "e": 276, "s": 52, "text": "Tabs make it easy to explore and switch between different views. Material UI for React has this component available for us and it is very easy to integrate. We can use Tabs C...
Mirror of matrix across diagonal
15 Jun, 2022 Given a 2-D array of order N x N, print a matrix that is the mirror of the given tree across the diagonal. We need to print the result in a way: swap the values of the triangle above the diagonal with the values of the triangle below it like a mirror image swap. Print the 2-D array obtained in a matrix lay...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jun, 2022" }, { "code": null, "e": 364, "s": 52, "text": "Given a 2-D array of order N x N, print a matrix that is the mirror of the given tree across the diagonal. We need to print the result in a way: swap the values of the triang...
Find two numbers from their sum and OR
12 Aug, 2021 Given two integers X and Y, the task is to find two numbers whose Bitwise OR is X and their sum is Y. If there exist no such integers, then print “-1”. Examples: Input: X = 7, Y = 11Output: 4 7Explanation:The Bitwise OR of 4 and 7 is 7 and the sum of two integers is 4 + 7 = 11, satisfy the given conditions...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Aug, 2021" }, { "code": null, "e": 204, "s": 52, "text": "Given two integers X and Y, the task is to find two numbers whose Bitwise OR is X and their sum is Y. If there exist no such integers, then print “-1”." }, { "code": ...
Python program to calculate acceleration, final velocity, initial velocity and time
31 Aug, 2021 Here we can find the acceleration (a), final velocity(v), initial velocity(u) and time(t) using the formula a = (v-u)/t. At first, functions are defined for all four types of calculations, in which they will accept three inputs and assign the value in three different variables. Then the fourth value is cal...
[ { "code": null, "e": 52, "s": 24, "text": "\n31 Aug, 2021" }, { "code": null, "e": 173, "s": 52, "text": "Here we can find the acceleration (a), final velocity(v), initial velocity(u) and time(t) using the formula a = (v-u)/t." }, { "code": null, "e": 511, "s": 17...
Difference between Where and Having Clause in SQL
18 May, 2022 1. WHERE Clause: WHERE Clause is used to filter the records from the table or used while joining more than one table.Only those records will be extracted who are satisfying the specified condition in WHERE clause. It can be used with SELECT, UPDATE, DELETE statements. Let us consider below table “Student”...
[ { "code": null, "e": 53, "s": 25, "text": "\n18 May, 2022" }, { "code": null, "e": 323, "s": 53, "text": "1. WHERE Clause: WHERE Clause is used to filter the records from the table or used while joining more than one table.Only those records will be extracted who are satisfying t...
Const vs Regular iterators in C++ with examples
18 Aug, 2020 Prerequisite: Iterators in STL Iterators are objects similar to pointers which are used to iterate over a sequence and manipulate the container elements. The advantage of using an iterator is that it reduces the lines of code to a single statement as they allow us to manipulate the built-in arrays in the S...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Aug, 2020" }, { "code": null, "e": 83, "s": 52, "text": "Prerequisite: Iterators in STL" }, { "code": null, "e": 464, "s": 83, "text": "Iterators are objects similar to pointers which are used to iterate over a s...
How to convert number to month name in PHP?
30 Apr, 2019 The month number can be converted into a month name by using PHP functions. There are two functions to convert the given month number into month name. Method 1: Using mktime() function: The mktime() function is an inbuilt function in PHP which is used to return the Unix timestamp for a date. The timestamp ...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 Apr, 2019" }, { "code": null, "e": 204, "s": 53, "text": "The month number can be converted into a month name by using PHP functions. There are two functions to convert the given month number into month name." }, { "code": n...
Finding Median in a Sorted Linked List
01 Jul, 2022 Given A sorted linked list of elements. The task is to find the median in the given Sorted Linked List.We know that median in a sorted array is the middle element. Procedure to find median of N sorted numbers: if N is odd: median is N/2th element else median is N/2th element + (N/2+1)th element E...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 Jul, 2022" }, { "code": null, "e": 218, "s": 54, "text": "Given A sorted linked list of elements. The task is to find the median in the given Sorted Linked List.We know that median in a sorted array is the middle element." }, { ...
GOCC18: Google’s Online Coding Challenge
16 Aug, 2021 The GOCC18 was held on September 26, 2020, for Google SWE New Grad 2021 (India). There were 2 coding questions to attempt, with a 60-minute time limit for completion. Below is the first question of the challenge: Question1: The cost of a string Your task is to create a string S considering lowercase Englis...
[ { "code": null, "e": 54, "s": 26, "text": "\n16 Aug, 2021" }, { "code": null, "e": 267, "s": 54, "text": "The GOCC18 was held on September 26, 2020, for Google SWE New Grad 2021 (India). There were 2 coding questions to attempt, with a 60-minute time limit for completion. Below i...
Longest Possible Route in a Matrix with Hurdles
04 Jul, 2022 Given an M x N matrix, with a few hurdles arbitrarily placed, calculate the length of the longest possible route possible from source to a destination within the matrix. We are allowed to move to only adjacent cells which are not hurdles. The route cannot contain any diagonal moves and a location once visi...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jul, 2022" }, { "code": null, "e": 411, "s": 54, "text": "Given an M x N matrix, with a few hurdles arbitrarily placed, calculate the length of the longest possible route possible from source to a destination within the matrix. We a...
Suspend Function In Kotlin Coroutines
10 Sep, 2020 Prerequisite: Kotlin Coroutines on Android The Kotlin team defines coroutines as “lightweight threads”. They are sort of tasks that the actual threads can execute. Coroutines were added to Kotlin in version 1.3 and are based on established concepts from other languages. Kotlin coroutines introduce a new st...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Sep, 2020" }, { "code": null, "e": 97, "s": 54, "text": "Prerequisite: Kotlin Coroutines on Android" }, { "code": null, "e": 432, "s": 97, "text": "The Kotlin team defines coroutines as “lightweight threads”. The...
How to perform mouse movement to an element in Selenium with python?
We can perform mouse movement to an element in Selenium with the help of Action Chains class. These classes are generally used for automating interactions like context menu click, mouse button actions, key press and mouse movements. These types of actions are mainly common in complex scenarios like drag and drop and ho...
[ { "code": null, "e": 1420, "s": 1187, "text": "We can perform mouse movement to an element in Selenium with the\nhelp of Action Chains class. These classes are generally used for automating\ninteractions like context menu click, mouse button actions, key press and mouse\nmovements." }, { "co...
GATE | GATE-CS-2001 | Question 48
28 Jun, 2021 R(A,B,C,D) is a relation. Which of the following does not have a lossless join, dependency preserving BCNF decomposition?(A) A->B, B->CD(B) A->B, B->C, C->D(C) AB->C, C->AD(D) A ->BCDAnswer: (C)Explanation: Background : Lossless-Join Decomposition:Decomposition of R into R1 and R2 is a lossless-join decomp...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2021" }, { "code": null, "e": 274, "s": 54, "text": "R(A,B,C,D) is a relation. Which of the following does not have a lossless join, dependency preserving BCNF decomposition?(A) A->B, B->CD(B) A->B, B->C, C->D(C) AB->C, C->AD(D...
PHP | bcdiv() Function
19 Apr, 2018 The bcdiv() function in PHP is an inbuilt function and is used to divide two arbitrary precision numbers. This function accepts two arbitrary precision numbers as strings and returns the division of the two numbers after scaling the result to a specified precision. Syntax: string bcdiv ( $num_str1, $num_st...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2018" }, { "code": null, "e": 294, "s": 28, "text": "The bcdiv() function in PHP is an inbuilt function and is used to divide two arbitrary precision numbers. This function accepts two arbitrary precision numbers as strings and ...
SlidingDrawer in Android with Example
18 Feb, 2021 SlidingDrawer is a common requirement in android mobiles to view the content whenever needed by sliding horizontally as well as vertically. In this article, let us check out on Sliding Drawer which is used to hide the content out of the screen and allows the user to drag a handle to bring the content on th...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Feb, 2021" }, { "code": null, "e": 576, "s": 28, "text": "SlidingDrawer is a common requirement in android mobiles to view the content whenever needed by sliding horizontally as well as vertically. In this article, let us check out o...
Print all Jumping Numbers smaller than or equal to a given value
11 Jul, 2022 A number is called as a Jumping Number if all adjacent digits in it differ by 1. The difference between ‘9’ and ‘0’ is not considered as 1. All single digit numbers are considered as Jumping Numbers. For example 7, 8987 and 4343456 are Jumping numbers but 796 and 89098 are not. Given a positive number x, p...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jul, 2022" }, { "code": null, "e": 453, "s": 52, "text": "A number is called as a Jumping Number if all adjacent digits in it differ by 1. The difference between ‘9’ and ‘0’ is not considered as 1. All single digit numbers are consi...
Java Program to Create a Word Document
24 May, 2022 A Word file is supposed to be created without Word with the help of Java application protocol interfaces. Concepts Involved: Apache POI and Maven Apache POI Is an API provided by Apache foundation which is a collection of different java libraries. This facility gives the library to read, write, and manipul...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 May, 2022" }, { "code": null, "e": 134, "s": 28, "text": "A Word file is supposed to be created without Word with the help of Java application protocol interfaces." }, { "code": null, "e": 174, "s": 134, "text": "...
Node.js zlib.gunzip() Method
12 Oct, 2021 The zlib.gunzip() method is an inbuilt application programming interface of the Zlib module which is used to decompress a chunk of data. Syntax: zlib.gunzip( buffer, options, callback ) Parameters: This method accepts three parameters as mentioned above and described below: buffer: It can be of type Buffer...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Oct, 2021" }, { "code": null, "e": 165, "s": 28, "text": "The zlib.gunzip() method is an inbuilt application programming interface of the Zlib module which is used to decompress a chunk of data." }, { "code": null, "e": 1...
Data Structures and Algorithms | Set 18
27 Mar, 2017 Following questions have been asked in GATE CS 2006 exam. 1. Consider the polynomial p(x) = a0 + a1x + a2x^2 +a3x^3, where ai != 0, for all i. The minimum number of multiplications needed to evaluate p on an input x is: (A) 3(B) 4(C) 6(D) 9 Answer (A) Multiplications can be minimized using following order ...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Mar, 2017" }, { "code": null, "e": 110, "s": 52, "text": "Following questions have been asked in GATE CS 2006 exam." }, { "code": null, "e": 272, "s": 110, "text": "1. Consider the polynomial p(x) = a0 + a1x + a2...
Python | Float type and its methods
16 Nov, 2018 The float type in Python represents the floating point number. Float is used to represent real numbers and is written with a decimal point dividing the integer and fractional parts. For example, 97.98, 32.3+e18, -32.54e100 all are floating point numbers. Python float values are represented as 64-bit double...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Nov, 2018" }, { "code": null, "e": 283, "s": 28, "text": "The float type in Python represents the floating point number. Float is used to represent real numbers and is written with a decimal point dividing the integer and fractional ...
How to Compare two Collections in Java?
02 Nov, 2020 Java Collection provides an architecture to store and manipulate the group of objects. Here we will see how to compare Elements in a Collection in Java. Steps: Take both inputs with help of asList() function. Sort them using Collections.sort() method. Compare them using equals() function. Print output. (tr...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Nov, 2020" }, { "code": null, "e": 181, "s": 28, "text": "Java Collection provides an architecture to store and manipulate the group of objects. Here we will see how to compare Elements in a Collection in Java." }, { "code": ...
PHP | Functions
01 Apr, 2021 A function is a block of code written in a program to perform some specific task. We can relate functions in programs to employees in a office in real life for a better understanding of how functions work. Suppose the boss wants his employee to calculate the annual budget. So how will this process complete...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Apr, 2021" }, { "code": null, "e": 733, "s": 52, "text": "A function is a block of code written in a program to perform some specific task. We can relate functions in programs to employees in a office in real life for a better under...
A Simple Git Workflow for Github Beginners and Everyone Else | by Eric Kleppen | Towards Data Science
When I started my first group project in the Data Analysis coding camp I attended, we had to pick a “Git master.” The thought of coordinating a workflow for five inexperienced people using git and Github was a bit daunting. When the time came to decide, since I had a tiny bit of experience using it before the boot camp...
[ { "code": null, "e": 782, "s": 172, "text": "When I started my first group project in the Data Analysis coding camp I attended, we had to pick a “Git master.” The thought of coordinating a workflow for five inexperienced people using git and Github was a bit daunting. When the time came to decide, s...
PyQt5 - Scrollable Label - GeeksforGeeks
12 May, 2021 In this article we will see how we can create a scroll-able label, by default when we create a label all the text is in the single line and if length of text is greater than label, extra text didn’t show, although with the help of setWordWrap method we can create a multi-line label but still if the text ex...
[ { "code": null, "e": 26339, "s": 26311, "text": "\n12 May, 2021" }, { "code": null, "e": 26954, "s": 26339, "text": "In this article we will see how we can create a scroll-able label, by default when we create a label all the text is in the single line and if length of text is gr...
MySQL - MAX Function
MySQL MAX function is used to find out the record with maximum value among a record set. To understand MAX function, consider an employee_tbl table, which is having the following records − mysql> SELECT * FROM employee_tbl; +------+------+------------+--------------------+ | id | name | work_date | daily_typing_page...
[ { "code": null, "e": 2422, "s": 2333, "text": "MySQL MAX function is used to find out the record with maximum value among a record set." }, { "code": null, "e": 2522, "s": 2422, "text": "To understand MAX function, consider an employee_tbl table, which is having the following rec...
C# | String.IsNormalized Method - GeeksforGeeks
06 Jan, 2022 IsNormalized() method is used to check whether the given string is in a particular Unicode normalization form or not. If the given string is in the particular normalized form, then this method returns true. Otherwise, return false.There are two methods in the overload list of this method as follows: IsNorm...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n06 Jan, 2022" }, { "code": null, "e": 24212, "s": 23911, "text": "IsNormalized() method is used to check whether the given string is in a particular Unicode normalization form or not. If the given string is in the particular norm...
Get count of how many times a string appears in a MySQL column?
Let us first create a table − mysql> create table DemoTable704 (SubjectName text); Query OK, 0 rows affected (0.58 sec) Insert some records in the table using insert command − mysql> insert into DemoTable704 values('Introduction to MySQL'); Query OK, 1 row affected (0.15 sec) mysql> insert into DemoTable704 values('Int...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first create a table −" }, { "code": null, "e": 1182, "s": 1092, "text": "mysql> create table DemoTable704 (SubjectName text);\nQuery OK, 0 rows affected (0.58 sec)" }, { "code": null, "e": 1238, "s": 1182, ...
Gmail Login using Python Selenium - GeeksforGeeks
22 Feb, 2022 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 Gmail account using Python and the power of selenium. Selenium automates and controls br...
[ { "code": null, "e": 24477, "s": 24449, "text": "\n22 Feb, 2022" }, { "code": null, "e": 24635, "s": 24477, "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." },...
Churn Prediction with Machine Learning | by Rafael Bastos | Towards Data Science
Building up and keeping a loyal clientele can be challenging for any company, especially when customers are free to choose from a variety of providers within a product category. Furthermore, retaining existing customers is generally more cost-effective than acquiring new ones. For this reason, evaluating client retenti...
[ { "code": null, "e": 324, "s": 46, "text": "Building up and keeping a loyal clientele can be challenging for any company, especially when customers are free to choose from a variety of providers within a product category. Furthermore, retaining existing customers is generally more cost-effective tha...
How to Convert Pytorch tensor to Numpy array?
30 Jun, 2021 In this article, we are going to convert Pytorch tensor to NumPy array. Method 1: Using numpy(). Syntax: tensor_name.numpy() Example 1: Converting one-dimensional a tensor to NumPy array Python3 # importing torch moduleimport torch # import numpy moduleimport numpy # create one dimensional tensor with# f...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2021" }, { "code": null, "e": 100, "s": 28, "text": "In this article, we are going to convert Pytorch tensor to NumPy array." }, { "code": null, "e": 125, "s": 100, "text": "Method 1: Using numpy()." }, {...
Scraping dynamic content using Python-Scrapy
26 May, 2021 Let’s suppose we are reading some content from a source like websites, and we want to save that data on our device. We can copy the data in a notebook or notepad for reuse in future jobs. This way, we used scraping(if we didn’t have a font or database, the form brute removes the data in documents, sites, a...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 May, 2021" }, { "code": null, "e": 346, "s": 28, "text": "Let’s suppose we are reading some content from a source like websites, and we want to save that data on our device. We can copy the data in a notebook or notepad for reuse in ...
Trigonometric Functions in MATLAB
30 May, 2021 In this article, we are going to discuss trigonometric functions and their types in MATLAB. Trigonometric functions are the mathematical functions that can result in the output with the given input. There are six trigonometric functions – Sine (sin)Cosine(cos)Tangent(tan)CoTangent(cot)Secant(sec)CoSecant(...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 May, 2021" }, { "code": null, "e": 228, "s": 28, "text": "In this article, we are going to discuss trigonometric functions and their types in MATLAB. Trigonometric functions are the mathematical functions that can result in the outpu...
How to set space between the flexbox ?
31 Oct, 2019 Flexible Box Module or Flexbox is a type of layout model. The main aim of this layout is to distribute space between items in a container. This layout is a one-dimensional layout model. The flexbox layout even works when the size of the items is unknown or dynamic. To set space between the flexbox you can ...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Oct, 2019" }, { "code": null, "e": 294, "s": 28, "text": "Flexible Box Module or Flexbox is a type of layout model. The main aim of this layout is to distribute space between items in a container. This layout is a one-dimensional lay...
D3.js line.curve() method
19 Aug, 2020 The d3.line.curve() method is used to give a curve to our line. D3.js provides several curve factories that can be used to give different curves. Syntax: d3.line.curve(curve_factory); Parameters: curve_factory: type of curve to be given to the line. Return Value: This method has no return value. Example 1:...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Aug, 2020" }, { "code": null, "e": 174, "s": 28, "text": "The d3.line.curve() method is used to give a curve to our line. D3.js provides several curve factories that can be used to give different curves." }, { "code": null, ...
Tailwind CSS Flex
23 Mar, 2022 The CSS flexbox is a vital feature to develop the frontend, there is four flex available in tailwind CSS all the properties are covered as in class form. It is the alternative of CSS flex Property for fast development of front-end. It is used to set the length of flexible items. The flex class is much resp...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Mar, 2022" }, { "code": null, "e": 563, "s": 28, "text": "The CSS flexbox is a vital feature to develop the frontend, there is four flex available in tailwind CSS all the properties are covered as in class form. It is the alternative...
PyQt5 - QDialog Class
A QDialog widget presents a top level window mostly used to collect response from the user. It can be configured to be Modal (where it blocks its parent window) or Modeless (the dialog window can be bypassed). PyQt API has a number of preconfigured Dialog widgets such as InputDialog, FileDialog, FontDialog, etc. In the...
[ { "code": null, "e": 2307, "s": 2097, "text": "A QDialog widget presents a top level window mostly used to collect response from the user. It can be configured to be Modal (where it blocks its parent window) or Modeless (the dialog window can be bypassed)." }, { "code": null, "e": 2411, ...
Python – Eye blink detection project
30 Jun, 2022 In this tutorial you will learn about detecting a blink of human eye with the feature mappers knows as haar cascades. Here in the project, we will use the python language along with the OpenCV library for the algorithm execution and image processing respectively. The haar cascades we are going to use in th...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2022" }, { "code": null, "e": 1246, "s": 52, "text": "In this tutorial you will learn about detecting a blink of human eye with the feature mappers knows as haar cascades. Here in the project, we will use the python language al...
Weighted PageRank Algorithm
13 Oct, 2020 Prerequisite: PageRank Algorithm The more popular a webpage is, the more are the linkages that other webpages tend to have to them. Weighted PageRank algorithm is an extension of the conventional PageRank algorithm based on the same concept. Weighted PageRank algorithm assigns higher rank values to more po...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Oct, 2020" }, { "code": null, "e": 61, "s": 28, "text": "Prerequisite: PageRank Algorithm" }, { "code": null, "e": 270, "s": 61, "text": "The more popular a webpage is, the more are the linkages that other webpage...
Python | Pandas Dataframe/Series.dot()
19 Apr, 2020 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 Dataframe.dot() works similarly like mul() method, but instead of returning multiplied...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2020" }, { "code": null, "e": 242, "s": 28, "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 and makes imp...
<mat-slider> in Angular Material
01 Feb, 2021 Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to install it, we need to have angular installed in our project, once you have it you can enter the below command and can download it. <mat-slider> t...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Feb, 2021" }, { "code": null, "e": 401, "s": 28, "text": "Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to install it, we...
Unpacking a Tuple in Python
24 Jun, 2021 Python Tuples In python tuples are used to store immutable objects. Python Tuples are very similar to lists except to some situations. Python tuples are immutable means that they can not be modified in whole program. Packing and Unpacking a Tuple: In Python, there is a very powerful tuple assignment featur...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2021" }, { "code": null, "e": 269, "s": 52, "text": "Python Tuples In python tuples are used to store immutable objects. Python Tuples are very similar to lists except to some situations. Python tuples are immutable means that ...
Program to determine class, Network and Host ID of an IPv4 address
27 Apr, 2022 Given a valid IPv4 address in the form of string and it follows Class Full addressing. The task is to determine the class of the given IPv4 address as well as separate the Network and Host ID parts from it. Examples: Input : 1.4.5.5 Output : Given IP address belongs to Class A Network ID is 1 Host ID is 4...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 Apr, 2022" }, { "code": null, "e": 261, "s": 54, "text": "Given a valid IPv4 address in the form of string and it follows Class Full addressing. The task is to determine the class of the given IPv4 address as well as separate the Ne...
Turing Machine for addition
01 Jun, 2022 Prerequisite – Turing Machine A number is represented in binary format in different finite automata. For example, 5 is represented as 101. However, in the case of addition using a Turing machine, unary format is followed. In unary format, a number is represented by either all ones or all zeroes. For exampl...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Jun, 2022" }, { "code": null, "e": 496, "s": 52, "text": "Prerequisite – Turing Machine A number is represented in binary format in different finite automata. For example, 5 is represented as 101. However, in the case of addition us...
How to retrieve source code from Python objects?
29 Aug, 2020 It is sometimes important to know what some functions source codes look like. In such cases, we have inspect module a built-in standard library in Python programming. It provides several useful functions to track information about live objects such as modules, classes, methods, functions, tracebacks, frame...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Aug, 2020" }, { "code": null, "e": 432, "s": 28, "text": "It is sometimes important to know what some functions source codes look like. In such cases, we have inspect module a built-in standard library in Python programming. It provi...
Find most significant bit of a number X in base Y
20 Apr, 2021 Given two positive integers X and Y, the task is to find the MSB of X, in the given base Y.Examples: Input: X = 55, Y = 3 Output: 2 Explanation: 55 is 2001 in base 3 with first digit as 2.Input: X = 123, Y = 10 Output: 1 Explanation: 123 is 123 in base 10 with first digit 1. Approach: Let the task to find...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Apr, 2021" }, { "code": null, "e": 129, "s": 28, "text": "Given two positive integers X and Y, the task is to find the MSB of X, in the given base Y.Examples:" }, { "code": null, "e": 305, "s": 129, "text": "Input...
3D Sine Wave Using Matplotlib - Python - GeeksforGeeks
03 Jan, 2021 Prerequisites: Mathplotlib, NumPy In the Cartesian coordinate system, the trigonometric sine function sin(x) sin (x) generates a regular undulating curve, which passes through the origin. Its values range between −1 − 1 and 1 1 for all real values of x x.In this article, we will plot a sin wave graph using...
[ { "code": null, "e": 29911, "s": 29883, "text": "\n03 Jan, 2021" }, { "code": null, "e": 29945, "s": 29911, "text": "Prerequisites: Mathplotlib, NumPy" }, { "code": null, "e": 30302, "s": 29945, "text": "In the Cartesian coordinate system, the trigonometric si...
Django - RSS
Django comes with a syndication feed generating framework. With it you can create RSS or Atom feeds just by subclassing django.contrib.syndication.views.Feed class. Let's create a feed for the latest comments done on the app (Also see Django - Comments Framework chapter). For this, let's create a myapp/feeds.py and def...
[ { "code": null, "e": 2210, "s": 2045, "text": "Django comes with a syndication feed generating framework. With it you can create RSS or Atom feeds just by subclassing django.contrib.syndication.views.Feed class." }, { "code": null, "e": 2453, "s": 2210, "text": "Let's create a fe...
gs - Unix, Linux Command
The interpreter recognizes many option switches, some of which are described below. Please see the usage documenation for complete information. Switches may appear anywhere in the command line and apply to all files thereafter. Invoking Ghostscript with the -h or -? switch produces a message which shows several useful ...
[ { "code": null, "e": 11044, "s": 10577, "text": "\nThe interpreter recognizes many option switches, some of which are described\nbelow. Please see the usage documenation for complete information. Switches\nmay appear anywhere in the command line and apply to all files thereafter.\nInvoking Ghostscri...
Groovy - subList()
Returns a view of the portion of this Range between the specified fromIndex, inclusive, and toIndex, exclusive List subList(int fromIndex, int toIndex) fromIndex – Starting index of the range toIndex – End Index of the range The list of range values from specified starting to ending index. Following is an example of t...
[ { "code": null, "e": 2349, "s": 2238, "text": "Returns a view of the portion of this Range between the specified fromIndex, inclusive, and toIndex, exclusive" }, { "code": null, "e": 2391, "s": 2349, "text": "List subList(int fromIndex, int toIndex)\n" }, { "code": null, ...
C Program for Activity Selection Problem | Greedy Algo-1 - GeeksforGeeks
22 Aug, 2019 You are given n activities with their start and finish times. Select the maximum number of activities that can be performed by a single person, assuming that a person can only work on a single activity at a time.Example: Example 1 : Consider the following 3 activities sorted by finish time. start[] =...
[ { "code": null, "e": 24539, "s": 24511, "text": "\n22 Aug, 2019" }, { "code": null, "e": 24760, "s": 24539, "text": "You are given n activities with their start and finish times. Select the maximum number of activities that can be performed by a single person, assuming that a per...
Node.js fs.realpath() Method - GeeksforGeeks
12 Oct, 2021 The fs.realPath() method is used to compute the canonical pathname of the given path. It does so by resolving the ., .. and the symbolic links in the path. Syntax: fs.realpath( path, options, callback ) Parameters: This method accept three parameters as mentioned above and described below: path: It holds t...
[ { "code": null, "e": 24165, "s": 24137, "text": "\n12 Oct, 2021" }, { "code": null, "e": 24321, "s": 24165, "text": "The fs.realPath() method is used to compute the canonical pathname of the given path. It does so by resolving the ., .. and the symbolic links in the path." }, ...
How to add items to an array in java dynamically?
Since the size of an array is fixed you cannot add elements to it dynamically. But, if you still want to do it then, Convert the array to ArrayList object. Add the required element to the array list. Convert the Array list to array. import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public c...
[ { "code": null, "e": 1179, "s": 1062, "text": "Since the size of an array is fixed you cannot add elements to it dynamically. But, if you still want to do it then," }, { "code": null, "e": 1218, "s": 1179, "text": "Convert the array to ArrayList object." }, { "code": null...
How to standardize data.table object column by group in R?
To standardize data.table object column by group, we can use scale function and provide the grouping column with by function. For Example, if we have a data.table object called DT that contains two columns say G and Num where G is a grouping column and Num is a numerical column then we can standardize Num by column G b...
[ { "code": null, "e": 1188, "s": 1062, "text": "To standardize data.table object column by group, we can use scale function and provide\nthe grouping column with by function." }, { "code": null, "e": 1416, "s": 1188, "text": "For Example, if we have a data.table object called DT t...
Objection.js | SQL friendly ORM for Node.js - GeeksforGeeks
13 Aug, 2020 Node.js has plenty of object-relational mappers (for relational databases) that we can choose from few popular ones are: SequelizeMongoose or PrismaTypeORMObjection.js (Read the full documentation here) Sequelize Mongoose or Prisma TypeORM Objection.js (Read the full documentation here) Why consider Object...
[ { "code": null, "e": 24531, "s": 24503, "text": "\n13 Aug, 2020" }, { "code": null, "e": 24652, "s": 24531, "text": "Node.js has plenty of object-relational mappers (for relational databases) that we can choose from few popular ones are:" }, { "code": null, "e": 24734...
Appending a key value pair to an array of dictionary based on a condition in JavaScript?
For this, use Object.assign(). Following is the code − const details = {john:{'studentName':'John'},david:{'studentName':'David'},mike:{'studen tName':'Mike'},bob:{'studentName':'Bob'},carol:{'studentName':'Carol'}}, join_values = ['David', 'Carol'], output = Object.assign( {}, ...Object .keys(deta...
[ { "code": null, "e": 1117, "s": 1062, "text": "For this, use Object.assign(). Following is the code −" }, { "code": null, "e": 1573, "s": 1117, "text": "const details =\n{john:{'studentName':'John'},david:{'studentName':'David'},mike:{'studen\ntName':'Mike'},bob:{'studentName':'B...
How to create a simple "star rating" look with CSS?
To create a simple star rating look with CSS, the code is as follows − Live Demo <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/> <style> body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; m...
[ { "code": null, "e": 1133, "s": 1062, "text": "To create a simple star rating look with CSS, the code is as follows −" }, { "code": null, "e": 1144, "s": 1133, "text": " Live Demo" }, { "code": null, "e": 1786, "s": 1144, "text": "<!DOCTYPE html>\n<html>\n<hea...
How to subtract Python timedelta from date in Python?
You can subtract a day from a python date using the timedelta object. You need to create a timedelta object with the amount of time you want to subtract. Then subtract it from the date. from datetime import datetime from datetime import timedelta today = datetime.today() yesterday = today - timedelta(days=1) print(tod...
[ { "code": null, "e": 1249, "s": 1062, "text": "You can subtract a day from a python date using the timedelta object. You need to create a timedelta object with the amount of time you want to subtract. Then subtract it from the date. " }, { "code": null, "e": 1411, "s": 1249, "tex...
Fixed-Point DSP for Data Scientists | by Sandeep Mistry | Towards Data Science
Authors: Sandeep Mistry, Henri Woodcock on behalf of the Arm Software Developer’s Team When Machine Learning (ML) is applied in audio systems, the input audio signal is typically transformed into a 2D “image” using Digital Signal Processing (DSP) techniques, so that computer vision techniques can be used to classify th...
[ { "code": null, "e": 258, "s": 171, "text": "Authors: Sandeep Mistry, Henri Woodcock on behalf of the Arm Software Developer’s Team" }, { "code": null, "e": 587, "s": 258, "text": "When Machine Learning (ML) is applied in audio systems, the input audio signal is typically transfo...
C library function - remove()
The C library function int remove(const char *filename) deletes the given filename so that it is no longer accessible. Following is the declaration for remove() function. int remove(const char *filename) filename − This is the C string containing the name of the file to be deleted. filename − This is the C string conta...
[ { "code": null, "e": 2126, "s": 2007, "text": "The C library function int remove(const char *filename) deletes the given filename so that it is no longer accessible." }, { "code": null, "e": 2178, "s": 2126, "text": "Following is the declaration for remove() function." }, { ...
Fibonacci Recursive Program in C
#include <stdio.h> int factorial(int n) { //base case if(n == 0) { return 1; } else { return n * factorial(n-1); } } int fibbonacci(int n) { if(n == 0){ return 0; } else if(n == 1) { return 1; } else { return (fibbonacci(n-1) + fibbonacci(n-2)); } } int main() { ...
[ { "code": null, "e": 3098, "s": 2580, "text": "#include <stdio.h>\n\nint factorial(int n) {\n //base case\n if(n == 0) {\n return 1;\n } else {\n return n * factorial(n-1);\n }\n}\n\nint fibbonacci(int n) {\n if(n == 0){\n return 0;\n } else if(n == 1) {\n return 1;\n...
How to count the number of duplicate rows in an R data frame?
To count the number of duplicate rows in an R data frame, we would first need to convert the data frame into a data.table object by using setDT and then count the duplicates with Count function. For example, if we have a data frame called df then the duplicate rows will be counted by using the command − setDT(df)[,list...
[ { "code": null, "e": 1405, "s": 1062, "text": "To count the number of duplicate rows in an R data frame, we would first need to convert the data frame into a data.table object by using setDT and then count the duplicates with Count function. For example, if we have a data frame called df then the du...
Bootstrap success Contextual class
The Bootstrap success contextual class indicates a successful or positive action. You can try to run the following code to implement the .success class − Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Table</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <scrip...
[ { "code": null, "e": 1144, "s": 1062, "text": "The Bootstrap success contextual class indicates a successful or positive action." }, { "code": null, "e": 1216, "s": 1144, "text": "You can try to run the following code to implement the .success class −" }, { "code": null, ...
Random Tree Generator Using Prüfer Sequence with Examples - GeeksforGeeks
06 Jan, 2022 Given an integer N, the task is to generate a random labelled tree of N node with (N – 1) edges without forming cycle.Note: The output generated below is random which may not match with the output generated by the code.Examples: Input: N = 3 Output: 1 3 1 2 Input: N = 5 Output: 3 2 4 3 1 4 1 5 This...
[ { "code": null, "e": 24667, "s": 24639, "text": "\n06 Jan, 2022" }, { "code": null, "e": 24898, "s": 24667, "text": "Given an integer N, the task is to generate a random labelled tree of N node with (N – 1) edges without forming cycle.Note: The output generated below is random wh...
How to plot int to datetime on X-axis using Seaborn?
To plot int to datetime on X-axis using Seaborn in matplotlib, we can take the following steps Set the figure size and adjust the padding between and around the subplots. Set the figure size and adjust the padding between and around the subplots. Create a dataframe, df, of two-dimensional, size-mutable, potentially het...
[ { "code": null, "e": 1157, "s": 1062, "text": "To plot int to datetime on X-axis using Seaborn in matplotlib, we can take the following steps" }, { "code": null, "e": 1233, "s": 1157, "text": "Set the figure size and adjust the padding between and around the subplots." }, { ...
Mastering Memoization in Python. Understanding Function Caching in... | by Sadrach Pierre, Ph.D. | Towards Data Science
Memoization is a method used to store the results of previous function calls to speed up future calculations. If repeated function calls are made with the same parameters, we can store the previous values instead of repeating unnecessary calculations. This results in a significant speed up in calculations. In this post...
[ { "code": null, "e": 537, "s": 171, "text": "Memoization is a method used to store the results of previous function calls to speed up future calculations. If repeated function calls are made with the same parameters, we can store the previous values instead of repeating unnecessary calculations. Thi...
Find depth of a dictionary in Python
A python dictionary can be nested i.e., there are dictionaries within a dictionary. In this article we will see how to calculated the level of nesting in a dictionary when there is a nested dictionary. In this approach we convert the entire dictionary into a string. Then we count the number of left { that indicate to w...
[ { "code": null, "e": 1264, "s": 1062, "text": "A python dictionary can be nested i.e., there are dictionaries within a dictionary. In this article we will see how to calculated the level of nesting in a dictionary when there is a nested dictionary." }, { "code": null, "e": 1422, "s":...
GATE | GATE-CS-2003 | Question 56 - GeeksforGeeks
12 Sep, 2019 Consider the grammar shown below S → i E t S S' | a S' → e S | ε E → b In the predictive parse table. M, of this grammar, the entries M[S’, e] and M[S’, $] respectively are(A) {S’ → e S} and {S’ → e}(B) {S’ → e S} and {}(C) {S’ → ε} and {S’ → ε}(D) {S’ → e S, S’→ ε} and {S’ → ε}Answer: (D)Explanation: Her...
[ { "code": null, "e": 24432, "s": 24404, "text": "\n12 Sep, 2019" }, { "code": null, "e": 24465, "s": 24432, "text": "Consider the grammar shown below" }, { "code": null, "e": 24504, "s": 24465, "text": "S → i E t S S' | a\nS' → e S | ε\nE → b " }, { "c...
mount - Unix, Linux Command
mount -a [-fFnrsvw] [-t vfstype] [-O optlist] mount [-fnrsvw] [-o options [,...]] device | dir mount [-fnrsvw] [-t vfstype] [-o options] device dir The standard form of the mount command, is mount -t type device dir This tells the kernel to attach the file system found on device (which is of type type) at the dire...
[ { "code": null, "e": 10729, "s": 10577, "text": "\nmount -a [-fFnrsvw] [-t vfstype] [-O optlist] \nmount [-fnrsvw] [-o options [,...]] device | dir \nmount [-fnrsvw] [-t vfstype] [-o options] device dir " }, { "code": null, "e": 11100, "s": 10729, "text": "\nThe standard form of ...
DeepPiCar — Part 4: Autonomous Lane Navigation via OpenCV | by David Tian | Towards Data Science
With all the hardware (Part 2) and software (Part 3) set up out of the way, we are ready to have some fun with the car! In this article, we will use a popular, open-source computer vision package, called OpenCV, to help PiCar autonomously navigate within a lane. Note this article will just make our PiCar a “self-drivin...
[ { "code": null, "e": 601, "s": 171, "text": "With all the hardware (Part 2) and software (Part 3) set up out of the way, we are ready to have some fun with the car! In this article, we will use a popular, open-source computer vision package, called OpenCV, to help PiCar autonomously navigate within ...
New 21 Game in C++
Suppose Rima plays the following game, that is loosely based on the card game "21". So Rima starts with 0 points, and draws numbers while she has less than K points. Now, during each draw, she gains an integer number of points randomly from the range [1, W], where W is given, and that is an integer. Now each draw is in...
[ { "code": null, "e": 1557, "s": 1062, "text": "Suppose Rima plays the following game, that is loosely based on the card game \"21\". So Rima starts with 0 points, and draws numbers while she has less than K points. Now, during each draw, she gains an integer number of points randomly from the range ...
How to get screen DPI programmatically in Android?
This example demonstrates how do I get screen DPI programatically in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <Relative...
[ { "code": null, "e": 1140, "s": 1062, "text": "This example demonstrates how do I get screen DPI programatically in android." }, { "code": null, "e": 1269, "s": 1140, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details ...
Python - Deque
In Python deque is a data structure like stack and queue. It allows append and pop operations from both the ends of the queue. And that makes it different from the rest of the data structures. There are various operations which are listed below that is applicable to deque. In this article we will see the examples on ea...
[ { "code": null, "e": 1457, "s": 1062, "text": "In Python deque is a data structure like stack and queue. It allows append and pop operations from both the ends of the queue. And that makes it different from the rest of the data structures. There are various operations which are listed below that is ...
Designing Non-Deterministic Finite Automata (Set 1) - GeeksforGeeks
03 Jul, 2020 Prerequisite: Finite Automata IntroductionIn this article, we will see some designing of Non-Deterministic Finite Automata (NFA). Problem-1: Construction of a minimal NFA accepting a set of strings over {a, b} in which each string of the language starts with ‘a’.Explanation: The desired language will be li...
[ { "code": null, "e": 24661, "s": 24633, "text": "\n03 Jul, 2020" }, { "code": null, "e": 24791, "s": 24661, "text": "Prerequisite: Finite Automata IntroductionIn this article, we will see some designing of Non-Deterministic Finite Automata (NFA)." }, { "code": null, "...
HTML <label> for Attribute
The for attribute of the <label> element is used to set an element with a label. Following is the syntax − <label for="id"> Above, id is the associated element id. Let us now see an example to implement the for attribute of <label> element − Live Demo <!DOCTYPE html> <html> <body> <h2>Last Semester Results</h2> <form>...
[ { "code": null, "e": 1143, "s": 1062, "text": "The for attribute of the <label> element is used to set an element with a label." }, { "code": null, "e": 1169, "s": 1143, "text": "Following is the syntax −" }, { "code": null, "e": 1186, "s": 1169, "text": "<lab...
How to decode an encoded string in JavaScript?
In JavaScript, to decode a string unescape() method is used. This method takes a string, which is encoded by escape() method, and decodes it. The hexadecimal characters in a string will be replaced by the actual characters they represent using unescape() method. unescape(string) In the following the two exclamation mar...
[ { "code": null, "e": 1325, "s": 1062, "text": "In JavaScript, to decode a string unescape() method is used. This method takes a string, which is encoded by escape() method, and decodes it. The hexadecimal characters in a string will be replaced by the actual characters they represent using unescape(...
Auto-Encoder: What Is It? And What Is It Used For? (Part 1) | by Will Badr | Towards Data Science
Autoencoder is an unsupervised artificial neural network that learns how to efficiently compress and encode data then learns how to reconstruct the data back from the reduced encoded representation to a representation that is as close to the original input as possible. Autoencoder, by design, reduces data dimensions by...
[ { "code": null, "e": 442, "s": 172, "text": "Autoencoder is an unsupervised artificial neural network that learns how to efficiently compress and encode data then learns how to reconstruct the data back from the reduced encoded representation to a representation that is as close to the original inpu...
Image Classification Keras Tutorial: Kaggle Dog Breed Challenge | by Connor Shorten | Towards Data Science
Identifying dog breeds is an interesting computer vision problem due to fine-scale differences that visually separate dog breeds from one another. This article is designed to be a tutorial for those who are just getting started with Convolutional Neural Networks for Image Classification and want to see how to experimen...
[ { "code": null, "e": 619, "s": 172, "text": "Identifying dog breeds is an interesting computer vision problem due to fine-scale differences that visually separate dog breeds from one another. This article is designed to be a tutorial for those who are just getting started with Convolutional Neural N...
Find the sublist with maximum value in given nested list in Python
A list can contain other list as its elements. In this article we are equal to find the sublist with maximum value which are present in a given list. The max and the Lambda function can together be used to give that sublist which has the maximum value. Live Demo listA = [['Mon', 90], ['Tue', 32], ['Wed', 120]] # Using...
[ { "code": null, "e": 1212, "s": 1062, "text": "A list can contain other list as its elements. In this article we are equal to find the sublist with maximum value which are present in a given list." }, { "code": null, "e": 1315, "s": 1212, "text": "The max and the Lambda function ...
C Program to Add two Integers
A program to add two numbers takes to numbers and does their mathematical sum and gives it to another variable that stores its sum. Live Demo #include <stdio.h> int main(void) { int a = 545; int b = 123; printf("The first number is %d and the second number is %d \n", a , b); int sum = a + b; printf("The...
[ { "code": null, "e": 1194, "s": 1062, "text": "A program to add two numbers takes to numbers and does their mathematical sum and\ngives it to another variable that stores its sum." }, { "code": null, "e": 1205, "s": 1194, "text": " Live Demo" }, { "code": null, "e": 1...
Neo4j - Where Clause
Like SQL, Neo4j CQL has provided WHERE clause in CQL MATCH command to filter the results of a MATCH Query. Following is the syntax of the WHERE clause. MATCH (label) WHERE label.country = "property" RETURN label Before proceeding with the example, create five nodes in the database as shown below. CREATE(Dhawan:pla...
[ { "code": null, "e": 2446, "s": 2339, "text": "Like SQL, Neo4j CQL has provided WHERE clause in CQL MATCH command to filter the results of a MATCH Query." }, { "code": null, "e": 2491, "s": 2446, "text": "Following is the syntax of the WHERE clause." }, { "code": null, ...
Cypress - jQuery
Cypress can act upon jQuery objects and its methods along with its internal commands.While Cypress uses the get method to identify a web element, JQuery uses the $() method for the same purpose. In Cypress, the command for identifying a web element is as follows − cy.get('h1#heading') Whereas in case of jQuery, the co...
[ { "code": null, "e": 2692, "s": 2497, "text": "Cypress can act upon jQuery objects and its methods along with its internal commands.While Cypress uses the get method to identify a web element, JQuery uses the $() method for the same purpose." }, { "code": null, "e": 2762, "s": 2692, ...
How to create a vertical toolbar in Java?
Let us first create a toolbar − JToolBar toolbar = new JToolBar(); Now, set the orientation to create vertical toolbar − toolbar.setOrientation(SwingConstants.VERTICAL); The following is an example to create a vertical toolbar in Java − package my; import java.awt.BorderLayout; import javax.swing.JButton; import javax....
[ { "code": null, "e": 1094, "s": 1062, "text": "Let us first create a toolbar −" }, { "code": null, "e": 1129, "s": 1094, "text": "JToolBar toolbar = new JToolBar();" }, { "code": null, "e": 1183, "s": 1129, "text": "Now, set the orientation to create vertical ...
JQuery | type() method - GeeksforGeeks
27 Apr, 2020 This type() Method in jQuery is used to determine the internal JavaScript [[Class]] of an object. Syntax: jQuery.type( obj ) Parameters: The type() method accepts only one parameter that is mentioned above and described below: obj: This parameter is the object to get the internal JavaScript [[Class]] of. ...
[ { "code": null, "e": 25755, "s": 25727, "text": "\n27 Apr, 2020" }, { "code": null, "e": 25853, "s": 25755, "text": "This type() Method in jQuery is used to determine the internal JavaScript [[Class]] of an object." }, { "code": null, "e": 25861, "s": 25853, "...
Assembly Line Scheduling | DP-34 - GeeksforGeeks
14 Dec, 2021 A car factory has two assembly lines, each with n stations. A station is denoted by Si,j where i is either 1 or 2 and indicates the assembly line the station is on, and j indicates the number of the station. The time taken per station is denoted by ai,j. Each station is dedicated to some sort of work like ...
[ { "code": null, "e": 24856, "s": 24828, "text": "\n14 Dec, 2021" }, { "code": null, "e": 25834, "s": 24856, "text": "A car factory has two assembly lines, each with n stations. A station is denoted by Si,j where i is either 1 or 2 and indicates the assembly line the station is on...
Creating a movie recommender using Convolutional Neural Networks | by Kasper Knol | Towards Data Science
After finishing your favorite series on Netflix or a video on YouTube you have to make an important decision, what do I watch next? Most of the time you get some help from the recommendation system of your favorite video on demand platform. These platforms spend lots of time and effort (see: The Netflix Recommender Sys...
[ { "code": null, "e": 951, "s": 171, "text": "After finishing your favorite series on Netflix or a video on YouTube you have to make an important decision, what do I watch next? Most of the time you get some help from the recommendation system of your favorite video on demand platform. These platform...
Bidirectional Search?
A bidirectional search is a searching technique that runs two way. It works with two who searches that run simultaneously, first one from source too goal and the other one from goal to source in a backward direction. In in an optimal state, both the searches will meet in the middle off the data structure. The bidirecti...
[ { "code": null, "e": 1369, "s": 1062, "text": "A bidirectional search is a searching technique that runs two way. It works with two who searches that run simultaneously, first one from source too goal and the other one from goal to source in a backward direction. In in an optimal state, both the sea...
How to save an Android Activity state using save instance state?
This example demonstrate about How to save an Android Activity state using save instance state Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version = "1.0" encoding ...
[ { "code": null, "e": 1157, "s": 1062, "text": "This example demonstrate about How to save an Android Activity state using save instance state" }, { "code": null, "e": 1286, "s": 1157, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all ...
How to generate all combinations of a string in JavaScript ? - GeeksforGeeks
12 Jan, 2022 In this article, we are going to see we can generate all the possible combinations of a given string using JavaScript methods or concepts. You are given a string, containing different characters, you need to generate all combinations of a string by selecting a character at once and then re-arranging that c...
[ { "code": null, "e": 37995, "s": 37967, "text": "\n12 Jan, 2022" }, { "code": null, "e": 38134, "s": 37995, "text": "In this article, we are going to see we can generate all the possible combinations of a given string using JavaScript methods or concepts." }, { "code": nu...
How to Setup HAproxy Load Balance Server for Sharing Web Traffic
This article is written to prepare high availability of a website. This can also be used by those who want their website to be available to their clients or users with high availability servers and to share between their servers. It is a free and open source application used as a TCP/HTTP load balancer which will distr...
[ { "code": null, "e": 1480, "s": 1062, "text": "This article is written to prepare high availability of a website. This can also be used by those who want their website to be available to their clients or users with high availability servers and to share between their servers. It is a free and open s...