Join Regular Classroom : Visit ClassroomTech

coding question

Larsen & Turbo Overall Interview Questions + Coding Solutions – codewindow.in

Hot Topics Larsen & Turbo Solution Technical Round Question 1 Explain your current project. Answer Explain Your project. Question 2 Public int compare To(object o) { Employee emp = (Employee)o; return this.id – e.id; } Answer This is a Java method for comparing two objects of the “Employee” class, based on their “id” field. The […]

Larsen & Turbo Overall Interview Questions + Coding Solutions – codewindow.in Read More »

Symmetric Difference Code

Example 1: Input: (1,2),(2,1),(3,4),(4,5),(5,4) Output: (2,1)  (5,4) Explanation: Since (1,2) and (2,1) are symmetric pairs and (4,5) and (5,4) are symmetric pairs.   Example 2: Input: (1,5),(2,3),(4,2),(5,1),(2,4) Output: (2,4)  (5,1) Explanation: Since (1,5) and (2,4) are symmetric pairs and (5,1) and (4,2) are symmetric pairs.   Solution: x=input().replace(“)”,””) x=x.replace(“(“,””) x=list(map(int, x.split(“,”))) #print(x) y = []

Symmetric Difference Code Read More »

Find Password 2 – Wipro Sample Coding Question Solved – codewindow.in

Detective Buckshee Junior has been approached by the Shantiniketan kids society for help in finding the password to the game’s complex. After hearing the scenario, detective Buckshee junior realizes that he will need a programmer’s support. He contacts you and requests your help. Please help the detective by writing a function to generate the password.

Find Password 2 – Wipro Sample Coding Question Solved – codewindow.in Read More »

Find Password 1 – Wipro Sample Coding Question Solved – codewindow.in

Detective Buckshee Junior has been approached by the Shantiniketan kids society for help in finding the password to the game’s complex. After hearing the scenario, detective Buckshee junior realizes that he will need a programmer’s support. He contacts you and requests your help. Please help the detective by writing a function to generate the password.

Find Password 1 – Wipro Sample Coding Question Solved – codewindow.in Read More »

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 »