Skip to content
Tuesday, March 09, 2021
  • Home
    • About us
    • Contact us
    • Disclaimer
    • Privacy policy
    • Terms and conditions
  • IT doubts
  • IELTS

Things to fix

knowledge sharing

  • Home
    • About us
    • Contact us
    • Disclaimer
    • Privacy policy
    • Terms and conditions
  • IT doubts
  • IELTS
Breaking News
  • Find duplicate number on a given integer array in Golang
  • Find missing number in a given integer array of 1 to 10 in Golang
  • Golang coding Interview questions

Find duplicate number on a given integer array in Golang

September 27, 2020September 27, 2020Virendra1008880

/*** Here we can create a map where key will be provided items in array and value will be the occurrence  **/ package mainimport ( “fmt”)func main() { a := []int{1,2, 3, 5, 6,6,5,5} myMap := make(map[int]int) for _, val:= range a{ if _, ok := myMap[val]; ok { myMap[val] = myMap[val] +1 continue } […]

Continue Reading

Find missing number in a given integer array of 1 to 10 in Golang

September 27, 2020September 27, 2020Virendra1008880

for this first  we need to calculate the sum of n natural numbers as :  sum= n*(n+1)/2, then subtract the sum of given numbers package main import ( “fmt” ) func main() { a := []int{1,2, 3, 5, 6,7,8,9,10} length := len(a)        /*** here length of array is n-1 sum :=0  totalSum := […]

Continue Reading

Golang coding Interview questions

September 27, 2020September 27, 2020Virendra1008880

Question 1 : Generate a Fibonacci series till nth number Output: 0, 1, 1, 2, 3, 5, 8, 13, 21, ……n n:=7 t1,t2, t3 := 0,1,0             for i:=1; i<=n; i++ {                      fmt.Print(t1)               […]

Continue Reading

Recent Posts

  • Find duplicate number on a given integer array in Golang
  • Find missing number in a given integer array of 1 to 10 in Golang
  • Golang coding Interview questions

Recent Comments

    Archives

    • September 2020

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Pages

    • About us
    • Abroad/Immigration/Ielts
      • Top 10 countries in the world to live or retire..You may not need to work.
    • Contact us
    • COOKING
    • Disclaimer
    • Health
    • IT doubts
    • Privacy policy
    • Terms and conditions
    News Vibrant | Theme: news-vibrant by CodeVibrant.
    • Home
      • About us
      • Contact us
      • Disclaimer
      • Privacy policy
      • Terms and conditions
    • IT doubts
    • IELTS