codinasion-archive / codinasion-dsa

An open source codebase for sharing programming solutions for Data Structures and Algorithm (DSA) problems
https://codinasion.vercel.app/dsa/
MIT License
5 stars 31 forks source link

Write a Julia programme for Linear Search. #65

Closed harshraj8843 closed 2 years ago

harshraj8843 commented 2 years ago

Description

Write a programme for Linear Search.

Input  : 10 20 80 30 60 50
Target : 30

Output : 4

Code of Conduct

JefvdA commented 2 years ago

Hey,

Just for clarification for future Julia issues, arrays in Julia start at index 1, so the expected output should be 4 in this case.