AlphaSense, Inc. interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

AlphaSense, Inc.
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 9 months
Topics: DBMS, Data Structures and Algorithms , OOP, Maths puzzles, Aptitude, OS,CN
Tip
Tip

Tip 1 : Never leave any topic from any chapter / Subject
Tip 2 : Learn to explain your thoughts well
Tip 3 : Learn from previous experiences / interviews / problems asked.
Tip 4 : Atleast 4 projects in Resume

Application process
Where: Campus
Eligibility: Computer related branches
Resume Tip
Resume tip

Tip 1 : Atleast 4 projects on Resume
Tip 2 : Do not write false things. You always get caught. Be genuine.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date23 Dec 2020
Coding problem2

2 Coding problems , MCQs (CS related, ML related)

1. Connect nodes at same level

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

A binary tree is a tree where each node has at most two children i.e left child and right child.

You are given a binary tree, where the structure of the node is as follow -:

class BinaryTreeNode {
 int data;      // Value of the node.
 BinaryTreeNode *left;  // Pointer to left child node.
 BinaryTreeNode *right; // Pointer to right child node.
 BinaryTreeNode *next;  // Pointer to next right node at same level. 
}

Your task is to connect all the adjacent nodes at the same level in the given binary tree. You can do this by populating each 'next' pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL. Initially, all the next pointers are set to NULL.

For Example:

Consider the figure shown below. The left part represents the initial binary tree and right part represents the binary tree after connecting adjacent nodes at the same level.

alt text

In the tree shown in the picture above -:
The ‘next’ pointer of the node having value 2 is connected to the node having value 3.
The ‘next’ pointer of the node having value 4 is connected to the node having value 5.
The ‘next’ pointer of the node having value 5 is connected to the node having value 6.
The ‘next’ pointer of nodes having value 1, 3, 6 will have a value NULL as there are no next right nodes in their cases.

Note:

1. The structure of the ‘Node’ of a binary tree is already defined. You should not change it.   
2. The root of the binary tree is known to you.  
3. There is at least one node in the given binary tree.
4. You may only use constant extra space.
Problem approach

Easy problem. Standard one. I had already solved this problem before.
BFS using queue was used.

Try solving now

2. Detect and Remove Loop

Moderate
10m average time
90% success
0/80
Asked in companies
Paytm (One97 Communications Limited)OracleDelhivery

Given a singly linked list, you have to detect the loop and remove the loop from the linked list, if present. You have to make changes in the given linked list itself and return the updated linked list.

Expected Complexity: Try doing it in O(n) time complexity and O(1) space complexity. Here, n is the number of nodes in the linked list.

Problem approach

Fix algorithm to solve the problem. Its standard. Used 2 pointer approach (slow-fast)

Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date22 Jan 2021
Coding problem2

2 Coding problems, No compilation of code. Only pseudocode required

1. Median of two sorted arrays

Hard
25m average time
65% success
0/120
Asked in companies
ArcesiumLinkedInApple

Given two sorted arrays 'a' and 'b' of size 'n' and 'm' respectively.


Find the median of the two sorted arrays.


Median is defined as the middle value of a sorted list of numbers. In case the length of list is even, median is the average of the two middle elements.


The expected time complexity is O(min(logn, logm)), where 'n' and 'm' are the sizes of arrays 'a' and 'b', respectively, and the expected space complexity is O(1).


Example:
Input: 'a' = [2, 4, 6] and 'b' = [1, 3, 5]

Output: 3.5

Explanation: The array after merging 'a' and 'b' will be { 1, 2, 3, 4, 5, 6 }. Here two medians are 3 and 4. So the median will be the average of 3 and 4, which is 3.5.
Problem approach

I knew how to solve , had practiced earlier.
Used Binary Search.
Could not complete code, got stuck in maths, but passed

Try solving now
Easy
33m average time
0/40
Asked in companies
SamsungDirectiAmazon

Given a binary tree, write a function that returns a list containing all the leaf nodes of the binary tree in the order in which they appear from left to right. In case two leaf nodes are at the same distance from the leftmost node, the one that has a lesser depth has to be printed first.

 Remember/Consider:
If both horizontal and vertical distances are the same for two leaf nodes, then print the one with smaller node data.
Problem approach

Simple easy standard problem. Solved using DFS

Try solving now
03
Round
Hard
Face to Face
Duration40 minutes
Interview date22 Jan 2021
Coding problem2

OS-CN fundamentals

1. Computer Networks

What is peer-peer connection?

Problem approach

Tip 1 : Be thorough with CN concepts

2. Operating System

Virtual memory related questions. Many follow up questions

Problem approach

Tip 1 : Be thorough with the subject.
Tip 2 : Speak what you know. You get many follow up questions

Here's your problem of the day

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

Skill covered: Programming

Which operator is used for exponentiation in Python?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
1503 views
0 comments
0 upvotes
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
3663 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
989 views
0 comments
0 upvotes
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
771 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
107484 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
51830 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
32109 views
6 comments
0 upvotes