Skip to content

Instantly share code, notes, and snippets.

View dagenius007's full-sized avatar

Joshua Oluikpe dagenius007

View GitHub Profile
@dagenius007
dagenius007 / assesment-test.ts
Created February 24, 2024 08:32
Robotics Assesment
function maxArea(height: number[]): number {
let i = 0 , j = height.length - 1 , maxA = 0
while(i < j){
let minH = Math.min(height[i] , height[j])
let width = j - 1