Horje
equation for amount of squares in a grid Code Example
equation for amount of squares in a grid
/** * I'm using my own versions of max and min because * Math package only has max() float64 and min() float64 */func max (a,b int) int {  if a > b {  return a  } else {  return b  }  return 0}func min (a,b int) int {  if a < b {  return a  } else {  return b  }  return 0}func count(n, m int) int { s, b := min(n, m), max(n, m) r := 0 for i := 1; i <= s; i++ { r += (s - i + 1) * (b - i + 1) } return r}func main() { fmt.Print(count(2,3));}
Source: medium.com
equation for amount of squares in a grid
4x3 = 20 4x4 = 30 4x5 = 40 4x6 = 50 4x7 = 60 4x8 = 70 4x9 = 80// Guess what is the next value!
Source: medium.com




Whatever

Related
error: not found: type StructType Code Example error: not found: type StructType Code Example
docker compose use cache from image Code Example docker compose use cache from image Code Example
delete request php-salesforce-rest-api Code Example delete request php-salesforce-rest-api Code Example
Use the Conditional (Ternary) Operator Code Example Use the Conditional (Ternary) Operator Code Example
Could not parse as a prefix nor find as a vendor substring the given --spoof-mac argument Code Example Could not parse as a prefix nor find as a vendor substring the given --spoof-mac argument Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8