Programmer's Arena

P1 : Insert at position

Insert the number "num" at the desired position in list "numlist".
Number "num" can be inserted at the position where it is greater than previous and less than next element.
If number "num" is lowest then insert at 1st position else if highest, then insert at last position.
In any other case return "numlist".


Choose Preferred Language :

P2 : Number Games

Given a list "numlist" of numbers, perform the following operations:
If number is completely divisible by 3, then add 5 in it.
Otherwise if, number is even and at the even position then insert 2 at the end in list.
Otherwise, make the element 0.


Choose Preferred Language :

P3 : Merge Common Elements

Given two lists "numlist1" and "numlist2" of numbers.
Merge the common elements of both the lists into a list.
Return merged list with unique elements.


Choose Preferred Language :

P4 : Longest Prefix

Given an array of strings, you need to find the longest prefix among all of them and return the prefix.
If no prefix found then simply return 0.
All strings should be in capital letters.


Choose Preferred Language :

P5 : Array Pair Sum

Find the pairs from array, whose minimum element sum will produce the maximum possible output.
Output the maximum possible sum.


Choose Preferred Language :



Designed By : Akash Kumar