@@ -0,0 +1,936 @@
+/**%0A * %0A */%0Apackage algorithms.implementation;%0A%0Aimport java.util.Scanner;%0A%0A/**%0A * Challenge: https://www.hackerrank.com/challenges/lisa-workbook%0A * %0A * @author Sudharsanan Muralidharan%0A */%0Apublic class LisasWorkbook %7B%0A  public static void main(String%5B%5D args) %7B%0A    Scanner in = new Scanner(System.in);%0A    int n = in.nextInt();%0A    int k = in.nextInt();%0A    int%5B%5D t = new int%5Bn%5D;%0A%0A    for (int i = 0; i %3C n; i++) %7B%0A      t%5Bi%5D = in.nextInt();%0A    %7D%0A%0A    int page = 0;%0A    int special = 0;%0A    for (int i = 0; i %3C t.length; i++) %7B%0A      int num = t%5Bi%5D;%0A      int start = 0, end = 0;%0A      while (num %3E 0) %7B%0A        start = end + 1;%0A        page++;%0A        if (num %3E k) %7B%0A          num = num - k;%0A          end += k;%0A        %7D else %7B%0A          end += num;%0A          num = 0;%0A        %7D%0A        %0A        if (page %3E= start && page %3C= end) %7B%0A          special++;%0A        %7D%0A      %7D%0A    %7D%0A%0A    System.out.println(special);%0A    in.close();%0A  %7D%0A%7D%0A

Add Naive solution for Lisas Workbook