package org.xiu68.ch02; public class Ex2_22 { public static void main(String[] args) { // TODO Auto-generated method stub //两数组有序,寻找两数组合并后第k小元素,O(logm+logn) int[] a=new int[]{1,3,5,7,9,11,13,15,17,19}; int[] b=new int[]{0,2,4,6,8,10,12,14,16,18}; for…