Posts

Did you know there’s a planet largely made of diamonds?

Image
   The Diamond planet   Did you know there’s a planet largely made of diamonds ? An exoplanet named 55 CANCRI E, the constellation cancer is confirmed to be largely made of diamonds. It is one of the largest planets in the universe and has a mass eight times that of the Earth. The temperature of the surface of CANCRI is estimated to range between 2,150 and 4,400 degrees Celsius. The main components of its dense atmosphere are hydrogen and helium.   55 CANCRI is largely made up of carbon and has a density twice of the earth with high pressure. The CANCRI  system has 5 planets, and may possibly have more planets.  55 CANCRI E or planet  Janssen orbits a star known as Copernicus only 41 light years away from us.  It was discovered in 2004 around a nearby star in our galaxy. This alien star is also known as a “super–Earth “. It’s a G-type star just like the sun. Its mass is  0.08 Earths.  It takes 0.7 ...

Unlocking the Power of the Universe: The Ultimate Guide to Dyson Spheres

Image
Unlocking the Power of the Universe: The Ultimate Guide to Dyson Spheres   Have you ever heard about Dyson  Sphere ??? No, yes ?? In this scientific era every day new discoveries happening  .people are so interested in having deep knowledge about things around them. One famous and interesting topic of discussion is space science. So what is a Dyson Sphere  ??  It is a   hypothetical superstar built near or around the Sun that would be able to capture the sun’s energy and divert it back to Earth. Which is made up of more than a single structure, a dense system of satellites dedicated to the conversion of solar energy, connected to each other.  This would harvest so much energy that human beings could manipulate and control all natural forces. The idea of the Dyson sphere was first explored by physicist and astronomer Freeman J. Dyson in a 1960 study called “Search for stellar sources of infrared radiation”. Theoreticall...

Debunking the Myth: Does Water Really Have a Memory?

Image
  Debunking the Myth: The Science Behind 'Water Has a Memory                                                Sounds crazy right?  Actually, that’s true but not many peoples are aware of it. So welcome to the world of water. we are surrounded by water around 70 % of the earth consists of water. we use water in our daily life to calm our thrust. we drink water, and we use water for cleaning our homes, clothes, and dishes. we use water to grow grains foods vegetables, and we bathe in water. The human body contains approx 60% water. we drink it we use it, we waste it but we never think about it. we do not realize that water is so much more than just water.  A groundbreaking discovery has been made with the most basic resources.   ...

How to use React createRef in material Table

Image
React provides a feature known just as refs that object over there allow for dom access from components. The reader attaches a ref to an element in an object belonging to you, that object being your application to provide access to the element’s dom from anywhere within an object belonging to you, that object being your component. Refs currently are able to also exists used to provide direct access to react elements in addition to not just dom nodes. Here now lives whatever the react documentation says concerning refs: Creating refs in React React provides three major ways of creating refs. Here currently exists a list of the different methods starting from the oldest of them: String refs (legacy method) Callback refs createRef Hook The useRef Hook  String refs in React The legacy way of creating refs in a react application currently exists using string refs. This object over here currently exists as the oldest method in addition to currently existing considered legacy or deprecate...

leetcode Max Area of Island Solution (Max Area of Island) (leetcode june 2021 challenge)

Image
Max Area of Island You are given an  m x n  binary matrix  grid . An island is a group of  1 's (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid are surrounded by water. The area of an island is the number of cells with a value  1  in the island. Return  the maximum area of an island in  grid . If there is no island, return  0 .   Example 1:   Example 1: Input: grid = [[0,0,1,0,0,0,0,1,0,0,0,0,0],[0,0,0,0,0,0,0,1,1,1,0,0,0],[0,1,1,0,1,0,0,0,0,0,0,0,0],[0,1,0,0,1,1,0,0,1,0,1,0,0],[0,1,0,0,1,1,0,0,1,1,1,0,0],[0,0,0,0,0,0,0,0,0,0,1,0,0],[0,0,0,0,0,0,0,1,1,1,0,0,0],[0,0,0,0,0,0,0,1,1,0,0,0,0]] Output: 6 Explanation: The answer is not 11, because the island must be connected 4-directionally.   Example 2: Input: grid = [[0,1,1,1,0,0,0,0]] Output: 3 Constraints: ·      ...

codeforces 45A Solution A. Codecraft lll (codeforces 45A) (rank 900*)

 45A. Codecraft ll l Problem Link: https://codeforces.com/problemset/problem/45/A Solution 1: import   java . util . Scanner ; public   class   A45  {      public   static   Scanner   scn  =  new   Scanner ( System . in );      public   static   String []  str  = {  "January" ,  "February" ,  "March" ,  "April" ,  "May" ,  "June" ,  "July" ,  "August" ,              "September" ,  "October" ,  "November" ,  "December"  };      public   static   int   nextIdx ( int   currIdx ,  int   change ) {          return  ( currIdx  +  change ) %  12 ;     }      public   static   int  ...

codeforces 282A Solution A. Bit++ (codeforces 282A) (rank 800*)

 282A. Bit++ Problem Link: https://codeforces.com/problemset/problem/282/A Solution 1: import   java . util .*; import java.util.Scanner; public class A282 { public static int calculateFinalValue ( int n, Scanner scn) { int ans = 0 ; for ( int i = 0 ; i < n; i++) { String operation = scn.next(); if (operation.contains( "+" )) { ans++; } else { ans--; } } return ans; } public static void main (String[] args) { Scanner scn = new Scanner (System.in); int n = scn.nextInt(); System.out.println(calculateFinalValue(n, scn)); scn.close(); // Always close the scanner to avoid resource leaks } }