Get a guaranteed software dev job of ₹5-40 LPA | Apply now for free!

Coding Questions

New Coding Program | Set-6 SOLVED | codewindow.in

Previous Question Program 1. Geological Sorting A team of geologists attempting to measure the difference in carbon-dated volcanic materials and non-volcanic materials of the same carbon-dated age in order to establish a base for testing.You are given 2 arrays, volcanic and nonVolcanic. Write a program to find a list of materials with identical dates between …

New Coding Program | Set-6 SOLVED | codewindow.in Read More »

New Coding Program | Set-4 SOLVED | codewindow.in

Previous Question Program 1. Numbers PuzzleGiven a set of numbers, one can arrange them in any order but must pay a penalty equal to the sum of the absolute differences between adjacent numbers. Return the minimum penalty that must be paid.Input Specification:input1:Length of an integer array of numbers()2<=input1<=1000)input2:Integer array(1<=input2[i]<=10000) Ouput specification:Return the minimum penalty. Example …

New Coding Program | Set-4 SOLVED | codewindow.in Read More »

Wipro Coding Question Solve | list dictionary tuple count | Codewindow.in

Question 1 How to Attempt? Write a logic inside the given function, to do the following task on a given inputstring.Find the number of Lists, Dictionaries and Tuples that occurs in the input stringand return the count in the order of List, Dictionary and Tuple (LDT). That is,“L”+listcount+”D”+dictionarycount+T+tuplecount. For example,return “L2D413”, like that. 1. Lists …

Wipro Coding Question Solve | list dictionary tuple count | Codewindow.in Read More »

Revature Question Solve | Smallest and the 3rd smallest element | Codewindow.in

Write a program to find the difference between the smallest and the 3rd smallest element in thearray. The resultant output should be a positive integer Input FormatFirst line contains an integer, denotes the size of the arraySecond line contains the elements of an array. Sample Input52 3 4 5 6Sample Output2 ExplanationThe smallest element in …

Revature Question Solve | Smallest and the 3rd smallest element | Codewindow.in Read More »

Revature Question Solve | Sum of Multiplication and Division | Codewindow.in

Write a program to get the Sum of multiplication and division of the 2nd largest element with thesmallest element of an arrray. Input FormatFirst line contains an integer, denotes the size of the arraySecond line contains the elements of an array. Sample Input:51 3 4 8 13Sample Output:16 ExplanationHere in this array, 8 is the …

Revature Question Solve | Sum of Multiplication and Division | Codewindow.in Read More »

Revature Question Solve | Even Composite Number | Codewindow.in

Write a program to display even composite number (non prime numbers) between 1 and entered number(inclusive)display numbers separated by space. Example: Input5Output4 Example:Between 1 and 5, 2, 3 and 5 are primes and 4 are even. JOIN OUR TELEGRAM GROUP FOR DAILY JOB NOTIFICATIONS Click Here! Solution:1. Pyhton 3.7: #code by codewindow.in sampleInput = input() n=int(sampleInput) for …

Revature Question Solve | Even Composite Number | Codewindow.in Read More »