Tip 1 : Must do Previously asked Interviews Questions.
Tip 2 : Prepare OS, DBMS, OOPs, Computer Networks well.
Tip 3 : Prepare well for one project mentioned in the resume, the interviewer may ask any question related to the project, especially about the networking part of the project.
Tip 1 : Have at least 2 good projects mentioned in your resume with a link
Tip 2 : Focus on skills, internships, projects, and experiences.
Tip 3 : Make it simple, crisp, and one page
Tip 4 : Only write those skills in which you are good.
This was 1st technical round taken by the software engineer at Apple. Interviewer was very friendly, he started with his introduction and then asked me to introduce myself.
1)The amount of petrol that is available at this particular petrol pump.
2)The distance to reach the next petrol pump.
C++ Solution
int canCompleteCircuit(vector& gas, vector& cost) {
int balance = 0;
int defi = 0;
int start = 0;
for(int i = 0;i=0) return start;
return -1;
}
C++ solution ||using sliding window || TC : O(2n)
class Solution {
public:
int lengthOfLongestSubstring(string s) {
int n = s.size();
int len = 0;
int l = 0, r = 0;
unordered_set st;
while (r < n)
{
if (st.find(s[r])== st.end())
st.insert(s[r]);
else {
while (st.find(s[r]) != st.end()) {
st.erase(s[l]);
l++;
}
st.insert(s[r]);
}
len = max(len, r - l + 1);
r++;
}
return len;
}
};
It was the second technical round taken by the senior software developer. During the interview, the interviewer was very friendly and helpful whenever I had any questions. I was asked to introduce myself after he gave his introduction.
Given students' ratings : [5, 8, 1, 5, 9, 4].
He gives the students candy in the following minimal amounts : [1, 2, 1, 2, 3, 1]. He must buy a minimum of 10 candies.
1. If two students having the same grade are standing next to each other, they may receive the same number of candies.
2. Every student must get at least a candy.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you write a single-line comment in C++?