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

SDE - 1

PARKnSECURE
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, OOPS, DBMS, OS, Algorithms
Tip
Tip

Tip 1 : Prepare for DS & Algorithms seriously
Tip 2 : Do atleast 2 good projects

Application process
Where: Other
Eligibility: Shortlisted through coding ninjas placement cell
Resume Tip
Resume tip

Tip 1 : Put only things which you can justify
Tip 2 : One Page resume

Interview rounds

01
Round
Medium
Face to Face
Duration45 minutes
Interview date16 Jul 2022
Coding problem2

Initially started with introduction, then questions related to python were asked followed by two DSA problems

1. Check If The String Is A Palindrome

Easy
10m average time
90% success
0/40
Asked in companies
SprinklrCIS - Cyber InfrastructureSamsung

You are given a string 'S'. Your task is to check whether the string is palindrome or not. For checking palindrome, consider alphabets and numbers only and ignore the symbols and whitespaces.

Note :

String 'S' is NOT case sensitive.

Example :

Let S = “c1 O$d@eeD o1c”.
If we ignore the special characters, whitespaces and convert all uppercase letters to lowercase, we get S = “c1odeedo1c”, which is a palindrome. Hence, the given string is also a palindrome.
Problem approach

I first converted the number to string. then using two pointer approach I checked if it is palindrome or not.
If it is not palindrome or not I count the even and odd occurrences of numbers to check whether it can be made converted into palindrome.

Try solving now

2. Odd To Even

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

You are given an odd number in the form of a string, ‘S.’ Your goal is to convert the number into an even number such that the following two conditions are satisfied.

You can use swap operation over any two indices i,e you can choose two indices 'i' and 'j' and swap the digits present at S[i] and S[j]. But this operation can be used only once.

Your final even number should be the largest out of all other possible even numbers.
Note:
If it isn’t possible to make an even number print -1
Try solving now
02
Round
Medium
Face to Face
Duration30 minutes
Interview date20 Jul 2022
Coding problem1

Started with my introduction. Then the interviewer asked to explain OOPS concept. He asked me about solid principles which I was not familiar with. Then he asked to me write a program which implement all the OOPS concepts like encapsulation, abstraction, inheritance, and polymorphism. I could not code it correctly. Hence, was rejected.

1. Technical Question

Implement all the OOPS concepts

Problem approach

I did code the problem using smartphone as an example but my code did not run at that time. Here is the running code. Hope it helps-

#include 
#include 
#include 
using namespace std;

//Reusability
class AbstractClass{
virtual void isworthbuy() = 0;
};

//Encapsulation
class smartphone : AbstractClass{
int price;
public:
string brand;
int manf_year;
bool is5g;


void isworthbuy(){
if(is5g){
cout<<"YES"<<'\n';
}
else{
cout<<"NO"<<'\n';
}
}
//Constructor
smartphone(string brand, int manf_year, bool is5g){
this->brand = brand;
this->manf_year = manf_year;
this->is5g = is5g;
}

//Getter
int getprice(){
return price;
}
//Polymorphism
//Setter
void setprice(int number){
if(number < 0){
cout<<"Enter valid price";
return;
}
price = number;
}
void setprice(int number, bool is5g){
if(number < 0){
cout<<"Enter valid price";
return;
}
if(is5g){
price = number + 1000;
}
else{
price = number;
}
}


void print(){
cout }

void print(){
cout< }
};


int main() {
smartphone s1("Apple", 2021, true);
smartphone s2("Samsung", 2021, true);
Apple a1("Apple", 2021, true, "X13");
s1.isworthbuy();
a1.print();
cout<<'\n';
s1.setprice(10000);
s2.setprice(10000, 1);
cout< s1.print();
}

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
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4656 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114578 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57824 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34960 views
7 comments
0 upvotes