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

SDE - 1

MountBlue Technologies
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
Embarking on my coding odyssey during my first year of college was both exhilarating and challenging. Initially grappling with the syntax of languages like Python and Java, I gradually embraced the logic and problem-solving aspects of programming. As I delved into data structures, algorithms, and web development, each milestone brought a sense of accomplishment. Collaborating on projects with peers honed my teamwork and communication skills. Facing bugs and errors became opportunities for learning, fostering resilience. By the end of my coding journey's initial phase, I had transformed from a novice to a more confident programmer, eager to explore the vast realms of software development that lay ahead.
Application story
This company conducted an initial online assessment followed by three rounds of interviews during their campus placement visit. The interview process consisted of two technical rounds and one round focused on human resources.
Why selected/rejected for the role?
I did not secure the position due to challenges in comprehending and accurately responding to all aspects presented during the selection process.
Preparation
Duration: 3 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: Regularly participate in coding challenges on platforms like CodeStudio to enhance problem-solving skills and gain exposure to diverse coding scenarios.

Tip 2: Engage in collaborative coding projects focusing on real-world applications. This demonstrates practical coding abilities and enhances teamwork and project management skills, making you more appealing to potential employers.

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

Tip 1: Highlight quantifiable achievements and results in your resume, showcasing the impact of your contributions in previous roles, such as increased efficiency, cost savings, or successful project outcomes.

Tip 2: Tailor your resume for each job application, emphasizing relevant skills and experiences that align with the position's specific requirements. This customization enhances your chances of standing out to recruiters and aligning with the role's needs.

Interview rounds

01
Round
Easy
Video Call
Duration90 minutes
Interview date16 Sep 2022
Coding problem2

Timing: The interview took place between 11:00 AM and 1:00 PM, providing a daytime setting for the interaction.

Environment: The interview environment was professional, conducted in a well-lit room that fostered a conducive atmosphere for focused discussions. The setting aimed to create a positive and collaborative ambiance.

1. Rotting Oranges

Moderate
20m average time
78% success
0/80
Asked in companies
SliceSamsung R&D InstituteSalesforce

You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:

  • Value 0 - representing an empty cell.
  • Value 1 - representing a fresh orange.
  • Value 2 - representing a rotten orange.
  • Every second, any fresh orange that is adjacent(4-directionally) to a rotten orange becomes rotten.

    Your task is to find out the minimum time after which no cell has a fresh orange. If it's impossible to rot all the fresh oranges then print -1.

    Note:
    1. The grid has 0-based indexing.
    2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
    
    Problem approach

    You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:
    Value 0 - representing an empty cell.
    Value 1 - representing a fresh orange.
    Value 2 - representing a rotten orange.
    Every second, any fresh orange that is adjacent(4-directionally) to a rotten orange becomes rotten.
    Our task is to find out the minimum time after which no cell has a fresh orange. If it's impossible to rot all the fresh oranges then print -1.

    Try solving now

    2. Minimum Fountains

    Easy
    10m average time
    80% success
    0/40
    Asked in companies
    AdobeMicrosoftQualcomm

    There is a one-dimensional garden of length 'N'. On each of the positions from 0 to 'N', there is a fountain, and this fountain’s water can reach up to a certain range as explained further. In other words, there are 'N' + 1 fountains located at positions 0, 1, 2, 3, …. 'N' which can be activated in the garden.

    You are given an integer 'N' and an array/list 'ARR' of length 'N' + 1, where each index of the array denotes the coverage limit of a particular fountain.

    A fountain at index 'i' can water the area ranging from the position 'i' - 'ARR'['i'] to 'i' + 'ARR'['i'].

    Your task is to find the minimum number of fountains that have to be activated such that the whole garden from position 0 to 'N' has access to the water from at least some fountain.

    Note:

    1. 0-based indexing is used in the array.
    2. We only care about the garden from 0 to 'N' only. So if i - 'ARR'['i'] < 0 or i + 'ARR'['i'] > 'N', you may ignore the exceeding area.
    3. If some fountain covers the garden from position 'A' to position 'B', it means that the water from this fountain will spread to the whole line segment with endpoints 'A' and 'B'.
    
    Problem approach

    def minFountains(N, ARR):
    rangeArr = [0] * (N + 1)
    for i in range(N + 1):
    left, right = max(0, i - ARR[i]), min(N, i + ARR[i])
    rangeArr[i] = (left, right)

    left = [0] * (N + 1)
    right = [0] * (N + 1)

    for i in range(N + 1):
    left[i] = max(0, rangeArr[i][0])
    right[i] = min(N, rangeArr[i][1])

    fountains, i = 0, 0

    while i <= N:
    maxRight = 0
    while i <= N and i <= maxRight:
    maxRight = max(maxRight, right[i])
    i += 1
    if i <= N:
    fountains += 1

    return fountains

    # Example usage:
    N = 7
    ARR = [1, 2, 1, 0, 2, 1, 0, 1]
    result = minFountains(N, ARR)
    print(result)

    Try solving now
    02
    Round
    Easy
    Video Call
    Duration60 minutes
    Interview date19 Sep 2022
    Coding problem2

    1. Delete Node In A Linked List

    Easy
    15m average time
    80% success
    0/40
    Asked in companies
    CIS - Cyber InfrastructureDell TechnologiesSamsung Electronics

    You are given a Singly Linked List of integers and a reference to the node to be deleted. Every node of the Linked List has a unique value written on it. Your task is to delete that node from the linked list.

    A singly linked list is a linear data structure in which we can traverse only in one direction i.e. from Head to Tail. It consists of several nodes where each node contains some data and a reference to the next node.

    Note:

    • The reference to the head of the linked list is not given.
    • The node to be deleted is not a tail node.
    • The value of each node in the Linked List is unique.
    • It is guaranteed that the node to be deleted is present in the linked list.
    

    A sample Linked List-

    singly_linkedlist

    Problem approach

    You are given a Singly Linked List of integers and a reference to the node to be deleted. Every node of the Linked List has a unique value written on it. Your task is to delete that node from the linked list.
    A singly linked list is a linear data structure in which we can traverse only in one direction i.e. from Head to Tail. It consists of several nodes where each node contains some data and a reference to the next node.

    Try solving now

    2. 3Sum

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

    You are given an array/list ARR consisting of N integers. Your task is to find all the distinct triplets present in the array which adds up to a given number K.

    An array is said to have a triplet {ARR[i], ARR[j], ARR[k]} with sum = 'K' if there exists three indices i, j and k such that i!=j, j!=k and i!=j and ARR[i] + ARR[j] + ARR[k] = 'K'.

    Note:
    1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
    2. The elements in the array need not be distinct.
    3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
    
    Problem approach

    You are given an array/list ARR consisting of N integers. Your task is to find all the distinct triplets present in the array which adds up to a given number K.
    An array is said to have a triplet {ARR[i], ARR[j], ARR[k]} with sum = 'K' if there exists three indices i, j and k such that i!=j, j!=k and i!=j and ARR[i] + ARR[j] + ARR[k] = 'K'.

    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

    What is the purpose of the return keyword?

    Choose another skill to practice
    Similar interview experiences
    company logo
    SDE - 1
    3 rounds | 7 problems
    Interviewed by OYO
    4782 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 5 problems
    Interviewed by MountBlue Technologies
    1972 views
    0 comments
    0 upvotes
    company logo
    Software Engineer
    3 rounds | 2 problems
    Interviewed by MountBlue Technologies
    1164 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 9 problems
    Interviewed by Salesforce
    3567 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    SDE - 1
    2 rounds | 3 problems
    Interviewed by BNY Mellon
    6315 views
    3 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 6 problems
    Interviewed by BNY Mellon
    0 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 5 problems
    Interviewed by CIS - Cyber Infrastructure
    2179 views
    0 comments
    0 upvotes