Welcome To Golang By Example

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

Category: Tech

Kth Distinct String in an Array Program in Go (Golang)

Posted on March 14, 2022March 14, 2022 by admin

Overview An input string array is given which can have duplicate strings as well. An input number k is also provided. Idea is to find the first kth distinct string in the…

Program for House Robber Problem in Go (Golang)

Posted on March 14, 2022March 14, 2022 by admin

Overview There are a couple of houses in the neighborhood. Each house has some money in it. The houses are represented as an array which each entry in the array denotes the…

Distinct or Unique Permutations of a string or array in Go (Golang)

Posted on March 14, 2022March 14, 2022 by admin

Overview Given an array of integers that can contain duplicate elements, find all distinct permutations only. Example Program Here is the program for the same. Output Note: Check out our Golang Advanced…

Maximum words in a group of sentences in Go (Golang)

Posted on March 11, 2022March 11, 2022 by admin

Overview There is a group of sentences given. Find the maximum number of words that appear in a sentence within that group of sentences Example Program Here is the program for the…

Program for the total number of words in a sentence in Go (Golang)

Posted on March 11, 2022March 11, 2022 by admin

Overview Given a sentence find number of words in it. Each word in the sentence only has English letters Example Program Here is the program for the same. Output Note: Check out…

The nth digit in a sequence program in Go (Golang)

Posted on March 11, 2022March 11, 2022 by admin

Overview Given an integer n find the nth digit in the infinite sequence {1, 2, 3, 4 ….. infinity} Example The 14th digit of the sequence 1, 2, 3, 4, 5, 6,…

Find all Arithmetic series of length greater than two in Go (Golang)

Posted on March 11, 2022March 11, 2022 by admin

Overview An Arithmetic series is a series in which the difference between each element is equal. In this program, an array of integers is given. The objective is to find all arithmetic…

Find All Duplicates in an Array in Go (Golang)

Posted on March 11, 2022March 11, 2022 by admin

Overview An array is given in which all elements are in the range [1, n] where n is the length of the array. The objective is to find all duplicates in that…

Set matrix zero if a row or column is zero in Go (Golang)

Posted on March 11, 2022March 11, 2022 by admin

Overview An m*n matrix is given. If an element is zero then set its row and column to zero Examples Input: Output: We will solve it by taking two additional arrays rowSet…

Program to multiply two strings in Go (Golang)

Posted on March 11, 2022March 11, 2022 by admin

Overview Write a program to multiply two strings. Examples Program Here is the program for the same. Output Note: Check out our Golang Advanced Tutorial. The tutorials in this series are elaborative…

Posts pagination

Previous 1 … 4 5 6 … 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