Quantcast
Channel: Tech Tutorials
Browsing latest articles
Browse All 938 View Live
↧

Check String Empty or Not in Python

If you need to check if a String is empty or not in Python then you have the following options.1. Using len() function to check if String is emptyYou can check length of String in Python using len()...

View Article


Image may be NSFW.
Clik here to view.

String Slicing in Python

String in Python is stored as an array so array indexing can be used to access characters of a String, for example str[0] returns first character of the String str. You may have a scenario where you...

View Article


Image may be NSFW.
Clik here to view.

Java Program - Breadth First Search (BFS) Traversal For Graph

In this post we'll see how to write a Java program for breadth-first search (BFS) traversal of a graph. Graph traversalTo traverse a graph, where you try to reach all the connected vertices from the...

View Article

What is In-place Algorithm

An in-place algorithm is an algorithm that doesn’t use any auxiliary space to transform the input. Though theoretically that would mean if you have an array of length n then you should use that n space...

View Article

Insertion Sort Program in Java

In this post we’ll see how to write Insertion sort program in Java. Insertion sort is good for sorting a small set of elements. Out of the three simpler sorting algorithms insertion sort, selection...

View Article


Image may be NSFW.
Clik here to view.

Detect Cycle in an Undirected Graph Using DFS - Java Program

In this post we'll see how to detect a cycle in an undirected graph using depth-first search traversal.For example, in the following graph 0-2-3-4-0 is a cycle. Refer post Java Program - Depth First...

View Article

Image may be NSFW.
Clik here to view.

static Import in Java With Examples

In order to access any static member (static field or method) of a class, it is necessary to qualify references with the class they have come from. ClassName.static_method() With static import feature...

View Article

Image may be NSFW.
Clik here to view.

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 Article


Python 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 Article


Varargs (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

Image may be NSFW.
Clik here to view.

@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 Article


Image may be NSFW.
Clik here to view.

Java 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 Article

Image may be NSFW.
Clik here to view.

Signal 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 Article


input() 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 Article

Image may be NSFW.
Clik here to view.

output() 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 Article


Longest 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 Article

Coin 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 Article

Mean, 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 Article

Image may be NSFW.
Clik here to view.

Simple 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 Article


Image may be NSFW.
Clik here to view.

R-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 Article


Image may be NSFW.
Clik here to view.

Multiple 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 Article

Mean 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 Article

Image may be NSFW.
Clik here to view.

Polynomial 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

Browsing latest articles
Browse All 938 View Live