diff --git a/leetcode/README.md b/leetcode/README.md index bbe3328c..bb893c14 100644 --- a/leetcode/README.md +++ b/leetcode/README.md @@ -13,6 +13,7 @@ LeetCode |7|[Reverse Integer](https://leetcode.com/problems/reverse-integer/) | [C](./src/7.c)|Easy| |8|[String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi) | [C](./src/8.c)|Medium| |9|[Palindrome Number](https://leetcode.com/problems/palindrome-number/) | [C](./src/9.c)|Easy| +|11| [Container With Most Water](https://leetcode.com/problems/container-with-most-water/) | [C](./src/11.c)|Medium| |12|[Integer to Roman](https://leetcode.com/problems/integer-to-roman) | [C](./src/12.c)|Medium| |13|[Roman to Integer](https://leetcode.com/problems/roman-to-integer/) | [C](./src/13.c)|Easy| |20|[Valid Parentheses](https://leetcode.com/problems/valid-parentheses/) | [C](./src/20.c)|Easy| diff --git a/leetcode/src/11.c b/leetcode/src/11.c new file mode 100644 index 00000000..1530a86b --- /dev/null +++ b/leetcode/src/11.c @@ -0,0 +1,30 @@ +//Fucntion to calculate min of values a and b +int min(int a, int b){ + return ((ares) + res = currArea; + + if(height[start]