מפגש 35: שאלות נפוצות, קוד על הלוח, פרויקטים בקורות חיים.Session 35: Common questions, whiteboard coding, projects on your CV.
שאלות נפוצות, קוד על הלוח, פרויקטים בקורות חיים. בסוף המפגש מוסיפים צעד לפרויקט המלווה.Common questions, whiteboard coding, projects on your CV. At the end we add a step to the companion project.
מה נעשה היוםToday's plan
שלביםStages
ספירהCounting
מצביעיםPointers
חלוןWindow
לחשוב בקולOut loud
הצגהPitch
עוברים על סדר היום ומזכירים את הפרויקט המלווה.Walk through the plan and mention the companion project.
נושאTopic 1
שלביםStages
איך נראה ראיוןWhat an interview looks like
שיחת היכרות → מבחן בית/אונליין → ראיון טכניIntro call → home/online test → technical interview
מעריכים חשיבה, לא רק תשובהThey assess thinking, not just the answer
לשאול שאלות זה יתרוןAsking questions is a plus
ראיון טכני לתפקיד ג'וניור בודק בעיקר דבר אחד: איך אתם חושבים. מראיינים רוצים לשמוע אתכם מבינים את השאלה, מנסים דוגמאות, מתכננים, כותבים קוד קריא ובודקים אותו. פתרון מושלם בשקט שווה פחות מפתרון טוב שמוסבר היטב. שיטה בארבעה שלבים, שאפשר אפילו לכתוב כקוד:A technical interview for a junior role mostly checks one thing: how you think. Interviewers want to hear you understand the question, try examples, plan, write readable code and check it. A perfect silent solution is worth less than a good one well explained. A four-step method, which you can even write as code:
אנלוגיהAnalogy
ראיון טכני הוא כמו מבחן נהיגה: הבוחן לא מחפש נהג מירוצים, אלא מישהו שמסתכל במראות, מאותת, ומסביר מה הוא עושה.A technical interview is like a driving test: the examiner isn't looking for a racing driver, but someone who checks mirrors, signals, and explains what they're doing.
שואלים אם מישהו מכיר דוגמה נוספת מהחיים.Ask for another real-life example.
נושאTopic 2
ספירהCounting
דפוס: לספור במילוןPattern: counting in a dict
"כמה פעמים", "הכי נפוץ", "יחיד""How many times", "most common", "unique"
Counter או dict.get(x, 0) + 1Counter or dict.get(x, 0) + 1
O(n) במקום O(n²)O(n) instead of O(n²)
הרבה שאלות הן בעצם "תספרו משהו": האם שתי מילים הן אנגרמות, מה התו הראשון שלא חוזר, האם יש כפילויות. הדפוס: עוברים פעם אחת וסופרים במילון (או Counter), ואז עונים מתוך הספירה. זה O(n).Many questions are really "count something": are two words anagrams, what's the first non-repeating character, are there duplicates. The solution pattern: one pass counting into a dict (or Counter), then answer from the counts. That's O(n).
אנלוגיהAnalogy
מילון ספירה הוא כמו טבלת סימונים בבחירות לוועד: עוברים על הפתקים פעם אחת, ובסוף רואים מיד מי ניצח.A counting dict is like a tally sheet for a committee vote: go through the ballots once, and at the end you see the winner at a glance.
שואלים אם מישהו מכיר דוגמה נוספת מהחיים.Ask for another real-life example.
נושאTopic 3
מצביעיםPointers
דפוס: שני מצביעיםPattern: two pointers
מהקצוות פנימה: פלינדרום, סכום בזוגFrom the ends inward: palindrome, pair sum
ברשימה ממוינתIn a sorted list
O(n) ובלי זיכרון נוסףO(n) and no extra memory
בשני מצביעים מחזיקים שני אינדקסים, לרוב בשני הקצוות, ומזיזים אותם פנימה לפי תנאי. כך בודקים פלינדרום, או מוצאים ברשימה ממוינת זוג שסכומו מסוים, במעבר אחד במקום לולאה כפולה.With two pointers you hold two indexes, usually at both ends, and move them inward by a condition. That's how you check a palindrome, or find a pair with a given sum in a sorted list, in one pass instead of a double loop.
אנלוגיהAnalogy
שני מצביעים הם כמו שני אנשים שמקפלים סדין: כל אחד מתחיל בקצה, והם מתקרבים עד שנפגשים באמצע.Two pointers are like two people folding a sheet: each starts at an end, and they move closer until they meet in the middle.
שואלים אם מישהו מכיר דוגמה נוספת מהחיים.Ask for another real-life example.
נושאTopic 4
חלוןWindow
דפוס: חלון נעPattern: a sliding window
"רצף של k", "הכי ארוך בלי...""A run of k", "longest without..."
מוסיפים את הנכנס, מחסירים את היוצאAdd what enters, subtract what leaves
O(n) במקום O(n·k)O(n) instead of O(n·k)
חלון נע: כשהשאלה על רצפים, למשל "השבוע עם הכי הרבה עמודים" (7 ימים רצופים), לא מחשבים כל חלון מחדש. מזיזים את החלון ביום אחד: מוסיפים את היום שנכנס ומחסירים את היום שיצא.Sliding window: when the question is about runs, like "the week with the most pages" (7 consecutive days), don't recompute every window. Slide it by one day: add the day coming in and subtract the day going out.
אנלוגיהAnalogy
חלון נע הוא כמו חלון ברכבת: הנוף זז, אבל לא צריך להסתכל מחדש על כל המסלול, רק על מה שנכנס ומה שיצא מהמסגרת.A sliding window is like a train window: the view moves, but you don't re-look at the whole route, just what enters and leaves the frame.
שואלים אם מישהו מכיר דוגמה נוספת מהחיים.Ask for another real-life example.
נושאTopic 5
לחשוב בקולOut loud
לחשוב בקולThinking out loud
להגיד את התוכנית לפני הקודSay the plan before the code
פתרון פשוט קודם, ואז לשפרA simple solution first, then improve
לומר את הסיבוכיותState the complexity
כשנתקעים, משתפים: "הפתרון הראשון שעולה לי הוא לולאה כפולה, O(n²). אפשר לשפר עם מילון." זה מראה חשיבה. גם "אני לא בטוח, אבדוק עם דוגמה" היא תשובה טובה. והנה תרגיל קלאסי (FizzBuzz) בשתי גרסאות: אחת שעובדת, ואחת שגם קל להרחיב, ומסבירים למה:When stuck, share: "My first idea is a double loop, O(n²). I can improve it with a dict." That shows thinking. "I'm not sure, let me check with an example" is also a good answer. And here's a classic (FizzBuzz) in two versions: one that works, and one that's also easy to extend, explaining why:
אנלוגיהAnalogy
לחשוב בקול זה כמו נווט ברכב שמקריא את המסלול: גם אם פספס פנייה, הנהג מבין איפה הם ומה התוכנית.Thinking out loud is like a navigator reading out the route: even after a missed turn, the driver knows where they are and what the plan is.
שואלים אם מישהו מכיר דוגמה נוספת מהחיים.Ask for another real-life example.
נושאTopic 6
הצגהPitch
להציג את הפרויקט ב-3 דקותPresenting the project in 3 minutes
בעיה → פתרון → הדגמה → מה למדתיProblem → solution → demo → what I learned
STAR לשאלות על ניסיוןSTAR for experience questions
קישור ל-GitHub עם READMEA GitHub link with a README
כמעט בכל ראיון שואלים "ספר/י על פרויקט". המדף הוא תשובה מצוינת: בעיה אמיתית, קוד אמיתי, בדיקות, Git. מבנה של 3 דקות: מה הבעיה, מה בניתם, הדגמה קצרה, ואתגר אחד שפתרתם. לשאלות כמו "ספר על באג קשה" משתמשים בשיטת STAR. אפשר לתכנן את הזמן בקוד:Almost every interview asks "tell me about a project". The shelf is a great answer: a real problem, real code, tests, Git. A 3-minute structure: the problem, what you built, a short demo, and one challenge you solved. For questions like "tell me about a hard bug" use the STAR method. You can even plan the timing in code:
אנלוגיהAnalogy
הצגת פרויקט היא כמו טריילר לסרט: לא מספרים את כל העלילה, רק מה שגורם לרצות לראות עוד.Presenting a project is like a film trailer: you don't tell the whole plot, just enough to make people want more.
שואלים אם מישהו מכיר דוגמה נוספת מהחיים.Ask for another real-life example.
שיחת היכרות → מבחן בית/אונליין → ראיון טכניIntro call → home/online test → technical interview
איך נראה ראיוןWhat an interview looks like
מעריכים חשיבה, לא רק תשובהThey assess thinking, not just the answer
איך נראה ראיוןWhat an interview looks like
לשאול שאלות זה יתרוןAsking questions is a plus
איך נראה ראיוןWhat an interview looks like
"כמה פעמים", "הכי נפוץ", "יחיד""How many times", "most common", "unique"
דפוס: לספור במילוןPattern: counting in a dict
Counter או dict.get(x, 0) + 1Counter or dict.get(x, 0) + 1
דפוס: לספור במילוןPattern: counting in a dict
O(n) במקום O(n²)O(n) instead of O(n²)
דפוס: לספור במילוןPattern: counting in a dict
מהקצוות פנימה: פלינדרום, סכום בזוגFrom the ends inward: palindrome, pair sum
דפוס: שני מצביעיםPattern: two pointers
ברשימה ממוינתIn a sorted list
דפוס: שני מצביעיםPattern: two pointers
O(n) ובלי זיכרון נוסףO(n) and no extra memory
דפוס: שני מצביעיםPattern: two pointers
"רצף של k", "הכי ארוך בלי...""A run of k", "longest without..."
דפוס: חלון נעPattern: a sliding window
מוסיפים את הנכנס, מחסירים את היוצאAdd what enters, subtract what leaves
דפוס: חלון נעPattern: a sliding window
O(n) במקום O(n·k)O(n) instead of O(n·k)
דפוס: חלון נעPattern: a sliding window
להגיד את התוכנית לפני הקודSay the plan before the code
לחשוב בקולThinking out loud
פתרון פשוט קודם, ואז לשפרA simple solution first, then improve
לחשוב בקולThinking out loud
לומר את הסיבוכיותState the complexity
לחשוב בקולThinking out loud
בעיה → פתרון → הדגמה → מה למדתיProblem → solution → demo → what I learned
להציג את הפרויקט ב-3 דקותPresenting the project in 3 minutes
STAR לשאלות על ניסיוןSTAR for experience questions
להציג את הפרויקט ב-3 דקותPresenting the project in 3 minutes
קישור ל-GitHub עם READMEA GitHub link with a README
להציג את הפרויקט ב-3 דקותPresenting the project in 3 minutes
מה למדנוWhat we learned
שיחת היכרות → מבחן בית/אונליין → ראיון טכניIntro call → home/online test → technical interview
"כמה פעמים", "הכי נפוץ", "יחיד""How many times", "most common", "unique"
מהקצוות פנימה: פלינדרום, סכום בזוגFrom the ends inward: palindrome, pair sum
"רצף של k", "הכי ארוך בלי...""A run of k", "longest without..."
להגיד את התוכנית לפני הקודSay the plan before the code
בעיה → פתרון → הדגמה → מה למדתיProblem → solution → demo → what I learned
כל אחד אומר דבר אחד שלמד היום.Everyone says one thing they learned today.
עכשיו לתרגולNow, practice
5 תרגילים ו-2 אתגרים, עם בדיקה אוטומטית5 exercises and 2 challenges, auto-checked