Find LCM of Two Numbers Using Recursion in Golang

Aman Sharma
Updated on 11-Jan-2023 17:02:33

758 Views

In this tutorial, we are going to find the Least common multiple of two numbers in Golang using recursion. To find the LCM recursively we are going to use the relation of LCM with the Greatest common divisible i.e GCD of both the numbers. LCM stands for least common multiple is the smallest number divisible by two numbers. For example, Suppose the two numbers are 10 and 4. The smallest number that is divisible by both numbers evenly is 20. Finding LCM Using the Relation between LCM and GCD In this example, we are going to find the LCM using ... Read More

Check If Character Is in the Alphabet in Golang

Aman Sharma
Updated on 11-Jan-2023 16:54:04

1K+ Views

In this tutorial, we will learn how to check whether the character is an alphabet or not. This tutorial includes two ways to achieve this − First, using the built-in function isLetter() present in the fmt library will reduce the line of codes. Another way is to use the concept of ASCII values as every character has a unique ASCII value using which we can find out whether the current character is an alphabet or not. The ranges of uppercase and lowercase alphabets are as follows − uppercase alphabets – 65 to 90 lowercase alphabets – 97 to 122 If ... Read More

Difference Between ZIP and RAR

Kiran Kumar Panigrahi
Updated on 11-Jan-2023 16:07:31

3K+ Views

There are various types of file formats available in computer file systems. ZIP and RAR are types of archive file formats that are used to store different types of files and folders in a single container. However, ZIP and RAR file formats are quite different from each other. The most fundamental difference between ZIP and RAR is that ZIP is a standard archive file format that can be enabled in any operating system, whereas RAR is an archive file format that requires a third-party tool named WinRAR for its processing. Read this tutorial to learn more about the ZIP and ... Read More

Difference Between SSD and HDD

Kiran Kumar Panigrahi
Updated on 11-Jan-2023 15:55:41

2K+ Views

In computer systems, different types of memory devices are used to store data permanently. Both SSD and HDD are such storage devices. SSD and HDD are the most commonly used types of secondary memories. HDD is a traditional storage device, while SSD is a modern storage device. SSD and HDD are quite different from each other. The most fundamental difference between SSD and HDD is that SSD (Solid State Drive) is a storage device that stores data in integrated circuits, whereas HDD (Hard Disc Drive) is a device that stores data magnetically. There are several other differences between SSD and ... Read More

Difference Between Product and Process in Software Development

Kiran Kumar Panigrahi
Updated on 11-Jan-2023 15:47:45

12K+ Views

Product and Process are the two crucial terms in software development. The elementary difference between the two is that a "process" is a sequence of steps to be followed to create an appropriate product, while a "product" is the final outcome of the software development cycle. Read this tutorial to learn more about Product and Process in the context of software development and how they are different from each other. What is a Product? The product is the final outcome of the software development process. It is the software application or system that is being built or maintained. A product ... Read More

Difference Between Primary and Secondary Memory

Kiran Kumar Panigrahi
Updated on 11-Jan-2023 15:40:36

19K+ Views

Memory is a part of any computer system that is used to store data and instructions. Computer memory is broadly classified into three categories − Primary Memory, Secondary Memory, and Cache Memory. Primary memory is usually in the form of random access memory (RAM) and is used to store data that the CPU needs to access quickly. Secondary memory is usually in the form of hard drives, solid-state drives, or removable storage devices (such as USB drives) and is used to store data that the CPU does not need to access immediately. Read this tutorial to find out more about ... Read More

Difference Between Network OS and Distributed OS

Kiran Kumar Panigrahi
Updated on 11-Jan-2023 15:38:09

15K+ Views

Both Network OS and Distributed OS work on multiple systems/nodes. The main difference between a network operating system and a distributed operating system is the way they handle resources and communication between devices. A network operating system is primarily concerned with managing resources and communication within a single network, while a distributed operating system is designed to manage resources and communication across multiple networks. Read this tutorial to find out more about Network OS and Distributed OS and how they are different from each other. What is Network OS? A Network OS is a type of operating system that is ... Read More

Difference Between Memory and Storage

Kiran Kumar Panigrahi
Updated on 11-Jan-2023 15:32:25

2K+ Views

Memory and Storage are two terms that are often used interchangeably, but they refer to different things. Memory is used to store data that is being actively used by the CPU, while Storage is used to store long-term data that needs to be accessed on a regular basis. Read this tutorial to learn more about Memory and Storage and how they are different from each other. What is Memory? Memory allows storing data on a short term basis. A memory normally is made up using registers. Each register has a location called memory location or storage location. Each memory location ... Read More

Difference Between JPEG and SVG

Kiran Kumar Panigrahi
Updated on 11-Jan-2023 15:20:39

5K+ Views

JPEG and SVG are types of image formats. JPEG is a raster image format that uses a lossy compression algorithm to compress an image, whereas SVG is a highly scalable, text-based image format that uses mathematical structures to represent an image. JPEG images are used in photography applications, while SVG is used when high-resolution images are required. JPEG is a good choice for photographs and other images with lots of colors, while SVG is a better choice for simple images and graphics that need to be resized, such as logos and icons. Read this article to find out more about ... Read More

Difference Between JPEG and GIF

Kiran Kumar Panigrahi
Updated on 11-Jan-2023 15:18:53

6K+ Views

JPEG and GIF are types of image formats. JPEG uses lossy compression algorithm where the image may lose some of its data, whereas GIF uses lossless compression algorithm where there is no data loss. GIF images support animation and transparency. Read this tutorial to find out more about JPEG and GIF image formats and how they are different from each other. What is JPEG? JPEG stands for Joint Photographic Experts Group. JPEG is a raster image format. It uses the ".jpg" or ".jpeg" file extension. It uses a type of lossy compression to reduce file size, which means that some ... Read More

Advertisements