/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.

Primary LanguageGoMIT LicenseMIT

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 -
    * * * *
    *      *
    *      *
    * * * *