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.
- Host: GitHub
- URL: https://github.com/viztruth/golang-practice-problems-with-solutions
- Owner: Viztruth
- License: mit
- Created: 2023-05-13T00:16:38.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-02T03:18:07.000Z (almost 3 years ago)
- Last Synced: 2025-03-30T00:23:23.793Z (about 1 year ago)
- Topics: go, golang, golang-examples, practice, practice-exercises, problem-solving, problems, solutions
- Language: Go
- Homepage:
- Size: 84 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Golang Practice problems with Solutions
👉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 -
* * * *
* *
* *
* * * *