title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Parallelism in Query in DBMS
13 Apr, 2022 Parallelism in a query allows us to parallel execution of multiple queries by decomposing them into the parts that work in parallel. This can be achieved by shared-nothing architecture. Parallelism is also used in fastening the process of a query execution as more and more resources like processors and dis...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Apr, 2022" }, { "code": null, "e": 443, "s": 54, "text": "Parallelism in a query allows us to parallel execution of multiple queries by decomposing them into the parts that work in parallel. This can be achieved by shared-nothing ar...
Python | Creating a 3D List
04 Dec, 2017 A 3-D List means that we need to make a list that has three parameters to it, i.e., (a x b x c), just like a 3 D array in other languages. In this program we will try to form a 3-D List with its content as β€œ#”. Lets look at these following examples: Input : 3 x 3 x 3 Output : [[['#', '#', '#'], ['#', '#',...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Dec, 2017" }, { "code": null, "e": 304, "s": 54, "text": "A 3-D List means that we need to make a list that has three parameters to it, i.e., (a x b x c), just like a 3 D array in other languages. In this program we will try to form...
Program to find all Factors of a Number using recursion
30 Jan, 2022 Given a number N, the task is to print all the factors of N using recursion.Examples: Input: N = 16 Output: 1 2 4 8 16 Explanation: 1, 2, 4, 8, 16 are the factors of 16. A factor is a number which divides the number completely. Input: N = 8 Output: 1 2 4 8 Approach: The idea is to create a function t...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 Jan, 2022" }, { "code": null, "e": 141, "s": 53, "text": "Given a number N, the task is to print all the factors of N using recursion.Examples: " }, { "code": null, "e": 314, "s": 141, "text": "Input: N = 16 Out...
Python OpenCV | cv2.blur() method
29 Nov, 2019 OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.blur() method is used to blur an image using the normalized box filter. The function smooths an image using the kernel which is represented as: Syntax: cv2.blur(src, ksize[, dst[, anchor[, borderType]]])Parameters...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Nov, 2019" }, { "code": null, "e": 290, "s": 52, "text": "OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.blur() method is used to blur an image using the normalized box filter. The func...
C# | Inverting all bit values in BitArray
01 Feb, 2019 The BitArray class manages a compact array of bit values, which are represented as Booleans, where true indicates that the bit is on i.e, 1 and false indicates the bit is off i.e, 0. This class is contained in System.Collections namespace.BitArray.Not method inverts all the bit values in the current BitArr...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Feb, 2019" }, { "code": null, "e": 437, "s": 28, "text": "The BitArray class manages a compact array of bit values, which are represented as Booleans, where true indicates that the bit is on i.e, 1 and false indicates the bit is off ...
Understanding PEAS in Artificial Intelligence
12 Jul, 2022 We know that there are different types of agents in AI. PEAS System is used to categorize similar agents together. The PEAS system delivers the performance measure with respect to the environment, actuators, and sensors of the respective agent. Most of the highest performing agents are Rational Agents. Rat...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Jul, 2022" }, { "code": null, "e": 356, "s": 52, "text": "We know that there are different types of agents in AI. PEAS System is used to categorize similar agents together. The PEAS system delivers the performance measure with respe...
C | Input and Output | Question 13
31 Aug, 2021 Which of the following is true(A) gets() can read a string with newline characters but a normal scanf() with %s can not.(B) gets() can read a string with spaces but a normal scanf() with %s can not.(C) gets() can always replace scanf() without any additional code.(D) None of the aboveAnswer: (B)Explanation...
[ { "code": null, "e": 54, "s": 26, "text": "\n31 Aug, 2021" }, { "code": null, "e": 480, "s": 54, "text": "Which of the following is true(A) gets() can read a string with newline characters but a normal scanf() with %s can not.(B) gets() can read a string with spaces but a normal ...
Python – Concatenate two list of lists Row-wise
03 Aug, 2021 Given two matrices, the task is to write a Python program to add elements to each row from initial matrix. Input : test_list1 = [[4, 3, 5,], [1, 2, 3], [3, 7, 4]], test_list2 = [[1, 3], [9, 3, 5, 7], [8]] Output : [[4, 3, 5, 1, 3], [1, 2, 3, 9, 3, 5, 7], [3, 7, 4, 8]] Explanation : Matrix is row wise merge...
[ { "code": null, "e": 53, "s": 25, "text": "\n03 Aug, 2021" }, { "code": null, "e": 160, "s": 53, "text": "Given two matrices, the task is to write a Python program to add elements to each row from initial matrix." }, { "code": null, "e": 258, "s": 160, "text":...
How to display XML data in web page using PHP ?
31 Mar, 2021 In this article, we are going to display data present in an XML file on a web page using PHP through the XAMPP server. PHP is a server-side scripting language that is mainly for processing web data. The XML stands for an extensible markup language. Requirements: XAMPP server XAMPP server Syntax: <root> ...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Mar, 2021" }, { "code": null, "e": 277, "s": 28, "text": "In this article, we are going to display data present in an XML file on a web page using PHP through the XAMPP server. PHP is a server-side scripting language that is mainly f...
No. of vowels and consonants in a given string in PL/SQL
05 Jul, 2018 Prerequisite – PL/SQL introduction In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations. Given a string and the task is to find the number of vowels an...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jul, 2018" }, { "code": null, "e": 63, "s": 28, "text": "Prerequisite – PL/SQL introduction" }, { "code": null, "e": 273, "s": 63, "text": "In PL/SQL code groups of commands are arranged within a block. A block gr...
Python Program to Construct n*m Matrix from List
30 Jun, 2021 Given a list, the task is to write a python program that can construct n*m matrix. Input : test_list = [6, 3, 7, 2, 6, 8, 4, 3, 9, 2, 1, 3], n, m = 3, 5 Output : β€œMatrix Not Possible” Explanation : List has 12 elements and 3*5 is 15, hence Matrix not possible. Input : test_list = [6, 3, 7, 2, 6, 8], n, m =...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Jun, 2021" }, { "code": null, "e": 137, "s": 54, "text": "Given a list, the task is to write a python program that can construct n*m matrix." }, { "code": null, "e": 315, "s": 137, "text": "Input : test_list = [6...
Pygame – Random Movement of Object
24 Sep, 2021 Prerequisite: How to draw rectangle in Pygame? In this article, we will learn how we can add random movements in objects using PyGame in Python. To add random movement in our object we are going to use randint method of the random module. Syntax: random.randint(a, b) Parameters: a and b : Two integers Ret...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Sep, 2021" }, { "code": null, "e": 101, "s": 54, "text": "Prerequisite: How to draw rectangle in Pygame?" }, { "code": null, "e": 199, "s": 101, "text": "In this article, we will learn how we can add random movem...
How to Convert String to Datetime in R?
27 Dec, 2021 In this article, we will discuss how to convert String to Datetime in R Programming Language. We can convert string to DateTime by using the POSIXct function Syntax: as.POSIXct(string, format=”%Y-%m-%d %H:%M:%S”, tz=”UTC”) where string is the input string format represents the datetime format tz specifies ...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Dec, 2021" }, { "code": null, "e": 186, "s": 28, "text": "In this article, we will discuss how to convert String to Datetime in R Programming Language. We can convert string to DateTime by using the POSIXct function" }, { "co...
Find a point such that sum of the Manhattan distances is minimized
19 May, 2021 Given N points in K dimensional space where and . The task is to determine the point such that the sum of Manhattan distances from this point to the N points is minimized. Manhattan distance is the distance between two points measured along axes at right angles. In a plane with p1 at (x1, y1) and p2 at (x2...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 May, 2021" }, { "code": null, "e": 395, "s": 52, "text": "Given N points in K dimensional space where and . The task is to determine the point such that the sum of Manhattan distances from this point to the N points is minimized. Ma...
Sorting a HashMap according to keys in Java
29 Apr, 2021 We are given the details of marks scored by students in form of a HashMap, where the name of the student is the Key and the marks scored is the Value. Our task is to sort the map according to the key values i.e the names of the students in the alphabetical(lexicographical) order.Examples: Input : Key = Ja...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Apr, 2021" }, { "code": null, "e": 345, "s": 54, "text": "We are given the details of marks scored by students in form of a HashMap, where the name of the student is the Key and the marks scored is the Value. Our task is to sort the...
How to create Jumbotron using Bootstrap 5 ?
15 Sep, 2020 Bootstrap Jumbotron is a responsive component whose main goal is to draw the visitor’s attention or highlight a special piece of information. Inside a Jumbotron, you can make use of almost any other Bootstrap code to further increase its engagement value. Uses of Jumbotron: Image showcase Highlighting cont...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Sep, 2020" }, { "code": null, "e": 284, "s": 28, "text": "Bootstrap Jumbotron is a responsive component whose main goal is to draw the visitor’s attention or highlight a special piece of information. Inside a Jumbotron, you can make ...
How to remove duplicates from an array of objects using JavaScript ?
25 Sep, 2019 Given an array of objects and the task is to remove the duplicate object element from the array list. There are two methods to solve this problem which are discussed below: Method 1: Using one of the keys as index: A temporary array is created which stores the objects of the original array using one of its...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Sep, 2019" }, { "code": null, "e": 201, "s": 28, "text": "Given an array of objects and the task is to remove the duplicate object element from the array list. There are two methods to solve this problem which are discussed below:" ...
Implementing Patricia Trie in Java
12 May, 2022 A Patricia Trie or prefix Tree or radix Tree is an ordered structured tree, which takes the applications of usually the data it stores. A node’s position in the tree defines the key with which that node is associated, which makes tries different in comparison to binary search Trees, in which a node stores ...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 May, 2022" }, { "code": null, "e": 401, "s": 52, "text": "A Patricia Trie or prefix Tree or radix Tree is an ordered structured tree, which takes the applications of usually the data it stores. A node’s position in the tree defines ...
SQL SERVER | Bulk insert data from csv file using T-SQL command
09 Mar, 2021 In this article, we will cover bulk insert data from csv file using the T-SQL command in the SQL server. And will also cover the way is more useful and more convenient to perform such kind of operations. Let’s discuss it one by one. Introduction :Sometimes there is a scenario when we have to perform bulk ...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Mar, 2021" }, { "code": null, "e": 262, "s": 28, "text": "In this article, we will cover bulk insert data from csv file using the T-SQL command in the SQL server. And will also cover the way is more useful and more convenient to perf...
What is a null-terminated string in C/C++?
In C the strings are basically array of characters. In C++ the std::string is an advancement of that array. There are some additional features with the traditional character array. The null terminated strings are basically a sequence of characters, and the last element is one null character (denoted by β€˜\0’). When we w...
[ { "code": null, "e": 1620, "s": 1187, "text": "In C the strings are basically array of characters. In C++ the std::string is an advancement of that array. There are some additional features with the traditional character array. The null terminated strings are basically a sequence of characters, and ...
Longest Common Substring | Practice | GeeksforGeeks
Given two strings. The task is to find the length of the longest common substring. Example 1: Input: S1 = "ABCDGH", S2 = "ACDGHR" Output: 4 Explanation: The longest common substring is "CDGH" which has length 4. Example 2: Input: S1 = "ABC", S2 "ACB" Output: 1 Explanation: The longest common substrings are "A", "B", ...
[ { "code": null, "e": 321, "s": 238, "text": "Given two strings. The task is to find the length of the longest common substring." }, { "code": null, "e": 333, "s": 321, "text": "\nExample 1:" }, { "code": null, "e": 452, "s": 333, "text": "Input: S1 = \"ABCDGH\...
Python – math.perm() method
23 Jan, 2020 Math module in Python contains a number of mathematical operations, which can be performed with ease using the module. math.perm() method in Python is used to get the number of ways to choose k items from n items without repetition and with order. It Evaluates to n! / (n – k)! when k <= n and evaluates to ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jan, 2020" }, { "code": null, "e": 390, "s": 28, "text": "Math module in Python contains a number of mathematical operations, which can be performed with ease using the module. math.perm() method in Python is used to get the number o...
PHP | Separate odd and even elements from array without using loop - GeeksforGeeks
08 Mar, 2018 You are given an array of n elements in PHP. You have to separate the elements from the array based on the elements are odd or even. That is, print odd array and even array separately without traversing the original array or using any loop. Examples: Input : array(2, 5, 6, 3, 0) Output : Odd array: 5 , 3 ...
[ { "code": null, "e": 26195, "s": 26167, "text": "\n08 Mar, 2018" }, { "code": null, "e": 26436, "s": 26195, "text": "You are given an array of n elements in PHP. You have to separate the elements from the array based on the elements are odd or even. That is, print odd array and e...
Extract week number from date in Pandas-Python
10 Jul, 2020 Many times, when working with some data containing dates we may need to extract the week number from a particular date. In Python, it can be easily done with the help of pandas. Example 1: # importing pandas as pdimport pandas as pd # creating a dictionary containing a datedict = {'Date':["2015-06-17"]} ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jul, 2020" }, { "code": null, "e": 206, "s": 28, "text": "Many times, when working with some data containing dates we may need to extract the week number from a particular date. In Python, it can be easily done with the help of panda...
Complexity Analysis of Binary Search
11 Jul, 2022 Complexities like O(1) and O(n) are simple to understand. O(1) means it requires constant time to perform operations like to reach an element in constant time as in case of dictionary and O(n) means, it depends on the value of n to perform operations such as searching an element in an array of n elements. ...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Jul, 2022" }, { "code": null, "e": 361, "s": 53, "text": "Complexities like O(1) and O(n) are simple to understand. O(1) means it requires constant time to perform operations like to reach an element in constant time as in case of d...
Four Main Object Oriented Programming Concepts of Java
22 Nov, 2021 Object-oriented programming generally referred to as OOPS is the backbone of java as java being a completely object-oriented language. Java organizes a program around the various objects and well-defined interfaces. There are four pillars been here in OOPS which are listed below. These concepts aim to impl...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Nov, 2021" }, { "code": null, "e": 399, "s": 53, "text": "Object-oriented programming generally referred to as OOPS is the backbone of java as java being a completely object-oriented language. Java organizes a program around the var...
Matplotlib.axes.Axes.legend() in Python
19 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. The Axe...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2020" }, { "code": null, "e": 328, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text...
Lodash _.now() Method
14 Sep, 2020 The _.now() method is used to get the timestamp of the number of milliseconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC). Syntax: _.now() Parameters: This method does not accept any parameter. Return Value: This method returns the timestamp. Example 1: Javascript // Defining Lodas...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Sep, 2020" }, { "code": null, "e": 176, "s": 28, "text": "The _.now() method is used to get the timestamp of the number of milliseconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC)." }, { "code": null,...
Minimum number of towers required such that every house is in the range of at least one tower
26 Oct, 2021 Given a map of the city and the network range, the task is to determine the minimum number of the tower so that every house is within range of at least one tower. Each tower must be installed on top of an existing house. Examples: Input: range : 1 house : 1 2 3 4 5 Output: 2 Input: range : 2 ...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Oct, 2021" }, { "code": null, "e": 275, "s": 54, "text": "Given a map of the city and the network range, the task is to determine the minimum number of the tower so that every house is within range of at least one tower. Each tower ...
Python | Custom list split
02 Jan, 2019 Development and sometimes machine learning applications require splitting lists into smaller list in a custom way, i.e on certain values on which split has to be performed. This is quite a useful utility to have knowledge about. Let’s discuss certain ways in which this task can be performed. Method #1 : Us...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jan, 2019" }, { "code": null, "e": 347, "s": 54, "text": "Development and sometimes machine learning applications require splitting lists into smaller list in a custom way, i.e on certain values on which split has to be performed. T...
GATE | Gate IT 2007 | Question 12
28 Jun, 2021 The address sequence generated by tracing a particular program executing in a pure demand paging system with 100 bytes per page is0100, 0200, 0430, 0499, 0510, 0530, 0560, 0120, 0220, 0240, 0260, 0320, 0410. Suppose that the memory can store only one page and if x is the address which causes a page fault t...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2021" }, { "code": null, "e": 236, "s": 28, "text": "The address sequence generated by tracing a particular program executing in a pure demand paging system with 100 bytes per page is0100, 0200, 0430, 0499, 0510, 0530, 0560, 012...
SQL Server LAG() function Overview
22 Jun, 2020 At many instances, user would like to access data of the previous row or any row before the previous row from the current row.To solve this problem SQL Server’s LAG() window function can be used. LAG() :SQL Server provides LAG() function which is very useful in case the current row values need to be compar...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Jun, 2020" }, { "code": null, "e": 249, "s": 53, "text": "At many instances, user would like to access data of the previous row or any row before the previous row from the current row.To solve this problem SQL Server’s LAG() window ...
How to create an image map in JavaScript ?
27 Aug, 2021 An image map is nothing but an image that is broken into various hotspots and each hotspot will take you to a different file. Hotspots are nothing but clickable areas which we create on an image by using the <area> tag. This type of map is called a client-side image map as the map is embedded in the HTML i...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Aug, 2021" }, { "code": null, "e": 342, "s": 28, "text": "An image map is nothing but an image that is broken into various hotspots and each hotspot will take you to a different file. Hotspots are nothing but clickable areas which we...
T-test
20 Jul, 2021 Prerequisites – Hypothesis Testing, p-value A t-test is a type of inferential statistic used to determine if there is a significant difference between the means of two groups, which may be related in certain features. Terminologies involved Degree of freedom (df) – It tells us the number of independent var...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Jul, 2021" }, { "code": null, "e": 72, "s": 28, "text": "Prerequisites – Hypothesis Testing, p-value" }, { "code": null, "e": 246, "s": 72, "text": "A t-test is a type of inferential statistic used to determine if...
GWT - Deploy Application
This tutorial will explain you how to create an application "war" file and how to deploy that in Apache Tomcat Websever root. If you understood this simple example then you will also be able to deploy a complex GWT application following the same steps. Let us have working Eclipse IDE along with GWT plug in place and fo...
[ { "code": null, "e": 2283, "s": 2157, "text": "This tutorial will explain you how to create an application \"war\" file and how to deploy that in Apache Tomcat Websever root." }, { "code": null, "e": 2410, "s": 2283, "text": "If you understood this simple example then you will al...
Parameter Passing Techniques in Java with Examples
14 Jul, 2021 There are different ways in which parameter data can be passed into and out of methods and functions. Let us assume that a function B() is called from another function A(). In this case A is called the β€œcaller function” and B is called the β€œcalled function or callee function”. Also, the arguments which A s...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Jul, 2021" }, { "code": null, "e": 453, "s": 54, "text": "There are different ways in which parameter data can be passed into and out of methods and functions. Let us assume that a function B() is called from another function A(). I...
Minimum number of Parentheses to be added to make it valid
19 May, 2021 Given a string S of parentheses β€˜(β€˜ or β€˜)’ where, . The task is to find a minimum number of parentheses β€˜(β€˜ or β€˜)’ (at any positions) we must add to make the resulting parentheses string is valid.Examples: Input: str = "())" Output: 1 One '(' is required at beginning. Input: str = "(((" Output: 3 Three ...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 May, 2021" }, { "code": null, "e": 262, "s": 54, "text": "Given a string S of parentheses β€˜(β€˜ or β€˜)’ where, . The task is to find a minimum number of parentheses β€˜(β€˜ or β€˜)’ (at any positions) we must add to make the resulting parent...
Probability of getting K heads in N coin tosses
24 May, 2022 Given two integers N and R. The task is to calculate the probability of getting exactly r heads in n successive tosses. A fair coin has an equal probability of landing a head or a tail on each toss. Examples: Input : N = 1, R = 1 Output : 0.500000 Input : N = 4, R = 3 Output : 0.250000 Approach Probab...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 May, 2022" }, { "code": null, "e": 251, "s": 52, "text": "Given two integers N and R. The task is to calculate the probability of getting exactly r heads in n successive tosses. A fair coin has an equal probability of landing a head...
Python | Pandas Series.itemsize
28 Jan, 2019 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique bu...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 Jan, 2019" }, { "code": null, "e": 267, "s": 53, "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 im...
AngularJS - Forms
AngularJS enriches form filling and validation. We can use ng-click event to handle the click button and use $dirty and $invalid flags to do the validation in a seamless way. Use novalidate with a form declaration to disable any browser-specific validation. The form controls make heavy use of AngularJS events. Let us h...
[ { "code": null, "e": 3185, "s": 2833, "text": "AngularJS enriches form filling and validation. We can use ng-click event to handle the click button and use $dirty and $invalid flags to do the validation in a seamless way. Use novalidate with a form declaration to disable any browser-specific validat...
Python – Ways to remove duplicates from list
23 Jun, 2020 This article focuses on one of the operations of getting the unique list from a list that contains a possible duplicated. Remove duplicates from list operation has large number of applications and hence, it’s knowledge is good to have. Method 1 : Naive methodIn naive method, we simply traverse the list and...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2020" }, { "code": null, "e": 288, "s": 52, "text": "This article focuses on one of the operations of getting the unique list from a list that contains a possible duplicated. Remove duplicates from list operation has large numb...
Python | Selective value selection in list of tuples
12 Mar, 2019 Sometimes, while using list of tuples, we come across a problem in which we have a certain list of keys and we just need the value of those keys from list of tuples. This has a utility in rating or summation of specific entities. Let’s discuss certain ways in which this can be done. Method #1 : Using dict(...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Mar, 2019" }, { "code": null, "e": 312, "s": 28, "text": "Sometimes, while using list of tuples, we come across a problem in which we have a certain list of keys and we just need the value of those keys from list of tuples. This has ...
PHP | sleep( ) Function
03 Jul, 2018 The sleep() function in PHP is an inbuilt function which is used to delay the execution of the current script for a specified number of seconds. The sleep( ) function accepts seconds as a parameter and returns TRUE on success or FALSE on failure. If the call is interrupted by a signal, sleep() function ret...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jul, 2018" }, { "code": null, "e": 275, "s": 28, "text": "The sleep() function in PHP is an inbuilt function which is used to delay the execution of the current script for a specified number of seconds. The sleep( ) function accepts ...
What are event handlers in JavaScript?
JavaScript's interaction with HTML is handled through events that occur when the user or the browser manipulates a page. When the page loads, it is called an event. When the user clicks a button, that click to is an event. Other examples include events like pressing any key, closing a window, resizing a window, etc. He...
[ { "code": null, "e": 1308, "s": 1187, "text": "JavaScript's interaction with HTML is handled through events that occur when the user or the browser manipulates a page." }, { "code": null, "e": 1505, "s": 1308, "text": "When the page loads, it is called an event. When the user cli...
How to import CSV file in SQLite database using Python ?
09 May, 2021 In this article, we’ll learn how to import data from a CSV file and store it in a table in the SQLite database using Python. You can download the CSV file from here which contains sample data on the name and age of a few students. Contents of the CSV file Approach: Importing necessary modules Read data fro...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 May, 2021" }, { "code": null, "e": 259, "s": 28, "text": "In this article, we’ll learn how to import data from a CSV file and store it in a table in the SQLite database using Python. You can download the CSV file from here which cont...
sciPy stats.zscore() function | Python
20 Feb, 2019 scipy.stats.zscore(arr, axis=0, ddof=0) function computes the relative Z-score of the input data, relative to the sample mean and standard deviation. Its formula: Parameters :arr : [array_like] Input array or object for which Z-score is to be calculated.axis : Axis along which the mean is to be computed. B...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Feb, 2019" }, { "code": null, "e": 178, "s": 28, "text": "scipy.stats.zscore(arr, axis=0, ddof=0) function computes the relative Z-score of the input data, relative to the sample mean and standard deviation." }, { "code": nul...
HTML | DOM Input Text placeholder Property
15 Oct, 2020 The Input Text Placeholder property in HTML DOM is used to set or return the value of the placeholder attribute of a text field. The placeholder attribute specifies the short hint that describes the expected value of an input field. The short hint is displayed in the field before the user enters a value.Sy...
[ { "code": null, "e": 53, "s": 25, "text": "\n15 Oct, 2020" }, { "code": null, "e": 367, "s": 53, "text": "The Input Text Placeholder property in HTML DOM is used to set or return the value of the placeholder attribute of a text field. The placeholder attribute specifies the short...
jQuery | find() with Examples
03 Aug, 2021 The find() is an inbuilt method in jQuery which is used to find all the descendant elements of the selected element. It will traverse all the way down to the last leaf of the selected element in the DOM tree.Syntax: $(selector).find() Here selector is the selected elements of which all the descendant elem...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Aug, 2021" }, { "code": null, "e": 244, "s": 28, "text": "The find() is an inbuilt method in jQuery which is used to find all the descendant elements of the selected element. It will traverse all the way down to the last leaf of the ...
Kotlin String
09 Aug, 2021 An array of characters is called a string. Kotlin strings are mostly similar to Java strings but has some new added functionalities. Kotlin strings are also immutable in nature means we can not change elements and length of the String. The String class in Kotlin is defined as: class String : Comparable<S...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Aug, 2021" }, { "code": null, "e": 334, "s": 54, "text": "An array of characters is called a string. Kotlin strings are mostly similar to Java strings but has some new added functionalities. Kotlin strings are also immutable in natu...
Working with JSON Files in R Programming
30 Jun, 2020 JSON stands for JavaScript Object Notation. These files contain the data in human readable format, i.e. as text. Like any other file, one can read as well as write into the JSON files. In order to work with JSON files in R, one needs to install the β€œrjson” package. The most common tasks done using JSON fi...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2020" }, { "code": null, "e": 376, "s": 28, "text": "JSON stands for JavaScript Object Notation. These files contain the data in human readable format, i.e. as text. Like any other file, one can read as well as write into the JS...
Add and Remove Edge in Adjacency Matrix representation of a Graph - GeeksforGeeks
30 Jun, 2021 Prerequisites: Graph and its representationsGiven an adjacency matrix g[][] of a graph consisting of N vertices, the task is to modify the matrix after insertion of all edges[] and removal of edge between vertices (X, Y). In an adjacency matrix, if an edge exists between vertices i and j of the graph, then...
[ { "code": null, "e": 26383, "s": 26355, "text": "\n30 Jun, 2021" }, { "code": null, "e": 26800, "s": 26383, "text": "Prerequisites: Graph and its representationsGiven an adjacency matrix g[][] of a graph consisting of N vertices, the task is to modify the matrix after insertion o...
Performance Metrics in ML - Part 3: Clustering | Towards Data Science
In the first two parts of this series, we explored the main types of performance metrics used to evaluate Machine Learning models. These covered the two major types of ML tasks, Classification and Regression. While this type of tasks make up of most of the usual applications, another key category exists: Clustering. To...
[ { "code": null, "e": 365, "s": 47, "text": "In the first two parts of this series, we explored the main types of performance metrics used to evaluate Machine Learning models. These covered the two major types of ML tasks, Classification and Regression. While this type of tasks make up of most of the...
Factory method design pattern in Java - GeeksforGeeks
14 Mar, 2022 It is a creational design pattern which talks about the creation of an object. The factory design pattern says that define an interface ( A java interface or an abstract class) and let the subclasses decide which object to instantiate. The factory method in the interface lets a class defer the instantiatio...
[ { "code": null, "e": 24650, "s": 24622, "text": "\n14 Mar, 2022" }, { "code": null, "e": 25457, "s": 24650, "text": "It is a creational design pattern which talks about the creation of an object. The factory design pattern says that define an interface ( A java interface or an ab...
GUI Application for the Student Management System - GeeksforGeeks
15 Nov, 2021 Prerequisites: Java SwingWrite a program to build a GUI application which provides the details of the college student, about his course and the fees that need to be paid. The fee is calculated and saved in a text file. The program must also be able to print the receipt. Approach: The concept is based on ...
[ { "code": null, "e": 26201, "s": 26173, "text": "\n15 Nov, 2021" }, { "code": null, "e": 26474, "s": 26201, "text": "Prerequisites: Java SwingWrite a program to build a GUI application which provides the details of the college student, about his course and the fees that need to b...
Find the missing end tag in the given HTML Code - GeeksforGeeks
08 Sep, 2021 Given a string htmlCode which is HTML code of a webpage, the task is to find the missing end tag in the HTML code.Examples: Input: htmlCode = "<!DOCTYPE html> <html> <head> <title> GeeksforGeeks </title> </head> <body> <button> </body> </html>" Output: </button> Input: htmlCode = "<!...
[ { "code": null, "e": 26351, "s": 26323, "text": "\n08 Sep, 2021" }, { "code": null, "e": 26477, "s": 26351, "text": "Given a string htmlCode which is HTML code of a webpage, the task is to find the missing end tag in the HTML code.Examples: " }, { "code": null, "e": ...
Inline Functions in C++
C++ inline function is a powerful concept that is commonly used with classes. If a function is inline, the compiler places a copy of the code of that function at each point where the function is called at compile time. Any change to an inline function could require all clients of the function to be recompiled because t...
[ { "code": null, "e": 1281, "s": 1062, "text": "C++ inline function is a powerful concept that is commonly used with classes. If a function is inline, the compiler places a copy of the code of that function at each point where the function is called at compile time." }, { "code": null, "e...
How to find the length of the longest substring from the given string without repeating the characters using C#?
From the given string input, use the sliding window technique by having 2 pointers i and j . both i and j will point to the same character in the string. Traverse through the string and add it to the list. If the repeated character is found then remove it from the list else append to the list. Input βˆ’ s = "abcabcbb" Ou...
[ { "code": null, "e": 1357, "s": 1062, "text": "From the given string input, use the sliding window technique by having 2 pointers i and j . both i and j will point to the same character in the string. Traverse through the string and add it to the list. If the repeated character is found then remove ...
How to subset rows of an R data frame using grepl function?
The grepl function in R search for matches to argument pattern within each element of a character vector or column of an R data frame. If we want to subset rows of an R data frame using grepl then subsetting with single-square brackets and grepl can be used by accessing the column that contains character values. Consid...
[ { "code": null, "e": 1376, "s": 1062, "text": "The grepl function in R search for matches to argument pattern within each element of a character vector or column of an R data frame. If we want to subset rows of an R data frame using grepl then subsetting with single-square brackets and grepl can be ...
Deploy a Streamlit Web App with Azure App Service | by Richard Peterson | Towards Data Science
Following the official Microsoft docs. Streamlit is an open-source python library that is excellent for displaying charts and using widgets to interact with visual dashboards. With a simple language and intuitive controls, Streamlit helps you to quickly create web apps that can display text, dataframes, charts, maps, a...
[ { "code": null, "e": 86, "s": 47, "text": "Following the official Microsoft docs." }, { "code": null, "e": 532, "s": 86, "text": "Streamlit is an open-source python library that is excellent for displaying charts and using widgets to interact with visual dashboards. With a simple...
C# | How to add key/value pairs in SortedList - GeeksforGeeks
31 Oct, 2019 SortedList class is a collection of (key, value) pairs which are sorted according to keys. Those pairs can be accessible by key and as well as by index(zero-based indexing). This comes under System.Collections namespace. SortedList.Add(Object, Object) Method is used to add an element with the specified key...
[ { "code": null, "e": 24391, "s": 24363, "text": "\n31 Oct, 2019" }, { "code": null, "e": 24733, "s": 24391, "text": "SortedList class is a collection of (key, value) pairs which are sorted according to keys. Those pairs can be accessible by key and as well as by index(zero-based ...
Python MySQL - Limit
While fetching records if you want to limit them by a particular number, you can do so, using the LIMIT clause of MYSQL. Assume we have created a table in MySQL with name EMPLOYEES as βˆ’ mysql> CREATE TABLE EMPLOYEE( FIRST_NAME CHAR(20) NOT NULL, LAST_NAME CHAR(20), AGE INT, SEX CHAR(1), INCOME FLOAT ); Q...
[ { "code": null, "e": 3326, "s": 3205, "text": "While fetching records if you want to limit them by a particular number, you can do so, using the LIMIT clause of MYSQL." }, { "code": null, "e": 3391, "s": 3326, "text": "Assume we have created a table in MySQL with name EMPLOYEES a...
Automater – IP and URL OSINT Tool For Analysis - GeeksforGeeks
17 Oct, 2021 OSINT processes on the IP addresses and Domains are be performed using automated tools. Automater is a fully automated tool that can perform OSINT search on IP addresses, MD5 Hash, and also Domain Addresses. Automater tool returns the relevant results from trusted sources which are IPvoid.com, Robtex.com,...
[ { "code": null, "e": 24015, "s": 23987, "text": "\n17 Oct, 2021" }, { "code": null, "e": 24224, "s": 24015, "text": "OSINT processes on the IP addresses and Domains are be performed using automated tools. Automater is a fully automated tool that can perform OSINT search on IP add...
Insert a node in a BST | Practice | GeeksforGeeks
Given a BST and a key K. If K is not present in the BST, Insert a new Node with a value equal to K into the BST. Note: If K is already present in the BST, don't modify the BST. Example 1: Input: 2 / \ 1 3 K = 4 Output: 1 2 3 4 Explanation: After inserting the node 4 Inorder traversal will be 1 2 3 4. ...
[ { "code": null, "e": 416, "s": 238, "text": "Given a BST and a key K. If K is not present in the BST, Insert a new Node with a value equal to K into the BST. \nNote: If K is already present in the BST, don't modify the BST." }, { "code": null, "e": 428, "s": 416, "text": "\nExamp...
How I can set the width and height of a JavaScript alert box?
To set the width and height of an alert box in JavaScript, you need to use the custom alert box. This alert box is styled with CSS. Set the width and height of the alert box using the following code, which uses jQuery, a JavaScript library βˆ’ <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.co...
[ { "code": null, "e": 1319, "s": 1187, "text": "To set the width and height of an alert box in JavaScript, you need to use the custom alert box. This alert box is styled with CSS." }, { "code": null, "e": 1429, "s": 1319, "text": "Set the width and height of the alert box using th...
How to remove all style attributes using jQuery?
To remove an attribute from each tag using jQuery, use the removeAttr() method and use the Universal Selector. Let us see how to use the method to remove all style attribute. Use the universal selector also to select all the elements. You can try to run the following code to learn how to remove all style attributes usi...
[ { "code": null, "e": 1297, "s": 1062, "text": "To remove an attribute from each tag using jQuery, use the removeAttr() method and use the Universal Selector. Let us see how to use the method to remove all style attribute. Use the universal selector also to select all the elements." }, { "cod...
C# Dynamic Coding - Attributes in Depth - GeeksforGeeks
14 Sep, 2021 The .NET common language offers the implementation of dynamic coding practice at runtime by introducing the Attributes that enable to associate custom metadata which are generated compile-time and embedded in the .NET assembly with program elements. Furthermore, these metadata can easily be examined by emp...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n14 Sep, 2021" }, { "code": null, "e": 24777, "s": 24302, "text": "The .NET common language offers the implementation of dynamic coding practice at runtime by introducing the Attributes that enable to associate custom metadata whi...
Binary Tree | Set 3 (Types of Binary Tree) - GeeksforGeeks
24 Feb, 2022 We have discussed Introduction to Binary Tree in set 1 and Properties of Binary Tree in Set 2. In this post, common types of Binary Trees are discussed. The following are common types of Binary Trees. Full Binary Tree A Binary Tree is a full binary tree if every node has 0 or 2 children. The following ar...
[ { "code": null, "e": 37758, "s": 37730, "text": "\n24 Feb, 2022" }, { "code": null, "e": 37912, "s": 37758, "text": "We have discussed Introduction to Binary Tree in set 1 and Properties of Binary Tree in Set 2. In this post, common types of Binary Trees are discussed. " }, {...
How to Calculate the Interquartile Range in Excel? - GeeksforGeeks
28 Jul, 2021 In statistics, the five-number summary is mostly used as it gives a rough idea about the dataset. It is basically a summary of the dataset describing some key features in statistics. The five key features are : Minimum value: It is the minimum value in the data set.First Quartile, Q1: It is also known as t...
[ { "code": null, "e": 24942, "s": 24914, "text": "\n28 Jul, 2021" }, { "code": null, "e": 25153, "s": 24942, "text": "In statistics, the five-number summary is mostly used as it gives a rough idea about the dataset. It is basically a summary of the dataset describing some key feat...
GraphQL - Example
In this chapter, we will create a simple API that returns a greeting message, HelloWorld, and access it using GraphiQL. This example is based on NodeJS, Express and Apollo server. We will learn to put all the concepts together with the following steps βˆ’ ExpressJS is a web application framework that helps to build websi...
[ { "code": null, "e": 2071, "s": 1951, "text": "In this chapter, we will create a simple API that returns a greeting message, HelloWorld, and access it using GraphiQL." }, { "code": null, "e": 2205, "s": 2071, "text": "This example is based on NodeJS, Express and Apollo server. We...
Python & MySQL - Where Clause Example
Python uses c.execute(q) function to select a record(s) conditionally using Where Clause from a table where c is cursor and q is the select query to be executed. # execute SQL query using execute() method. cursor.execute(sql) result = cursor.fetchall() for record in result: print(record) $sql Required - SQL query...
[ { "code": null, "e": 2381, "s": 2219, "text": "Python uses c.execute(q) function to select a record(s) conditionally using Where Clause from a table where c is cursor and q is the select query to be executed." }, { "code": null, "e": 2514, "s": 2381, "text": "# execute SQL query ...
Matplotlib - Setting Ticks and Tick Labels
Ticks are the markers denoting data points on axes. Matplotlib has so far - in all our previous examples - automatically taken over the task of spacing points on the axis.Matplotlib's default tick locators and formatters are designed to be generally sufficient in many common situations. Position and labels of ticks can...
[ { "code": null, "e": 2892, "s": 2516, "text": "Ticks are the markers denoting data points on axes. Matplotlib has so far - in all our previous examples - automatically taken over the task of spacing points on the axis.Matplotlib's default tick locators and formatters are designed to be generally suf...
Updating Lists in Python
You can update single or multiple elements of lists by giving the slice on the left-hand side of the assignment operator, and you can add to elements in a list with the append() method. Live Demo #!/usr/bin/python list = ['physics', 'chemistry', 1997, 2000]; print "Value available at index 2 : " print list[2] list[2] ...
[ { "code": null, "e": 1248, "s": 1062, "text": "You can update single or multiple elements of lists by giving the slice on the left-hand side of the assignment operator, and you can add to elements in a list with the append() method." }, { "code": null, "e": 1259, "s": 1248, "text...
Python+ 101: Most useful data structures and algorithms | by Neerav Kaushal | Towards Data Science
A new way of pythoning with less known python features Python is undoubtedly one of the most widely used programming languages of this century that has given a whole new perspective to programming in terms of ease of use and intuitiveness. Besides having a rich set of the most common data structures, it provides a numb...
[ { "code": null, "e": 227, "s": 172, "text": "A new way of pythoning with less known python features" }, { "code": null, "e": 936, "s": 227, "text": "Python is undoubtedly one of the most widely used programming languages of this century that has given a whole new perspective to p...
TestNG - Basic Annotations - Listeners
@Listeners annotation defines listeners on a test class. @Listeners annotated method listens to certain events and keep track of test execution while performing some action at every stage of test execution. Events can be anything like say for example success of test method, failure of test method, start of test method ...
[ { "code": null, "e": 2385, "s": 2060, "text": "@Listeners annotation defines listeners on a test class. @Listeners annotated method listens to certain events and keep track of test execution while performing some action at every stage of test execution. Events can be anything like say for example su...
Pygame - Flip the image - GeeksforGeeks
30 Jun, 2021 In this article, we are going to see how images can be flipped using Pygame. To flip the image we need to use pygame.transform.flip(Surface, xbool, ybool) method which is called to flip the image in vertical direction or horizontal direction according to our needs. Syntax: pygame.transform.flip(Surface, xb...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n30 Jun, 2021" }, { "code": null, "e": 25632, "s": 25555, "text": "In this article, we are going to see how images can be flipped using Pygame." }, { "code": null, "e": 25821, "s": 25632, "text": "To flip the i...
Generating Basic Discrete Time Signals - GeeksforGeeks
02 Sep, 2020 Generating basic discrete-time signals for Discrete-Time Signal ProcessingUnit Step, Unit Impulse, Unit Ramp, exponential signals are very commonly used signals in signal processing to perform various operations. Unit step signal is given by Unit impulse signal is given by Unit ramp signal is given by Expo...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n02 Sep, 2020" }, { "code": null, "e": 25774, "s": 25561, "text": "Generating basic discrete-time signals for Discrete-Time Signal ProcessingUnit Step, Unit Impulse, Unit Ramp, exponential signals are very commonly used signals in...
Snackbar in Android using Jetpack Compose - GeeksforGeeks
26 Apr, 2021 Prerequisites: Snackbar Material Design Components in Android Jetpack Compose in Android Snackbar is a lightweight widget and they are used to show messages at the bottom of the application. It was introduced with the Material Design library as a replacement for a Toast. In this article, we will explain h...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n26 Apr, 2021" }, { "code": null, "e": 26396, "s": 26381, "text": "Prerequisites:" }, { "code": null, "e": 26443, "s": 26396, "text": "Snackbar Material Design Components in Android" }, { "code": null, ...
Java.io.StringWriter class in Java - GeeksforGeeks
11 Nov, 2021 java.io.StringWriter class creates string from the characters of the String Buffer stream. Methods of the StringWriter class can also be called after closing the closing the Stream as this will raise no IO Exception. Declaration : public class StringWriter extends Writer Constructors : StringWriter(...
[ { "code": null, "e": 26209, "s": 26181, "text": "\n11 Nov, 2021" }, { "code": null, "e": 26427, "s": 26209, "text": "java.io.StringWriter class creates string from the characters of the String Buffer stream. Methods of the StringWriter class can also be called after closing the c...
Python Program For Sorting An Array Of 0s, 1s and 2s - GeeksforGeeks
16 Dec, 2021 Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all 2s in last.Examples: Input: {0, 1, 2, 0, 1, 2} Output: {0, 0, 1, 1, 2, 2} Input: {0, 1, 1, 0, 1, 2, 1, 2, 0, 0, 0, 1} Output: {0, 0, 0, 0, 0, ...
[ { "code": null, "e": 26067, "s": 26039, "text": "\n16 Dec, 2021" }, { "code": null, "e": 26252, "s": 26067, "text": "Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all...
Get Random Dog Images in Python - GeeksforGeeks
06 Jun, 2021 In this article, we will discuss how to get random dog images in Python. It can be done using the random-dog module. It outputs random dogs images using a single LOC and fetches from data set provided by the dog-ceo API. This module does not come built-in with Python. To install this type the below comman...
[ { "code": null, "e": 25563, "s": 25535, "text": "\n06 Jun, 2021" }, { "code": null, "e": 25636, "s": 25563, "text": "In this article, we will discuss how to get random dog images in Python." }, { "code": null, "e": 25785, "s": 25636, "text": "It can be done us...
How to upload files using jQuery Dropzone Plugin ? - GeeksforGeeks
29 Jun, 2020 jQuery has many types of file upload plugins that are used to upload various types of files and can be processed further at the backend. Usually, PHP is used widely as backend language with ajax call. We also have dynamic jQuery plugins where we can drag and drop the files. Some of the file uploader plugin...
[ { "code": null, "e": 25964, "s": 25936, "text": "\n29 Jun, 2020" }, { "code": null, "e": 26239, "s": 25964, "text": "jQuery has many types of file upload plugins that are used to upload various types of files and can be processed further at the backend. Usually, PHP is used widel...
How to create equal height columns with CSS?
To create equal height columns with CSS, the code is as follows βˆ’ Live Demo <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <style> body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } .container { display: table; width: ...
[ { "code": null, "e": 1128, "s": 1062, "text": "To create equal height columns with CSS, the code is as follows βˆ’" }, { "code": null, "e": 1139, "s": 1128, "text": " Live Demo" }, { "code": null, "e": 1937, "s": 1139, "text": "<!DOCTYPE html>\n<html>\n<head>\n<...
Area of largest triangle that can be inscribed within a rectangle - GeeksforGeeks
16 Mar, 2021 Given a rectangle of length and breadth . The task is to find the area of the biggest triangle that can be inscribed in it.Examples: Input: L = 5, B = 4 Output: 10 Input: L = 3, B = 2 Output: 3 From the figure, it is clear that the largest triangle that can be inscribed in the rectangle, should stan...
[ { "code": null, "e": 25379, "s": 25351, "text": "\n16 Mar, 2021" }, { "code": null, "e": 25514, "s": 25379, "text": "Given a rectangle of length and breadth . The task is to find the area of the biggest triangle that can be inscribed in it.Examples: " }, { "code": null, ...
How to Change the Text of a Button using jQuery? - GeeksforGeeks
06 Sep, 2019 Here is the question to Change the Text of a Button using jQuery. To do this task, we can use the following two methods: prop() method: It is used to set property values, it sets one or more property for the selected elements.Syntax:$(selector).prop(para1, para2)Approach:Get the text from the <input> eleme...
[ { "code": null, "e": 24270, "s": 24242, "text": "\n06 Sep, 2019" }, { "code": null, "e": 24391, "s": 24270, "text": "Here is the question to Change the Text of a Button using jQuery. To do this task, we can use the following two methods:" }, { "code": null, "e": 26502...
How to increase the width of the lines in the boxplot created by using ggplot2 in R?
When we create a boxplot using ggplot2, the default width of the lines in the boxplot is very thin and we might want to increase that width to make the visibility of the edges of the boxplot clearer. This will help viewers to understand the edges of the boxplot in just a single shot. We can do this by using lwd argumen...
[ { "code": null, "e": 1429, "s": 1062, "text": "When we create a boxplot using ggplot2, the default width of the lines in the boxplot is very thin and we might want to increase that width to make the visibility of the edges of the boxplot clearer. This will help viewers to understand the edges of the...
How to Get Latest Updated Records in SQL? - GeeksforGeeks
30 Nov, 2021 SQL Server is a versatile database and it is the most used Relational Database that is used across many software industries. In this article, we will see how to get the latest updated records in SQL. Step 1: Database creation Command to create the database. Here GEEKSFORGEEKS is the db name. Query: CREATE...
[ { "code": null, "e": 24268, "s": 24240, "text": "\n30 Nov, 2021" }, { "code": null, "e": 24468, "s": 24268, "text": "SQL Server is a versatile database and it is the most used Relational Database that is used across many software industries. In this article, we will see how to ge...
Python Stack Frames and Tail-Call Optimization | by Reza Bagheri | Towards Data Science
Recursion in computer science is a method of problem-solving in which a function calls itself from within its own code. This method is very useful and can be applied to many types of problems, however, it has a limitation. Functions use the stack to keep their local variables, and the stack has a limited size. So if th...
[ { "code": null, "e": 891, "s": 172, "text": "Recursion in computer science is a method of problem-solving in which a function calls itself from within its own code. This method is very useful and can be applied to many types of problems, however, it has a limitation. Functions use the stack to keep ...
JCL - Quick Guide
JCL is used in a mainframe environment to act as a communication between a program (Example: COBOL, Assembler or PL/I) and the operating system. In a mainframe environment, programs can be executed in batch and online mode. Example of a batch system can be processing the bank transactions through a VSAM (Virtual Stor...
[ { "code": null, "e": 2442, "s": 1864, "text": "JCL is used in a mainframe environment to act as a communication between a program (Example: COBOL, Assembler or PL/I) and the operating system. In a mainframe environment, programs can be executed in batch and online mode. Example of a batch system c...
Replacing strings with numbers in Python for Data Analysis - GeeksforGeeks
05 Feb, 2018 Sometimes we need to convert string values in a pandas dataframe to a unique integer so that the algorithms can perform better. So we assign unique numeric value to a string value in Pandas DataFrame. Note: Before executing create an example.csv file containing some names and gender Say we have a table con...
[ { "code": null, "e": 26259, "s": 26231, "text": "\n05 Feb, 2018" }, { "code": null, "e": 26460, "s": 26259, "text": "Sometimes we need to convert string values in a pandas dataframe to a unique integer so that the algorithms can perform better. So we assign unique numeric value t...
Type Casting in Python (Implicit and Explicit) with Examples - GeeksforGeeks
30 Jun, 2021 Prerequisites: Python Data Types Type Casting is the method to convert the variable data type into a certain data type in order to the operation required to be performed by users. In this article, we will see the various technique for typecasting. There can be two types of Type Casting in Python – Implicit...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n30 Jun, 2021" }, { "code": null, "e": 25594, "s": 25561, "text": "Prerequisites: Python Data Types" }, { "code": null, "e": 25809, "s": 25594, "text": "Type Casting is the method to convert the variable data t...
Lex program to check whether an year is a leap year or not - GeeksforGeeks
01 May, 2019 Problem: Write a Lex program to check whether an year is a leap year or not. Explanation:Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the ...
[ { "code": null, "e": 25665, "s": 25637, "text": "\n01 May, 2019" }, { "code": null, "e": 25742, "s": 25665, "text": "Problem: Write a Lex program to check whether an year is a leap year or not." }, { "code": null, "e": 25996, "s": 25742, "text": "Explanation:L...
How to get symmetric difference between two arrays in JavaScript ? - GeeksforGeeks
06 Apr, 2021 In Mathematics the symmetric difference between two sets A and B is represented as A Ξ” B = (A – B) βˆͺ (B – A) It is defined as a set of all elements that are present in either set A or set B but not in both. In simple words, common elements are discarded from both sets. A = { 1, 2, 3, 4, 5, 6} B = { 4, 5, 6...
[ { "code": null, "e": 39215, "s": 39187, "text": "\n06 Apr, 2021" }, { "code": null, "e": 39324, "s": 39215, "text": "In Mathematics the symmetric difference between two sets A and B is represented as A Ξ” B = (A – B) βˆͺ (B – A)" }, { "code": null, "e": 39422, "s": 3...
JS Full Form - GeeksforGeeks
06 Oct, 2020 JS stands for JavaScript. It is a lightweight, cross-platform, and interpreted scripting language. It is well-known for the development of web pages, many non-browser environments also use it. JavaScript can be used for Client-side developments as well as Server-side developments. JavaScript contains a sta...
[ { "code": null, "e": 31331, "s": 31303, "text": "\n06 Oct, 2020" }, { "code": null, "e": 31852, "s": 31331, "text": "JS stands for JavaScript. It is a lightweight, cross-platform, and interpreted scripting language. It is well-known for the development of web pages, many non-brow...
Integer decode() Method in Java - GeeksforGeeks
05 Dec, 2018 It is often seen that any integer within (” β€œ) is also considered as string, then it is needed to decode that into the integer. The main function of java.lang.Integer.decode() method is to decode a String into an Integer. The method also accepts decimal, hexadecimal, and octal numbers. Syntax : public stat...
[ { "code": null, "e": 25792, "s": 25764, "text": "\n05 Dec, 2018" }, { "code": null, "e": 26079, "s": 25792, "text": "It is often seen that any integer within (” β€œ) is also considered as string, then it is needed to decode that into the integer. The main function of java.lang.Inte...
JavaScript Date getTimezoneOffset() Method - GeeksforGeeks
19 Oct, 2021 Below is the example of Date getTimezoneOffset() method. Example: javascript <script> // If nothing is in parameter it takes // the current date while creating Date object var date = new Date(); // Extracting the time difference between // UTC and local time var diff = date.getT...
[ { "code": null, "e": 26061, "s": 26033, "text": "\n19 Oct, 2021" }, { "code": null, "e": 26120, "s": 26061, "text": "Below is the example of Date getTimezoneOffset() method. " }, { "code": null, "e": 26131, "s": 26120, "text": "Example: " }, { "code"...
stream.limit() method in Java - GeeksforGeeks
06 Dec, 2018 Prerequisite : Streams in Java8The limit(long N) is a method of java.util.stream.Stream object. This method takes one (long N) as an argument and returns a stream of size no more than N. limit() can be quite expensive on ordered parallel pipelines, if the value of N is large, because limit(N) is constraine...
[ { "code": null, "e": 25471, "s": 25443, "text": "\n06 Dec, 2018" }, { "code": null, "e": 25863, "s": 25471, "text": "Prerequisite : Streams in Java8The limit(long N) is a method of java.util.stream.Stream object. This method takes one (long N) as an argument and returns a stream ...
PHP | simplexml_load_string() Function - GeeksforGeeks
08 May, 2018 Sometimes there is a need of parsing XML data in PHP. There are a handful of methods available to parse XML data. SimpleXML is one of them. Parsing an XML document means that navigating through the XML document and return the relevant pieces of information. Nowadays, a few APIs return data in JSON format b...
[ { "code": null, "e": 26181, "s": 26153, "text": "\n08 May, 2018" }, { "code": null, "e": 26655, "s": 26181, "text": "Sometimes there is a need of parsing XML data in PHP. There are a handful of methods available to parse XML data. SimpleXML is one of them. Parsing an XML document...
reflect.Select() Function in Golang with Examples - GeeksforGeeks
03 May, 2020 Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of reflect package. The reflect.Select() Function in Golang is used to executes a select operation described by the list of cases. To access this functi...
[ { "code": null, "e": 25703, "s": 25675, "text": "\n03 May, 2020" }, { "code": null, "e": 26071, "s": 25703, "text": "Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of refle...
Computing Number of Conflicting Pairs in N-Queen Board in Linear Time and Space Complexity | by Tanvir Sojal | Towards Data Science
N-Queen problem is a classical problem in the field of Artificial Intelligence, where we try to find a chessboard configuration where in a N Γ— N board there will be N queens, not attacking each other. There are different ways to address this problem, each having own time complexity. After generating states, evaluating ...
[ { "code": null, "e": 373, "s": 172, "text": "N-Queen problem is a classical problem in the field of Artificial Intelligence, where we try to find a chessboard configuration where in a N Γ— N board there will be N queens, not attacking each other." }, { "code": null, "e": 707, "s": 373...
Swiss army knife of pandas filtering | by Adiamaan Keerthi | Towards Data Science
Pandas eval and query are some of the most powerful, lesser-known, intuitive functions that are exposed by pandas API. It lets you query the data frame in a readable and intuitive way, different from the traditional way of masking and loc-ing the data. The resulting code is efficient, readable, and flexible. Filtering ...
[ { "code": null, "e": 482, "s": 172, "text": "Pandas eval and query are some of the most powerful, lesser-known, intuitive functions that are exposed by pandas API. It lets you query the data frame in a readable and intuitive way, different from the traditional way of masking and loc-ing the data. Th...