Programming Languages Articles

Page 3 of 18

Java Program to Increment All Elements of an Array by One

Ashin Vincent
Ashin Vincent
Updated on 27-Feb-2025 259 Views

Arrays are one of the most fundamental data structures in programming, and they are used to store elements of the same data type in contiguous memory locations. If you are not familiar with the array concept, do check out this article on Arrays. In this article, we will learn how to increment every element of an array by one and print the incremented array. For example, If the input array is [3, 7, 10] The output should be [4, 8, 11] We can solve this problem using different approaches − Using for-loop Using java streams Using arrays.setAll() ...

Read More

How to find hyperfactorial in Java?

Ashin Vincent
Ashin Vincent
Updated on 27-Feb-2025 250 Views

What is hyperfactorial? The hyperfactorial of a number is the product of numbers from 1 to the given number where each number is raised to the power of itself. For example, the hyperfactorial of 4 will be − = 1^1 * 2^2 * 3^3 * 4^4 = 1*4*27*256 = 27648 So we can say that the formula for finding hyperfactorial is − H(n)=1^1 * 2^2 *3^3 * 4^4 * 5^5 * . . . . . . . . . * n^n In this article, we will learn different approaches to find the hyperfactorial of a number, ...

Read More

How to pad a String in Java?

Ashin Vincent
Ashin Vincent
Updated on 27-Feb-2025 573 Views

What is string padding? String padding means adding extra spaces or characters to the string to reach a specified length. This extra character or space can be added before the string, after the string, or on both sides of the string. This is useful for formatting output or aligning text in documents in order to improve the overall appearance of the content. For example, while displaying a table, padding helps to align the content properly so that every column in the lineup is correct. Approaches to pad a string in Java There are multiple approaches to pad a string in ...

Read More

Top 50 Array Coding Problems for Programming Interviews

Yash Shri
Yash Shri
Updated on 06-Feb-2025 4K+ Views

An array is a linear data structure that stores the data on contiguous memory locations. In this article, we will discuss the most common and popular problems of arrays in Data Structures and Algorithms. We are covering basic to advanced-level problems which will help you to learn the whole concept in a structured manner. Here is the list of problems that have been asked in programming interviews − Easy Array Problems Following are the easy array problems − ...

Read More

Most Asked Problems on Stack Data Structure Asked in SDE Interviews

Yash Shri
Yash Shri
Updated on 06-Feb-2025 803 Views

A Stack is the linear data structure used to store the elements that are inserted and removed by following the principle of Last In First Out (LIFO). The article "Most Asked Problems on Stack Data Structure Asked in SDE Interviews" covers all the problems topic-wise and includes the industry level and important questions from the interview perspective. Here are the important stack problems of Data Structure and Algorithms − Easy Stack Problems Parenthesis ...

Read More

Top 50 Problems on Linked Lists Data Structure Asked in Coding Interviews

Yash Shri
Yash Shri
Updated on 06-Feb-2025 1K+ Views

Linked Lists is the linear data structure that stores the data in the node. In this article, we will discuss the most common and popular problems of linked lists in Data Structures and Algorithms. We are covering basic to advanced-level problems which will help you to learn the whole concept in a structured manner. The following are the most important and best problems on linked lists − Easy LL Problems Print the Middle of a Given Linked ...

Read More

Top 50 Problems on Matrix/Grid Data Structure Asked in Programming Interviews

Yash Shri
Yash Shri
Updated on 06-Feb-2025 752 Views

The matrix or grid data structure is the mix of two or more linear structures. In this sheet, you will find the important and industry-level problems. It will help you clear the programming interviews. This coding problem is organized from a basic level to an advanced level. Following is the range of problems on a matrix in Data Structure and Algorithms − Easy Matrix Problems Check if a Given Matrix is a Magic Square ...

Read More

Most Asked String Coding Problems for Programming Interviews

Yash Shri
Yash Shri
Updated on 31-Jan-2025 950 Views

String is the collection of the characters used to represent the text. It is immutable in many languages. This article gives you deep knowledge and exceptional learning about the Strings with good examples. We cover common and trending coding problems on String in Data Structures and Algorithms from the basic to the advanced level. Here is the list of problems that have been asked in programming interviews − Basic Problems Valid Palindrome with Special Characters String Compression (Run-length Encoding) Reverse Words in Sentence Maintaining Spacing ...

Read More

Most Asked Problems in Data Structures and Algorithms

Yash Shri
Yash Shri
Updated on 21-Jan-2025 734 Views

This sheet provides a wide range of questions on data structures and algorithms. It includes dynamic and trending topics that match industry-level requirements. Firstly, you have to learn any programming language like C, C++, Java, etc. and after getting a better understanding of the concepts and language specifics, practice these questions for the mastery of DSA. Here is a list of topics featuring the most frequently asked problems in Data Structures and Algorithms: Array String Stack Queue Linked List ...

Read More

Difference between Compiler and Assembler

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 15-Jan-2025 9K+ Views

Both compilers and assemblers are the language processors used to convert software codes written in high-level language and assembly language into machine language codes. Compiler and assemblers are the types of system software. These are required because a computer cannot process a code written in high-level programming language like C, C++, Java, etc. and assembly language. Therefore, it is necessary to convert an HLL or assembly code into machine code for execution. In this article, we will highlight all the key differences between compilers and assemblers. Let's start with some basics of compiler and assembler so that it will ...

Read More
Showing 21–30 of 179 articles
« Prev 1 2 3 4 5 18 Next »
Advertisements