Welcome To Golang By Example

Menu
  • Home
  • Blog
  • Contact Us
  • Support this website
Menu

Author: admin

Repeat a string multiple times in Go (Golang)

Posted on October 9, 2022October 9, 2022 by admin

Overview strings.Repeat method can be used to repeat a string multiple times in Go (Golang) Here is the link to this function in the Go strings package https://pkg.go.dev/strings#Repeat Here is the signature…

Print the next or previous character given a char in Go (Golang)

Posted on October 9, 2022October 9, 2022 by admin

Overview Simply by doing plus 1 and minus 1 we can get the next and previous character given a current char. Program Here is the program for the same Output: Note: Check…

Program for Longest Word in Dictionary through Deleting in Go (Golang)

Posted on September 30, 2022September 30, 2022 by admin

Overview A string and a dictionary of words are given. The objective is to find the longest word in the dictionary which is present as a subsequence in the given string. If the…

Remove Linked List Elements Program in Go (Golang)

Posted on September 15, 2022September 15, 2022 by admin

Overview Given a linked list and a value, delete all nodes from the linked list whose value is equal to the given value. Example 1 Example 2 Program Below is the program…

Count unguarded cells program in Go (Golang)

Posted on August 25, 2022August 25, 2022 by admin

Overview Two integers m and n are given which represent an m*n grid. Other than that two 2D integer arrays are also given guards where guards[i] = [rowi , columni]. It represents…

Recover Binary Search Tree Program in Go (Golang)

Posted on August 19, 2022August 19, 2022 by admin

Overview The root of a binary search tree is given. Two nodes of the binary search tree have been swapped. We need to fix the binary tree and recover the original structure…

Program for ugly number 2 in Go (Golang)

Posted on August 13, 2022August 13, 2022 by admin

Overview An ugly number is a number whose prime factors are limited to 2,3 and 5. We have already seen a program where given a number n returns true if it is…

Program for ugly number in Go (Golang)

Posted on August 12, 2022August 12, 2022 by admin

Overview An ugly number is a number whose prime factors are limited to 2,3 and 5. Given a number, n return true if it is an ugly number otherwise return false. Example…

Is Graph Bipartite Program in Go (Golang)

Posted on August 1, 2022August 1, 2022 by admin

Overview An undirected graph is given. A  graph is said to be bipartite if the nodes of the graph can be partitioned into two subsets such that every edge connects one node…

Binary Tree Maximum Path Sum Program in Go (Golang)

Posted on July 30, 2022July 30, 2022 by admin

Overview A  binary tree is given. The objective is to find the maximum Path Sum in that binary tree.  A path in a binary tree is a sequence of nodes that are connected…

Posts pagination

Previous 1 2 3 … 62 Next
Follow @golangbyexample

Popular Articles

Golang Comprehensive Tutorial Series

All Design Patterns in Go (Golang)

Slice in golang

Variables in Go (Golang) – Complete Guide

OOP: Inheritance in GOLANG complete guide

Using Context Package in GO (Golang) – Complete Guide

All data types in Golang with examples

Understanding time and date in Go (Golang) – Complete Guide

©2025 Welcome To Golang By Example | Design: Newspaperly WordPress Theme