# Blog

## Printing Fibonacci series in Scala – Normal Recursion

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Scala program to print Fibonacci series using simple Recursion. Fibonacci Series: Finding n’th element: f(n) = f(n-1) + f(n-2)

## How to filter positive numbers from a List of integers in Scala

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a simple program to filter positive numbers from a List of integers in Scala. We can achieve this by applying filter method on the input list or using Read more

## Merge Sort implementation in Scala

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Scala program to implement merge sort. Merge Sort is an efficient sorting algorithm. It uses Divide and Conquer algorithm technique. Let’s look at the sample program:

## How to reverse a List elements without using utility method in Scala

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a simple program to reverse a List of elements without using utility method(reverse) in Scala. Let’s look at the program:

## Scala program to find Factorial of a given number using Tail Recursion

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Scala program to find Factorial of a given number using Tail Recursion. Tail Recursion: If a function calls itself as the last action in the definition, it Read more

## Scala program to find Factorial of a given number

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Scala program to find Factorial of a given number using Linear Recursion. Let’s look at the program:

Output: Currently this program uses Linear Recursion for finding Read more

## How to add multiple elements to a Set object in Scala

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Scala program to add all Array elements to a Set object. We can use array.toSet() method or Set.apply() method to add all the elements of an Array Read more

## How to remove duplicates from an Array in Scala

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Scala program to remove duplicates for an Array. We can achieve this by converting it to a Set object and then converting the set to array again. Read more

## Sorting a List of custom objects using sortWith function in Scala

Hey there! Welcome to ClearUrDoubt.com. In the below post, we have seen how to sort List objects using Ordered trait. Sorting a List of custom objects using Ordered trait in Scala Today we will look at a Scala program to sort Read more

## List and ListBuffer in Scala

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a program to demonstrate List and ListBuffer objects in Scala.  List is an immutable collection object whereas ListBuffer is a mutable collection object. List provides a way to add Read more