When the dust settled, I joined Ctrip
I have been looking for a job for a while. I finally joined Ctrip, and my monthly base salary increased by 65% compared with a year ago.
Ctrip is a big company in my mind. I work in the financial sector. My office is in the National Convention Center, with a beautiful environment.
So it is overall I am very satisfied, after all, the money to the place 🤩, what environment ah this is secondary (I am so superficial/dog head), of course, the good results are with several times the effort to get.
Take this opportunity to share with you my interview experience, but also a new look at yourself. My next target is Byte, storm 💪💪💪💪
ps:
I saw a rainbow the other day.
Being laid off, caught off guard
Let’s start with the recent job change. The national policy is a knife cut, not a soft touch, and the whole after-school training industry has undergone a huge transformation. For K12 education company, self-help is the first step, the first step of self-help is to lay off staff. It was a pretty big layoff. I got laid off in the second wave.
There is also a fun thing: the company just rented an office place of 1000 and 2000 positions, from 0 to 1 decoration, we moved to the use of less than 3 months, the rental!! I don’t know if it’s bad.
I had planned to resign after two months, so I was a little caught off guard. And the compensation is only paid to N, so I can’t afford it, two or three days after signing the contract, which is the last day of June. Then it’s review and interview.
Three weeks to prepare
I didn’t do enough preparation, so I gave myself 3 weeks of pure review time.
Brush the first week
In the first week, I did the homework. At the beginning, I could not adapt to it and could not learn at home. I was so upset that I went to a nearby Starbucks to brush leetcode. If you can’t learn, try going to a library, a coffee shop, or a new environment.
I have brushed a lot of questions on Leetcode, especially the time spent on moving them, but I did not use them in the interview, so I made no effort 😭. Then I bought this “Labuladong’s Algorithm Cheat Sheet” with the attitude of last-minute preparation, and spent 2 days to finish reading it (the book has different reviews on the net, so we can buy it according to our needs).
Here’s what I did, mainly to warm up my hands and warm up my mind:
Animation, string, array, sort, tree
I would encourage people in my situation to focus on sorting and tree correlation.
In the companies I met with, the interview questions did not have the original question, but as long as the thinking online basically can write out. I think the purpose of the brush question is better to train the brain if it is not BAT.
Week 2 MySQL, Redis, MQ, Dubbo, ZK
How is 1 discount transaction implemented? 2 ️ lock in MySQL and index data structure of scene row lock and gap lock 3 discount ️
For Redis, it is recommended to have a look at Redis Core Technology and Actual Combat on Geek Time and the paper book Redis Design and Implementation: 1 ️Redis, which codes of each data structure 2 discount underlying structure 3 discount RDB, AOF 4 discount strategy 5 discount cluster and Gossip protocol
Comparison on selection of 1 ️MQ and scenario 2 one ️ how to ensure message not lost 3 discount on repeated consumption
ZK: 1 ️ZAB agreement 2 ️ on leader election 3 discount and 4 one why is half mechanism used
Week three, look at the source code
This week for the interview will be asked to review the eight-part essay, of course, I did not back it, I spent a long time to see the source code, the answer is in the source code after reading touch clearly, the interview is also more emboldened, strongly recommend reading the source code.
Examples include dubbo service exposure, imported source code, Spring bean creation code (see how loop dependencies are handled), AQS, ThreadLocl.
AQS source code in particular, after reading the entire concurrency framework in mind. Of course, read the source code of this matter, not read once can understand all, to be ready to fight a tough battle. I read things like the Spring Bean creation process no less than eight times, each time taking hours.
How to perform in the interview
Here comes the point!!
First of all, take the initiative in answering the interview questions. Let me give you an example:
Interviewer: You know the transaction isolation level in MySQL, you tell me
Me :(isolation level I understand ah, back such as flow, talk to this?) RU, RC, RR, Serializable
Interviewer: Ok, let’s call it a day
Such answer, casual beginner also can say come up, the advantage does not reflect. Of course, the interviewer really wants to see that he will continue to ask, but it is better to take the initiative to speak out their own knowledge to form a benign interaction.
A better way to answer this question is not only to say what isolation boundaries are, but also to say how mysql implements these isolation levels, how these problems can occur at different isolation levels, and to give examples of real world scenarios.
Here’s my answer. Here’s the point:
MySQL relies on MVCC for its isolation level, and then a brief introduction to MVCC. There are no dirty rereading and rereading problems in RR. MVCC is used to explain why there are no dirty rereading and rereading problems. Moving on, however, there is a possibility of phantom reading at RR level, so let me explain what phantom reading is. Continue to talk about why phantom can occur, just introduce the gap lock, while giving examples of phantom scenarios and non-phantom scenarios.
This is not enough, not only the perfect answer to the business question, but also the introduction of the concept of lock, with my experience interview pipe nine out of ten will then ask clearance lock, this review is good, then not a steady score.
The ending is a bumpy one
At the beginning, I invested in a number of small companies to gain experience because of my own recruitment experience of 0
At the late stage of the interview, I had 8 offers, but they were all from small companies. I was also exhausted by more than a dozen interviews a week, and I had to stick to the following interviews.
So until Moka gave me the ideal salary, I didn’t want to meet, but I still managed to finish the rest of the Tianyan inspection, rotation, Boss zhiping and Ctrip.
And all received the offer, in addition to the boss (interview encountered a silly * interviewer), now think really a little afraid, fortunately, a little patient, everyone interview must be patient ah!!
After receiving the offer of Moka, I went to the site for sightseeing (it was very close to my home, and I arrived there in 15 minutes by electric bike). Later I was informed that I had passed, so I immediately accepted the offer of sightseeing.
I was so happy, I didn’t think the last kick could jump up, thought it was over. The most terrible thing was that one hour after I received the offer, ctrip hr called me and said that I would talk about my salary later.
Although the base offered by Ctrip was 1K lower than that of Zhuan, I still chose to go to Ctrip and then rejected the offer of Zhuan. True when a wave of wicked 😅.
It was at the end that I did a triple jump, which was pretty bad. Please be patient