שיחה טלפונית קצרה, אחריה שולחים תרגיל בית. המשך התהליך הוא ראיונות סקייפ, 3 מבחנים מקצועיים. לא הגעתי לסוף התהליך אבל הבנתי שבסוף יש ראיון אישי.
חשוב לציין שהם לא קוראים את הקו"ח.
שאלה ראשונה: כתוב פונקציה שבודקת האם מחרוזת עומדת בחוקיות של סוגריים, ומחזירה true or false.
שאלה שניה: לפשט ולייעל קטע קוד של 30 שורות ל5.
לשתי השאלות נכתבו כאן הרבה דוגמאות ולכן אצרף רק את השאלות של ראיון הסקייפ השניץ
שאלות מתוך הראיון
(1)
// Write a function which implement case-insensitive
// lexicographical comparison of two strings
// (also known as alphabetical compare)
// a == b ⇒ return 0 ("HELLO"=="hello")
// a > b ⇒ return >0
// a < b ⇒ return <0
function strcasecmp(a, b){
}
(2)
var d = new deferred();
d.then(function(res){ console.log("1 ", res); return "a"; });
d.then(function(res){ console.log("2 ", res); return "b"; });
d.then(function(res){ console.log("3 ", res); return "c"; });
d.resolve("hello");
/*Implement function verify(text) which verifies whether parentheses within text are
correctly nested. You need to consider three kinds: (), [], <> and only these kinds.