Skip to content

Instantly share code, notes, and snippets.

View josh-boat365's full-sized avatar
🎓
Focusing

Joshua Nyarko Boateng josh-boat365

🎓
Focusing
View GitHub Profile
@josh-boat365
josh-boat365 / minMaxSum.py
Created November 2, 2022 09:04
minMaxSum - a python Hackerrank
"""
Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers.
"""
def minMaxSum(arr):
# arr = list(map(int, input().strip().split()))
#arrange array elements in order from ascending to descending order
arr.sort()
#sum array elements from the first index to the last but one index of the array
x = sum(arr[0:-1])
#sum array elements from the second index to the last index of the array
<x-base>
<div class="container">
<div class="mt-5 text-center">
<img src="{{ asset('imgs/assets/title-logo.png') }}" alt="" style="width: 3.8rem">
<h2>Hi! Mentee, Find Your Mentor on CasvaLabs</h2>
{{-- <h5>Register</h5> --}}
</div>
<div class="row justify-content-center">
@josh-boat365
josh-boat365 / TaxCalculatorCG5.java
Created March 10, 2021 12:49
This is a Java GUI Tax App Calculator
package com.CPS2C_G5;
/**
* This is our project work for the mid-sem
* Members:
* Names ID
* Joshua Nyarko Boateng 01194083D
* Frank Baides Ayi 01192129D
* Edmund Ofori Darteh 01190273D
* Emmanuel Larbi 01191385D
* Esther Addo 01191350D