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

SDE - 2

Nykaa
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
I applied in Nyka Company on naukri for software development engineer-2 profile and got shortlisted for the interview. Total interview rounds: 2 Coding round + System Design round
Application story
I applied on naukri and got shortlisted for the first interview which went for 1 hr next day I got the news that I have another round 2 days later I went for another round and did not make it.
Why selected/rejected for the role?
I got shortlisted because I was consistently preparing for the role and working on my fundamentals and core learning, also basic coding questions I was practising. Java 8 is must with good knowledge of Threading.
Preparation
Duration: 2 months
Topics: Core Java,Data structures and algorithms,Spring Framework,Relational databases,NoSQL database, RESTful API design and implementation
Tip
Tip

Tip 1 :Prepare fundamental theory well
Tip 2 : Prepare Easy and medium level questions
Tip 3 : Go through you resume well

Application process
Where: Campus
Eligibility: B.Tech/Mca
Resume Tip
Resume tip

Tip 1:Make your resume relevant
Tip 2:Mention projects and experience

Interview rounds

01
Round
Medium
Video Call
Duration60 mins
Interview date24 Mar 2023
Coding problem2

1. Rotting Oranges

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

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

    The idea is to use Breadth First Search. The condition of oranges getting rotten is when they come in contact with other rotten oranges. This is similar to a breadth-first search where the graph is divided into layers or circles and the search is done from lower or closer layers to deeper or higher layers.

    Try solving now

    2. Longest Palindromic Substring

    Moderate
    20m average time
    80% success
    0/80
    Asked in companies
    MicrosoftCIS - Cyber InfrastructureGartner

    You are given a string 'str' of length 'N'.


    Your task is to return the longest palindromic substring. If there are multiple strings, return any.


    A substring is a contiguous segment of a string.


    For example :
    str = "ababc"
    
    The longest palindromic substring of "ababc" is "aba", since "aba" is a palindrome and it is the longest substring of length 3 which is a palindrome. 
    
    There is another palindromic substring of length 3 is "bab". Since starting index of "aba" is less than "bab", so "aba" is the answer.
    
    Problem approach

    class Solution {
    public String longestPalindrome(String s) {
    int start = 0;
    int end = 0;
    for (int i = 0; i < s.length(); i++) {
    int l1 = exp(s, i, i);
    int l2 = exp(s, i, i+1);
    int l = Math.max(l1, l2);
    if(l>(end-start)){
    start = i - (l-1)/2;
    end = i + (l)/2;
    }
    }
    return s.substring(start, end+1);
    }

    public static int exp(String s, int left, int right){
    if(s==null || left>right) return 0;
    while (left>=0 && right left--;
    right++;
    }
    return (right-left)-1;
    }
    }

    Try solving now
    02
    Round
    Medium
    Video Call
    Duration60 mins
    Interview date27 Mar 2023
    Coding problem1

    1. System Design

    Implement Split-wise Low level design

    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 recursion?

    Choose another skill to practice
    Similar interview experiences
    SDE - 1
    3 rounds | 4 problems
    Interviewed by Nykaa
    5922 views
    0 comments
    0 upvotes
    SDE - 2
    3 rounds | 3 problems
    Interviewed by Nykaa
    4669 views
    0 comments
    0 upvotes
    Senior Software Engineer
    3 rounds | 4 problems
    Interviewed by Nykaa
    2157 views
    0 comments
    0 upvotes
    Software Developer
    3 rounds | 4 problems
    Interviewed by Nykaa
    3591 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    SDE - 2
    5 rounds | 12 problems
    Interviewed by Walmart
    29569 views
    8 comments
    0 upvotes
    company logo
    SDE - 2
    3 rounds | 5 problems
    Interviewed by Amazon
    6677 views
    1 comments
    0 upvotes
    company logo
    SDE - 2
    6 rounds | 8 problems
    Interviewed by Amazon
    5175 views
    0 comments
    0 upvotes