title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Bezier Curves in OpenGL - GeeksforGeeks
30 Jun, 2021 OpenGL is a cross-language, cross-platform API for rendering 2D and 3D Vector Graphics. It is used to perform a lot of design as well as animation using OpenGL. In this article, we will discuss the concept and implementation of the Bezier Curves OpenGL. Beizer Curves: The concept of Bezier curves was disco...
[ { "code": null, "e": 25343, "s": 25315, "text": "\n30 Jun, 2021" }, { "code": null, "e": 25597, "s": 25343, "text": "OpenGL is a cross-language, cross-platform API for rendering 2D and 3D Vector Graphics. It is used to perform a lot of design as well as animation using OpenGL. In...
Matplotlib.colors.ListedColormap class in Python - GeeksforGeeks
21 Apr, 2020 Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. The matplotlib.colors.ListedColormap class belongs to the matplotlib.colors module. The matplot...
[ { "code": null, "e": 25471, "s": 25443, "text": "\n21 Apr, 2020" }, { "code": null, "e": 25683, "s": 25471, "text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays an...
Concatenate the Array of elements into a single element - GeeksforGeeks
16 Jul, 2021 Given an array, arr[] consisting of N integers, the task is to print the single integer value obtained by joining the array elements. Examples: Input: arr[] = {1, 23, 345} Output: 12345 Input: arr[] = {123, 45, 6, 78} Output: 12345678 Approach: The given problem can be solved based on the following...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n16 Jul, 2021" }, { "code": null, "e": 26175, "s": 26041, "text": "Given an array, arr[] consisting of N integers, the task is to print the single integer value obtained by joining the array elements." }, { "code": null, ...
Check If every group of a's is followed by a group of b's of same length - GeeksforGeeks
10 May, 2021 Given string str, the task is to check whether every group of consecutive a’s is followed by a group of consecutive b’s of the same length. If the condition is true for every group then print 1 else print 0.Examples: Input: str = “ababaabb” Output: 1 ab, ab, aabb. All groups are validInput: str = “aabbab...
[ { "code": null, "e": 25773, "s": 25745, "text": "\n10 May, 2021" }, { "code": null, "e": 25992, "s": 25773, "text": "Given string str, the task is to check whether every group of consecutive a’s is followed by a group of consecutive b’s of the same length. If the condition is tru...
turtle.dot() function in Python - GeeksforGeeks
21 Jul, 2020 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This function is used to draw a circular dot with a particular size, with some color. If t...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n21 Jul, 2020" }, { "code": null, "e": 25754, "s": 25537, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it...
C++ Program for Leaders in an array - GeeksforGeeks
13 Dec, 2021 Write a program to print all the LEADERS in the array. An element is leader if it is greater than all the elements to its right side. And the rightmost element is always a leader. For example int the array {16, 17, 4, 3, 5, 2}, leaders are 17, 5 and 2. Let the input array be arr[] and size of the array be ...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n13 Dec, 2021" }, { "code": null, "e": 26355, "s": 26041, "text": "Write a program to print all the LEADERS in the array. An element is leader if it is greater than all the elements to its right side. And the rightmost element is ...
Wand flip() function - Python - GeeksforGeeks
19 May, 2021 The flip() function is an inbuilt function in the Python Wand ImageMagick library which is used to create a vertical mirror image by reflecting the pixels around the central x-axis. Syntax: flip() Parameters: This function does not accept any parameters.Return Value: This function returns the Wand ImageMa...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n19 May, 2021" }, { "code": null, "e": 25719, "s": 25537, "text": "The flip() function is an inbuilt function in the Python Wand ImageMagick library which is used to create a vertical mirror image by reflecting the pixels around t...
How to display images using handlebars in Node.js ?
09 Apr, 2021 In this article, we will discuss how to display images using handlebars in Node.js. You may refer to this article for setting up handlebars View Engine in Node.js. We will use the following steps to achieve our target: Install express and express-handlebarsSet up our express serverCreate a basic Handlebar...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Apr, 2021" }, { "code": null, "e": 193, "s": 28, "text": "In this article, we will discuss how to display images using handlebars in Node.js. You may refer to this article for setting up handlebars View Engine in Node.js. " }, { ...
Bubble Sort Algorithm
14 Jul, 2022 Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order. This algorithm is not suitable for large data sets as its average and worst-case time complexity is quite high. Consider an array arr[] = {5, 1, 4, 2, 8} First Pass: Bubbl...
[ { "code": null, "e": 57, "s": 26, "text": " \n14 Jul, 2022\n" }, { "code": null, "e": 303, "s": 57, "text": "Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order. This algorithm is not suitable for la...
Summarize Multiple Columns of data.table by Group in R
23 Sep, 2021 In this article, we will discuss how to summarize multiple columns of data.table by Group in R Programming Language. R # load data.table packagelibrary("data.table") # create data table with 3 columns# items# weight and #costdata <- data.table( items= c("chocos","milk","drinks","drinks", ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Sep, 2021" }, { "code": null, "e": 145, "s": 28, "text": "In this article, we will discuss how to summarize multiple columns of data.table by Group in R Programming Language." }, { "code": null, "e": 147, "s": 145, ...
MediaPlayer Class in Android
26 Dec, 2020 MediaPlayer Class in Android is used to play media files. Those are Audio and Video files. It can also be used to play audio or video streams over the network. So in this article, the things discussed are: MediaPlayer State diagram Creating a simple audio player using MediaPlayer API. Have a look at the fo...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Dec, 2020" }, { "code": null, "e": 234, "s": 28, "text": "MediaPlayer Class in Android is used to play media files. Those are Audio and Video files. It can also be used to play audio or video streams over the network. So in this arti...
Node.js Utility Module
13 Oct, 2021 Node.js Utility Module: The Util module in node.js provides access to various utility functions. Syntax: var util = require('util'); There are various utility modules available in node.js module library. The modules are extremely useful in developing node based web applications.Various utility modules pres...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Oct, 2021" }, { "code": null, "e": 125, "s": 28, "text": "Node.js Utility Module: The Util module in node.js provides access to various utility functions." }, { "code": null, "e": 133, "s": 125, "text": "Syntax:" ...
Python – Subscript Dictionary
22 Jun, 2020 Sometimes, while working with data in Python, we can have a problem in which we need to use subscripted version of numbers rather than normal ones. For this, having a dictionary which maps the number with its subscript version has good utility. Let’s discuss certain ways in which this task can be performed...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2020" }, { "code": null, "e": 337, "s": 28, "text": "Sometimes, while working with data in Python, we can have a problem in which we need to use subscripted version of numbers rather than normal ones. For this, having a dictiona...
Import in GoLang
28 Jul, 2020 Pre-requisite learning: Installing Go on Windows / Installing Go on MacOS Technically defining, a package is essentially a container of source code for some specific purpose. This means that the package is a capsule that holds multiple elements of drug/medicine binding them all together and protecting the...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2020" }, { "code": null, "e": 103, "s": 28, "text": "Pre-requisite learning: Installing Go on Windows / Installing Go on MacOS " }, { "code": null, "e": 701, "s": 103, "text": "Technically defining, a package...
Python unittest – assertTrue() function
30 Oct, 2020 assertTrue() in Python is a unittest library function that is used in unit testing to compare test value with true. This function will take two parameters as input and return a boolean value depending upon the assert condition. If test value is true then assertTrue() will return true else return false. Syn...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Oct, 2020" }, { "code": null, "e": 332, "s": 28, "text": "assertTrue() in Python is a unittest library function that is used in unit testing to compare test value with true. This function will take two parameters as input and return ...
Scala Iterator seq() method with example
28 May, 2019 The seq() method belongs to the concrete value members of the class Iterable. It is helpful in visualizing the sequential view of the stated collection. It has a time complexity of O(1). Method Definition:def seq: Iterator[A] def seq: Iterator[A] Return Type:It returns a sequential view of the iterator. ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 May, 2019" }, { "code": null, "e": 215, "s": 28, "text": "The seq() method belongs to the concrete value members of the class Iterable. It is helpful in visualizing the sequential view of the stated collection. It has a time complexi...
Different Ways to Convert java.util.Date to java.time.LocalDate in Java
07 Jan, 2021 Prior to Java 8 for handling time and dates we had Date, Calendar, TimeStamp (java.util) but there were several performance issues as well as some methods and classes were deprecated, so Java 8 introduced some new concepts Date and Time APIs’ (also known as Joda time APIs’) present in java.time package. Ja...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jan, 2021" }, { "code": null, "e": 333, "s": 28, "text": "Prior to Java 8 for handling time and dates we had Date, Calendar, TimeStamp (java.util) but there were several performance issues as well as some methods and classes were dep...
How to Apply One Listener to Multiple Buttons in Android?
06 Jun, 2021 In this article we are going to write a shortcode for applying click events over different buttons, rather than writing different methods for different buttons, we are going to build only a single method that is onClick() for all buttons present and by using the concept of switch case we can perform differ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jun, 2021" }, { "code": null, "e": 442, "s": 28, "text": "In this article we are going to write a shortcode for applying click events over different buttons, rather than writing different methods for different buttons, we are going t...
Print all odd nodes of Binary Search Tree in C++
In this problem, we are given a binary search tree and we have to print all the nodes that have odd values. The binary search tree is a special type of tree that possess the following properties − The left subtree always has values smaller than the root node. The left subtree always has values smaller than the root nod...
[ { "code": null, "e": 1170, "s": 1062, "text": "In this problem, we are given a binary search tree and we have to print all the nodes that have odd values." }, { "code": null, "e": 1259, "s": 1170, "text": "The binary search tree is a special type of tree that possess the followin...
How to convert a Double array to a String array in java?
You can convert a double array to a string using the toString() method. To convert a double array to a string array, convert each element of it to string and populate the String array with them. Live Demo import java.util.Arrays; public class DoubleArrayToString { public static void main(String args[]) { Doub...
[ { "code": null, "e": 1257, "s": 1062, "text": "You can convert a double array to a string using the toString() method. To convert a double array to a string array, convert each element of it to string and populate the String array with them." }, { "code": null, "e": 1267, "s": 1257, ...
Multithreaded Priority Queue in Python - GeeksforGeeks
31 Dec, 2020 The Queue module is primarily used to manage to process large amounts of data on multiple threads. It supports the creation of a new queue object that can take a distinct number of items.The get() and put() methods are used to add or remove items from a queue respectively. Below is the list of operations t...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n31 Dec, 2020" }, { "code": null, "e": 24238, "s": 23901, "text": "The Queue module is primarily used to manage to process large amounts of data on multiple threads. It supports the creation of a new queue object that can take a d...
How to Handle Cyclical Data in Machine Learning | by Dario Radečić | Towards Data Science
Today we’ll look at a common but poorly understood topic in data science — cyclical data. It’s a part of many datasets and is easily spottable — date information is the most common form. There are plenty of approaches to encode date information to something machine-learning-friendly, but some are better than others. He...
[ { "code": null, "e": 490, "s": 172, "text": "Today we’ll look at a common but poorly understood topic in data science — cyclical data. It’s a part of many datasets and is easily spottable — date information is the most common form. There are plenty of approaches to encode date information to somethi...
Print current day and time using HTML and JavaScript - GeeksforGeeks
16 Apr, 2019 The task is to print the system’s current day and time in the following format(Time in hours, minutes and milliseconds). Use getDay() function to create an array of days in a week. It returns a number of day like 0 for Sunday, 1 for Monday and so on). Convert it into AM or PM using ternary operator. Use ge...
[ { "code": null, "e": 24499, "s": 24471, "text": "\n16 Apr, 2019" }, { "code": null, "e": 24620, "s": 24499, "text": "The task is to print the system’s current day and time in the following format(Time in hours, minutes and milliseconds)." }, { "code": null, "e": 24800...
Spring - Transaction Management
A database transaction is a sequence of actions that are treated as a single unit of work. These actions should either complete entirely or take no effect at all. Transaction management is an important part of RDBMS-oriented enterprise application to ensure data integrity and consistency. The concept of transactions ca...
[ { "code": null, "e": 2686, "s": 2292, "text": "A database transaction is a sequence of actions that are treated as a single unit of work. These actions should either complete entirely or take no effect at all. Transaction management is an important part of RDBMS-oriented enterprise application to en...
How to Easily Process Audio on Your GPU with TensorFlow | by David Schwertfeger | Towards Data Science
Deep Learning on audio data often requires a heavy preprocessing step. While some models run on raw audio signals, others expect a time-frequency presentation as input. Preprocessing is often done as a separate step, before model training, with tools like librosa or Essentia. But, as you start working with larger datas...
[ { "code": null, "e": 243, "s": 172, "text": "Deep Learning on audio data often requires a heavy preprocessing step." }, { "code": null, "e": 449, "s": 243, "text": "While some models run on raw audio signals, others expect a time-frequency presentation as input. Preprocessing is ...
Java parameterized constructor
Yes! it is supported. A constructor with arguments is called the parameterized constructor. It is used to initialize an object with given values. Live Demo public class Tester { private String message; public Tester(String message){ this.message = message; } public String getMessage(){ re...
[ { "code": null, "e": 1209, "s": 1062, "text": "Yes! it is supported. A constructor with arguments is called the parameterized constructor. It is used to initialize an object with given values. " }, { "code": null, "e": 1219, "s": 1209, "text": "Live Demo" }, { "code": nul...
Tryit Editor v3.6 - Show Python
username = raw_input("Enter username:") print("Username is: " + username)
[ { "code": null, "e": 40, "s": 0, "text": "username = raw_input(\"Enter username:\")" } ]
Data Structures and Algorithms | Set 13 - GeeksforGeeks
05 Jul, 2018 Following questions have been asked in GATE CS 2002 exam 1. The number of leaf nodes in a rooted tree of n nodes, with each node having 0 or 3 children is:a) n/2b) (n-1)/3c) (n-1)/2d) (2n+1)/3 Answer(d) Let L be the number of leaf nodes and I be the number of internal nodes, then following relation holds f...
[ { "code": null, "e": 23981, "s": 23953, "text": "\n05 Jul, 2018" }, { "code": null, "e": 24038, "s": 23981, "text": "Following questions have been asked in GATE CS 2002 exam" }, { "code": null, "e": 24174, "s": 24038, "text": "1. The number of leaf nodes in a ...
Expectation or expected value of an array - GeeksforGeeks
29 Apr, 2021 Expectation or expected value of any group of numbers in probability is the long-run average value of repetitions of the experiment it represents. For example, the expected value in rolling a six-sided die is 3.5, because the average of all the numbers that come up in an extremely large number of rolls is ...
[ { "code": null, "e": 25051, "s": 25023, "text": "\n29 Apr, 2021" }, { "code": null, "e": 25739, "s": 25051, "text": "Expectation or expected value of any group of numbers in probability is the long-run average value of repetitions of the experiment it represents. For example, the...
Program to remove duplicate characters from a given string in Python
Suppose we have a string s. We have to remove all duplicate characters that have already appeared before. The final string will have same ordering of characters like the actual one. We can solve this by using ordered dictionary to maintain the insertion order of the characters. The value will be the frequency of those ...
[ { "code": null, "e": 1244, "s": 1062, "text": "Suppose we have a string s. We have to remove all duplicate characters that have already appeared before. The final string will have same ordering of characters like the actual one." }, { "code": null, "e": 1538, "s": 1244, "text": "...
Mixed Effects Random Forests in Python | by Sourav Dey | Towards Data Science
This blog post introduces an open source Python package for implementing mixed effects random forests (MERFs). The motivation for writing this package came from the models we have been building at Manifold. Much of the data we come across is clustered, e.g. longitudinal data from individuals, data clustered by demograp...
[ { "code": null, "e": 633, "s": 172, "text": "This blog post introduces an open source Python package for implementing mixed effects random forests (MERFs). The motivation for writing this package came from the models we have been building at Manifold. Much of the data we come across is clustered, e....
Find location of an element in Pandas dataframe in Python - GeeksforGeeks
11 Jun, 2021 In this article, we will see how to find the position of an element in the dataframe using a user-defined function. Let’s first Create a simple dataframe with a dictionary of lists, say column names are: ‘Name’, ‘Age’, ‘City’, and ‘Section’. Python3 # Import pandas libraryimport pandas as pd # List of tup...
[ { "code": null, "e": 25038, "s": 25010, "text": "\n11 Jun, 2021" }, { "code": null, "e": 25281, "s": 25038, "text": "In this article, we will see how to find the position of an element in the dataframe using a user-defined function. Let’s first Create a simple dataframe with a di...
React Native - ScrollView
In this chapter, we will show you how to work with the ScrollView element. We will again create ScrollViewExample.js and import it in Home. import React from 'react'; import ScrollViewExample from './scroll_view.js'; const App = () => { return ( <ScrollViewExample /> ) }export default App Scrollview will r...
[ { "code": null, "e": 2419, "s": 2344, "text": "In this chapter, we will show you how to work with the ScrollView element." }, { "code": null, "e": 2484, "s": 2419, "text": "We will again create ScrollViewExample.js and import it in Home." }, { "code": null, "e": 2647,...
Find the ratio of number of elements in two Arrays from their individual and combined average - GeeksforGeeks
13 Mar, 2022 Given the average of elements in two arrays as ‘a’ and ‘b’ respectively, and their combined average as ‘c’, the task is to find the ratio of the number of elements in two array.Examples: Input: a = 2, b = 8, c = 5 Output: 1:1 Input: a = 4, b = 10, c = 6 Output: 2:1 Approach: Let the number of eleme...
[ { "code": null, "e": 24806, "s": 24778, "text": "\n13 Mar, 2022" }, { "code": null, "e": 24995, "s": 24806, "text": "Given the average of elements in two arrays as ‘a’ and ‘b’ respectively, and their combined average as ‘c’, the task is to find the ratio of the number of elements...
Why Constructors are not inherited in Java? - GeeksforGeeks
30 Nov, 2018 Constructor is a block of code that allows you to create an object of class and has same name as class with no explicit return type. Whenever a class (child class) extends another class (parent class), the sub class inherits state and behavior in the form of variables and methods from its super class but i...
[ { "code": null, "e": 23181, "s": 23153, "text": "\n30 Nov, 2018" }, { "code": null, "e": 23314, "s": 23181, "text": "Constructor is a block of code that allows you to create an object of class and has same name as class with no explicit return type." }, { "code": null, ...
Embedding an online compiler into a website
09 Dec, 2020 How to add a JDoodle compiler into a website? Using the JDoodle compiler we can write our code in C, C++, Java, and in many more programming languages, and then we can embed and easily run that program in our webpage by giving standard inputs, and we can give command line arguments also. Steps to follow: S...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Dec, 2020" }, { "code": null, "e": 98, "s": 52, "text": "How to add a JDoodle compiler into a website?" }, { "code": null, "e": 341, "s": 98, "text": "Using the JDoodle compiler we can write our code in C, C++, J...
How to create an object from the given key-value pairs using JavaScript ?
12 Jan, 2022 In this article, we will learn to create an object from the given key-value pairs using JavaScript. Problem Statement: You are given different key-value pair(s), in any form like an array, and using those key-value pairs you need to construct an object which will have those key-value pair(s). Object{} => O...
[ { "code": null, "e": 53, "s": 25, "text": "\n12 Jan, 2022" }, { "code": null, "e": 153, "s": 53, "text": "In this article, we will learn to create an object from the given key-value pairs using JavaScript." }, { "code": null, "e": 347, "s": 153, "text": "Probl...
How to populate RecyclerView with Firebase data using FirebaseUI in Android Studio
23 Nov, 2021 Firebase is one of the most popular online databases in use today and will be the same for at least a few years to come. Firebase offers a Realtime Database that can be used to store and retrieve data in real-time to all users. In this post, let’s connect the Realtime Database with an Android application a...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Nov, 2021" }, { "code": null, "e": 593, "s": 52, "text": "Firebase is one of the most popular online databases in use today and will be the same for at least a few years to come. Firebase offers a Realtime Database that can be used ...
Python | os.path.samefile() method
18 Jun, 2019 OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. os.path module is sub module of OS module in Python used for common path name manipulati...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jun, 2019" }, { "code": null, "e": 339, "s": 28, "text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usin...
Python | math.gcd() function
20 Mar, 2019 In Python, math module contains a number of mathematical operations, which can be performed with ease using the module. math.gcd() function compute the greatest common divisor of 2 numbers mentioned in its arguments. Syntax: math.gcd(x, y) Parameter:x : Non-negative integer whose gcd has to be computed.y :...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Mar, 2019" }, { "code": null, "e": 245, "s": 28, "text": "In Python, math module contains a number of mathematical operations, which can be performed with ease using the module. math.gcd() function compute the greatest common divisor...
How to declare a global variable in PHP?
31 Jul, 2021 Global variables refer to any variable that is defined outside of the function. Global variables can be accessed from any part of the script i.e. inside and outside of the function. So, a global variable can be declared just like other variable but it must be declared outside of function definition. Syntax...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Jul, 2021" }, { "code": null, "e": 329, "s": 28, "text": "Global variables refer to any variable that is defined outside of the function. Global variables can be accessed from any part of the script i.e. inside and outside of the fun...
Python | Switch widget in Kivy
03 Nov, 2021 Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications. ???????? Kivy Tutorial – Learn Kivy with Examples. The Switch widget...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Nov, 2021" }, { "code": null, "e": 265, "s": 28, "text": "Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it doe...
Segregate even and odd numbers | Set 3
14 Jun, 2022 Given an array arr[] of integers, segregate even and odd numbers in the array. Such that all the even numbers should be present first, and then the odd numbers. Examples: Input: arr[] = 1 9 5 3 2 6 7 11Output: 2 6 5 3 1 9 7 11 Input: arr[] = 1 3 2 4 7 6 9 10Output: 2 4 6 10 7 1 9 3 We have discussed two...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jun, 2022" }, { "code": null, "e": 213, "s": 52, "text": "Given an array arr[] of integers, segregate even and odd numbers in the array. Such that all the even numbers should be present first, and then the odd numbers." }, { ...
Introduction to ElectronJS
10 Aug, 2021 If you are interested in using Web Development skills for developing apps for different desktop platforms like Windows, Linux or macOS, Electron is the perfect framework that suits your needs. Let’s start with a brief introduction to Electron. ElectronJS: Electron was developed lately in 2013 by the open-s...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Aug, 2021" }, { "code": null, "e": 272, "s": 28, "text": "If you are interested in using Web Development skills for developing apps for different desktop platforms like Windows, Linux or macOS, Electron is the perfect framework that ...
Overview of Data Structures | Set 3 (Graph, Trie, Segment Tree and Suffix Tree)
02 Jun, 2022 We have discussed below data structures in the previous two sets. Set 1: Overview of Array, Linked List, Queue and Stack. Set 2: Overview of Binary Tree, BST, Heap and Hash. 9. Graph 10. Trie 11. Segment Tree 12. Suffix Tree Graph: Graph is a data structure that consists of the following two components: A ...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Jun, 2022" }, { "code": null, "e": 277, "s": 52, "text": "We have discussed below data structures in the previous two sets. Set 1: Overview of Array, Linked List, Queue and Stack. Set 2: Overview of Binary Tree, BST, Heap and Hash. ...
Disk Partitioning in Ubuntu using GParted
10 Sep, 2021 Disk Partitioning is a process of separating disks into one (or) more logical areas so that user and system work on them independently. When a partition is created, the disk will store the information about the location and size of partitions in the partition table. With the partition table, each partition...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Sep, 2021" }, { "code": null, "e": 484, "s": 28, "text": "Disk Partitioning is a process of separating disks into one (or) more logical areas so that user and system work on them independently. When a partition is created, the disk w...
Spring Batch - Basic Application
This chapter shows you the basic Spring Batch application. It will simply execute a tasklet to displays a message. Our Spring Batch application contains the following files − Configuration file − This is an XML file where we define the Job and the steps of the job. (If the application involves readers and writers too, ...
[ { "code": null, "e": 2177, "s": 2062, "text": "This chapter shows you the basic Spring Batch application. It will simply execute a tasklet to displays a message." }, { "code": null, "e": 2237, "s": 2177, "text": "Our Spring Batch application contains the following files −" }, ...
Check whether two points (x1, y1) and (x2, y2) lie on same side of a given line or not
19 Mar, 2021 Given three integers a, b and c which represents coefficients of the equation of a line a * x + b * y – c = 0. Given two integer points (x1, y1) and (x2, y2). The task is to determine whether the points (x1, y1) and (x2, y2) lie on the same side of the given line or not.Examples: Input : a = 1, b = 1, c ...
[ { "code": null, "e": 53, "s": 25, "text": "\n19 Mar, 2021" }, { "code": null, "e": 336, "s": 53, "text": "Given three integers a, b and c which represents coefficients of the equation of a line a * x + b * y – c = 0. Given two integer points (x1, y1) and (x2, y2). The task is to ...
How to draw stacked bars in ggplot2 that show percentages in R ?
05 Nov, 2021 In this article, we are going to see how to draw stacked bars in ggplot2 that show percentages in R programming language. The plyr package in R is used to split the data apart, perform operations with it, and then subsequently bring it back together again. It is used to perform data manipulation. This pack...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Nov, 2021" }, { "code": null, "e": 150, "s": 28, "text": "In this article, we are going to see how to draw stacked bars in ggplot2 that show percentages in R programming language." }, { "code": null, "e": 425, "s": 15...
How to replace dropdown-toggle icon with another default icon in Bootstrap ?
23 Feb, 2022 Bootstrap provides the option of adding a dropdown to our websites. The default icon on the dropdown button is the ‘downward solid arrow’ logo. Even though it serves its purpose, most of the modern-day websites nowadays use Bootstrap. Therefore, the icon might look very generic to the visitor.Program: ht...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Feb, 2022" }, { "code": null, "e": 333, "s": 28, "text": "Bootstrap provides the option of adding a dropdown to our websites. The default icon on the dropdown button is the ‘downward solid arrow’ logo. Even though it serves its purpo...
Quick Start to Gaussian Process Regression | by Hilarie Sit | Towards Data Science
Gaussian process regression (GPR) is a nonparametric, Bayesian approach to regression that is making waves in the area of machine learning. GPR has several benefits, working well on small datasets and having the ability to provide uncertainty measurements on the predictions. Unlike many popular supervised machine learn...
[ { "code": null, "e": 448, "s": 172, "text": "Gaussian process regression (GPR) is a nonparametric, Bayesian approach to regression that is making waves in the area of machine learning. GPR has several benefits, working well on small datasets and having the ability to provide uncertainty measurements...
SQL - UPDATE Query
The SQL UPDATE Query is used to modify the existing records in a table. You can use the WHERE clause with the UPDATE query to update the selected rows, otherwise all the rows would be affected. The basic syntax of the UPDATE query with a WHERE clause is as follows − UPDATE table_name SET column1 = value1, column2 = val...
[ { "code": null, "e": 2647, "s": 2453, "text": "The SQL UPDATE Query is used to modify the existing records in a table. You can use the WHERE clause with the UPDATE query to update the selected rows, otherwise all the rows would be affected." }, { "code": null, "e": 2720, "s": 2647, ...
Optimized Space Invaders using Deep Q-learning: An Implementation in Tensorflow 2.0. | by Adrian Yijie Xu | Towards Data Science
Over the past few articles on GradientCrescent, we’ve spent a significant period of time exploring the field of online learning, a highly reactive family of reinforcement learning algorithms behind many of the latest achievements in general AI. Online learning belongs to the sample-based learning class of approaches, r...
[ { "code": null, "e": 868, "s": 172, "text": "Over the past few articles on GradientCrescent, we’ve spent a significant period of time exploring the field of online learning, a highly reactive family of reinforcement learning algorithms behind many of the latest achievements in general AI. Online lea...
- GeeksforGeeks
26 Dec, 2018 Assume that to spell check a large file, 820,000,000 instructions are needed. The instructions in the program are broken down into 4 different classes, and each class requires N clock cycles to execute. Specific information is given in the table below. (Here, N is the same as in the MIPS multi-cycle datapa...
[ { "code": null, "e": 27219, "s": 27191, "text": "\n26 Dec, 2018" }, { "code": null, "e": 27550, "s": 27219, "text": "Assume that to spell check a large file, 820,000,000 instructions are needed. The instructions in the program are broken down into 4 different classes, and each cl...
Concrete Exceptions in Python
There are some common exceptions in python. These exceptions are usually raised in different programs. These may raise by the programmer explicitly, or the python interpreter can raise these type of exceptions implicitly. Some of these exceptions are − The AssertionError may raise, when an assert statement fails. In p...
[ { "code": null, "e": 1316, "s": 1062, "text": "There are some common exceptions in python. These exceptions are usually raised in different programs. These may raise by the programmer explicitly, or the python interpreter can raise these type of exceptions implicitly. Some of these exceptions are − ...
How to Create Animations in Python? - GeeksforGeeks
14 Sep, 2021 Animations are a great way to make Visualizations more attractive and user appealing. It helps us to demonstrate Data Visualization in a Meaningful Way. Python helps us to create Create Animation Visualization using existing powerful Python libraries. Matplotlib is a very popular Data Visualisation Library...
[ { "code": null, "e": 23927, "s": 23899, "text": "\n14 Sep, 2021" }, { "code": null, "e": 24348, "s": 23927, "text": "Animations are a great way to make Visualizations more attractive and user appealing. It helps us to demonstrate Data Visualization in a Meaningful Way. Python hel...
Matplotlib.pyplot.psd() in Python - GeeksforGeeks
21 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. The csd() function in pyplot module of matplotlib library is used to plot the cross-spectral density. Syntax: ma...
[ { "code": null, "e": 24382, "s": 24354, "text": "\n21 Apr, 2020" }, { "code": null, "e": 24577, "s": 24382, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which pr...
How to align buttons in Card footer in Bootstrap ? - GeeksforGeeks
30 Jul, 2019 Alignment of buttons in the Card footer is so much easy when you are familiar with the float element. There is another way to align the left or right wherever you want to place the button in the footer of the card. In this article, you will learn how to align buttons in the footer section of a Bootstrap Ca...
[ { "code": null, "e": 24544, "s": 24516, "text": "\n30 Jul, 2019" }, { "code": null, "e": 24989, "s": 24544, "text": "Alignment of buttons in the Card footer is so much easy when you are familiar with the float element. There is another way to align the left or right wherever you ...
ES6 - Array Method filter()
filter() method creates a new array with all elements that pass the test implemented by the provided function. array.filter(callback[, thisObject]); callback − Function to test for each element. callback − Function to test for each element. thisObject − Object to use as this when executing callback. thisObject − Obje...
[ { "code": null, "e": 2388, "s": 2277, "text": "filter() method creates a new array with all elements that pass the test implemented by the provided function." }, { "code": null, "e": 2428, "s": 2388, "text": "array.filter(callback[, thisObject]); \n" }, { "code": null, ...
Shallow copy vs Deep copy in Pandas Series - GeeksforGeeks
21 Sep, 2021 The pandas library has mainly two data structures DataFrames and Series. These data structures are internally represented with index arrays, which label the data, and data arrays, which contain the actual data. Now, when we try to copy these data structures (DataFrames and Series) we essentially copy the o...
[ { "code": null, "e": 24048, "s": 24020, "text": "\n21 Sep, 2021" }, { "code": null, "e": 24448, "s": 24048, "text": "The pandas library has mainly two data structures DataFrames and Series. These data structures are internally represented with index arrays, which label the data, ...
How to sort date in excel using Pandas? - GeeksforGeeks
05 Sep, 2020 In these articles, We will discuss how to import an excel file in a single Dataframe and sort the Date in a given column on. Suppose our Excel file looks like these: sample_date.xlsx To get the excel file used click here. Approach : Import Pandas module Make DataFrame from Excel file sort the date column w...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n05 Sep, 2020" }, { "code": null, "e": 24067, "s": 23901, "text": "In these articles, We will discuss how to import an excel file in a single Dataframe and sort the Date in a given column on. Suppose our Excel file looks like thes...
How to get property descriptors of an object in JavaScript ? - GeeksforGeeks
28 Nov, 2021 Here, we are going to discuss the property descriptors of an Object in JavaScript. The Object.getOwnPropertyDescriptor() method returns an object describing a specific property on a given object. A JavaScript object can be created in many ways and its properties can be called by using property descriptors ...
[ { "code": null, "e": 25300, "s": 25272, "text": "\n28 Nov, 2021" }, { "code": null, "e": 25624, "s": 25300, "text": "Here, we are going to discuss the property descriptors of an Object in JavaScript. The Object.getOwnPropertyDescriptor() method returns an object describing a spec...
SQLite - CREATE Database
In SQLite, sqlite3 command is used to create a new SQLite database. You do not need to have any special privilege to create a database. Following is the basic syntax of sqlite3 command to create a database: − $sqlite3 DatabaseName.db Always, database name should be unique within the RDBMS. If you want to create a new ...
[ { "code": null, "e": 2774, "s": 2638, "text": "In SQLite, sqlite3 command is used to create a new SQLite database. You do not need to have any special privilege to create a database." }, { "code": null, "e": 2847, "s": 2774, "text": "Following is the basic syntax of sqlite3 comma...
MongoDB - Data Modelling
Data in MongoDB has a flexible schema.documents in the same collection. They do not need to have the same set of fields or structure Common fields in a collection’s documents may hold different types of data. MongoDB provides two types of data models: — Embedded data model and Normalized data model. Based on the requir...
[ { "code": null, "e": 2762, "s": 2553, "text": "Data in MongoDB has a flexible schema.documents in the same collection. They do not need to have the same set of fields or structure Common fields in a collection’s documents may hold different types of data." }, { "code": null, "e": 2944, ...
What are local variables and global variables in C++?
A scope is a region of the program and broadly speaking there are three places, where variables can be declared − Inside a function or a block which is called local variables, In the definition of function parameters which is called formal parameters. Outside of all functions which are called global variables. Local...
[ { "code": null, "e": 1176, "s": 1062, "text": "A scope is a region of the program and broadly speaking there are three places, where variables can be declared −" }, { "code": null, "e": 1239, "s": 1176, "text": " Inside a function or a block which is called local variables," },...
How to Solve Python Coding Questions using Math | by Leihua Ye, PhD | Towards Data Science
1 2 3 4 5 6 7 8 9 10 Powered by Play.ht Create audio with Play.ht Powered by Play.ht Python coding interviews come in different shapes and forms, and each type has its unique characteristics and approaches. For example, String Manipulation questions expect candidates to have a solid grasp of element retrieval and acces...
[ { "code": null, "e": 174, "s": 172, "text": "1" }, { "code": null, "e": 176, "s": 174, "text": "2" }, { "code": null, "e": 178, "s": 176, "text": "3" }, { "code": null, "e": 180, "s": 178, "text": "4" }, { "code": null, "e": 182...
Building custom-trained object detection models in Python | by Alan Bi | Towards Data Science
These days, machine learning and computer vision are all the craze. We’ve all seen the news about self-driving cars and facial recognition and probably imagined how cool it’d be to build our own computer vision models. However, it’s not always easy to break into the field, especially without a strong math background. L...
[ { "code": null, "e": 611, "s": 172, "text": "These days, machine learning and computer vision are all the craze. We’ve all seen the news about self-driving cars and facial recognition and probably imagined how cool it’d be to build our own computer vision models. However, it’s not always easy to bre...
Can we define constructor inside an interface in java?
No, you cannot have a constructor within an interface in Java. You can have only public, static, final variables and, public, abstract, methods as of Java7. You can have only public, static, final variables and, public, abstract, methods as of Java7. From Java8 onwards interfaces allow default methods and static method...
[ { "code": null, "e": 1125, "s": 1062, "text": "No, you cannot have a constructor within an interface in Java." }, { "code": null, "e": 1219, "s": 1125, "text": "You can have only public, static, final variables and, public, abstract, methods as of Java7." }, { "code": nul...
Longest palindromic String formed using concatenation of given strings in any order - GeeksforGeeks
26 May, 2021 Given an array of strings arr[] of the same length, the task is to find the longest palindromic string that can be made using the concatenation of strings in any order. Examples: Input: arr[] = {“aba”, “aba”} Output: abaaba Input: arr[] = {“abc”, “dba”, “kop”, “cba”, “abd”} Output: abcdbaabdcba Approach...
[ { "code": null, "e": 26067, "s": 26039, "text": "\n26 May, 2021" }, { "code": null, "e": 26237, "s": 26067, "text": "Given an array of strings arr[] of the same length, the task is to find the longest palindromic string that can be made using the concatenation of strings in any o...
How to count files in a directory using PHP? - GeeksforGeeks
07 Jan, 2022 PHP contains many functions like count(), iterator_count(), glob(), openddir(), readdir(), scandir() and FilesystemIterator() to count number of files in a directory.count() Function: The count() functions is an array function which is used to count all elements in an array or something in an object. This ...
[ { "code": null, "e": 25699, "s": 25671, "text": "\n07 Jan, 2022" }, { "code": null, "e": 26159, "s": 25699, "text": "PHP contains many functions like count(), iterator_count(), glob(), openddir(), readdir(), scandir() and FilesystemIterator() to count number of files in a directo...
Matplotlib.axes.Axes.get_legend_handles_labels() in Python - GeeksforGeeks
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": 25537, "s": 25509, "text": "\n19 Apr, 2020" }, { "code": null, "e": 25837, "s": 25537, "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, ...
random.betavariate() method in Python - GeeksforGeeks
17 May, 2020 betavariate() is an inbuilt method of the random module. It is used to return a random floating point number with beta distribution. The returned value is between 0 and 1. Syntax : random.betavariate(alpha, beta) Parameters :alpha : greater than 0beta : greater than 0 Returns : a random beta distribution f...
[ { "code": null, "e": 25047, "s": 25019, "text": "\n17 May, 2020" }, { "code": null, "e": 25219, "s": 25047, "text": "betavariate() is an inbuilt method of the random module. It is used to return a random floating point number with beta distribution. The returned value is between ...
PyQt5 - Change state of Radio Button - GeeksforGeeks
22 Apr, 2020 In this article we will see how to change the state of radio button. Although with the help of setChecked method we can we make the radio button checked but when we use this method on the checked radio button there will be no change in the state of radio button. In order to change the state of radio button...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n22 Apr, 2020" }, { "code": null, "e": 25800, "s": 25537, "text": "In this article we will see how to change the state of radio button. Although with the help of setChecked method we can we make the radio button checked but when w...
Wipro interview questions for laterals | Set 1 - GeeksforGeeks
22 Aug, 2018 25 question1hr timeAll Are MCQ:1 mark each, no negative marksDomain: C language 1) int main(){ int i; i = 0; if (x=0) { printf("x is zero"); } else { printf("x is not zero"); }} 2) int main(){ int i = -3; printf("%d n", (++i + ++i));} 3) int main(){ int x = 0x...
[ { "code": null, "e": 26287, "s": 26259, "text": "\n22 Aug, 2018" }, { "code": null, "e": 26367, "s": 26287, "text": "25 question1hr timeAll Are MCQ:1 mark each, no negative marksDomain: C language" }, { "code": null, "e": 26370, "s": 26367, "text": "1)" }, ...
Python unittest - assertEqual() function - GeeksforGeeks
29 Aug, 2020 assertEqual() in Python is a unittest library function that is used in unit testing to check the equality of two values. This function will take three parameters as input and return a boolean value depending upon the assert condition. If both input values are equal assertEqual() will return true else retur...
[ { "code": null, "e": 25755, "s": 25727, "text": "\n29 Aug, 2020" }, { "code": null, "e": 26071, "s": 25755, "text": "assertEqual() in Python is a unittest library function that is used in unit testing to check the equality of two values. This function will take three parameters a...
Image Slider in Android using ViewPager - GeeksforGeeks
15 Sep, 2020 When talking about Android Apps, the first thing that comes to mind is variety. There are so many varieties of Android apps providing the user with beautiful dynamic UI. One such feature is to navigate in the Android Apps using the left and right swipes as opposed to clicking on Buttons. Not only does it l...
[ { "code": null, "e": 25839, "s": 25811, "text": "\n15 Sep, 2020" }, { "code": null, "e": 26700, "s": 25839, "text": "When talking about Android Apps, the first thing that comes to mind is variety. There are so many varieties of Android apps providing the user with beautiful dynam...
Python | SymPy Permutation.index() method - GeeksforGeeks
27 Aug, 2019 Permutation.index() : index() is a sympy Python library function that returns the index value of the permutation in argument. Index of a permutation = Sum of all subscripts j such that permutation[j] is greater than permutation[j+1]. Syntax :sympy.combinatorics.permutations.Permutation.index() Return :inde...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n27 Aug, 2019" }, { "code": null, "e": 25663, "s": 25537, "text": "Permutation.index() : index() is a sympy Python library function that returns the index value of the permutation in argument." }, { "code": null, "e": ...
Java Program to Implement Binomial Heap - GeeksforGeeks
11 Oct, 2021 A Binomial Heap is a set of Binomial Trees where each Binomial Tree follows Min Heap property. And there can be at most one Binomial Tree of any degree. It is explained to depth in the below illustration as follows: Illustration: There are 2 binomial heaps been depicted below out here saw follows: BINO...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n11 Oct, 2021" }, { "code": null, "e": 25443, "s": 25225, "text": " A Binomial Heap is a set of Binomial Trees where each Binomial Tree follows Min Heap property. And there can be at most one Binomial Tree of any degree. It is ex...
C++ Program To Add Two Numbers Represented By Linked Lists- Set 1 - GeeksforGeeks
20 Dec, 2021 Given two numbers represented by two lists, write a function that returns the sum list. The sum list is a list representation of the addition of two input numbers. Example: Input: List1: 5->6->3 // represents number 563 List2: 8->4->2 // represents number 842 Output: Resultant list: 1->4->0->5 // represent...
[ { "code": null, "e": 25421, "s": 25393, "text": "\n20 Dec, 2021" }, { "code": null, "e": 25585, "s": 25421, "text": "Given two numbers represented by two lists, write a function that returns the sum list. The sum list is a list representation of the addition of two input numbers....
Set all even bits of a number - GeeksforGeeks
03 May, 2021 Given a number, the task is to set all even bit of a number. Positions of bits are counted from LSB (least significant bit) to MSB (Most significant bit). Position of LSB is considered as 1. Examples : Input : 20 Output : 30 Binary representation of 20 is 10100. After setting even bits, we get 11110 Inp...
[ { "code": null, "e": 26515, "s": 26487, "text": "\n03 May, 2021" }, { "code": null, "e": 26706, "s": 26515, "text": "Given a number, the task is to set all even bit of a number. Positions of bits are counted from LSB (least significant bit) to MSB (Most significant bit). Position...
Gaussian Filter Generation in C++ - GeeksforGeeks
28 Feb, 2022 Gaussian Filtering is widely used in the field of image processing. It is used to reduce the noise of an image. In this article we will generate a 2D Gaussian Kernel. The 2D Gaussian Kernel follows the below given Gaussian Distribution. Where, y is the distance along vertical axis from the origin, x is the...
[ { "code": null, "e": 26059, "s": 26031, "text": "\n28 Feb, 2022" }, { "code": null, "e": 26447, "s": 26059, "text": "Gaussian Filtering is widely used in the field of image processing. It is used to reduce the noise of an image. In this article we will generate a 2D Gaussian Kern...
Java program to print Even length words in a String - GeeksforGeeks
28 Feb, 2020 Given a string str, write a Java program to print all words with even length in the given string. Examples: Input: s = "This is a java language" Output: This is java language Input: s = "i am GFG" Output: am Approach: Take the string Break the string into words with the help of s...
[ { "code": null, "e": 26010, "s": 25982, "text": "\n28 Feb, 2020" }, { "code": null, "e": 26108, "s": 26010, "text": "Given a string str, write a Java program to print all words with even length in the given string." }, { "code": null, "e": 26118, "s": 26108, "...
Find Equal (or Middle) Point in a sorted array with duplicates - GeeksforGeeks
19 May, 2021 Given a sorted array of n size, the task is to find whether an element exists in the array from where the number of smaller elements is equal to the number of greater elements.If Equal Point appears multiple times in input array, return the index of its first occurrence. If doesn’t exist, return -1.Example...
[ { "code": null, "e": 26193, "s": 26165, "text": "\n19 May, 2021" }, { "code": null, "e": 26506, "s": 26193, "text": "Given a sorted array of n size, the task is to find whether an element exists in the array from where the number of smaller elements is equal to the number of grea...
Stack size() method in Java with Example - GeeksforGeeks
24 Dec, 2018 The Java.util.Stack.size() method in Java is used to get the size of the Stack or the number of elements present in the Stack. Syntax: Stack.size() Parameters: The method does not take any parameter. Return Value: The method returns the size or the number of elements present in the Stack. Below programs il...
[ { "code": null, "e": 25821, "s": 25793, "text": "\n24 Dec, 2018" }, { "code": null, "e": 25948, "s": 25821, "text": "The Java.util.Stack.size() method in Java is used to get the size of the Stack or the number of elements present in the Stack." }, { "code": null, "e":...
C++ Program For Printing Nth Node From The End Of A Linked List - GeeksforGeeks
08 Dec, 2021 Given a Linked List and a number n, write a function that returns the value at the n’th node from the end of the Linked List.For example, if the input is below list and n = 3, then output is “B” Method 1 (Use length of linked list): Calculate the length of Linked List. Let the length be len.Print the (len...
[ { "code": null, "e": 23785, "s": 23757, "text": "\n08 Dec, 2021" }, { "code": null, "e": 23980, "s": 23785, "text": "Given a Linked List and a number n, write a function that returns the value at the n’th node from the end of the Linked List.For example, if the input is below lis...
C++ program to implement Half Adder - GeeksforGeeks
26 Aug, 2021 Prerequisite : Half Adder in Digital Logic We are given with two inputs A and B. Our task is to implement Half Adder circuit and print the outputs sum and carry of two inputs. Introduction : The Half adder is a combinational circuit which add two1-bit binary numbers which are augend and addend to give th...
[ { "code": null, "e": 24382, "s": 24354, "text": "\n26 Aug, 2021" }, { "code": null, "e": 24425, "s": 24382, "text": "Prerequisite : Half Adder in Digital Logic" }, { "code": null, "e": 24558, "s": 24425, "text": "We are given with two inputs A and B. Our task ...
Create PySpark dataframe from dictionary - GeeksforGeeks
30 May, 2021 In this article, we are going to discuss the creation of Pyspark dataframe from the dictionary. To do this spark.createDataFrame() method method is used. This method takes two argument data and columns. The data attribute will contain the dataframe and the columns attribute will contain the list of columns...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n30 May, 2021" }, { "code": null, "e": 24526, "s": 24212, "text": "In this article, we are going to discuss the creation of Pyspark dataframe from the dictionary. To do this spark.createDataFrame() method method is used. This meth...
Spring JDBC - StoredProcedure Class
The org.springframework.jdbc.core.StoredProcedure class is the superclass for object abstractions of RDBMS stored procedures. This class is abstract and it is intended that subclasses will provide a typed method for invocation that delegates to the supplied execute(java.lang.Object...) method. The inherited SQL propert...
[ { "code": null, "e": 2768, "s": 2396, "text": "The org.springframework.jdbc.core.StoredProcedure class is the superclass for object abstractions of RDBMS stored procedures. This class is abstract and it is intended that subclasses will provide a typed method for invocation that delegates to the supp...
GraphQL - Environment Setup
In this chapter, we will learn about the environmental setup for GraphQL. To execute the examples in this tutorial you will need the following − A computer running Linux, macOS, or Windows. A computer running Linux, macOS, or Windows. A web browser, preferably the latest version of Google Chrome. A web browser, prefera...
[ { "code": null, "e": 2096, "s": 1951, "text": "In this chapter, we will learn about the environmental setup for GraphQL. To execute the examples in this tutorial you will need the following −" }, { "code": null, "e": 2141, "s": 2096, "text": "A computer running Linux, macOS, or W...
How to Containerize Models Trained in Spark: MLLib, ONNX and more | by Facundo Santiago | Towards Data Science
If we shall name two trends in modern applications, one should mention containers and machine learning. More and more applications are taking advantage of containerized microservices architectures in order to enable improved elasticity, fault-tolerance, and scalability — whether or on-premise or in the cloud. At the sa...
[ { "code": null, "e": 582, "s": 172, "text": "If we shall name two trends in modern applications, one should mention containers and machine learning. More and more applications are taking advantage of containerized microservices architectures in order to enable improved elasticity, fault-tolerance, a...
Trade and Invest Smarter — The Reinforcement Learning Way | by Adam King | Towards Data Science
Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details. Winning high stakes ...
[ { "code": null, "e": 347, "s": 47, "text": "Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professiona...
How to get smooth interpolation when using pcolormesh (Matplotlib)?
To get smooth interpolation when using pcolormesh, we can use shading="gouraud" class by name. 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 data, x and y using numpy meshgrid. Create data, x and y using num...
[ { "code": null, "e": 1157, "s": 1062, "text": "To get smooth interpolation when using pcolormesh, we can use shading=\"gouraud\" class by name." }, { "code": null, "e": 1233, "s": 1157, "text": "Set the figure size and adjust the padding between and around the subplots." }, {...
Set size() method in Java with Example - GeeksforGeeks
31 Dec, 2018 The java.util.Set.size() method is used to get the size of the Set or the number of elements present in the Set. Syntax: int size() Parameters: This method does not takes any parameter. Return Value: The method returns the size or the number of elements present in the Set. Below program illustrate the jav...
[ { "code": null, "e": 24461, "s": 24433, "text": "\n31 Dec, 2018" }, { "code": null, "e": 24574, "s": 24461, "text": "The java.util.Set.size() method is used to get the size of the Set or the number of elements present in the Set." }, { "code": null, "e": 24582, "s...
Difference between DELETE and TRUNCATE - GeeksforGeeks
12 Jan, 2022 1. DELETE : DELETE is a DML(Data Manipulation Language) command and is used when we specify the row(tuple) that we want to remove or delete from the table or relation. The DELETE command can contain a WHERE clause. If the WHERE clause is used with the DELETE command then it removes or deletes only those ro...
[ { "code": null, "e": 24072, "s": 24044, "text": "\n12 Jan, 2022" }, { "code": null, "e": 24531, "s": 24072, "text": "1. DELETE : DELETE is a DML(Data Manipulation Language) command and is used when we specify the row(tuple) that we want to remove or delete from the table or relat...
How to find the number of links in a document in JavaScript?
Javascript DOM has provided many properties to get the details regarding a document. It has provided a method called document.links.length to get the number of links that a document contains. This method won't disturb the code's normal functionality. In the following example, there are three links provided in the code....
[ { "code": null, "e": 1313, "s": 1062, "text": "Javascript DOM has provided many properties to get the details regarding a document. It has provided a method called document.links.length to get the number of links that a document contains. This method won't disturb the code's normal functionality." ...
K-th lexicographically smallest unique substring of a given string - GeeksforGeeks
25 May, 2021 Given a string S. The task is to print the K-th lexicographically the smallest one among the different substrings of s.A substring of s is a string obtained by taking out a non-empty contiguous part in s. For example, if s = ababc, a, bab and ababc are substrings of s, while ac, z, and an empty string are ...
[ { "code": null, "e": 24929, "s": 24901, "text": "\n25 May, 2021" }, { "code": null, "e": 25320, "s": 24929, "text": "Given a string S. The task is to print the K-th lexicographically the smallest one among the different substrings of s.A substring of s is a string obtained by tak...
5 Jupyter Extensions to Improve your Productivity | by Cornellius Yudha Wijaya | Towards Data Science
Jupyter Notebook is a popular IDE for many data experts for analyzing data and developing machine learning models because of its useability and utility. The Notebook is already a beginner-friendly IDE to use and could be extended even more to improve your data activity productivity with a bit of tweak. For the above re...
[ { "code": null, "e": 476, "s": 172, "text": "Jupyter Notebook is a popular IDE for many data experts for analyzing data and developing machine learning models because of its useability and utility. The Notebook is already a beginner-friendly IDE to use and could be extended even more to improve your...
Remove consecutive vowels from string
02 Jun, 2022 Given a string s of lowercase letters, we need to remove consecutive vowels from the stringNote : Sentence should not contain two consecutive vowels ( a, e, i, o, u).Examples : Input: geeks for geeks Output: geks for geks Input : your article is in queue Output : your article is in qu Approach: Itera...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jun, 2022" }, { "code": null, "e": 233, "s": 54, "text": "Given a string s of lowercase letters, we need to remove consecutive vowels from the stringNote : Sentence should not contain two consecutive vowels ( a, e, i, o, u).Examples...
Control Statements in R Programming
01 Jun, 2020 Control statements are expressions used to control the execution and flow of the program based on the conditions provided in the statements. These structures are used to make a decision after assessing the variable. In this article, we’ll discuss all the control statements with the examples. In R programmi...
[ { "code": null, "e": 53, "s": 25, "text": "\n01 Jun, 2020" }, { "code": null, "e": 346, "s": 53, "text": "Control statements are expressions used to control the execution and flow of the program based on the conditions provided in the statements. These structures are used to make...
How to traverse a C++ set in reverse direction
05 Dec, 2018 Given a Set, the task is to traverse this Set in reverse order. Examples: Input: set = [10 20 30 70 80 90 100 40 50 60] Output: 100 90 80 70 60 50 40 30 20 10 Input: set = [1 2 3 4 5] Output: 5 4 3 2 1 Approach:To traverse a Set in reverse order, a reverse_iterator can be declared on it and it can be us...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Dec, 2018" }, { "code": null, "e": 92, "s": 28, "text": "Given a Set, the task is to traverse this Set in reverse order." }, { "code": null, "e": 102, "s": 92, "text": "Examples:" }, { "code": null, "e...