Added running time of algorithm and update readme.md file
parent
710d7bfbf6
commit
41ace4231f
|
@ -7,6 +7,7 @@
|
||||||
- [Reverse an array](arrays/reverse-array.c)
|
- [Reverse an array](arrays/reverse-array.c)
|
||||||
- [Maximum difference](arrays/maximum-difference.c)
|
- [Maximum difference](arrays/maximum-difference.c)
|
||||||
- [Largest Element](arrays/largestElement.c)
|
- [Largest Element](arrays/largestElement.c)
|
||||||
|
- [Second Largest Element](arrays/secondLargestElement.c)
|
||||||
- [Sieve of Eratosthenes](arrays/sieve-of-eratosthenes.c)
|
- [Sieve of Eratosthenes](arrays/sieve-of-eratosthenes.c)
|
||||||
|
|
||||||
## Bit Manipulation
|
## Bit Manipulation
|
||||||
|
|
|
@ -28,3 +28,11 @@ int main()
|
||||||
second(arr,size);
|
second(arr,size);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
----------------Sample Output----------------
|
||||||
|
> 88 45
|
||||||
|
|
||||||
|
Time Compexity: O(n)
|
||||||
|
Space compexity: O(1)
|
||||||
|
*/
|
||||||
|
|
Loading…
Reference in New Issue