מספר שאלות טכניות קצרות בשיחה הטלפונית, ואם עוברים את זה, 4 שאלות על הנייר.
שאלות מתוך הראיון
1) write a method that gets a list of songs and play them randomly.
Each song must be played once. you cannot delete songs from the list or create a new list. Assume the method SlaySong(string songName) is already implemented.
2) write a method that gets an array of integers and arrange it so that all odds are in the end of the array and all evens are at the beginning. Do not use a new array.
3) write a method that gets a list of integers that represents stock market buy and sell prices, and determine what are the two prices, that if you buy and sell you gain the most profit.
4) write a method that gets two strings, and find if they are anagrams
All answer must be in o(n) complexity or less
תשובות
הוסף תשובה
|
לצפיה בתשובות
פברואר 2019
this is it until now
על מנת לצפות במידע ששותף על ידי חברי TheWorker
אנא שתפו גם אתם את הקהילה!
קורנרסטון
60 עובדים
משרדים ראשיים: תל אביב -יפו
Cornerstone OnDemand (NASDAQ: CSOD) helps organizations to recruit, train and manage their people.