Useful tips for everyday
Does material UI grid use Flexbox? Material Design’s grid system is implemented in Material-UI using the component. Under the hood, the component uses Flexbox properties…
Can queue be implemented using stack? A queue can be implemented using two stacks. Method 1 (By making enQueue operation costly) This method makes sure…
Can you write a decorator that accepts an argument? decorator_with_args is a function which accepts a custom argument and which returns the actual decorator (that…
How do you make an unobtrusive scroll to the top button? documentElement returns the root element of the document. We need it to get the…
When do you need a fast modular exponentiation? This has given us a method to calculate A^B mod C quickly provided that B is a…
How do you find the Euclidean distance between two matrices? The Euclidean distance is simply the square root of the squared differences between corresponding elements…
When did the work week become 5 days? 1908 In 1908, the first five-day workweek in the United States was instituted by a New England…
How do you read a bit manipulation? Bit manipulation is the act of algorithmically manipulating bits or other pieces of data shorter than a word.…
How do you find the representation of a decimal? They can easily be represented as decimals by just dividing numerator ‘p’ by denominator ‘q’ (as…
Did Andy Warhol take pictures? An obsessive photographer, Warhol took more than 100,000 photographs between 1977 and 1987, most with his beloved SX70 Polaroid camera…