Здравствуйте, Srv, Вы писали:
Srv>Народ! Srv>поготие перевести следующую простую задачку с ТЗ и понять что от меня хотят...
Srv>1. Write a listbox-style binary search for an ordered array of integers. Listbox-style Srv>means that you should return the index of the first item greater than or equal to the item Srv>being searched for; if all items are less, you should return the index of the last item. Srv>You are guaranteed that there is at least one item in the array.
Написать бинарный поиск в листбокс-стиле для упорядоченного массива. Листбокс стиль предполагает что вы должны возвращать индекс первого элемента, который больше или равен искомому элементу; если все элементы меньше, вы должны возвратить индекс последнего элемента. Гарантируется наличие хотя бы одного элемента в массиве.
Srv>2. Suppose you have an array of integers, both positive and negative, in no particular Srv>order. Find the largest possible sum of any continuous subarray. For example, if you Srv>have all positive numbers, the largest sum would be the sum of the whole array; if you Srv>have all negative numbers, the largest sum is 0 (the null subarray) Srv>
тут вы корректно перевел, хотя я "in no particular order" понимал бы как "не особо упорядоченный"