Join Regular Classroom : Visit ClassroomTech

sorting coding question

Anagrams | Coding Problem Solve | codewindow.in

Anagram An anagram is a word, phrase or name formed by rearranging the letters of another word, phrase or name.Write a function to check if two given strings are anagrams or not. Return “yes” if they are anagrams, otherwise return “no”. Input Specifications:input1: the first stringinput2: the second string Output Specification:Return “yes” if they are […]

Anagrams | Coding Problem Solve | codewindow.in Read More »

Number Puzzle | Coding Problem Solve | codewindow.in

Number Puzzle Given 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) Output specification:Return the minimum penalty. Example:Input1: 3Input2:

Number Puzzle | Coding Problem Solve | codewindow.in Read More »