Scala Program to Check if n/2 Pairs are Possible from an Array of n Numbers Where the Sum of Two Numbers is Odd

Problem Statement Given an array of n integers, check if n/2 pairs are possible using the elemen…

Scala Program to Remove Duplicate Elements from a List

Let us learn how to remove duplicate elements from a list in Scala using recursion. To implement th…

Scala Program to Reverse Words in the String and Capitalize the First Word

Problem Statement In this article, we will learn how to reverse words in a sentence and then cap…

Scala Program to Find GCD of Two Numbers

GCD stands for Greatest Common Divisor. The GCD of two numbers is the largest common number that di…

Scala Program to Create a Square of the Maximum Side, Given two Planks of Wood with Size as Integer Numbers

Problem Statement Create a square of the maximum possible side from two planks of wood, where th…

Scala Program to Display Fibonacci Series

In this article, I’ll walk you through what a Fibonacci series is and how to write a Scala pr…

Scala Program to Check Palindrome

In this article, we are going to learn about the term palindrome and how we can check if input data…

Scala Program to Check a Leap Year

According to Nasa Science, the earth requires approximately 365.242375 days to orbit around the sun…

Scala Program to Find the Largest Among Three Numbers

In this article, we shall learn how to compare three numbers entered by a user, identify the larges…

Scala Program to Check Whether an Alphabet is Vowel or Consonant

In the previous blog, we helped you write a Scala program to check whether a number is even or odd.…

Scala Program to Check Whether a Number is Even or Odd

We all have been very much familiar with even and odd numbers since childhood. Wouldn’t it be…

Scala Program to Swap Two Numbers

Swapping in computer programing is a memory management technique. It is an act of exchanging values…