This file contains 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 React, { useState } from "react"; | |
//import bgimg from '.'; | |
// TODO:formik library | |
function Signup() { | |
// const [firstName, setFirstName] = useState(""); | |
// const [lastName, setLastName] = useState(""); | |
// const [email, setEmail] = useState(""); | |
// const [password, setPassword] = useState(""); |
This file contains 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 React, { useState, useEffect } from "react"; | |
import Button from "./components/Button"; | |
const getLocalItem = () => { | |
let list = localStorage.getItem("lists"); | |
console.log(list); | |
if (list) { | |
return JSON.parse(list); | |
} else { | |
return []; |
This file contains 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 java.math.BigInteger; | |
import java.util.*; | |
class YoutubeVideo { | |
private final long videoId; | |
private String name; | |
private BigInteger numberOfLikes; | |
private int duration; | |
public long getVideoId() { |
This file contains 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 serial #import serial pacakge | |
from time import sleep | |
import webbrowser #import package for opening link in browser | |
import sys | |
import requests#import system package | |
import http.client as http_client | |
http_client.HTTPConnection.debuglevel = 1 | |
Webhost = 'http://dcs.glaitm.org:7080' | |
App_Key = '153eb8d5-a4eb-42d4-b2f4-d781ede74393' | |
ThingName = 'ECE_Geoloc' |
This file contains 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 java.util.LinkedList; | |
import java.util.List; | |
class Node { | |
int data; | |
Node next; | |
Node prev; | |
} | |
class MyDoubleLinkedList { |
This file contains 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
// Time Complexity: O(n) | |
// Space Complexity: O(n) | |
// n is the length of the string | |
// In JAVA | |
import java.util.HashMap; | |
import java.util.Map; | |
class Definition { |
This file contains 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
// Java Code | |
import java.util.HashMap; | |
import java.util.Map; | |
// Time Complexity: O(n) | |
// Space Complexity: O(n) | |
// where n = length of string | |
class Solution { | |
public static final int MAX_UNICODE = 65_535; | |
public static boolean checkWhetherStringIsUnique(String string) { |
This file contains 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
// In Java | |
import java.util.*; | |
class Question1 { | |
// Please try not to change anything in this method. | |
public static void main(String[] args) { | |
int[] numbers = new int[15]; | |
addRandomNumbers(numbers); | |
System.out.println(Arrays.toString(numbers)); | |
System.out.println(findPairsByList(numbers, 10)); |