An array is monotonic if it is either monotone increasing or monotone decreasing. Given an integer array nums, return true if the given array is monotonic, or false otherwise.
LeetCode Reference: https://leetcode.com/problems/monotonic-array/
00:00 Problem Statement
01:14 Algorithm Explained
03:27 Coding Session
04:42 Testing Our Code
Other LeetCode Problems:
N-ary Tree Level Order Traversal Using Iterative : https://youtu.be/sg7-x1AnS4o
Map Sum Pairs - HashMap & Tries Based : https://youtu.be/43oo4sU0usA
Binary Tree Right Side View: https://youtu.be/qSShcrIrdUw
House Robber | Dynamic Programing: https://youtu.be/NAdwES8C48g
Generate Parentheses: https://youtu.be/FrTsckBmdyM
#MonotonicArray #LeetCode896 #LeetCode