Skip to content

Commit fff308d

Browse files
author
Dipesh Patil
committed
combined linear and binary in one
1 parent e03685d commit fff308d

File tree

7 files changed

+600
-549
lines changed

7 files changed

+600
-549
lines changed

.idea/codeStyles/Project.xml

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ import RatInAMazeProblem from "./backTrackingAlgorithms/ratInAMaze/ratInAMaze";
2525

2626
// Stylesheets
2727
import "./App.css";
28+
import BackBar from "./utils/backbar";
29+
30+
const searchCombined = () => {
31+
return (
32+
<div>
33+
<BackBar />
34+
<LinearSearch />
35+
<BinarySearch />
36+
</div>
37+
);
38+
};
2839

2940
export default class App extends React.Component {
3041
constructor(props) {
@@ -38,8 +49,7 @@ export default class App extends React.Component {
3849
<NavBar />
3950
<Route exact path="/" component={IndexTable} />
4051
<Route path="/sorting" component={SortingVisualiser} />
41-
<Route path="/linear-search" component={LinearSearch} />
42-
<Route path="/binary-search" component={BinarySearch} />
52+
<Route path="/searching" component={searchCombined} />
4353
<Route path="/n-queens-problem" component={NQueensProblem} />
4454
<Route path="/rat-in-a-maze" component={RatInAMazeProblem} />
4555
<Route path="/pathfinder" component={PathFinderVisualiser} />

0 commit comments

Comments
 (0)