Join Regular Classroom : Visit ClassroomTech

Coding Questions

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 »

Coding Questions | The Closest Pair | Codewindow.in

Given an integer array with ‘N’ (2<=N<=1000) points. Find the distance between the closest pair of points. Input Format:Input 1: N, the number of points in an arrayInput 2: Array of numbers Output Format:Return the distance between the closest pair of points. Example 1:Input 1: 3Input 2: {-10,0,11} Output:10 Explanation:In the above example, the distance

Coding Questions | The Closest Pair | Codewindow.in Read More »