An open API service indexing awesome lists of open source software.

https://github.com/viztruth/golang-practice-problems-with-solutions

👉Well curated repo. containing solutions for all the practice questions that I've solved while I was learning Golang. 💡Check the README for categorized questions. This repo. can be useful for beginner and intermediate-level Golang programmers. If you found this repo. useful, don't forget to star the repo and give a follow.
https://github.com/viztruth/golang-practice-problems-with-solutions

go golang golang-examples practice practice-exercises problem-solving problems solutions

Last synced: 10 months ago
JSON representation

👉Well curated repo. containing solutions for all the practice questions that I've solved while I was learning Golang. 💡Check the README for categorized questions. This repo. can be useful for beginner and intermediate-level Golang programmers. If you found this repo. useful, don't forget to star the repo and give a follow.

Awesome Lists containing this project

README

          

# Golang Practice problems with Solutions


Golang


👉Well curated repo. containing solutions for all the practice questions that I've solved while I was learning Go language. 💡Check the readme for categorized questions. This repo. can be useful for beginner and intermediate-level Go programmers. If you found this repo. useful, don't forget to star the repo and give a follow.

Solved Problems



• Even or Odd number



• Largest of 3 numbers



• Sum of digits of a number



• Reverse of a number



• Palindrome number



• Armstrong number



• Fibonacci Series upto nth term



• Factorial of a number



• Factors of a number



• Prime Number



• Perfect Square



• Function call by value



• Function call by reference



⭐ ARRAYS / SLICES


• Defining arrays



• Defining slices



• Replace element in slice



• Sum of all elements in slice (Passing slices to functions)



• Largest and smallest element in slice



• 2nd Largest element in slice



• Reverse a slice



• Sorting a slice



• Frequency of elements in slice


⭐ STRINGS ⭐


• Defining strings and basic string case manipulation



• Counting the number of vowels



• Printing string in reverse



• Check if a given string is palindrome



• Count the sum of numbers in a string



• Check if 2 strings are anagram or not


⭐ PATTERNS ⭐


• Square pattern -
    * * * *
    * * * *
    * * * *
    * * * *



• Hollow Square pattern -
    * * * *
    *      *
    *      *
    * * * *