Software Development Engineer Interview Questions

32,861 software development engineer interview questions shared by candidates

Given n integers and value k, print total number of pairs such that, for all pairs -> (a, b) a) a < b b) a + k == b c) (a, b) should be unique. For eq., for integers 1 1 2 2 2 and k = 1 You can have only 1 pair = (1, 2). Because, a). 1 < 2 b). 1 + k (1) == 2
avatar

Software Development Engineer

Interviewed at Pickyourtrail

4.2
Feb 25, 2019

Given n integers and value k, print total number of pairs such that, for all pairs -> (a, b) a) a < b b) a + k == b c) (a, b) should be unique. For eq., for integers 1 1 2 2 2 and k = 1 You can have only 1 pair = (1, 2). Because, a). 1 < 2 b). 1 + k (1) == 2

Viewing 2361 - 2370 interview questions

Glassdoor has 32,861 interview questions and reports from Software development engineer interviews. Prepare for your interview. Get hired. Love your job.