Latest :

Author Archives: Writer - MK

Java Program : Maximum Edge of A Triangle | Java Programs

Java program to calcuate the maximium edge of triangle, Our problem statement here is, to find the longest side or edge of a triangle. For this, our required input will be, the lengths of three sides or edges of a triangle. Our expected output is, one of these three edges that is the longest of all. Initially, to read the ...

Read More »

Java Program to Find Hamming Distance Two Strings | Java Programs

Java program to calculate hamming distance between two strings & two Integers. The following program has been written in multiple ways along with sample output. If you looking out for any clarficiations regarding hamming distance, leave a comment here. For solving any problem, we first need to understand the problem statement properly and then, look for any constraints if mentioned. ...

Read More »

Java: Add a Consecutive Numbers Program | Java Program

Addition of Consecutive Numbers in Java Program – This specific article talks about the code to find Find consecutive numbers in an array java using Java language. The problem here is to find the sum of a set of consecutive numbers or more specifically the sum of all the numbers from 0 to a user-specified integer. Our constraint here is ...

Read More »

Java Program To Concatenate Two Strings | Java Programs

Java Program For Concatenating Two Strings – In this specific article, we will cover the Java Program for concatenating or combining two user-defined strings in Java language along with suitable examples and sample output.   The problem here is to concatenate two strings input by the user. The input here is two strings that are input by the user. The ...

Read More »

Java Program To Print Ordinal Numbers | Java Porgrams

How to print ordinal numbers in Java – This specific article deals with the code for representing a user input number in its ordinal form using Java language. Sample output along with suitable examples will be provided for a proper understanding of the java program for ordinal numbers converter. The problem here is to represent a user-defined number in its ...

Read More »

Java Code Multiply by Length Of Elements In Array | Java Programs

Java Code Multiply by Length Of Elements In Array, Create a function to multiply all of the values in an array by the amount of values in the given array. For this, we require the length of the array or the total number of elements (n) along with the value of each element in the array (a). To gather this ...

Read More »

Java : Find the Largest Number in an Array | Java Programs

Java code to find the largest number in an array – the following program has been written in multiple ways along with sample outputs as well. Two methods using scanner & general program. Our problem statement is, to find the largest element in the given integer array. For this, we require the total number of elements in the array along ...

Read More »

C Program To Find Volume of Sphere | C Programs

C program to calculate the volume of a sphere – In this particular article, we will brief in on the several ways to calculate the volume of a sphere in C programming. Check out the blog for the suitable examples and sample programs. The compiler has been added as well so that you can check the results yourself. The methods used ...

Read More »

C Program To Find Area Of Semi Circle | C Programs

C Program to find the Area of a Semicircle – In this particular article, we will detail in on the ways to find the area of a semicircle in C programming. The ways in which the area of a semicircle is calculated in this piece are as follows: Using Standard Method Using Function Using Pointers Using Macros As we all ...

Read More »

Java : Hurdle Race & Jump Solution Hackerrank | Java Programs

Hurdle race & hurdle jump java program Hackerrank solution, Create a function that takes an array of hurdle heights and a jumper’s jump height, and determine whether or not the hurdler can clear all the hurdles. A hurdler can clear a hurdle if their jump height is greater than or equal to the hurdle height. Examples: hurdleJump([1, 2, 3, 4, ...

Read More »