Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. FindFirstLessThan(list, listSize, value) {
  2. for (i = 0; i < listSize; i++) {
  3. if (list[i] < value)
  4. return list[i];
  5. }
  6. return value; // no lesser value found
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement