Skip to content

Commit c0a5e92

Browse files
authored
Updated Readme file with Running Instructions.
1 parent 2a390e0 commit c0a5e92

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

searchingAlgo/ternarySearch/Readme.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,25 @@ The steps involved in this algorithm are:
5353
- This concept is used in unimodal functions to determine the maximum or minimum value of that function. Unimodal functions are functions that, have a single highest value.
5454
- Can be used to search for where the derivative is zero in Newton's method as an optimization.
5555

56+
### Instruction for Running code:
57+
- C
58+
```
59+
gcc ternarySearch.c
60+
./a.out
61+
```
62+
- Cpp
5663
64+
````
65+
g++ ternarySearch.cpp
66+
./a.out
67+
````
68+
- Java
69+
70+
```
71+
javac ternarySearch.java
72+
java ternarySearch.class
73+
```
74+
- Python
75+
```
76+
python3 ternarySearch.py
77+
```

0 commit comments

Comments
 (0)