Add office photos
Sigmoid logo
Engaged Employer

Sigmoid

Verified
3.3
based on 122 Reviews
Video summary
Filter interviews by
Software Development Engineer II
Clear (1)

Sigmoid Software Development Engineer II Interview Questions and Answers

Updated 13 Jan 2025

Q1. Given a binary string,find out the max length of substring having equal number of 1 and 0

Ans.

Find max length of substring with equal 1s and 0s in a binary string.

  • Use a hash table to store the difference between the count of 1s and 0s seen so far.

  • If the difference is 0, update the max length seen so far.

  • If the difference is already in the hash table, update the max length using the current index and the index where the difference was first seen.

  • Return the max length.

  • Example: '1100010110' -> 8

Add your answer
right arrow

Q2. Leetcode's sort 0 1 array in place

Ans.

Sort an array of 0s and 1s in place without using extra space.

  • Use two pointers approach - one for 0s and one for 1s.

  • Swap elements at the two pointers until all 0s are on the left and 1s on the right.

Add your answer
right arrow

Q3. Validate binary search tree.

Ans.

Validate if a binary tree is a binary search tree

  • In-order traversal should result in a sorted array

  • Check if each node's value is within the correct range

  • Recursively validate left and right subtrees

Add your answer
right arrow

Q4. Reverse K group linked list.

Ans.

Reverse K group linked list

  • Iterate through the linked list in groups of size K

  • Reverse each group of K nodes

  • Connect the reversed groups back together

Add your answer
right arrow
Discover Sigmoid interview dos and don'ts from real experiences

Q5. Nearest Left Greater element.

Ans.

Find the nearest element on the left side of an array that is greater than the current element.

  • Iterate through the array from right to left.

  • Use a stack to keep track of elements that are greater than the current element.

  • Pop elements from the stack until finding a greater element or the stack is empty.

  • If a greater element is found, that is the nearest left greater element.

  • If the stack is empty, there is no nearest left greater element.

Add your answer
right arrow

Q6. Leetcode's Maximum Path Sum

Ans.

Find the maximum path sum in a binary tree

  • Use recursion to traverse the binary tree and calculate the maximum path sum at each node

  • At each node, calculate the maximum path sum that includes the current node and return the maximum path sum that does not include the current node

  • Update a global variable to keep track of the maximum path sum found so far

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Sigmoid Software Development Engineer II

based on 6 interviews
Interview experience
3.7
Good
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Development Engineer II Interview Questions from Similar Companies

View all
Recently Viewed
SALARIES
Sigmoid
Team Lead
L/yr
(4 salaries)
SALARIES
Mu Sigma
Azure Data Engineer
L/yr
(9 salaries)
SALARIES
Synchrony
Data Analyst
L/yr
(19 salaries)
SALARIES
JPMorgan Chase & Co.
JOBS
Fractal Analytics
No Jobs
SALARIES
Deutsche Telekom Digital Labs
SALARIES
Sutherland Healthcare Solutions
SALARIES
JPMorgan Chase & Co.
COMPANY BENEFITS
JPMorgan Chase & Co.
No Benefits
REVIEWS
Celebal Technologies
No Reviews
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter