map('Make them useful !', Exceptions + Logs)
Exception and Logs for troubleshooting
May 27, 20216 min read103
Search for a command to run...
Articles tagged with #python
Exception and Logs for troubleshooting
This is an algorithm to sort an array. It can be classified as a divide and conquer algorithm. Input: array of elements. E.g. arr = [5, 4, 1, 2] Output: sorted array Time Complexity: 0(nlogn) def merge_sort(L): if len(L) > 1: mid = len(L) ...
Input: sequence of numbers as an array e.g. 140213 Output: next minimun number greater than input that can be generated using the numbers in array 140231 Algorithm Find LARGEST i starting from len(arr)-1 where arr[i-1] >= arr[i] i = 5 arr = [1,...