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

SDE - 1

Accolite
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 7 month
Topics: Data structure and algorithmoperating systemDBMS oopscomputer networkweb development
Tip
Tip

Tip 1 : Be very clear with your project explanation and don't copy others project .
Tip 2 : Also try to cover all the cs core subjects explanation clearly.

Application process
Where: Campus
Eligibility: 6.5 cgpa and 65% 12th marks minimun requirement
Resume Tip
Resume tip

Tip 1 : Make it clean with appropriate knowledge.
Tip 2 : Provide true information and avoid telling lie in which You are not sure.

Interview rounds

01
Round
Medium
Video Call
Duration55 minute
Interview date6 Aug 2021
Coding problem1

It was morning time and from 9:00 am . It happened via the google meet online process and it was very smooth onboarding . Interviewer was very friendly kind of nature .

1. Kth smallest node in BST

Moderate
15m average time
80% success
0/80
Asked in companies
WalmartMakeMyTripAmazon

You have been given a Binary Search Tree of integers. You are supposed to return the k-th (1-indexed) smallest element in the tree.


For example:
For the given binary search tree and k = 3

Example

The 3rd smallest node is highlighted in yellow colour.   
Problem approach

// A simple inorder traversal based Java program
// to find k-th smallest element in a BST.

import java.io.*;
// A BST node
class Node {
int data;
Node left, right;
Node(int x)
{
data = x;
left = right = null;
}
}

class GFG {

static int count = 0;
// Recursive function to insert an key into BST
public static Node insert(Node root, int x)
{
if (root == null)
return new Node(x);
if (x < root.data)
root.left = insert(root.left, x);
else if (x > root.data)
root.right = insert(root.right, x);
return root;
}

// Function to find k'th largest element in BST
// Here count denotes the number of nodes processed so far
public static Node kthSmallest(Node root, int k)
{
// base case
if (root == null)
return null;

// search in left subtree
Node left = kthSmallest(root.left, k);

// if k'th smallest is found in left subtree, return it
if (left != null)
return left;

// if current element is k'th smallest, return it
count++;
if (count == k)
return root;

// else search in right subtree
return kthSmallest(root.right, k);
}

// Function to find k'th largest element in BST
public static void printKthSmallest(Node root, int k)
{
Node res = kthSmallest(root, k);
if (res == null)
System.out.println("There are less than k nodes in the BST");
else
System.out.println("K-th Smallest Element is " + res.data);
}

public static void main(String[] args)
{
Node root = null;
int keys[] = { 20, 8, 22, 4, 12, 10, 14 };
for (int x : keys)
root = insert(root, x);
int k = 3;
printKthSmallest(root, k);
}
}

Try solving now
02
Round
Medium
Video Call
Duration45 minute
Interview date7 Aug 2021
Coding problem1

It was again the morning session and the interviewer was very supportive in nature and gave me the hint too to think the approach and finally i came up the solution which he was expecting.Went very well.

1. Is it a Circular Linked List?

Easy
15m average time
85% success
0/40
Asked in companies
MicrosoftSAP LabsSamsung R&D Institute

You are given a Singly Linked List of integers. You have to find if the given linked list is circular or not.

image

Problem approach

// Java program to check if
// linked list is circular

import java.util.*;

class GFG {

/* Link list Node */
static class Node {
int data;
Node next;
}

/*This function returns true if given linked
list is circular, else false. */
static boolean isCircular(Node head)
{
// An empty linked list is circular
if (head == null)
return true;

// Next of head
Node node = head.next;

// This loop would stop in both cases (1) If
// Circular (2) Not circular
while (node != null && node != head)
node = node.next;

// If loop stopped because of circular
// condition
return (node == head);
}

// Utility function to create a new node.
static Node newNode(int data)
{
Node temp = new Node();
temp.data = data;
temp.next = null;
return temp;
}

/* Driver code*/
public static void main(String args[])
{
/* Start with the empty list */
Node head = newNode(1);
head.next = newNode(2);
head.next.next = newNode(3);
head.next.next.next = newNode(4);

System.out.print(isCircular(head) ? "Yes\n"
: "No\n");

// Making linked list circular
head.next.next.next.next = head;

System.out.print(isCircular(head) ? "Yes\n"
: "No\n");
}
}

Try solving now
03
Round
Easy
Video Call
Duration20 minute
Interview date7 Aug 2021
Coding problem1

i passed this round because I answered very well in first two round and also i was very good in communication kind off.

1. Operating System Question

Ques: What is thread in OS?
 

Problem approach

Ans: Thread is a path of execution that is composed of a program counter, thread id, stack, and set of registers within the process. It is a basic unit of CPU utilization that makes communication more effective and efficient, enables utilization of multiprocessor architectures to a greater scale and greater efficiency, and reduces the time required in context switching. It simply provides a way to improve and increase the performance of applications through parallelism. Threads are sometimes called lightweight processes because they have their own stack but can access shared data.

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
SDE - 1
3 rounds | 7 problems
Interviewed by Accolite
702 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Accolite
776 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Accolite
677 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 8 problems
Interviewed by Accolite
668 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes