Server Side Programming Articles

Page 1684 of 2109

B*-Trees implementation in C++

Raunak Jain
Raunak Jain
Updated on 16-Jan-2023 2K+ Views

B*-Trees: An Optimized Data Structure for Fast Data Retrieval in C++ A B*-tree is a self-balancing tree data structure that is optimized for fast data retrieval. It is a variant of the B-tree, which is a tree data structure that is designed to keep its data sorted and balanced. A B-tree is characterized by the fact that it has a high degree of order, meaning that its nodes are kept sorted in a specific manner. A B*-tree is similar to a B-tree, but it is optimized for even better performance. This is achieved through the use of a number of ...

Read More

How to use delete Operator in TypeScript?

Shubham Vora
Shubham Vora
Updated on 16-Jan-2023 22K+ Views

Have you ever tried to delete the object properties in TypeScript? Then you definitely came across the ‘delete’ operator. In TypeScript, the delete operator only allows deleting the undefined, optional, or any object properties. Also, it returns the boolean values according to whether it deletes the property or not. Below, we will understand the different use cases of the delete operator in TypeScript via different examples. Using the Delete Operator to Delete the Object Properties The main use of the delete operator is to delete the optional properties of an object. We can use the delete keyword as an operator ...

Read More

How to round the numbers in TypeScript?

Shubham Vora
Shubham Vora
Updated on 16-Jan-2023 46K+ Views

In this tutorial, we will learn to round numbers in TypeScript. In TypeScript, the number data types can contain number values with decimal parts, and sometimes, we require to remove decimal part by rounding the number value. For example, if you want to show the progress of something in the application, and you are getting the decimal value of the progress, but you want to show the integer values only, then it is required to round the numbers. Here, we will learn 3 to 4 different methods to round the numbers. Using The Math.round() Method to Round a Number In ...

Read More

What is the use of this keyword in TypeScript?

Shubham Vora
Shubham Vora
Updated on 16-Jan-2023 8K+ Views

The “this” keyword is one of the most used keywords in TypeScript. For beginner TypeScript programmers, it’s complex to understand how this keyword works, but they will learn by the end of this tutorial. In this tutorial, we will learn to use this keyword in TypeScript. Syntax Users can follow the syntax below to use this keyword generally. Users can observe how we can access the variable or invoke the method using this keyword. this.var_name; this.method_name(); console.log(this.var_name); In TypeScript, this keyword refers to the global object if it’s not used inside any class or method. Even if we use ...

Read More

How to encode and decode URl in typescript?

Shubham Vora
Shubham Vora
Updated on 16-Jan-2023 18K+ Views

The URI stands for the uniform resource identifier. The URL is one of the most common URIS. We use the URL (uniform resource locator) to find the web page located on the internet. The web pages also contain resources. In simple terms, URI is a string containing some characters, and we can identify the physical and logical resources on the web using the URI. The URL is a subset of the URI, which stores the document address on the web. Reasons to Encode URI The first question that arises in your mind after reading this tutorial's title is why we ...

Read More

For-In Statement with Object in TypeScript

Shubham Vora
Shubham Vora
Updated on 16-Jan-2023 6K+ Views

In TypeScript, an object contains the properties and their values. We can use the for-in loop statement to iterate through every property of the objects and get its value. This tutorial will teach us to iterate through the object key-value pairs via different examples. Also, we will learn what kind of error we can get while iterating through the object properties and how to fix it quickly. Syntax Users can follow the syntax below to iterate through the iterable object properties using the for-in loop statement. For (var_name in object){ Statements or block to execute; } ...

Read More

Correlation Between Categorical and Continuous Variables

Parth Shukla
Parth Shukla
Updated on 16-Jan-2023 27K+ Views

Introduction In machine learning, the data and the knowledge about its behavior is an essential things that one should have while working with any kind of data. In machine learning, it is impossible to have the same data with the same parameters and behavior, so it is essential to conduct some pre-training stages meaning that it is necessary to have some knowledge of the data before training the model. The correlations are something every data scientist or data analyst wants to know about the data as it reveals essential information about the data, which could help one perform feature engineering ...

Read More

How to check whether a number is Positive or Negative in Golang?

Aman Sharma
Aman Sharma
Updated on 11-Jan-2023 2K+ Views

In this tutorial, we will learn how to check whether the number is positive or negative. This tutorial includes two ways to achieve this by using the built-in function Signbit() present in the math library. Another way is to use the relation operators using which we can compare a number with zero and predict whether the number is positive or not. Method 1: Using Signbit() function In this example, we are going to use the built-in function Signbit() present in the math library to check whether the number is positive or negative. Syntax Signbit() is a function in math library ...

Read More

How to create a Function with Arguments and a return value in Golang?

Aman Sharma
Aman Sharma
Updated on 11-Jan-2023 905 Views

This tutorial will teach us how to create a function with arguments and a return value. This tutorial involves a gist about the function, and syntax for the function with an argument and a return type in Golang, then last we will see two different examples of a function with arguments and with a return type. In one example we will return the sum of two numbers and in the other one, we will return the area of the circle. Functions in the Programming language. Let us first see what function is. The function is a subset of a program ...

Read More

How to create a Function without Argument but return a value in Golang?

Aman Sharma
Aman Sharma
Updated on 11-Jan-2023 2K+ Views

This tutorial will teach us how to create a function without arguments and with a return value. This tutorial involves a gist about the function, and syntax for the function without an argument and with a return type in Golang, then last we will see two different examples of a function without arguments and with a return type. In both examples, we are going to create two functions which are returning a string whenever called. Function without argument and with a return type. SyntaxNow we will see the syntax and explanation for the function without an argument and with a ...

Read More
Showing 16831–16840 of 21,090 articles
Advertisements