Shubham Vora has Published 957 Articles

Java program for longest subsequence of a number having same left and right rotation

Shubham Vora

Shubham Vora

Updated on 23-Jan-2025 23:07:33

230 Views

In this tutorial, we will learn how to find the maximum length of the subsequence having the same left and right rotations in Java. We find the maximum length of such subsequence. Finding the longest subsequence with identical or alternating digits We will solve the problem based on a particular ... Read More

How can I round a number to 1 decimal place in JavaScript?

Shubham Vora

Shubham Vora

Updated on 26-Dec-2024 15:22:17

32K+ Views

In this tutorial, we will learn to round a number to a one decimal place in JavaScript. There are various needs to round the float numbers and show particular digits after the decimal point. In our case, we need to show only the digit after the decimal point. However, we ... Read More

JavaScript Program to Check whether a Given Number is Power of 2

Shubham Vora

Shubham Vora

Updated on 03-Dec-2024 14:37:26

3K+ Views

To check whether a given number is power of 2 in JavaScript, we can check if the number is generated using multiplying 2's only. We will be discussing 5 different approaches to check whether a given number is a power of 2. In this article we are having two numbers, ... Read More

How do I Create Dynamic Variable Names Inside a JavaScript Loop?

Shubham Vora

Shubham Vora

Updated on 29-Nov-2024 11:25:08

16K+ Views

To create dynamic variable names inside a JavaScript loop, means it is not hardcoded already, and we can create it according to our needs from some other string values. For achieving this, we will be understanding four different approaches. In this article our task is to create dynamic variable names ... Read More

How can I Execute JavaScript at the Command Prompt?

Shubham Vora

Shubham Vora

Updated on 27-Nov-2024 10:22:08

13K+ Views

To execute JavaScript at the command prompt, can be achieved through various methods depending on the environment. We will be discussing three different approach which can be used to execute JavaScript at the command prompt with stepwise explanation of steps. In this article, our task is to execute JavaScript at ... Read More

How do I Check if an Array Includes an Object in JavaScript?

Shubham Vora

Shubham Vora

Updated on 25-Nov-2024 16:37:14

5K+ Views

To check if an array includes an object in JavaScript, is useful while managing a collection of data to verify if any specific object is present. We will be discussing four different approaches with examples to check if an array includes an object in JavaScript. In this article, we ... Read More

How do you Convert a String to a Character Array in JavaScript?

Shubham Vora

Shubham Vora

Updated on 21-Nov-2024 18:24:57

7K+ Views

To convert a string to character array in JavaScript, is useful when you want to iterate over each charater of the string. It can be used for character manipulation like changing specific character of string. We will be understanding five different approaches for converting a string to character array. In ... Read More

How to Compare Two Arrays in JavaScript?

Shubham Vora

Shubham Vora

Updated on 19-Nov-2024 15:05:13

595 Views

To compare two arrays in Javascript, there are various approaches we can use. We will be understanding various approaches in this article. When comparing two arrays, we cannot use “==” or “===” operator as it compares the addresses of the memory block to which both the arrays are pointing resulting ... Read More

Java program for minimum move to end operations to make all strings equal

Shubham Vora

Shubham Vora

Updated on 14-Nov-2024 17:39:40

197 Views

In this article, we will learn how to solve a problem where we are given an array of strings, and we need to make all strings equal by rotating them. This can be done by performing left rotations on the strings. We need to count the minimum number of operations ... Read More

Edge Computing: Definition, Characteristics, and Use Cases

Shubham Vora

Shubham Vora

Updated on 04-Oct-2024 11:20:24

3K+ Views

Traditional cloud computing networks are significantly brought together, with data being collected on the fringe edges and sent back to the essential servers for taking care. This plan grew out of the way that most of the devices arranged near the edge came up short on computational power and limited ... Read More

1 2 3 4 5 ... 96 Next
Advertisements