Akhil Sharma has Published 671 Articles

Golang program to take in a slice of integers and compute their sum using concurrency

Akhil Sharma

Akhil Sharma

Updated on 04-Aug-2023 16:44:49

539 Views

In this Go language article, we will write programs to take in a slice of integers and compute their sum using concurrency. Concurrency helps multiple tasks or operations to be performed simultaneously. It helps make efficient use of system resources. It is achieved using Go routines which are light-weight threads ... Read More

Golang program to sort a slice of integers using merge sort with concurrency

Akhil Sharma

Akhil Sharma

Updated on 04-Aug-2023 16:43:48

116 Views

In this article, we will write Go language programs to sort a slice of integers using merge sort with concurrency. It is a process which makes the parts of a program run independently and parallelly enhancing the efficiency of the program. Go routines and channels are used to execute concurrency. ... Read More

Golang program to compute the factorial of a number using concurrency

Akhil Sharma

Akhil Sharma

Updated on 04-Aug-2023 16:38:00

185 Views

In this article, we will write Go language programs to compute the factorial of a number using concurrency. It is a task of implementing multiple operations simultaneously and can be implemented using Go routines and channels. Go routines are the lightweight threads and channels help in non-conflicting communications between the ... Read More

Golang program to compute all prime numbers up to a given number using concurrency

Akhil Sharma

Akhil Sharma

Updated on 04-Aug-2023 16:22:28

159 Views

In this Go language article, we will write programs to compute all prime numbers up to a given number using concurrent execution. Concurrent execution is the process of executing multiple tasks simultaneously. In Golang, go routines and channels are used to create concurrent programs. Go routines are lightweight threads which ... Read More

Golang program to return the nth number in fibonacci sequence using dynamic programming

Akhil Sharma

Akhil Sharma

Updated on 04-Aug-2023 14:57:49

757 Views

In this article, we will write Go language programs to return the nth number in Fibonacci sequence using dynamic programming. It is a technique used to solve complex problems by breaking them into smaller sub problems. Memoization is the process of storing the output of the function calls in some data ... Read More

Golang program to calculate the symmetric difference between two slices

Akhil Sharma

Akhil Sharma

Updated on 24-Jul-2023 12:21:40

210 Views

Slice is similar to an array, the only difference is that an array is a fixed sequence of elements whereas slice the array elements are dynamic. This makes the slice more efficient and faster in various applications. In the slice, the elements are passed by reference instead of values. In ... Read More

Golang Program to Creates Two Channels, One For Even Numbers And Another For Odd Numbers

Akhil Sharma

Akhil Sharma

Updated on 20-Jul-2023 15:43:16

655 Views

In this article, we'll make two channels in Go: one for even numbers and another for odd numbers. We are going to send the even numbers to the even channel and the odd numbers to the odd channel.Here we are going to use two different methods: using creating even and ... Read More

Golang Program to Creates a Buffered Channel of Size 5 And Sends 10 Integers to The Channel Using a Loop

Akhil Sharma

Akhil Sharma

Updated on 20-Jul-2023 15:41:39

63 Views

In this article, we focus on making a buffered channel of size 5 and sending 10 integers to the channel using a loop. The program illustrates how to make and utilize a buffered channel to send large values.Here we are going to use two different methods: by Sending integers to ... Read More

Golang Program to Get Details About the Car Using Its Number Plate and Engine Number

Akhil Sharma

Akhil Sharma

Updated on 20-Jul-2023 15:40:19

45 Views

In this article, the Golang program is designed to recover details of  a car utilizing its number plate and engine number. It allows users to input the car's data and bring important details such as owner name, registration details, and contact data. By giving  inputs, clients can rapidly get the ... Read More

Golang Program to Get Details About the Car Owner

Akhil Sharma

Akhil Sharma

Updated on 20-Jul-2023 15:39:26

27 Views

In this article, we point to get details about the owner of a car. The program will ask the user to input the car enlistment number, and it'll recover the related information, such as the owner's title, address, and contact data. This program can be valuable in scenarios where car ... Read More

Previous 1 ... 3 4 5 6 7 ... 68 Next
Advertisements