P.S. Global Group interview experience Real time questions & tips from candidates to crack your interview

Fullstack Developer

P.S. Global Group
upvote
share-icon
1 rounds | 1 Coding problems

Interview preparation journey

expand-icon
Journey
I prepared well for my interview by going through the Coding Ninjas courses, revising the concepts thoroughly, and solving DSA problems on CodeStudio. This consistent practice helped me strengthen both my theoretical knowledge and problem-solving ability.
Preparation
Topics: MERN, DSA
Application process
Where: Coding Ninjas Placement Cell
Eligibility: NA, (Salary range: 6-8 LPA)

Interview rounds

01
Round
Medium
Online Coding Interview
Duration
Interview date8 Feb 2025
Coding problem1

1. Count of Subarrays with Sum Equal to K

Given an array of integers and an integer value K, find the total number of continuous subarrays whose sum equals K.

Example:
Input: arr = [1, 2, 3], K = 3
Output: 2
Explanation: The subarrays are [1, 2] and [3].

Problem approach
  • Maintain a running prefix sum while traversing the array.
  • Use a HashMap to store how many times a prefix sum has occurred.
  • At each step, check if (currentSum - K) exists in the HashMap:
    • If yes, it means there are subarrays ending at the current index whose sum is K.
    • Increase the count accordingly.
  • Update the HashMap with the current prefix sum.

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
4 rounds | 8 problems
Interviewed by Amazon
8962 views
0 comments
0 upvotes
Analytics Consultant
3 rounds | 10 problems
Interviewed by ZS
975 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3502 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2763 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Fullstack Developer
6 rounds | 5 problems
Interviewed by Microsoft
2280 views
0 comments
0 upvotes
company logo
Fullstack Developer
2 rounds | 2 problems
Interviewed by Samsung
2209 views
0 comments
0 upvotes
company logo
Fullstack Developer
2 rounds | 2 problems
Interviewed by Amdocs
1861 views
0 comments
0 upvotes