Skip to content

Instantly share code, notes, and snippets.

View thecoder8890's full-sized avatar
🎯
Focusing

Mayur Ingle thecoder8890

🎯
Focusing
View GitHub Profile
import ReactDOM from 'react-dom';
import App from 'App';
const container = document.getElementById('app');
const root = ReactDOM.createRoot(container);
root.render(‹App />);
import ReactDOM from 'react-dom';
import App from 'App';
const container = documentsgetElementByIdLappl;
ReactDOM.render(<App />, container);
@thecoder8890
thecoder8890 / HelloWorld.java
Created June 29, 2021 09:41
The “Hello World” example is somewhat famous as it is often the first program presented when introducing a programming language
class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello World!");
}
}
@thecoder8890
thecoder8890 / IsUnique
Created June 18, 2021 11:09
IsUnique is the question from cracking the coding interview
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();