8000 GitHub - developgo/algorithms_with_Go at 0f43f71f573acd0487e1c4b32e6211e149455886
[go: up one dir, main page]

Skip to content

developgo/algorithms_with_Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO - Data Structures and Algorithms

Inspired by the Geeksforgeeks - Top 10 Algorithms in Interview Questions article, the intent of this repository is to solve these questions using the Go Language. GO is a great language choice for technical interviews and hopefully you can find the solutions to the common algorithms/problems easy to understand.

Although this is an introductory course to algorithms, it assumes that you are familiar with GO programming language syntax and basic concepts.

WIP, the description of the below unsolved yet problems can be found in the orginal article.

Contributions are welcomed, following below guidelines

  • keep the consistency and document the code
  • keep it simple, easy to read and understand (not over-engineered, best performance is not in scope)
  • [] Modular Exponentiation
  • [] Modular multiplicative inverse
  • [] Primality Test | Set 2 (Fermat Method)
  • [] Euler’s Totient Function
  • [] Sieve of Eratosthenes
  • [] Convex Hull
  • [] Basic and Extended Euclidean algorithms
  • [] Segmented Sieve
  • [] Chinese remainder theorem
  • [] Lucas Theorem
  • Maximum Subarray XOR
  • [] Magic Number
  • [] Sum of bit differences among all pairs
  • [] Swap All Odds And Even Bits
  • [] Find the element that appears once
  • [] Binary representation of a given number
  • [] Count total set bits in all numbers from 1 to n
  • [] Rotate bits of a number
  • [] Count number of bits to be flipped to convert A to B
  • [] Find Next Sparse Number
  • [] Reverse an array without affecting special characters
  • [] All Possible Palindromic Partitions
  • [] Count triplets with sum smaller than a given value
  • [] Convert array into Zig-Zag fashion
  • [] Generate all possible sorted arrays from alternate elements of two given sorted arrays
  • [] Pythagorean Triplet in an array
  • [] Length of the largest subarray with contiguous elements
  • [] Find the smallest positive integer value that cannot be represented as sum of any subset of a given array
  • [] Smallest subarray with sum greater than a given value
  • [] Stock Buy Sell to Maximize Profit

About

GO Data Structures and Algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0