title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
All unique combinations whose sum equals to K - GeeksforGeeks
07 Sep, 2021 Given an array arr[] of size N and an integer K. The task is to find all the unique combinations from the given array such that sum of the elements in each combination is equal to K. Examples: Input: arr[] = {1, 2, 3}, K = 3 Output: {1, 2} {3} Explanation:These are the combinations whose sum equals to 3. ...
[ { "code": null, "e": 24790, "s": 24762, "text": "\n07 Sep, 2021" }, { "code": null, "e": 24973, "s": 24790, "text": "Given an array arr[] of size N and an integer K. The task is to find all the unique combinations from the given array such that sum of the elements in each combina...
How to make a txt file and read txt file from internal storage in android?
This example demonstrates How to make a txt file and read txt file from internal storage in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version = "1.0" enc...
[ { "code": null, "e": 1163, "s": 1062, "text": "This example demonstrates How to make a txt file and read txt file from internal storage in android." }, { "code": null, "e": 1292, "s": 1163, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fil...
PHP Cookies - GeeksforGeeks
30 Nov, 2021 A cookie in PHP is a small file with a maximum size of 4KB that the web server stores on the client computer. They are typically used to keep track of information such as a username that the site can retrieve to personalize the page when the user visits the website next time. A cookie can only be read from...
[ { "code": null, "e": 40894, "s": 40866, "text": "\n30 Nov, 2021" }, { "code": null, "e": 41345, "s": 40894, "text": "A cookie in PHP is a small file with a maximum size of 4KB that the web server stores on the client computer. They are typically used to keep track of information ...
How do you properly ignore Exceptions in Python?
This can be done by following codes try: x,y =7,0 z = x/y except: pass OR try: x,y =7,0 z = x/y except Exception: pass These codes bypass the exception in the try statement and ignore the except clause and don’t raise any exception. The difference in the above codes is that the first one will also catch KeyboardInterru...
[ { "code": null, "e": 1098, "s": 1062, "text": "This can be done by following codes" }, { "code": null, "e": 1133, "s": 1098, "text": "try:\nx,y =7,0\nz = x/y\nexcept:\npass" }, { "code": null, "e": 1136, "s": 1133, "text": "OR" }, { "code": null, "...
Downloading Kaggle datasets directly into Google Colab | by Anna D'Angela | Towards Data Science
There are many perks to working in Google Colaboratory, or “Colab” for short, for data science projects. For those like me, who are plugging away on an older laptop — the main highlight is the free access to accelerated hardware GPU/TPU for larger projects. For the Phase 4 Project of my data science boot camp, I set ou...
[ { "code": null, "e": 430, "s": 172, "text": "There are many perks to working in Google Colaboratory, or “Colab” for short, for data science projects. For those like me, who are plugging away on an older laptop — the main highlight is the free access to accelerated hardware GPU/TPU for larger project...
DB2 - Sequences
This chapter introduces you to the concept of sequence, creation of sequence, viewing the sequence, and dropping them. A sequence is a software function that generates integer numbers in either ascending or descending order, within a definite range, to generate primary key and coordinate other keys among the table. You...
[ { "code": null, "e": 2047, "s": 1928, "text": "This chapter introduces you to the concept of sequence, creation of sequence, viewing the sequence, and dropping them." }, { "code": null, "e": 2530, "s": 2047, "text": "A sequence is a software function that generates integer number...
Regular Expressions : Using the “re” Module to Extract Information From Strings | by Muriel Kosaka | Towards Data Science
Regular Expressions, also known as Regex, comes in handy in a multitude of text processing scenarios. You can search for patterns of numbers, letters, punctuation, and even whitespace. Regex is fast and helps avoid unnecessary loops in your program to match and extract desired information. Until recently I felt that Re...
[ { "code": null, "e": 652, "s": 172, "text": "Regular Expressions, also known as Regex, comes in handy in a multitude of text processing scenarios. You can search for patterns of numbers, letters, punctuation, and even whitespace. Regex is fast and helps avoid unnecessary loops in your program to mat...
How to create a plot using ggplot2 by including values greater than a certain value in R?
To create a plot using ggplot2 by excluding values greater than a certain value, we can use subsetting with single square brackets and which function. For example, if we have a data frame called df that contains two columns say x and y, then the point chart by including values of x that are greater than 0 can be create...
[ { "code": null, "e": 1407, "s": 1062, "text": "To create a plot using ggplot2 by excluding values greater than a certain value, we can use subsetting with single square brackets and which function. For example, if we have a data frame called df that contains two columns say x and y, then the point c...
Java Examples - String unicode
How to determine the Unicode code point in string ? This example shows you how to use codePointBefore() method to return the character (Unicode code point) before the specified index. public class StringUniCode { public static void main(String[] args) { String test_string = "Welcome to TutorialsPoint"; S...
[ { "code": null, "e": 2120, "s": 2068, "text": "How to determine the Unicode code point in string ?" }, { "code": null, "e": 2252, "s": 2120, "text": "This example shows you how to use codePointBefore() method to return the character (Unicode code point) before the specified index...
Methods for tracking database schema changes in MySQL?
Whenever a table is present in a project with a single database, we can do database schema changes using schema version or migration. It aims to keep track of database schema changes or structural changes. The table creation to keep track of schema changes. mysql> create table SchemaDatabaseMethodDemo -> ( -> `Wh...
[ { "code": null, "e": 1268, "s": 1062, "text": "Whenever a table is present in a project with a single database, we can do database schema changes using schema version or migration. It aims to keep track of database schema changes or structural changes." }, { "code": null, "e": 1320, ...
Bollinger Bands for stock trading — Theory and practice in Python | by Gianluca Malato | Towards Data Science
Quantitative traders often look for trading tools that can spot trends or reversals. Such tools should self-adapt to market conditions and try to describe the current situation in the most accurate way. In this article, I’ll talk about Bollinger Bands and how to work with them in Python. Note from Towards Data Science’...
[ { "code": null, "e": 375, "s": 172, "text": "Quantitative traders often look for trading tools that can spot trends or reversals. Such tools should self-adapt to market conditions and try to describe the current situation in the most accurate way." }, { "code": null, "e": 461, "s": 3...
How to run java class file which is in different directory? - GeeksforGeeks
07 May, 2019 In this article, we will learn about how to use other project’s utilities, classes, and members. Before proceeding let’s learn about some keywords. classpath Classpath is the location from where JVM starts execution of a program. Similar to the classic dynamic loading behavior, when executing Java programs...
[ { "code": null, "e": 24100, "s": 24072, "text": "\n07 May, 2019" }, { "code": null, "e": 24248, "s": 24100, "text": "In this article, we will learn about how to use other project’s utilities, classes, and members. Before proceeding let’s learn about some keywords." }, { "...
What is the match() function in Python?
In Python, match() is a method of the module re Syntax of match() re.match(pattern, string): This method finds match if it occurs at start of the string. For example, calling match() on the string ‘TP Tutorials Point TP’ and looking for a pattern ‘TP’ will match. However, if we look for only Tutorials, the pattern wil...
[ { "code": null, "e": 1111, "s": 1062, "text": "In Python, match() is a method of the module re " }, { "code": null, "e": 1129, "s": 1111, "text": "Syntax of match()" }, { "code": null, "e": 1156, "s": 1129, "text": "re.match(pattern, string):" }, { "co...
C++ Program to Implement Parallel Array
A parallel array is a structure that contains multiple arrays. Each of these arrays are of the same size and the array elements are related to each other. All the elements in a parallel array represent a common entity. An example of parallel arrays is as follows − employee_name = { Harry, Sally, Mark, Frank, Judy } emp...
[ { "code": null, "e": 1281, "s": 1062, "text": "A parallel array is a structure that contains multiple arrays. Each of these arrays are of the same size and the array elements are related to each other. All the elements in a parallel array represent a common entity." }, { "code": null, "e...
HTML onclick Event Attribute - GeeksforGeeks
28 Jan, 2022 The onclick event attribute in HTML works when the user clicks on the button. When the mouse clicked on the element then the script runs. Syntax: <element onclick = "script"> Attribute Value: This attribute contains a single value script that works when the mouse clicked on the element. Supported Tags: Thi...
[ { "code": null, "e": 24616, "s": 24588, "text": "\n28 Jan, 2022" }, { "code": null, "e": 24754, "s": 24616, "text": "The onclick event attribute in HTML works when the user clicks on the button. When the mouse clicked on the element then the script runs." }, { "code": nul...
Arcesium Interview Experience 2021 - GeeksforGeeks
12 Oct, 2021 Arcesium started an FTE pool drive for some selected IITs and NITs in June 2021. All the eligible candidates were shortlisted for the online test. Eligibility criteria for online test : CGPA – 7.5 for CSE and 8 for ECE, ICE, and IPE.They also consider 10 and 12 standards marks for shortlisting. CGPA – 7.5 ...
[ { "code": null, "e": 26397, "s": 26369, "text": "\n12 Oct, 2021" }, { "code": null, "e": 26544, "s": 26397, "text": "Arcesium started an FTE pool drive for some selected IITs and NITs in June 2021. All the eligible candidates were shortlisted for the online test." }, { "c...
bokeh.plotting.figure.step() function in Python - GeeksforGeeks
15 Jun, 2020 Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with defaul...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n15 Jun, 2020" }, { "code": null, "e": 25981, "s": 25647, "text": "Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like ...
How to Solve Class Cast Exceptions in Java? - GeeksforGeeks
08 Jun, 2021 An unexcepted, unwanted event that disturbed the normal flow of a program is called Exception. Most of the time exceptions are caused by our program and these are recoverable. Example: If our program requirement is to read data from the remote file locating at the U.S.A. At runtime, if the remote file is n...
[ { "code": null, "e": 25347, "s": 25319, "text": "\n08 Jun, 2021" }, { "code": null, "e": 25863, "s": 25347, "text": "An unexcepted, unwanted event that disturbed the normal flow of a program is called Exception. Most of the time exceptions are caused by our program and these are ...
How to Calculate Weighted MAPE in Excel? - GeeksforGeeks
28 Jul, 2021 In statistics, we often use Forecasting Accuracy which denotes the closeness of a quantity to the actual value of that particular quantity. The actual value is also known as the true value. It basically denotes the degree of closeness or a verification process that is highly used by business professionals ...
[ { "code": null, "e": 25044, "s": 25016, "text": "\n28 Jul, 2021" }, { "code": null, "e": 25517, "s": 25044, "text": "In statistics, we often use Forecasting Accuracy which denotes the closeness of a quantity to the actual value of that particular quantity. The actual value is als...
How to replace a particular character in a MySQL column?
To replace a particular character, use REPLACE() and to update, use the UPDATE command. Let us first create a table − mysql> create table DemoTable1899 ( Code varchar(20) ); Query OK, 0 rows affected (0.00 sec) Insert some records in the table using insert command − mysql> insert into DemoTable1899 values('Joh...
[ { "code": null, "e": 1180, "s": 1062, "text": "To replace a particular character, use REPLACE() and to update, use the UPDATE command. Let us first create a table −" }, { "code": null, "e": 1282, "s": 1180, "text": "mysql> create table DemoTable1899\n (\n Code varchar(20)\n ...
VBA - InputBox
The InputBox function prompts the users to enter values. After entering the values, if the user clicks the OK button or presses ENTER on the keyboard, the InputBox function will return the text in the text box. If the user clicks the Cancel button, the function will return an empty string (""). InputBox(prompt[,title][...
[ { "code": null, "e": 2231, "s": 1935, "text": "The InputBox function prompts the users to enter values. After entering the values, if the user clicks the OK button or presses ENTER on the keyboard, the InputBox function will return the text in the text box. If the user clicks the Cancel button, the ...
VB.Net - Date & Time
Most of the softwares you write need implementing some form of date functions returning current date and time. Dates are so much part of everyday life that it becomes easy to work with them without thinking. VB.Net also provides powerful tools for date arithmetic that makes manipulating dates easy. The Date data type c...
[ { "code": null, "e": 2600, "s": 2300, "text": "Most of the softwares you write need implementing some form of date functions returning current date and time. Dates are so much part of everyday life that it becomes easy to work with them without thinking. VB.Net also provides powerful tools for date ...
Using Timedelta and Period to create DateTime based indexes in Pandas - GeeksforGeeks
05 Feb, 2019 Real life data often consists of date and time-based records. From weather data to measuring some other metrics in big organizations they often rely on associating the observed data with some timestamp for evaluating the performance over time. We have already discussed how to manipulate date and time in pa...
[ { "code": null, "e": 24559, "s": 24531, "text": "\n05 Feb, 2019" }, { "code": null, "e": 24803, "s": 24559, "text": "Real life data often consists of date and time-based records. From weather data to measuring some other metrics in big organizations they often rely on associating...
Data Science for Startups: Data Pipelines | by Ben Weber | Towards Data Science
Part three of my ongoing series about building a data science discipline at a startup. You can find links to all of the posts in the introduction, and a book based on this series on Amazon. Building data pipelines is a core component of data science at a startup. In order to build data products, you need to be able to ...
[ { "code": null, "e": 362, "s": 172, "text": "Part three of my ongoing series about building a data science discipline at a startup. You can find links to all of the posts in the introduction, and a book based on this series on Amazon." }, { "code": null, "e": 896, "s": 362, "text...
Conditional ternary operator ( ?: ) in C++
The conditional operator (? :) is a ternary operator (it takes three operands). The conditional operator works as follows − The first operand is implicitly converted to bool. It is evaluated and all side effects are completed before continuing. If the first operand evaluates to true (1), the second operand is evaluated...
[ { "code": null, "e": 1186, "s": 1062, "text": "The conditional operator (? :) is a ternary operator (it takes three operands). The conditional operator works as follows −" }, { "code": null, "e": 1307, "s": 1186, "text": "The first operand is implicitly converted to bool. It is e...
How to find mode(s) of a vector in R?
Just like mean and median there is no in-built function in R to find the mode. We can make use of the following user created function for this purpose > Modes <- function(x) { ux <- unique(x) tab <- tabulate(match(x, ux)) ux[tab == max(tab)] } > x<-c(3,2,3,4,3,2,1,2,3,45,6,7,6,4,3,32,4,5,6,4,4,3,4,5,4,4,3,6) >...
[ { "code": null, "e": 1141, "s": 1062, "text": "Just like mean and median there is no in-built function in R to find the mode." }, { "code": null, "e": 1213, "s": 1141, "text": "We can make use of the following user created function for this purpose" }, { "code": null, ...
Pointer Basics in C - GeeksQuiz
12 Nov, 2020 int *ptr; /* Note: the use of * here is not for dereferencing, it is for data type int */ int x; ptr = &x; /* ptr now points to x (or ptr is equal to address of x) */ *ptr = 0; /* set value ate ptr to 0 or set x to zero */ printf(" x = %d\n", x); /* prints x = 0 */ pri...
[ { "code": null, "e": 28855, "s": 28827, "text": "\n12 Nov, 2020" }, { "code": null, "e": 29539, "s": 28855, "text": " int *ptr; /* Note: the use of * here is not for dereferencing, \n it is for data type int */\n int x;\n\n ptr = &x; /* ptr now points to x (or...
Variations of LIS | DP-21 - GeeksforGeeks
03 Jun, 2021 We have discussed Dynamic Programming solution for Longest Increasing Subsequence problem in this post and a O(nLogn) solution in this post. Following are commonly asked variations of the standard LIS problem. 1. Building Bridges: Consider a 2-D map with a horizontal river passing through its center. Ther...
[ { "code": null, "e": 26609, "s": 26581, "text": "\n03 Jun, 2021" }, { "code": null, "e": 26820, "s": 26609, "text": "We have discussed Dynamic Programming solution for Longest Increasing Subsequence problem in this post and a O(nLogn) solution in this post. Following are commonly...
C# String.ToUpperInvariant Method
The String.ToUpperInvariant() method in C# is used to return a copy of this String object converted to uppercase using the casing rules of the invariant culture. The syntax is as follows - public string ToUpperInvariant (); Let us now see an example - Live Demo using System; using System.Text; public class Demo { p...
[ { "code": null, "e": 1224, "s": 1062, "text": "The String.ToUpperInvariant() method in C# is used to return a copy of this String object converted to uppercase using the casing rules of the invariant culture." }, { "code": null, "e": 1251, "s": 1224, "text": "The syntax is as fol...
Ordered Set and GNU C++ PBDS
In this tutorial, we will be discussing a program to understand ordered set and GNU C++ PBDS. Ordered set is a policy based structure other than those in the STL library. The ordered set keeps all the elements in a sorted order and doesn’t allow duplicate values. Live Demo #include <iostream> using namespace std; #inc...
[ { "code": null, "e": 1156, "s": 1062, "text": "In this tutorial, we will be discussing a program to understand ordered set and GNU C++ PBDS." }, { "code": null, "e": 1326, "s": 1156, "text": "Ordered set is a policy based structure other than those in the STL library. The ordered...
PyQtGraph - Setting Symbol Size of Line in Line Graph - GeeksforGeeks
23 Jan, 2022 In this article we will see how we can set symbol size of line in line graph of the PyQtGraph module. PyQtGraph is a graphics and user interface library for Python that provides functionality commonly required in designing and science applications. Its primary goals are to provide fast, interactive graphic...
[ { "code": null, "e": 24908, "s": 24880, "text": "\n23 Jan, 2022" }, { "code": null, "e": 25646, "s": 24908, "text": "In this article we will see how we can set symbol size of line in line graph of the PyQtGraph module. PyQtGraph is a graphics and user interface library for Python...
Awesome JupyterLab Extensions. A tour of some of the useful JupyterLab... | by Parul Pandey | Towards Data Science
Jupyter Lab is one of the most widely used IDEs in the data science community. They are the choice of tool for many data scientists when it comes to quick prototyping and exploratory analysis. A JupyterLab neatly bundles many functionalities together, enabling collaborative, extensible, and scalable data science. Howev...
[ { "code": null, "e": 986, "s": 171, "text": "Jupyter Lab is one of the most widely used IDEs in the data science community. They are the choice of tool for many data scientists when it comes to quick prototyping and exploratory analysis. A JupyterLab neatly bundles many functionalities together, ena...
Print all nodes that are at distance k from a leaf node - GeeksforGeeks
22 Mar, 2022 Given a Binary Tree and a positive integer k, print all nodes that are distance k from a leaf node. Here the meaning of distance is different from previous post. Here k distance from a leaf means k levels higher than a leaf node. For example if k is more than height of Binary Tree, then nothing should be p...
[ { "code": null, "e": 25292, "s": 25264, "text": "\n22 Mar, 2022" }, { "code": null, "e": 25694, "s": 25292, "text": "Given a Binary Tree and a positive integer k, print all nodes that are distance k from a leaf node. Here the meaning of distance is different from previous post. H...
EnumSet noneOf() Method in Java - GeeksforGeeks
02 Jul, 2018 The java.util.EnumSet.noneOf(Class elementType) method in Java is used to create a null set of the type elementType. Syntax: public static <E extends Enum<E>> EnumSet<E> noneOf(Class<E> elementType) Parameters: The method accepts one parameter elementType of element type and refers to the class object of t...
[ { "code": null, "e": 24152, "s": 24124, "text": "\n02 Jul, 2018" }, { "code": null, "e": 24269, "s": 24152, "text": "The java.util.EnumSet.noneOf(Class elementType) method in Java is used to create a null set of the type elementType." }, { "code": null, "e": 24277, ...
Creating conditional columns on Pandas with Numpy select() and where() methods | by B. Chen | Towards Data Science
Pandas is an amazing library that contains extensive built-in functions for manipulating data. Although the built-in functions are capable of performing efficient data analysis, incorporating methods from other library adds value to Pandas. In this article, we are going to take a look at how to create conditional colum...
[ { "code": null, "e": 413, "s": 172, "text": "Pandas is an amazing library that contains extensive built-in functions for manipulating data. Although the built-in functions are capable of performing efficient data analysis, incorporating methods from other library adds value to Pandas." }, { ...
Servlets - Interview Questions
Dear readers, these Servlets Interview Questions have been designed especially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Servlets Programming. As per my experience, good interviewers hardly planned to ask any particular question during your interview, ...
[ { "code": null, "e": 2642, "s": 2185, "text": "Dear readers, these Servlets Interview Questions have been designed especially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Servlets Programming. As per my experience, good interviewers ha...
Spring Boot - Service Components
Service Components are the class file which contains @Service annotation. These class files are used to write business logic in a different layer, separated from @RestController class file. The logic for creating a service component class file is shown here − public interface ProductService { } The class that implement...
[ { "code": null, "e": 3285, "s": 3025, "text": "Service Components are the class file which contains @Service annotation. These class files are used to write business logic in a different layer, separated from @RestController class file. The logic for creating a service component class file is shown ...
CSS | translateX() Function - GeeksforGeeks
07 Aug, 2019 The translateX() function is an inbuilt function which is used to reposition the element along the horizontal axis. Syntax: translateX( t ) Parameters: This function accepts single parameter t which holds the length of translation corresponding to x-axis. Below examples illustrate the translateX() function...
[ { "code": null, "e": 25376, "s": 25348, "text": "\n07 Aug, 2019" }, { "code": null, "e": 25492, "s": 25376, "text": "The translateX() function is an inbuilt function which is used to reposition the element along the horizontal axis." }, { "code": null, "e": 25500, ...
Image Classification with Tensorflow 2.0 | by Rich Folsom | Towards Data Science
In this article, we will address one of the most common AI problems. Here is the scenario: you’re surfing the web at a bar enjoying a beer and some chicken wings when you start to wonder “could I write an image classifier using Tensorflow 2.0 and Transfer Learning?” This article will show an end to end process for acco...
[ { "code": null, "e": 770, "s": 172, "text": "In this article, we will address one of the most common AI problems. Here is the scenario: you’re surfing the web at a bar enjoying a beer and some chicken wings when you start to wonder “could I write an image classifier using Tensorflow 2.0 and Transfer...
Scrapy - Create a Project
To scrap the data from web pages, first you need to create the Scrapy project where you will be storing the code. To create a new directory, run the following command − scrapy startproject first_scrapy The above code will create a directory with name first_scrapy and it will contain the following structure − first_scr...
[ { "code": null, "e": 2406, "s": 2237, "text": "To scrap the data from web pages, first you need to create the Scrapy project where you will be storing the code. To create a new directory, run the following command −" }, { "code": null, "e": 2440, "s": 2406, "text": "scrapy startp...
Java Program to find Product of unique prime factors of a number
To find product of unique prime factors of a number, the Java code is as follows − Live Demo public class Demo { public static long prime_factors(int num){ long my_prod = 1; for (int i = 2; i <= num; i++){ if (num % i == 0){ boolean is_prime = true; for (int j = 2; j <= ...
[ { "code": null, "e": 1145, "s": 1062, "text": "To find product of unique prime factors of a number, the Java code is as follows −" }, { "code": null, "e": 1156, "s": 1145, "text": " Live Demo" }, { "code": null, "e": 1827, "s": 1156, "text": "public class Demo...
How can I put two buttons next to each other in Tkinter?
Tkinter generally provides three general ways to define the geometry of the widgets. They are − Place, Pack, and Grid Management. If we use the Pack geometry manager, then place the two buttons in the frame using side property. It places the buttons horizontally stacked in the window in (Left, Right, Top and Bottom) di...
[ { "code": null, "e": 1507, "s": 1062, "text": "Tkinter generally provides three general ways to define the geometry of the widgets. They are − Place, Pack, and Grid Management. If we use the Pack geometry manager, then place the two buttons in the frame using side property. It places the buttons hor...
Improving the Performance of Machine Learning Model using Bagging | by Satyam Kumar | Towards Data Science
The performance of a machine learning model tells us how the model performs for unseen data-points. There are various strategies and hacks to improve the performance of an ML model, some of them are: Fine tuning hyperparameter of the ML model Using ensemble learning. Ensemble Learning is a technique to combine multiple...
[ { "code": null, "e": 371, "s": 171, "text": "The performance of a machine learning model tells us how the model performs for unseen data-points. There are various strategies and hacks to improve the performance of an ML model, some of them are:" }, { "code": null, "e": 414, "s": 371,...
C++ Array Library - size() Function
The C++ function std::array::size() is used to get the number of elements present in the array. Following is the declaration for std::array::size() function form std::array header. constexpr size_type size(); noexcept None Returns the number of elements present in the array. This value is always same as the second para...
[ { "code": null, "e": 2699, "s": 2603, "text": "The C++ function std::array::size() is used to get the number of elements present in the array." }, { "code": null, "e": 2784, "s": 2699, "text": "Following is the declaration for std::array::size() function form std::array header." ...
How to use Sass Variables with CSS3 Media Queries ? - GeeksforGeeks
24 Jun, 2021 SASS Variables: SASS Variables are very simple to understand and use. SASS Variables assign a value to a name that begins with $ sign, and then just refer to that name instead of the value. Despite this, they are one of the most useful tools SASS provides. SASS Variables provide the following features: R...
[ { "code": null, "e": 25011, "s": 24983, "text": "\n24 Jun, 2021" }, { "code": null, "e": 25317, "s": 25011, "text": "SASS Variables: SASS Variables are very simple to understand and use. SASS Variables assign a value to a name that begins with $ sign, and then just refer to that ...
Reverse squared sum | Practice | GeeksforGeeks
Reena had been given an array arr[] of positive integers of size N.Help her to find the value A. A = arr[n]*arr[n] - arr[n-1]*arr[n-1] + arr[n-2]*arr[n-2] - ......... upto index 1 Input: 1. The first line of the input contains a single integer T denoting the number of test cases. The description of T test cases follo...
[ { "code": null, "e": 323, "s": 226, "text": "Reena had been given an array arr[] of positive integers of size N.Help her to find the value A." }, { "code": null, "e": 406, "s": 323, "text": "A = arr[n]*arr[n] - arr[n-1]*arr[n-1] + arr[n-2]*arr[n-2] - ......... upto index 1" }, ...
Adders and Subtractors in Digital Logic - GeeksforGeeks
25 Nov, 2019 Block Diagram of Combinational Logic Circuit: Points to Remember on Combinational Logic Circuit: Output depends upon the combination of inputs.Output is pure function of present inputs only i.e., Previous State inputs won’t have any effect on the output. Also, It doesn’t use memory.In other words,OUTPUT=f(...
[ { "code": null, "e": 23579, "s": 23551, "text": "\n25 Nov, 2019" }, { "code": null, "e": 23625, "s": 23579, "text": "Block Diagram of Combinational Logic Circuit:" }, { "code": null, "e": 23676, "s": 23625, "text": "Points to Remember on Combinational Logic Ci...
Bias, Variance and How they are related to Underfitting, Overfitting | by Rahul Banerjee | Towards Data Science
Assume you have a classification model, training data and testing data x_train , y_train // This is the training datax_test , y_test // This is the testing datay_predicted // the values predicted by the model given an input The error rate is the average error of value predicted by the model and the correct value. Let’s...
[ { "code": null, "e": 243, "s": 172, "text": "Assume you have a classification model, training data and testing data" }, { "code": null, "e": 396, "s": 243, "text": "x_train , y_train // This is the training datax_test , y_test // This is the testing datay_predicted // the values ...
How to validate Password is strong or not in ReactJS?
07 Jun, 2022 Password must be strong so that hackers can not hack them easily. The following example shows how to check the password strength of the user input password in ReactJS. Syntax: isStrongPassword(str [, options]) Parameters: This function accepts two parameters as mentioned above and described below: str: I...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jun, 2022" }, { "code": null, "e": 221, "s": 52, "text": "Password must be strong so that hackers can not hack them easily. The following example shows how to check the password strength of the user input password in ReactJS. " },...
ReactJS - CLI Commands
Let us learn the basic command available in Create React App command line application in this chapter. Create React App provides multiple ways to create React application. Using npx script. npx create-react-app <react-app-name> npx create-react-app hello-react-app Using npm package manager. npm init react-app <react-a...
[ { "code": null, "e": 2270, "s": 2167, "text": "Let us learn the basic command available in Create React App command line application in this chapter." }, { "code": null, "e": 2339, "s": 2270, "text": "Create React App provides multiple ways to create React application." }, { ...
Ruby | Regular Expressions
17 Sep, 2019 A regular expression is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings. Ruby regular expressions i.e. Ruby regex for short, helps us to find particular patterns inside a string. Two uses of ruby regex are Validation and Parsing. Ruby regex can be used...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Sep, 2019" }, { "code": null, "e": 453, "s": 28, "text": "A regular expression is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings. Ruby regular expressions i.e. Ruby regex for sh...
Upcasting in Java with Examples
06 May, 2020 Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in Java by which one class is allowed to inherit the features (fields and methods) of another class. There are two ways in which the objects can be initialized while inheriting the properties of the parent and child...
[ { "code": null, "e": 53, "s": 25, "text": "\n06 May, 2020" }, { "code": null, "e": 246, "s": 53, "text": "Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in Java by which one class is allowed to inherit the features (fields and methods)...
numpy.random.get_state() in Python
26 Nov, 2021 With the help of numpy.random.get_state() method, we can get the internal state of a generator and return the tuple by using this method. Syntax : numpy.random.get_state() Return : Return the tuple having {tuple(str, ndarray of 624 units, int, int, float), dict} Example #1 : In this example we can see that...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Nov, 2021" }, { "code": null, "e": 166, "s": 28, "text": "With the help of numpy.random.get_state() method, we can get the internal state of a generator and return the tuple by using this method." }, { "code": null, "e": ...
Angular 10 formatDate() Method
24 May, 2021 In this article, we are going to see what is formatDate in Angular 10 and how to use it. formatDate is used to format a date according to locale rules. Syntax: formatDate(value, locale, format, timezone) Parameters: value: The number to format. locale: A locale code for the locale format. format: The date-...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 May, 2021" }, { "code": null, "e": 180, "s": 28, "text": "In this article, we are going to see what is formatDate in Angular 10 and how to use it. formatDate is used to format a date according to locale rules." }, { "code": n...
Nth Even Fibonacci Number
07 Jan, 2022 Given a value n, find the n’th even Fibonacci Number.Examples : Input : n = 3 Output : 34 Input : n = 4 Output : 144 Input : n = 7 Output : 10946 The Fibonacci numbers are the numbers in the following integer sequence. 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, .... where any number in sequence ...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jan, 2022" }, { "code": null, "e": 118, "s": 52, "text": "Given a value n, find the n’th even Fibonacci Number.Examples : " }, { "code": null, "e": 206, "s": 118, "text": "Input : n = 3\nOutput : 34\n\nInput ...
Python | os.mknod() method
08 Sep, 2021 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.mknod() method in Python is used to create a file system node i.e a file, device speci...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Sep, 2021" }, { "code": null, "e": 384, "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...
What is the difference between HTTP_HOST and SERVER_NAME in PHP?
06 Sep, 2021 HTTP_HOST: It is fetched from HTTP request header obtained from the client request Example: Website: https://www.geeksforgeeks.org HTTP_HOST: www.geeksforgeeks.org HTTP_SERVER: It is fetched from the server name based on the host configuration. Example: Website: https://www.geeksforgeeks.org HTTP_SERVER: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Sep, 2021" }, { "code": null, "e": 111, "s": 28, "text": "HTTP_HOST: It is fetched from HTTP request header obtained from the client request" }, { "code": null, "e": 120, "s": 111, "text": "Example:" }, { ...
Ruby | Array class join() function
31 May, 2021 join() is an Array class method which returns the string which is created by converting each element of the array to a string, separated by the given separator. Syntax: Array.join()Parameter: Array separatorReturn: join value of the array elements Example #1: Ruby # Ruby code for join() method # declarin...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 May, 2021" }, { "code": null, "e": 190, "s": 28, "text": "join() is an Array class method which returns the string which is created by converting each element of the array to a string, separated by the given separator. " }, { ...
How to Find Out File Types in Linux
23 Aug, 2021 In Linux, everything is considered as a file. In UNIX, seven standard file types are regular, directory, symbolic link, FIFO special, block special, character special, and socket. In Linux/UNIX, we have to deal with different file types to manage them efficiently. In Linux/UNIX, Files are mainly categorize...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Aug, 2021" }, { "code": null, "e": 317, "s": 52, "text": "In Linux, everything is considered as a file. In UNIX, seven standard file types are regular, directory, symbolic link, FIFO special, block special, character special, and so...
Splay Tree | Set 2 (Insert)
11 Aug, 2021 It is recommended to refer following post as prerequisite of this post.Splay Tree | Set 1 (Search)As discussed in the previous post, Splay tree is a self-balancing data structure where the last accessed key is always at root. The insert operation is similar to Binary Search Tree insert with additional step...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Aug, 2021" }, { "code": null, "e": 1239, "s": 54, "text": "It is recommended to refer following post as prerequisite of this post.Splay Tree | Set 1 (Search)As discussed in the previous post, Splay tree is a self-balancing data stru...
React-Bootstrap Container, Row and Col Component
18 May, 2021 React-Bootstrap is a front-end framework that was designed keeping react in mind. We can use the following approach in ReactJS to use the react-bootstrap Container, Row, Col Component. Container Component provides a way to center and horizontally pad the contents of our application. It is used when the use...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 May, 2021" }, { "code": null, "e": 213, "s": 28, "text": "React-Bootstrap is a front-end framework that was designed keeping react in mind. We can use the following approach in ReactJS to use the react-bootstrap Container, Row, Col C...
Student record management system using linked list
01 Dec, 2021 Prerequisites: Linked list Problem: Create a student Record Management system that can perform the following operations: Insert Student record Delete student record Show student record Search student record The student record should contain the following items Name of Student Roll Number of Student Course ...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Dec, 2021" }, { "code": null, "e": 79, "s": 52, "text": "Prerequisites: Linked list" }, { "code": null, "e": 173, "s": 79, "text": "Problem: Create a student Record Management system that can perform the followin...
How to add Site Header, Site Title, Index Title in a Django Project?
08 Jun, 2022 Automatic admin interface one of the most powerful parts of Django. Metadata is read from your models to provide a quick, model-centric interface where trusted users can manage content on your site. The admin’s recommended use is limited to an organization’s internal management tool. It’s not intended for ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Jun, 2022" }, { "code": null, "e": 374, "s": 28, "text": "Automatic admin interface one of the most powerful parts of Django. Metadata is read from your models to provide a quick, model-centric interface where trusted users can manag...
HTML5 - Modernizr
Modernizr is a small JavaScript Library that detects the availability of native implementations for next-generation web technologies There are several new features which are being introduced through HTML5 and CSS3 but same time many browsers do not support these news features. Modernizr provides an easy way to detect a...
[ { "code": null, "e": 2875, "s": 2742, "text": "Modernizr is a small JavaScript Library that detects the availability of native implementations for next-generation web technologies" }, { "code": null, "e": 3020, "s": 2875, "text": "There are several new features which are being in...
Different ways to create an Object in C#
18 Aug, 2021 A fully object-oriented language means everything is represented as an object but can’t differentiate between primitive types and objects of classes but C# is not purely object oriented since it supports many procedural programming concepts such as pointers to an extent. An object is a basic unit of Object...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Aug, 2021" }, { "code": null, "e": 872, "s": 52, "text": "A fully object-oriented language means everything is represented as an object but can’t differentiate between primitive types and objects of classes but C# is not purely obje...
Priority Queue using Doubly Linked List
23 May, 2021 Given Nodes with their priority, implement a priority queue using doubly linked list. Prerequisite : Priority Queue push(): This function is used to insert a new data into the queue. pop(): This function removes the element with the lowest priority value form the queue. peek() / top(): This function is us...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 May, 2021" }, { "code": null, "e": 139, "s": 52, "text": "Given Nodes with their priority, implement a priority queue using doubly linked list. " }, { "code": null, "e": 169, "s": 139, "text": "Prerequisite : Pri...
Create Balanced Binary Tree using its Leaf Nodes without using extra space
05 Apr, 2022 Prerequisites: Binary Tree to Doubly Linked ListGiven a Binary Tree, the task is to create a Balanced Binary Tree from all the leaf nodes of the given Binary Tree. Examples: Input: Output: 7 8 5 9 10 Explanation: Required balanced binary tree will be: Input: Output: 13 21 29 7 15 Explanation: Required b...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Apr, 2022" }, { "code": null, "e": 192, "s": 28, "text": "Prerequisites: Binary Tree to Doubly Linked ListGiven a Binary Tree, the task is to create a Balanced Binary Tree from all the leaf nodes of the given Binary Tree." }, { ...
How to Hide Legend in ggplot2 in R ?
18 Jul, 2021 In this article we will discuss how can we hide a legend in R programming language, using ggplot2. Note: Here, a line plot is used for illustration the same can be applied to any other plot. Let us first draw a regular plot, with a legend, so that the difference is apparent. For this, firstly, import the r...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jul, 2021" }, { "code": null, "e": 127, "s": 28, "text": "In this article we will discuss how can we hide a legend in R programming language, using ggplot2." }, { "code": null, "e": 219, "s": 127, "text": "Note: H...
Different ways of sorting Dictionary by Keys and Reverse sorting by keys
01 Oct, 2020 Prerequisite: Dictionaries in Python A dictionary is a collection which is unordered, changeable and indexed. In Python, dictionaries are written with curly brackets, and they have keys and values. We can access the values of the dictionary using keys. In this article, we will discuss 10 different ways of ...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 Oct, 2020" }, { "code": null, "e": 91, "s": 54, "text": "Prerequisite: Dictionaries in Python" }, { "code": null, "e": 433, "s": 91, "text": "A dictionary is a collection which is unordered, changeable and indexe...
Remove infinite values from a given Pandas DataFrame
26 Jul, 2020 Let’s discuss how to Remove the infinite values from the Pandas dataframe. First let’s make a dataframe: Example: Python3 # Import Required Librariesimport pandas as pdimport numpy as np # Create a dictionary for the dataframedict = {'Name': ['Sumit Tyagi', 'Sukritin', 'Akriti Goel', 'San...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Jul, 2020" }, { "code": null, "e": 134, "s": 28, "text": "Let’s discuss how to Remove the infinite values from the Pandas dataframe. First let’s make a dataframe:" }, { "code": null, "e": 143, "s": 134, "text": "...
HSQLDB - Joins
Whenever there is a requirement to retrieve data from multiple tables using a single query, you can use JOINS from RDBMS. You can use multiple tables in your single SQL query. The act of joining in HSQLDB refers to smashing two or more tables into a single table. Consider the following Customers and Orders tables. Cust...
[ { "code": null, "e": 2246, "s": 1982, "text": "Whenever there is a requirement to retrieve data from multiple tables using a single query, you can use JOINS from RDBMS. You can use multiple tables in your single SQL query. The act of joining in HSQLDB refers to smashing two or more tables into a sin...
How to Add Text in the RichTextBox in C#? - GeeksforGeeks
17 Jul, 2019 In C#, RichTextBox control is a textbox which gives you rich text editing controls and advanced formatting features also includes a loading rich text format (RTF) files. Or in other words, RichTextBox controls allows you to display or edit flow content, including paragraphs, images, tables, etc. In RichTex...
[ { "code": null, "e": 24289, "s": 24261, "text": "\n17 Jul, 2019" }, { "code": null, "e": 24756, "s": 24289, "text": "In C#, RichTextBox control is a textbox which gives you rich text editing controls and advanced formatting features also includes a loading rich text format (RTF) ...
Tryit Editor v3.7
HTML Input attributes Tryit: The multiple attribute
[ { "code": null, "e": 32, "s": 10, "text": "HTML Input attributes" } ]
How to handle jQuery AJAX success event?
To handle jQuery AJAX success event, use the ajaxSuccess() method. The ajaxSuccess( callback ) method attaches a function to be executed whenever an AJAX request completes successfully. This is an Ajax Event. Here is the description of all the parameters used by this method − callback − The function to execute. The eve...
[ { "code": null, "e": 1271, "s": 1062, "text": "To handle jQuery AJAX success event, use the ajaxSuccess() method. The ajaxSuccess( callback ) method attaches a function to be executed whenever an AJAX request completes successfully. This is an Ajax Event." }, { "code": null, "e": 1339, ...
Introduction to GitHub Actions. For data scientists | by Déborah Mesquita | Towards Data Science
GitHub Actions can be a little confusing if you’re new to DevOps and the CI/CD world, so in this article, we’re going to explore some features and see what we can do using the tool. From the point of view of CI/CD, the main goal of GitHub Actions and Workflows is to test our software every time something changes. This ...
[ { "code": null, "e": 354, "s": 172, "text": "GitHub Actions can be a little confusing if you’re new to DevOps and the CI/CD world, so in this article, we’re going to explore some features and see what we can do using the tool." }, { "code": null, "e": 563, "s": 354, "text": "From...
Java Examples - Search in a String
How to search a word inside a string ? This example shows how we can search a word within a String object using indexOf() method which returns a position index of a word within the string if found. Otherwise it returns -1. public class SearchStringEmp{ public static void main(String[] args) { String strOrig =...
[ { "code": null, "e": 2107, "s": 2068, "text": "How to search a word inside a string ?" }, { "code": null, "e": 2292, "s": 2107, "text": "This example shows how we can search a word within a String object using indexOf() method which returns a position index of a word within the ...
Angular 4 - Overview
There are three major releases of Angular. The first version that was released is Angular1, which is also called AngularJS. Angular1 was followed by Angular2, which came in with a lot of changes when compared to Angular1. The structure of Angular is based on the components/services architecture. AngularJS was based on ...
[ { "code": null, "e": 2214, "s": 1992, "text": "There are three major releases of Angular. The first version that was released is Angular1, which is also called AngularJS. Angular1 was followed by Angular2, which came in with a lot of changes when compared to Angular1." }, { "code": null, ...
Building your own object detector — PyTorch vs TensorFlow and how to even get started? | by Maximilian Beckers | Towards Data Science
Having experienced some of the difficulties and headaches of implementing AI systems for object detection, I wanted to share some of the knowledge I gained on how to get started. The first step is always the hardest which is why this very practical approach is designed to ease people into the world of TensorFlow’s as w...
[ { "code": null, "e": 538, "s": 172, "text": "Having experienced some of the difficulties and headaches of implementing AI systems for object detection, I wanted to share some of the knowledge I gained on how to get started. The first step is always the hardest which is why this very practical approa...
How to get file extension in Python? - GeeksforGeeks
16 Nov, 2020 In Python, we can extract the file extension using either of the two different approaches discussed below – Method 1: Using Python os module splitext() function This function splits the file path string into file name and file extension into a pair of root and extension such that when both are added then w...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n16 Nov, 2020" }, { "code": null, "e": 24009, "s": 23901, "text": "In Python, we can extract the file extension using either of the two different approaches discussed below –" }, { "code": null, "e": 24062, "s": 24...
ML | Credit Card Fraud Detection
20 Jan, 2022 The challenge is to recognize fraudulent credit card transactions so that the customers of credit card companies are not charged for items that they did not purchase. Main challenges involved in credit card fraud detection are: Enormous Data is processed every day and the model build must be fast enough to...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Jan, 2022" }, { "code": null, "e": 219, "s": 52, "text": "The challenge is to recognize fraudulent credit card transactions so that the customers of credit card companies are not charged for items that they did not purchase." }, ...
Program to print last 10 lines
16 Apr, 2019 Given some text lines in one string, each line is separated by ‘\n’ character. Print the last ten lines. If number of lines is less than 10, then print all lines. Source: Microsoft Interview | Set 10 Following are the steps1) Find the last occurrence of DELIM or ‘\n’2) Initialize target position as last oc...
[ { "code": null, "e": 54, "s": 26, "text": "\n16 Apr, 2019" }, { "code": null, "e": 217, "s": 54, "text": "Given some text lines in one string, each line is separated by ‘\\n’ character. Print the last ten lines. If number of lines is less than 10, then print all lines." }, { ...
How to make an element “flash” in jQuery ?
14 May, 2020 In this article, we will create flashing elements using jQuery. There are two approaches that are discussed below. We will use the CDN link to include jQuery content. The CDN link of jQuery must be added to the HTML document. https://code.jquery.com/ We will use HTML5 and CSS3 to create the structure of ou...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 May, 2020" }, { "code": null, "e": 169, "s": 54, "text": "In this article, we will create flashing elements using jQuery. There are two approaches that are discussed below." }, { "code": null, "e": 280, "s": 169, ...
How to connect ODBC Database with PHP?
03 Feb, 2021 The Microsoft Open Database Connectivity (ODBC) is a C application programming language interface. So the applications can access data from different database management systems. The designers of ODBC aimed to make it independent of database systems and operating systems. In this article, we are using the...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Feb, 2021" }, { "code": null, "e": 415, "s": 54, "text": "The Microsoft Open Database Connectivity (ODBC) is a C application programming language interface. So the applications can access data from different database management syst...
Object.MemberwiseClone Method in C# with Examples
23 Mar, 2022 Object.MemberwiseClone Method is used to create a shallow copy or make clone of the current Object. Shallow copy is a bit-wise copy of an object. In this case, a new object is created and that object has an exact copy of the existing object. Basically, this method copies the non-static fields of the curren...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Mar, 2022" }, { "code": null, "e": 363, "s": 28, "text": "Object.MemberwiseClone Method is used to create a shallow copy or make clone of the current Object. Shallow copy is a bit-wise copy of an object. In this case, a new object is...
HTML <code> Tag
17 Mar, 2022 The <code> tag in HTML is used to define the piece of computer code. During the creation of web pages sometimes there is a need to display computer programming code. It could be done by any basic heading tag of HTML but HTML provides a separated tag which is <code>. The code tag is a specific type of text...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Mar, 2022" }, { "code": null, "e": 322, "s": 54, "text": "The <code> tag in HTML is used to define the piece of computer code. During the creation of web pages sometimes there is a need to display computer programming code. It could...
Nth term of a Custom Fibonacci series
10 Mar, 2022 Given three integers A, B and N. A Custom Fibonacci series is defined as F(x) = F(x – 1) + F(x + 1) where F(1) = A and F(2) = B. Now the task is to find the Nth term of this series.Examples: Input: A = 10, B = 17, N = 3 Output: 7 10, 17, 7, -10, -17, ...Input: A = 50, B = 12, N = 10 Output: -50 Appro...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Mar, 2022" }, { "code": null, "e": 221, "s": 28, "text": "Given three integers A, B and N. A Custom Fibonacci series is defined as F(x) = F(x – 1) + F(x + 1) where F(1) = A and F(2) = B. Now the task is to find the Nth term of this s...
How to Install and Set Up SAS University Edition
01 Apr, 2019 Statistical Analysis System (SAS) , one of the most powerful data analytical software in the market which has recently released a university edition of its software. Despite being proprietary software, the developers have decided to do so, to help the students learn the basics of SAS programming. This edit...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Apr, 2019" }, { "code": null, "e": 671, "s": 28, "text": "Statistical Analysis System (SAS) , one of the most powerful data analytical software in the market which has recently released a university edition of its software. Despite b...
How to open a website in iOS's web browser from my application?
In this post we will learn how to open website in iOS browser. We will open Facebook in iOS browser. Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “OpenBrowser” Step 2 − Open Main.storyboard and add a button as shown below. I have given the button title as “Open Facebook” Step 3 − Attach o...
[ { "code": null, "e": 1125, "s": 1062, "text": "In this post we will learn how to open website in iOS browser." }, { "code": null, "e": 1163, "s": 1125, "text": "We will open Facebook in iOS browser." }, { "code": null, "e": 1253, "s": 1163, "text": "Step 1 − O...
Difference between Maskable and Non Maskable Interrupt - GeeksforGeeks
14 May, 2020 An interrupt is an event caused by a component other than the CPU. It indicates the CPU of an external event that requires immediate attention. Interrupts occur asynchronously. Maskable and non-maskable interrupts are two types of interrupts. 1. Maskable Interrupt :An Interrupt that can be disabled or igno...
[ { "code": null, "e": 25861, "s": 25833, "text": "\n14 May, 2020" }, { "code": null, "e": 26104, "s": 25861, "text": "An interrupt is an event caused by a component other than the CPU. It indicates the CPU of an external event that requires immediate attention. Interrupts occur as...
Count subsequences which contains both the maximum and minimum array element - GeeksforGeeks
07 May, 2021 Given an array arr[] consisting of N integers, the task is to find the number of subsequences which contain the maximum as well as the minimum element present in the given array. Example : Input: arr[] = {1, 2, 3, 4}Output: 4Explanation: There are 4 subsequence {1, 4}, {1, 2, 4}, {1, 3, 4}, {1, 2, 3, 4} ...
[ { "code": null, "e": 26043, "s": 26015, "text": "\n07 May, 2021" }, { "code": null, "e": 26222, "s": 26043, "text": "Given an array arr[] consisting of N integers, the task is to find the number of subsequences which contain the maximum as well as the minimum element present in t...
Groovy - Generics
Generics enable types (classes and interfaces) to be parameters when defining classes, interfaces and methods. Much like the more familiar formal parameters used in method declarations, type parameters provide a way for you to re-use the same code with different inputs. The difference is that the inputs to formal param...
[ { "code": null, "e": 2623, "s": 2238, "text": "Generics enable types (classes and interfaces) to be parameters when defining classes, interfaces and methods. Much like the more familiar formal parameters used in method declarations, type parameters provide a way for you to re-use the same code with ...
Bootstrap Panels
A panel in bootstrap is a bordered box with some padding around its content: Panels are created with the .panel class, and content inside the panel has a .panel-body class: The .panel-default class is used to style the color of the panel. See the last example on this page for more contextual classes. The .panel-headi...
[ { "code": null, "e": 77, "s": 0, "text": "A panel in bootstrap is a bordered box with some padding around its content:" }, { "code": null, "e": 174, "s": 77, "text": "Panels are created with the .panel class, and content inside the panel has a \n.panel-body class:" }, { "...
Find most significant set bit of a number in C++
Here we will see if a number is given, then how to find the value of Most Significant Bit value, that is set. The value is power of 2. So if the number is 10, MSB value will be 8. We have to find the position of MSB, then find the value of the number with a set-bit at kth position. #include<iostream> #include<cmath> us...
[ { "code": null, "e": 1242, "s": 1062, "text": "Here we will see if a number is given, then how to find the value of Most Significant Bit value, that is set. The value is power of 2. So if the number is 10, MSB value will be 8." }, { "code": null, "e": 1345, "s": 1242, "text": "We...
Python program for most frequent word in Strings List
When it is required to find the most frequent word in a list of strings, the list is iterated over and the ‘max’ method is used to get the count of the highest string. Below is a demonstration of the same from collections import defaultdict my_list = ["python is best for coders", "python is fun", "python is easy to lea...
[ { "code": null, "e": 1230, "s": 1062, "text": "When it is required to find the most frequent word in a list of strings, the list is iterated over and the ‘max’ method is used to get the count of the highest string." }, { "code": null, "e": 1267, "s": 1230, "text": "Below is a dem...
Different types of Object States in Hibernate - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws Object states in Hibernate play a vital role...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
How to Design Professional Venn Diagrams in Python | by Chaitanya Baweja | Towards Data Science
Last week I was designing some reading material for my Python Class. The lecture topic was Python Sets. For illustrating some functions, I wanted to plot Venn Diagrams. Yes, the overlapping circle charts that you often find in data presentations. My search for open-source tools for designing professional looking Venn D...
[ { "code": null, "e": 276, "s": 172, "text": "Last week I was designing some reading material for my Python Class. The lecture topic was Python Sets." }, { "code": null, "e": 419, "s": 276, "text": "For illustrating some functions, I wanted to plot Venn Diagrams. Yes, the overlapp...
Dealing with Rows and Columns in Pandas DataFrame - GeeksforGeeks
13 Oct, 2021 A Data frame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns. We can perform basic operations on rows/columns like selecting, deleting, adding, and renaming. In this article, we are using nba.csv file. In order to deal with columns, we perform basic opera...
[ { "code": null, "e": 41553, "s": 41525, "text": "\n13 Oct, 2021" }, { "code": null, "e": 41807, "s": 41553, "text": "A Data frame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns. We can perform basic operations on rows/columns l...
Rotation | Practice | GeeksforGeeks
Given an ascending sorted rotated array Arr of distinct integers of size N. The array is right rotated K times. Find the value of K. Example 1: Input: N = 5 Arr[] = {5, 1, 2, 3, 4} Output: 1 Explanation: The given array is 5 1 2 3 4. The original sorted array is 1 2 3 4 5. We can see that the array was rotated 1 tim...
[ { "code": null, "e": 371, "s": 238, "text": "Given an ascending sorted rotated array Arr of distinct integers of size N. The array is right rotated K times. Find the value of K." }, { "code": null, "e": 382, "s": 371, "text": "Example 1:" }, { "code": null, "e": 576, ...
Assigning Values to Variables in Python
Python variables do not need explicit declaration to reserve memory space. The declaration happens automatically when you assign a value to a variable. The equal sign (=) is used to assign values to variables. The operand to the left of the = operator is the name of the variable and the operand to the right of the = op...
[ { "code": null, "e": 1272, "s": 1062, "text": "Python variables do not need explicit declaration to reserve memory space. The declaration happens automatically when you assign a value to a variable. The equal sign (=) is used to assign values to variables." }, { "code": null, "e": 1440, ...
PostgreSQL - CURRENT_TIME Function - GeeksforGeeks
09 Dec, 2021 The PostgreSQL CURRENT_TIME function returns the current time and the currentthe time zone. Syntax: CURRENT_TIME(precision) Let’s analyze the above syntax: The precision argument is used to set the precision of the returned TIMESTAMP type value in fractional seconds precision. By default the function retur...
[ { "code": null, "e": 23747, "s": 23719, "text": "\n09 Dec, 2021" }, { "code": null, "e": 23839, "s": 23747, "text": "The PostgreSQL CURRENT_TIME function returns the current time and the currentthe time zone." }, { "code": null, "e": 23871, "s": 23839, "text":...