Swap Two variable using Bit Manipulation

Swapping two numbers using bit manipulation involves a technique that makes use of XOR (^) operator. The XOR operator has a unique property where if you XOR any number with itself, the result is 0, and if you XOR any number with 0, the result is the number itself. This property allows swapping without a … Read more

Linear Search In Kotlin

Linear search, also known as sequential search, is a simple search algorithm that searches an array or list of elements sequentially from the beginning to the end. It compares each element of the array or list with the target element until a match is found or until all the elements have been searched. In linear … Read more

Pattern Printing in Kotlin.

What is pattern ? Pattern printing is a common exercise in programming and is useful for building logic and understanding loops. Pattern printing involves printing out various shapes or figures made up of symbols such as asterisks or spaces. There are several different types of pattern printing, including right triangles, pyramids, diamonds, and many more. … Read more