μ΄λ²μλ How Companies Evaluate Technical Interviewsμ λν λ΄μ© μ
λλ€.
μ½λ© μΈν°λ·° λ¬Έμ λ νλ¬Έμ μ© κ°μ΄ νμ΄λ³΄λλ‘ νκ² μ΅λλ€. μ μΌ μλμ κΈ°μΆλ¬Έμ κ° μμ΅λλ€. κ°μ΄ νμ΄λ΄μ!
μμ΄ κ³΅λΆλ μλλ μμ΅λλ€. λ§€μΌ κΎΈμ€ν λ£κ³ λ§νκΈ° μ°μ΅ νλ κ²μ΄ κ°μ₯ μ€μν©λλ€.
κ°λ°μλ§€μΌμμ΄λ λΉλΆκ°μ Cracking Coding Interviewμ μ μλ‘ μ λͺ
ν Gayle Laakmann McDowellμ μμ κ°μ’λ₯Ό μ§μμ μΌλ‘ 곡λΆν΄λ³΄λλ‘ νκ² μ΅λλ€.
μ 체 λΆλμ λ무 κΈΈμ΄μ μ£ΌμλΆλΆ ν λ κ΅°λ°λ§ 1λΆ μ΄νλ‘ λ°μ·νμ¬ mp3νμΌλ‘ λ§λ€κ³ μμ΅λλ€.
μ¦ ν μ£Όμ λΉ 1λΆ μ΄ν λΆλμ mp3νμΌμ΄ ν λκ°μ© μ 곡λκ² μ΅λλ€. λλ¨Έμ§ λΆλΆμ 리μ€λ μ°μ΅ νμλ©΄ λκ² μ΅λλ€.
μ΄λ²μλ λ°λΌνκΈ° μ½λλ‘ μ΅λν μ§§κ² μλμ΅λλ€.
곡λΆνλ 3λ¨κ³ λ°©λ²μ μλμ κ°μ΅λλ€.
1λΆ λΆλμ λ²μ
μ 체 λ£κΈ° λλ²
λ¬Έμ₯ λ£κ³ λ°λΌ λ§νκΈ° λλ²
νκ΅λ§λ‘ λ£κ³ μμ΄λ‘ λ§νκΈ°
ν루μ νμκ° μ΄μ λ€μΌλ©΄μ λ§νκΈ° μ°μ΅νλ©΄ μ’μ κ² κ°μ΅λλ€.
μ°μ΅ mp3 νμΌ λ€μ΄λ‘λ: https://drive.google.com/open?id=1EeYb9sFde6YdoFLI7_x16FetwLSNIBGN
μλ³Έ λμμ:
--- mp3 script & λ²μ μ ---
Some tips for preparation here. First thing is actually practice this. Lock yourself in a room alone or better yet actually with somebody else in the room. Even if its somebody who has no idea about coding or anything like that and just get comfortable talking out loud and exposing your thought process.
The second thing is in the preparation as well as in the actual interview whenever you notice yourself being quiet try to take a step back and at least give me the headline of your thought process. So you might tell me something like what I'm thinking about right now is how to optimize this piece. What I'm thinking about right now is you know I feel there's some way of using the fact the data is sorted. So try to give me at least the headline of your thought process even if you can't give me anything else.
And then the third thing is, you know, try to give me what you can it's fantastic of course if you can give, you know, this really clear articulate description of your thought process but even if all you can do is mumbling it is so much better to mumble than to say nothing at all.
μΈν°λ·° μ€λΉλ₯Ό μν νλ€μ 보면, 첫λ²μ§Έλ‘, λ°©μμ νΌμ λλ λ€λ₯Έ μ¬λκ³Ό κ°μ΄ μλ κ²μ΄ λ μ’μ΅λλ€. κ·Έ μ¬λμ΄ μ½λ©μ λͺ°λΌλ λ©λλ€ κ·Έλ₯ νΈμν ν° λͺ©μλ¦¬λ‘ μκ°νκ³ μλ κ²μ μκΈ°νλ κ²μ μ°μ΅νλ κ²μ
λλ€.
λλ²μ§Έλ‘ μ°μ΅ λΏλ§ μλλΌ μ€μ μΈν°λ·° μμλ μμ μ΄ μ‘°μ©νκ² μκ°νκ³ μμλ λ§λ€ μ΅μν λ μκ°νκ³ μλμ§ λλ΅μ΄λΌλ μκΈ°ν΄μΌν©λλ€. μλ₯Όλ€μ΄ μ§κΈ μ΄κ²μ μ΄λ»κ² μ΅μ ν ν μ μμ μ§ μκ°νκ³ μλ€κ³ λ§ν μλ μμ΅λλ€. λλ λ°μ΄ν°κ° μ λ ¬λμλ€λ μ¬μ€μ μ΄μ©ν λ°©λ²λ€μ μκ°νκ³ μλ€κ³ μκΈ° ν μλ μμ΅λλ€. λΉμ₯ μ΄λ€ κ²μ μ€ μ μμ΄λ λ μκ°νκ³ μλμ§ λλ΅μ΄λΌλ μκΈ° νλλ‘ ν©μλ€.
μΈλ²μ§Έλ‘ λΉμ μ΄ ν μ μλ κ²μ λΆλͺ
νκ² μ 리ν΄μ μκΈ° νλ©΄ λ©μ§ κ²μ΄μ§λ§ μ μ΄λ μ무λ§λ μνλ κ² λ³΄λ€λ λλΌκ³ μ€μΌκ±°λ¦¬λκ² μ’μ΅λλ€.
----- μ΄μ£Όμ Interview Question (κ°μ΄ νμ΄ λ΄μ!) -----
Top K Frequent Elements
Given a non-empty array of integers, return the k most frequent elements.
Example 1:
Input: nums = [1,1,1,2,2,3], k = 2
Output: [1,2]
Example 2:
Input: nums = [1], k = 1
Output: [1]
Note:
You may assume k is always valid, 1 β€ k β€ number of unique elements.
Your algorithm's time complexity must be better than O(n log n), where n is the array's size.
λ¬Έμ μλ³Έ: https://leetcode.com/problems/top-k-frequent-elements/description/