Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
WiJungle - by HttpCart interview experience Real time questions & tips from candidates to crack your interview

Golang Developer

WiJungle - by HttpCart
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
I began coding in my first year and actively participated in contests. I've successfully solved approximately 150-200 DSA questions. Concurrently, I engaged in web development and created a straightforward to-do web application.
Application story
I applied for this job through Fresherworld and submitted my resume there. After my resume was shortlisted, I received an email inviting me to take a test. I completed the aptitude and coding questions, followed by two rounds of video interviews.
Why selected/rejected for the role?
I was rejected in the second video call round because I could not answer a few questions related to DSA.
Preparation
Duration: 6 Months
Topics: Data Structures, Pointers, OOPS, Algorithms, HTML, CSS, JavaScript, Golang
Tip
Tip

Tip 1: Practice at least 250 questions.

Tip 2: For example, do at least 2 projects.

Application process
Where: Other
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1: Have some projects on your resume.

Tip 2: Do not include false information on your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration45 minutes
Interview date22 May 2022
Coding problem3

There were 15 MCQ questions and 1 coding question.

1. Minimum ASCII Delete Sum for Two Strings

Moderate
0/80
Asked in company
Tata Consultancy Services (TCS)

You are given two strings, ‘str1’ and ‘str2’. Your task is to delete a few characters (possibly 0) from both strings to make the strings equal. The characters you delete must have the minimum possible sum of their ASCII values.

For Example:
You are given str1=’abc’, str2=’bcd’, Here to make the string equal, we have to delete ‘a’ from str1 and ‘d’ from str2, which will add 97 and 100 to the answer. Hence the answer is 197
Problem approach

int sum = 0
for(char ch : str){
int ascii_val = ch;
sum += ascii_val
}

print(sum)

Try solving now

2. Exam Marks Analysis

Two students appeared for an examination. One of them secured 9 marks more than the other, and his marks were 56% of the sum of their marks. What were the marks obtained by them?

Problem approach

You can practice for these types of questions.

3. Puzzle

If A = x% of y and B = y% of x, which of the following is true?


1. A is smaller than B.
2. A is greater than B
3. The relationship between A and B cannot be determined.
4. If x is smaller than y, then A is greater than B.
5. None of these

02
Round
Medium
Video Call
Duration30 minutes
Interview date29 Jun 2022
Coding problem2

The interviewer was very friendly. He asked me two coding questions in this round.

1. Bubble Sort

Easy
10m average time
90% success
0/40
Asked in companies
LenskartCiscoOptum

Bubble Sort is one of the sorting algorithms that works by repeatedly swapping the adjacent elements of the array if they are not in sorted order.

You are given an unsorted array consisting of N non-negative integers. Your task is to sort the array in non-decreasing order using the Bubble Sort algorithm.

For Example:
Bubble Sort implementation for the given array:  {6,2,8,4,10} is shown below :-

Alt test

Problem approach

In the Bubble Sort algorithm, 

traverse from the left and compare adjacent elements; the higher one is placed on the right side. 
In this way, the largest element is moved to the rightmost end at first. 
This process is then continued to find the second largest and place it and so on until the data is sorted.

Try solving now

2. Ninja And Divisible Array

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

Ninja has been given an array/list ‘ARR’ of even size ‘N’ and an integer ‘K’. Ninja gives his friend a task to divide the given ‘ARR’ into ‘N’/2 pairs such that the sum of each pair should be divisible by ‘K’.

Can you help Ninja to do this task?

For Example :

If ‘ARR’ = [4 5 6 5 7 3] and ‘K’ = 5
Pairs are(4, 6), (5, 5) ,and (7, 3) and the sum of elements of each pair is divisible by ‘K’ i.e 5.
Problem approach

int count = 0
for(int ele: arr){
if(ele%3== 0 || ele%5==0) count++
}

print(count)

Try solving now
03
Round
Medium
Video Call
Duration45 minutes
Interview date2 Jul 2022
Coding problem1

1. Cycle Detection in a Singly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
American ExpressSterlite Technologies LimitedGoldman Sachs

You are given a Singly Linked List of integers. Return true if it has a cycle, else return false.


A cycle occurs when a node's next points back to a previous node in the list.


Example:
In the given linked list, there is a cycle, hence we return true.

Sample Example 1

Problem approach

Follow the steps below to solve the problem:

Have a visited flag with each node.
Traverse the linked list and keep marking visited nodes.
If you see a visited node again then there is a loop.

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 does HTML stand for?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
844 views
0 comments
0 upvotes
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
3053 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
509 views
0 comments
0 upvotes
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
316 views
0 comments
0 upvotes