{"id":15034515,"url":"https://github.com/viztruth/golang-practice-problems-with-solutions","last_synced_at":"2025-07-26T22:35:09.855Z","repository":{"id":164630243,"uuid":"640082971","full_name":"Viztruth/Golang-Practice-problems-with-Solutions","owner":"Viztruth","description":"👉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.","archived":false,"fork":false,"pushed_at":"2023-07-02T03:18:07.000Z","size":86,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T00:23:23.793Z","etag":null,"topics":["go","golang","golang-examples","practice","practice-exercises","problem-solving","problems","solutions"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Viztruth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-13T00:16:38.000Z","updated_at":"2025-02-18T02:18:40.000Z","dependencies_parsed_at":"2023-07-11T18:31:09.557Z","dependency_job_id":null,"html_url":"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viztruth%2FGolang-Practice-problems-with-Solutions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viztruth%2FGolang-Practice-problems-with-Solutions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viztruth%2FGolang-Practice-problems-with-Solutions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viztruth%2FGolang-Practice-problems-with-Solutions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Viztruth","download_url":"https://codeload.github.com/Viztruth/Golang-Practice-problems-with-Solutions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250448000,"owners_count":21432164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","golang-examples","practice","practice-exercises","problem-solving","problems","solutions"],"created_at":"2024-09-24T20:25:21.857Z","updated_at":"2025-04-23T14:11:23.247Z","avatar_url":"https://github.com/Viztruth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang Practice problems with Solutions\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Go_Logo_Blue.svg/1280px-Go_Logo_Blue.svg.png\" width=\"250\" alt=\"Golang\"\u003e\n\u003c/p\u003e\n👉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.\n\n\u003ch2\u003eSolved Problems\u003c/h2\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/evenoroddnum.go\"\u003e\n    • Even or Odd number\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/largestof3.go\"\u003e\n    • Largest of 3 numbers\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/sumofdig.go\"\u003e\n    • Sum of digits of a number\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/revanum.go\"\u003e\n    • Reverse of a number\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/palindromenum.go\"\u003e\n    • Palindrome number\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/armstrongnum.go\"\u003e\n    • Armstrong number\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/fibonacciseries.go\"\u003e\n    • Fibonacci Series upto nth term\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/factorial.go\"\u003e\n    • Factorial of a number\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/factorsofnum.go\"\u003e\n    • Factors of a number\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/primenum.go\"\u003e\n    • Prime Number\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/perfectsquare.go\"\u003e\n    • Perfect Square\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/passbyvalue.go\"\u003e\n    • Function call by value\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/passbyreference.go\"\u003e\n    • Function call by reference\n\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n\u003cstrong\u003e\u003ca href=\"https://blog.devgenius.io/the-difference-between-arrays-and-slices-in-golang-6a7b3781c14a\"\u003e⭐ ARRAYS / SLICES \u003c/a\u003e⭐\u003c/strong\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/arrays.go\"\u003e\n    • Defining arrays\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/slices.go\"\u003e\n    • Defining slices\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/repelearray.go\"\u003e\n    • Replace element in slice\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/sumofalleleslice.go\"\u003e\n    • Sum of all elements in slice (Passing slices to functions)\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/largsmleleslice.go\"\u003e\n    • Largest and smallest element in slice\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/2ndlareleslice.go\"\u003e\n    • 2nd Largest element in slice\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/revslice.go\"\u003e\n    • Reverse a slice\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/bubblesort.go\"\u003e\n    • Sorting a slice\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/freqeleslice.go\"\u003e\n    • Frequency of elements in slice\n\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n\n\u003cstrong\u003e⭐ STRINGS ⭐\u003c/strong\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/stringdeclaration.go\"\u003e\n    • Defining strings and basic string case manipulation\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/vowelsinstring.go\"\u003e\n    • Counting the number of vowels\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/printstrinrev.go\"\u003e\n    • Printing string in reverse\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/stringpalindrome.go\"\u003e\n    • Check if a given string is palindrome\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/sumofnostr.go\"\u003e\n    • Count the sum of numbers in a string\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/anagram.go\"\u003e\n    • Check if 2 strings are anagram or not\n\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n\n\u003cstrong\u003e⭐ PATTERNS ⭐\u003c/strong\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/squarepattern.go\"\u003e\n    • Square pattern -\u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;* * * * \u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;* * * * \u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;* * * * \u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;* * * *\n\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://github.com/Viztruth/Golang-Practice-problems-with-Solutions/blob/main/hollowstar.go\"\u003e\n    • Hollow Square pattern -\u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;* * * * \u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;* \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; * \u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;* \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; * \u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;* * * *\n\u003c/a\u003e\u003cbr\u003e\n\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviztruth%2Fgolang-practice-problems-with-solutions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviztruth%2Fgolang-practice-problems-with-solutions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviztruth%2Fgolang-practice-problems-with-solutions/lists"}