Posts

Showing posts from January, 2021

Golang Interview Questions Part 2 Coding Question

Golang Interview Coding Questions This is Part 2 Golang Interview coding Questions, Please check part 1 for Theory Questions. https://gophersgo.blogspot.com/2021/01/golang-interview-questions-part-1.html All questions asked in a real interview. Write any method code Swap if the number is greater than the next number Find the key from the array (not in any easy way, split the array into two then search) Find the count of words in a long string Check if the website is active or not? Find the random number with x length Find longest increasing subsequence in an array Get unique values from a slice of int with count Write palindrome program in go Get pairs with x difference only unique pairs Reverse a string Input = ‘Hello’, Output = ‘olleH’ Write Code :- Input : "aabbbcccab" , Output: "aa2bbb3ccc3a1b1" Print unique elements form array, Input = [2,3,4,5,2,3], Output =  [2,3,4,5] Find the lengthiest word.  Input =’ i am in Bangalore‘ Check whether it is closed or not.  I

Golang Interview Questions Part 1 Theory Top 50 Question

 Most Frequently asked golang interview Questions         ( Based on the real interview experience)      for Fresher 0-1 year experience. Why Golang --> For its Simplicity, Build in Concurrency Support and Super Scalable. What is Goroutine --> Goroutine is like a thread in java, it's lightweight than a thread useful to achieve concurrency in Go.  https://golangbot.com/goroutines/ How to communicate between goroutines? --> By Using Channels we can communicate between Goroutines. What is mutex? -- >  https://golangbot.com/mutex/ What is synchronization in go -->  https://golang.org/pkg/sync/ How to achieve concurrency in Go   --> By Using Goroutines. What is Channels in go? -->  https://golangbot.com/channels/ What are the Types of Channels? -->  https://golangbyexample.com/channel-golang/ What is Buffered Channel and Unbuffered Channel explain? -->  https://golangbot.com/channels/ How to avoid deadlock in a goroutine? -->  https://www.geeksforgeeks.org/

Best GitHub repositories for Go

Best Repositories for Go   In this article, I will share with you the best repositories on GitHub for Go. Companies using Go https://github.com/golang/go/wiki/GoUsers Golang Roadmap https://github.com/Alikhll/golang-developer-roadmap Cheatsheet https://github.com/a8m/golang-cheat-sheet Books https://github.com/dariubs/GoBooks https://github.com/astaxie/build-web-application-with-golang/tree/master/es https://github.com/go101/go101/releases Golang code samples and examples https://github.com/inancgumus/learngo https://github.com/GoesToEleven/GolangTraining https://github.com/ardanlabs/gotraining Data structure and algorithms https://github.com/halfrost/ LeetCode-Go  ( Use Google Translator) https://github.com/emirpasic /gods https://github.com/TheAlgori thms/Go https://github.com/arnauddri /algorithms https://github.com/0xAX/go-a lgorithms https://github.com/floyernic k/Data-Structures-and- Algorithms https://github.com/PacktPublishing/Learn-Data-Structures-and-Algorithms-with-Golang ht