בשלב ראשון עושים מבחן בית, המבחן היה מורכב מ 10 שאלות אמריקית על java בכללי, 3 שאלות קוד בינוניות עד פשוטות גם ב java.
שאלות מתוך הראיון
לא זוכרת האמריקית.
שאלה 1: given integers N,K return palindrome of length N which consists of K distinc lower_case letters (a-z)
שאלה 2:given String[] E find number of times that one of the two most rebeated numbers are in the string of E
example: E = {"039", "4", "14", "32", "", "34", "7"} output:5
שאלה 3: how many times BALLOON is in the given string.
Given N and K, print a string that has n characters. The string should have exactly k distinct characters and no adjacent positions.
Input : n = 5, k = 3
Output : abcab
Explanation: 3 distinct character a, b, c
and n length string.
תשובות
הוסף תשובה
|
לצפיה בתשובות
מאי 2022
static String findString(int n, int k)
{
// Initialize result with first k
// Latin letters
String res = "";
for (int i = 0; i < k; i++)
res = res + (char)('a' + i);
// Fill remaining n-k letters by
// repeating k letters again and
// again.
int count = 0;
for (int i = 0; i < n - k; i++)
{
res = res + (char)('a' + count);
count++;
if (count == k)
count = 0;
}
return res;
}
// Driver code
static public void main (String[] args)
{
מפתחת תוכנות ושירותים למערכות חיוב לקוחות (בילינג) וניהול קשרי לקוחות (CRM). משרדי החברה שוכנים בסנט לואיס, מיזורי שבארצות הברית, והנהלת החברה נמצאת ברעננה. החברה נוסדה בישראל בשנת 1982, כחטיבה בשם "עורק אינפורמיישן".