Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the…
Given an unsorted array of integers, sort the array into a wave like array. An array ‘arr[0..n-1]’ is sorted in wave form if arr[0] >=…
Given an integer array nums, re-order it such that nums[0] < nums[1] > nums[2] < nums[3]….You may assume the input array always has a valid answer. Input_1:Array_nums…
Given the coordinates of four points in 2D space p1, p2, p3 and p4, return true if the four points construct a square. The coordinate…