Newgen Software interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

Newgen Software
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 Months
Topics: Data Structures, Algorithm, Java Programming, Aptitude
Tip
Tip

Tip 1 : Must prepare well for Java programming
Tip 2 : Aptitude in screening test in a bit tricky
Tip 3 : Must have good understanding of optimal solution in respect to time and space complexity

Application process
Where: Campus
Eligibility: CGPA above 8
Resume Tip
Resume tip

Tip 1 : Prior experience with Java programming is an add on
Tip 2 : Resume should not be of more than 1 page

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 Minutes
Interview date17 Aug 2019
Coding problem2

The comprised of four round - 
1. Aptitude
2. English
3. Personality
4. Programming

1. Word Break-1

Hard
36m average time
55% success
0/120
Asked in companies
IBMAmazonMicrosoft

You are given a string 's', and a dictionary of words 'dict' containing 'n' words. Your task is to add spaces in 's' to form valid sentences, where each word is a word from the dictionary.


You need to return all possible sentences that can be formed using the given dictionary.


Note :
The same word from a dictionary can be used as many times as possible to make sentences.
Problem approach

Split the string and then return the length of the the last element of the array

Try solving now

2. Count Ways To Reach The N-th Stairs

Moderate
30m average time
80% success
0/80
Asked in companies
OYOLinkedInGrab

You have been given a number of stairs. Initially, you are at the 0th stair, and you need to reach the Nth stair.


Each time, you can climb either one step or two steps.


You are supposed to return the number of distinct ways you can climb from the 0th step to the Nth step.

Note:

Note: Since the number of ways can be very large, return the answer modulo 1000000007.
Example :
N=3

Example

We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
Problem approach

Created an array of length N+1 to store the previous result and solve the problem using memorization

Try solving now
02
Round
Medium
Face to Face
Duration20 Minutes
Interview date20 Aug 2019
Coding problem2

This was the first technical round where the interviewer evaluated you on basic concepts of OOPS and java programming

1. Contains Duplicate lll

Moderate
10m average time
90% success
0/80
Asked in companies
D.E.ShawIEO MAKERS FABLAB (OPC) PRIVATE LIMITEDNewgen Software

You are given an integer array 'ARR' of size ‘N’ and two integers ‘A’ and ‘B’. You need to find if there are two distinct indices in the array, such that the absolute difference of values on those indices is less than or equal to ‘B’ and the absolute difference of the indices is less than or equal to ‘A’.

Note :
Can you try to solve it in O(N) time ?
Problem approach

actually this is a brutal method

try to find all the possible pairs such that abs(nums[i] - nums[j]) <= t
check the possible pairs whether its abs(i - j) <= k
the key is skip the unnecessary loop

Try solving now

2. Maximum Sum Subsequence

Hard
45m average time
55% success
0/120
Asked in companies
ArcesiumExpedia GroupOla

You are given an array “NUMS” consisting of N integers and an integer, K. Your task is to determine the maximum sum of an increasing subsequence of length K.

Note:
1. The array may contain duplicate elements.
2. The array can also contain negative integers.
3. Every element of the subsequence must be greater than or equal to the previous element.

The subsequence of an array is a sequence of numbers that can be formed by deleting some or no elements without changing the order of the remaining elements. For example, if the given array “NUMS” = {1, 2, 5, 4, 8}, then {1, 2, 5, 4, 8}, {1, 5, 8}, {2} are some of the valid subsequences whereas the sequence {4, 2} is not a valid subsequence as the order of the elements differ from the original array.

Try solving now
03
Round
Hard
Face to Face
Duration25 Minutes
Interview date20 Aug 2019
Coding problem1

This was the final technical round with the Tech Lead of the company where the candidate was evaluated over multiple data structure and algorithm questions

1. Fix BST

Hard
45m average time
40% success
0/120
Asked in companies
OYOMicrosoftSquadstack

You have been given a Binary Search Tree of 'N' nodes, where exactly two nodes of the same tree were swapped by mistake.


Your task is to restore or fix the BST, without changing its structure and return the root of the corrected BST.


Note:

Given BST will not contain duplicates.


Example
A Binary Search Tree (BST) whose 2 nodes have been swapped is shown below.  

example

After swapping the incorrect nodes: 

example

Follow Up
Can you do this without using any extra space? 
Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
Software Engineer
3 rounds | 4 problems
Interviewed by Newgen Software
1044 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by Newgen Software
1908 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by Newgen Software
1181 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 3 problems
Interviewed by Newgen Software
163 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by HashedIn
2644 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
0 views
0 comments
0 upvotes
company logo
Software Engineer
4 rounds | 8 problems
Interviewed by Arcesium
1414 views
0 comments
0 upvotes