Detect Cycle in an Undirected Graph Using BFS - Java Program
In the post Detect Cycle in an Undirected Graph Using DFS - Java Program we saw how to detect a cycle in an undirected graph using DFS, in this tutorial we'll see how to write a Java program to detect...
View ArticlePython String isnumeric() Method
The isnumeric() method in Python String class is used to check if all the characters in the string are numeric characters or not.isnumeric() method returns true if all characters in the string are...
View ArticleVarargs (Variable-length Arguments) in Java
varargs in Java, short for variable-length arguments is a feature that allows the method to accept variable number of arguments (zero or more). With varargs it has become simple to create methods that...
View Article@for in Angular With Examples
In this article we'll see how to use @for block in Angular with examples. @for in AngularThe @for block in Angular is a built-in control flow syntax used to repeatedly loop and render content in a...
View Article@if in Angular With Examples
In this article we'll see how to use @if template syntax in Angular with examples. @if in AngularThe @if built-in control flow block was introduced in Angular 17, which allows you to conditionally...
View Article@switch in Angular With Examples
Angular 17 added new control flow statements and loops like @for block, @if block and @switch block. In this post we'll see how to use @switch block in Angular with examples.@switch block in AngularIf...
View ArticleJava Program - Minimum Spanning Tree - Prim's Algorithm
In this post we'll see how to find a minimum spanning tree for a given weighted, undirected, and connected graph of V vertices and E edges using Prim's algorithm. Minimum spanning treeA minimum...
View ArticleSignal in Angular With Examples
In this tutorial we'll see what is signal in Angular and how it is a move towards reactive state management by Angular framework.Signal in AngularAngular Signals were officially released in Angular 17...
View Articleinput() Function in Angular With Examples
In this tutorial we'll see what is input() function in Angular and how to use it for facilitating parent-child communication. input() in AngularAngular input() function was released in version 17 as a...
View Articleoutput() Function in Angular With Examples
In this tutorial we'll see what is output() function in Angular and how to use it for facilitating child to parent communication. output() in AngularAngular output() function was released in version 17...
View ArticleLongest Increasing Subsequence Java Program
In this article we'll see how to write a Java program to find the length of the longest increasing subsequence in the given array.For example-1. Input: nums = [10, 9, 2, 5, 3, 7, 101, 18]Output:...
View ArticleCoin Change - Min Number of Coins Needed - Java Program
In this article we'll see how to write a Java program for the coin change problem, which states that "Given an array of coins storing coins of different denominations and an integer sum representing an...
View ArticleMean, Median and Mode With Python Examples
This post explains Mean, Median and Mode which are measures of central tendency and help to summarize the data. Here measure of central tendency is a value which identifies the middle position with in...
View ArticleSimple Linear Regression With Example
Regression analysis is one of the most used ways for predictions. With in the regression analysis, linear regression is considered the starting point of the machine learning. A linear regression is a...
View ArticleR-squared - Coefficient of Determination
This post tries to explain one of the metrics used for regression models which is R2, known as R-squared or coefficient of determination. What is R-squaredR-squared is a statistical measure, measuring...
View ArticleMultiple Linear Regression With Example
In the post Simple Linear Regression With Example we saw how to create a Simple linear regression model using the scikit-learn library in Python. In this post we'll see how to create a multiple linear...
View ArticleMean Squared Error (MSE) With Python Examples
Mean Squared Error (MSE) is one of the most widely used metrics for evaluating the performance of regression models. It evaluates the prediction accuracy by measuring the average squared difference...
View ArticlePolynomial Regression With Example
In this post we'll see how to use polynomial regression. With simple linear regression or multiple linear regression, a straight-line (linear) relationship between predictors and target is assumed but...
View Article