Skip to content

Instantly share code, notes, and snippets.

View xadrijo's full-sized avatar

Jorge Luis Jimenez xadrijo

  • Xmartlabs
  • Argentina
View GitHub Profile
@xadrijo
xadrijo / lcmAndGcf.go
Last active December 19, 2018 18:12
Calculate Least Common Multiple and Greatest Common Factor
package main
// Greatest common divisor
func main() {
a := []int32{2, 4}
b := []int32{16, 32, 96}
// Pendiente
//a := []int32{100, 99, 98, 97, 96, 95, 94, 93, 92, 91}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.js"></script>
<script src="https://unpkg.com/expect/umd/expect.min.js"></script>
<title>JS Bin</title>
</head>
<body>