Welcome To Golang By Example

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

Tag: go

Program for length of the last word in a string in Go (Golang)

Posted on February 22, 2022February 22, 2022 by admin

Overview The objective is to find the length of the last word in a given string Example Program Here is the program for the same. Output Note: Check out our Golang Advanced…

Plus one program or Add one to an integer array in Go (Golang)

Posted on February 1, 2022February 1, 2022 by admin

Overview An integer array is given. Overall this integer array represents a number. So let’s say the integer array name is digits then digitis[i] denote the ith digit of the integer. The…

Partition a linked list in Go (Golang)

Posted on February 1, 2022February 1, 2022 by admin

Overview A linked list is given. Also, a target value is given. Partition the given linked list in such a way all values less than target values comes before all the values…

Best time to Buy-Sell Stocks Program in Go (Golang)

Posted on February 1, 2022February 1, 2022 by admin

Overview An array prices is given where prices[i] represent the price of a stock on the ith day.  You can only buy and sell once. Find the max profit you can earn…

Unique Paths Program in Go (Golang)

Posted on February 1, 2022February 1, 2022 by admin

Overview There is an m*n grid. There is a robot at the position (0,0). The robot can only move in the right direction and down direction. What is the total number of…

Remove all occurrences of a given value in an array in place in Go (Golang)

Posted on January 31, 2022January 31, 2022 by admin

Overview An integer array is given and a target element is given. Remove all occurrences of that target element from the array. The removal must be done in place Program Here is…

Merge two sorted arrays in Go (Golang)

Posted on January 31, 2022January 31, 2022 by admin

Overview Two arrays are given. Both are sorted First array is of length m+n Second array is of n The objective is to merge these sorted arrays. The first array contains enough…

Count Possible Decodings of a digit sequence into letters in Go (Golang)

Posted on January 31, 2022January 31, 2022 by admin

Overview Let’s say we have below number to letter mapping The objective is to count the number of possible decoding of a given digit sequence Examples Program Here is the program for…

Letter Combinations of a Phone Number Program in Go (Golang)

Posted on January 31, 2022January 31, 2022 by admin

Overview An input string is given which consists of some digits. The mapping of digits to letters is similar to that of a phone keypad So an input string is given which…

Delete middle node of a linked list in Go (Golang)

Posted on January 31, 2022January 31, 2022 by admin

Overview The objective is to remove the middle node of the linked list. If x is the size of the linked list then the middle node is Examples Program Here is the…

Posts pagination

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