1.Implement a function that parses the log and returns an array of PathInfo (path and number of occurrences, the path should contain query string if exists)
2.Implement a function that reads a stream of log lines and prints a list of malicious URLs once an hour
In order to implement this function you need to use the following API:
public boolean isMalicious(String url);
Every API result is valid for 5 minutes
Every API call is very expensive and slow
Hint: to optimize performance, try to minimize the usage of isMalicious as much as possible (i.e. cache)
ראש הצוות המראיינת ביקשה שאספר על ארכיטקטורת החברה שבה אני נמצא כרגע. הסברתי, היא שאלה שאלות ועניתי. תוך כדי שאני עדיין מסביר על פיצ'ר שפיתחתי, מבלי סיבה נראית לעין היא קטעה אותי וסיכמה את הראיון.
לא מומלץ להתראיין אצלם. מתנהגים בזלזול למועמדים לדעתי
ראיון טכני של שעה וחצי. הסבירו על החברה ואז שאלו עלי ו-2 שאלות טכניות
שאלות מתוך הראיון
1. לממש מבנה נתונים שמקיים get, set ,setAll כולם בזמן O(1)
2.system design למערכת הצבעות לכוכב נולד. פתוח לשעה להצבעה מהבית, ואז נסגר לרבע שעה של פרסומות שבזמן הזה סופרים קולות