Join Regular Classroom : Visit ClassroomTech

coding questions

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 »

Coding Questions | Longest Palindromic Subsequence | Codewindow.in

Given a string x (1<=len(x)<=1000) find the length of its longest palindromic subsequence. The string contains only lowercase letters. Write a program that takes in input as String x and returns the length of the longest palindromic subsequence of x. Input Format:String input. Output Format:return the length of the longest palindromic subsequence. Example :Input:ababa Output:5

Coding Questions | Longest Palindromic Subsequence | Codewindow.in Read More »