Is Array Monotonic[Medium] C#
Approach:
Use two boolean flags increasing and decreasing initially set to true, loop though array start from i = 1 and update those flags by comparing array[i] and array[i-1], return the or operation of the two flags
using System;
public class Pro...
akhilkumarpenugonda.hashnode.dev1 min read