Akhil Sharma has Published 671 Articles

Golang program to implement radix sort using bucket sort as a subroutine

Akhil Sharma

Akhil Sharma

Updated on 06-Jul-2023 12:09:31

65 Views

A subroutine is a part of a program which performs a specific task and can be called repeatedly based on the purpose and use. When a subroutine is called, the program shifts to that routine and executes the instructions inside that routine.Radix sort is an algorithm that sorts elements from ... Read More

Golang program to implement radix sort using counting sort as a subroutine

Akhil Sharma

Akhil Sharma

Updated on 06-Jul-2023 12:07:11

103 Views

Radix sort is an algorithm that sorts elements from their digits. It has a linear time complexity and is used for sorting large amounts of data. It uses counting sort to calculate the frequencies of digits. Counting Sort is an algorithm that is efficient in sorting when the input is ... Read More

Golang program to perform a left rotation in a Red Black Tree

Akhil Sharma

Akhil Sharma

Updated on 06-Jul-2023 12:02:59

51 Views

A red black tree is a self balancing binary search tree. Rotation is one of the fundamental operations of a self balancing tree. It is performed to maintain the tree's properties while inserting and deleting nodes to the tree. In this article we are going to write a language program ... Read More

Golang program to find total bonus paid to a particular employee

Akhil Sharma

Akhil Sharma

Updated on 06-Jul-2023 12:00:03

56 Views

There can be some situations in which you have a list of employees and you need to find out the bonus paid to a particular employee. Go language allows you to perform the task easily, in this article we are going to find out the total bonus paid to a ... Read More

Golang program to find which Employees should get bonus

Akhil Sharma

Akhil Sharma

Updated on 06-Jul-2023 11:57:35

46 Views

In corporate office there may be some cases in which you have a list of employees and you need to provide them extra bonus based on the work or experience or a particular property. In this article we are going to explore a way to calculate bonus using performance based ... Read More

Golang program to sort Employee by Name

Akhil Sharma

Akhil Sharma

Updated on 06-Jul-2023 11:51:08

89 Views

There may be scenarios in which you need a list of employees and you need to display them in a particular order based on their name initials. In this Golang article, we are going to sort employee names using bubble sort, insertion sort as well as using go sort ... Read More

Golang program to sort Employee by salary

Akhil Sharma

Akhil Sharma

Updated on 06-Jul-2023 11:25:25

212 Views

There can be some scenarios in which you have a list of employees and you need to display them in a particular order based on their salaries by sorting them. In this article we are going create a go program to sort the list of employees by salary using sort.slice() ... Read More

Golang program to takes a receiving channel of integers and a sending channel of strings

Akhil Sharma

Akhil Sharma

Updated on 06-Jul-2023 11:21:24

138 Views

In this article, we will learn how to develop a golang program that takes a receiving channel as integer and sends a channel of strings. Here we will be using a concurrent approach that involves using the multiple goroutines to perform transformation concurrently as well as using select statements with ... Read More

Golang program to detect a unidirectional receiving channel of strings and a sending channel of integers.

Akhil Sharma

Akhil Sharma

Updated on 05-Jul-2023 18:39:50

78 Views

Unidirectional channel is a type of channel that can only be used for either receiving or sending the data.In this article, we will create a golang program to detect a receiving channel that consist of string and a sending channel that has integers in it. Here we will learn how ... Read More

Golang program to takes two unidirectional receiving channels and a sending channel

Akhil Sharma

Akhil Sharma

Updated on 05-Jul-2023 18:35:30

215 Views

Unidirectional channel is a type of channel that will be either used for sending data or receiving data, but can’t be used for both. In this Golang article we will explore a Golang program that takes two unidirectional receiving channels and a sending channel using select statement as well as ... Read More

Advertisements