This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # The Theory of Nothing | |
| ### A Philosophical Exploration of Time as Configuration Rather Than a Fundamental Dimension | |
| ## Abstract | |
| This paper does not propose a new mathematical theory of physics. Instead, it explores a philosophical interpretation of reality: that **time is not a fundamental feature of the universe**, but rather a descriptive concept humans use to organize configurations of matter. | |
| The central claim is simple: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Cleaner way to manage state and its handlers | |
| import React, { useState, useMemo } from 'react'; | |
| const Home = (props) => { | |
| const [count, { inc, dec }] = useCounter(); | |
| return ( | |
| <main id="home-component" className="component-container"> | |
| <h5>Count {count}</h5> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Write a function that reverses a string. The input string is given as an array of characters char[]. | |
| Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory. | |
| You may assume all the characters consist of printable ascii characters. | |
| */ | |
| const arr = ["h", "e", "l", "l", "o"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function stringPosition(needle, haystack) { | |
| var m = needle.length, | |
| n = haystack.length; | |
| if (!m || !n || m > n) { | |
| return -1; | |
| } | |
| if (m === n) { | |
| return needle === haystack ? 0 : -1; |