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
import ReactDOM from 'react-dom'; | |
import App from 'App'; | |
const container = document.getElementById('app'); | |
const root = ReactDOM.createRoot(container); | |
root.render(‹App />); |
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
import ReactDOM from 'react-dom'; | |
import App from 'App'; | |
const container = documentsgetElementByIdLappl; | |
ReactDOM.render(<App />, container); |
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
class HelloWorld { | |
public static void main(String args[]) { | |
System.out.println("Hello World!"); | |
} | |
} |
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
public class IsUnique { | |
/** | |
* O(N) O(1) | |
*/ | |
public boolean isUnique1(String s) { | |
if (s == null || s.length() > 256) { | |
return false; | |
} | |
boolean[] map = new boolean[256]; | |
char[] chars = s.toCharArray(); |