Problem solving in python

--

Here are the two of the interesting problems that I’ve solved using python.

Problem 1:

Given an 1-D array Arr[N], N is the size of the array. What is the maximum value of the output value of |Arr[i] - Arr[j]|.

This problem can be solved by two methods.

Problem 2:

Given a matrix or 2D array of shape MxN with All its rows and columns sorted. Given an element ‘K’. Find the index of the value K in the best possible order of N.

--

--

Ganapathi Kakkirala
Ganapathi Kakkirala

Written by Ganapathi Kakkirala

Aspiring Product Manager Leveraging the Analytics to define Product success

No responses yet