Akhil Sharma has Published 671 Articles

Golang program to implement a Trie data structure

Akhil Sharma

Akhil Sharma

Updated on 18-Oct-2023 16:00:19

218 Views

A trie is a data structure like tree that is used to store and search a dynamic set of strings. It is useful while working with the data where keys share common prefix like dictionary words. Trie is different from the other retrieval data structures owing to its efficient string ... Read More

Go Language Program to Implement Floyd's Triangle

Akhil Sharma

Akhil Sharma

Updated on 18-Oct-2023 15:58:27

48 Views

Floyd's Triangle is a right-angled triangular pattern of numbers, named after the renowned American computer scientist Robert W. Floyd. Using sequences of natural integers starting at 1 and increasing by 1 in each row, we build this triangle. In this article, we are going to implement Floyd's Triangle in go, ... Read More

Go Language Program to Convert Decimal to Roman Numerals

Akhil Sharma

Akhil Sharma

Updated on 18-Oct-2023 15:55:07

119 Views

Roman numerals are an ancient numerical system that has found its way into modern applications like clock faces, book chapters, and movie credits. In this article, we are going to Convert Decimal to Roman Numerals. We will look at two different examples, in the first example we will use the ... Read More

Go Language Program to Convert Fahrenheit to Celsius

Akhil Sharma

Akhil Sharma

Updated on 18-Oct-2023 15:53:36

80 Views

Temperature conversions are crucial in many scientific expeditions, Fahrenheit is a scale of temperature and celsius is also a temperature scale, but sometimes we need to convert fahrenheit to celsius for medical settings, travels, and more. In this article, we are going to explore conversion of Fahrenheit temperature to ... Read More

Go Language Program to Find the Nth Fibonacci Number

Akhil Sharma

Akhil Sharma

Updated on 18-Oct-2023 15:51:04

105 Views

Fibonacci numbers have a unique position in mathematics, computer science and even nature for its particular mathematical qualities. Each number in this series represents the addition of the 2 previous ones, starting at 0 and 1. In this article, we are going to explore an approach to find the Nth ... Read More

Golang program to implement a hash table with separate chaining

Akhil Sharma

Akhil Sharma

Updated on 18-Oct-2023 15:48:59

120 Views

In computer science, hash tables are a crucial data structure for fast data retrieval. It is also known as hashmap and it stores and retrieves data based on a key-value pair. In this article we will implement a hash table in go with independent chaining. In the examples demonstrated below ... Read More

Golang program to implement a circular buffer

Akhil Sharma

Akhil Sharma

Updated on 18-Oct-2023 15:46:22

221 Views

Circular buffers, a data structure that efficiently manages and cycles through data, provide a valuable solution. In this article, we will implement a circular buffer in go, showcasing its utility and practicality. The examples below demonstrate the operations like initialization, insertion and demonstration of a circular buffer. Explanation A ... Read More

Golang program to implement a quadtree for spatial indexing

Akhil Sharma

Akhil Sharma

Updated on 18-Oct-2023 15:40:52

97 Views

Spatial indexing is a crucial technique for efficiently organising and querying spatial data. Quadtree is a popular data structure used for spatial indexing, dividing a two-dimensional space into smaller regions. In this article, we will explore two different examples to implement a Quadtree in Golang. The examples demonstrated below are ... Read More

Golang program to implement a binary indexed tree (Fenwick tree)

Akhil Sharma

Akhil Sharma

Updated on 18-Oct-2023 15:36:02

63 Views

Binary Indexed Tree (also Fenwick Tree) is a data structure that efficiently handles range queries and point updates on an array. In this article, we are going to explore two different methods to implement a binary indexed tree in go, here implementation means we are performing main operations of a ... Read More

Golang program to implement a persistent data structure (a stack)

Akhil Sharma

Akhil Sharma

Updated on 18-Oct-2023 15:29:58

88 Views

Persistent data structures, such as a stack, are of pivotal significance to programming for organising and chronologically managing data efficiently. This article showcases different examples to implement a persistent data structure in go, focusing on stack. In the first example we use immutable slices to perform the operation, while the ... Read More

1 2 3 4 5 ... 68 Next
Advertisements