Because of Science by Neil deGrasse Tyson

So beautifully written article by Neil deGrasse Tyson Many people who love their high-tech smartphones refused to trust scientists when it came to Covid. What I learned from the pandemic year is that when faced with a common enemy—an enemy of the entire human species—we regressed to basal, primitive instincts rather than band together to…

Climate change! Who is to be blamed? and the solution…

Nowadays everyone (companies and individuals) is talking about climate change, pollution, natural disasters, flood, drought, cyclones, etc. We are all to be blamed for this man-made planet disaster. Some facts: Individuals Water and plastic pollution Air pollution (burning objects) Use of vehicles producing lots of smoke Small scale deforestation etc Industries Heavy air pollution Water…

Code – Find the smallest positive integer in an array

Hi, Post your “optimised” codes in the comment section. import java.util.Arrays; public class Solution { public int solution(int[] A){ int smallest = 1; int count = A.length; Arrays.sort(A); for (int i = 0; i < A.length; i++){ if (A[i] >= 0){ //start with positive numbers count = i +1; if (count < A.length) { if…