Question
Given two arrays, pick one element from the first array and another element from the second array such that their absolute difference is minimum.
0
55 years 0 Answers 307 views Great Grand Master

Question
Given a number represented in string format, find the next greatest permutation or next greater number. Example: Input 12345, Output: 12354
0
55 years 0 Answers 324 views Great Grand Master

Question
Max path from one source index (n-1,0) to Destination index (0,m-1). (Standard DP problem). I was asked to code in O(1) Extra space. I just used the input matrix to calculate the max path.
0
55 years 0 Answers 314 views Great Grand Master