Solution<\/strong><\/p>\nimport java.io.IOException;\n\npublic class JumpingOnClouds {\n static int jumpingOnClouds(int[] c) {\n int jumps = 0;\n for (int i = 0; i < c.length; ) {\n if (i + 2 < c.length && c[i + 2] == 0)\n i += 2;\n else\n i++;\n jumps++;\n }\n return jumps - 1;\n }\n\n public static void main(String[] args) throws IOException {\n int[] c = {0, 0, 1, 0, 0, 1, 0};\n int result = jumpingOnClouds(c);\n System.out.println(result);\n }\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Problem Solution<\/p>\n","protected":false},"author":1,"featured_media":694,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[43],"_links":{"self":[{"href":"http:\/\/tech.learnerandtutor.com\/wp-json\/wp\/v2\/posts\/111"}],"collection":[{"href":"http:\/\/tech.learnerandtutor.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tech.learnerandtutor.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tech.learnerandtutor.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tech.learnerandtutor.com\/wp-json\/wp\/v2\/comments?post=111"}],"version-history":[{"count":0,"href":"http:\/\/tech.learnerandtutor.com\/wp-json\/wp\/v2\/posts\/111\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/tech.learnerandtutor.com\/wp-json\/wp\/v2\/media\/694"}],"wp:attachment":[{"href":"http:\/\/tech.learnerandtutor.com\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tech.learnerandtutor.com\/wp-json\/wp\/v2\/categories?post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tech.learnerandtutor.com\/wp-json\/wp\/v2\/tags?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}