Pinned Loading
-
App.js
App.js 1import React from 'react';
2import { Container } from 'semantic-ui-react';
3import TripSearch from './screens/TripSearch';
4import TripSearchResults from './screens/TripSearchResults';
5 -
App.js
App.js 1import React from 'react';
2import { Container } from 'semantic-ui-react';
3import { Router } from "@reach/router"
45import TripSearchResults from './screens/TripSearchResults';
-
TripResult.js
TripResult.js 1import React from 'react';
2import {Card, Rating, Image} from 'semantic-ui-react';
3import { useNavigate } from "@reach/router";
45const TripResult = (props) => {
-
String matching based on the KMP alg...
String matching based on the KMP algorithm. This how `String.prototype.indexOf` is generally implemented. 1// Construct a table with table[i] as the length of the longest prefix of the substring 0..i
2function longestPrefix(str) {
34// create a table of size equal to the length of `str`
5// table[i] will store the prefix of the longest prefix of the substring str[0..i]
-
App.js
App.js 1import React from 'react';
2import { Container } from 'semantic-ui-react';
3import { Router } from "@reach/router"
45import TripSearchResults from './screens/TripSearchResults';
-
TripSearch.js
TripSearch.js 1import React from 'react';
2import { Header, Divider, Input, Checkbox, Button, Grid, Form, Radio } from 'semantic-ui-react';
34const TripSearch = () => {
5return (
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.