如何獲取一個10g大小的文檔的第1000萬個字符

這是在其他羣裏看到的一個面試題, 假如有一個10g的txt文檔上面存的全是數字,內存只有8g,硬盤無限大,如何用代碼找到第1000萬個數字是什麼? public static void writer() throws Exception{ String num = "123456789"; FileOutputStream out = new FileOutput
相關文章
相關標籤/搜索