Skip to content

Instantly share code, notes, and snippets.

@DeeprajPandey
Created February 21, 2021 12:37
Show Gist options
  • Save DeeprajPandey/4ff1dd678876978b6fb19f4b0d27e6eb to your computer and use it in GitHub Desktop.
Save DeeprajPandey/4ff1dd678876978b6fb19f4b0d27e6eb to your computer and use it in GitHub Desktop.
Input Format for problem pset 1

Problem 1: Pyramids of Asterisk

Input:

4

Output:

   *
  * *
 * * *
* * * *

Problem 2: Mean and Min

Input:

4
23
1
16
71
20
12
32
19
42

Output:

24
1

Problem 3: GCD

Input:

42
18

Output:

6

Problem 4: Max

Input:

37
84

Output:

84

Problem 5: Swap

Input:

16
51

Output:

Before swap
a: 16 -> 0x7ffee*******
b: 51 -> 0x7ffee*******
After swap
a: 51 -> 0x7ffee*******
b: 16 -> 0x7ffee*******
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment