Examness

Advanced Java

২টি অনুশীলন · শেখানোর ক্রমে

  1. 1FizzBuzz, returned not printedWrite `static String[] fizzbuzz(int n)` returning entries for 1 to n: "Fizz" for multiples of 3, "Buzz" for 5, "FizzBuzz" for both, otherwise the number as a string.String[]conditionalsordering10m
  2. 2Merge two sorted arraysWrite `static int[] merge(int[] a, int[] b)` merging two sorted arrays into one sorted array - in one pass, without sorting the result.two pointersmerge step14m