Did it in first try 1๏ธโฃ
(I was expecting some logical errors though)
GFG POTD, streak - 57 days ๐น
If you solved it without using extra function then reply with you approach.
Solved Leetcode's daily challenge after a while
I used the functional approach, divided logic into functions and completed the function's body.
It initially felt a little tricky to code, but using functions made it 10X easy.
Day 7/100
Dsa :- linked list started
1.introduction of linked list
2.arrays vs linked List
3.implementation of linkedlist
3.push back and push front
4.printll()
5.insert mid of linked list
Day 6/100
Binary search
Solving 3 medium question on leetcode
1.search in a Sorted array
2.peak index in a mountain Arrray
3.Single element in a Sorted array
Day 5/100
Binary search
*theory*
1.iterative code
2.recursive code
Prefered to be do In iterative method
Time complexity:- O(logn)
Space complexity:- O(1)
In recursive
Time and space complexity same
O(logn)
Day 2
Time complexity โ ๏ธ
Array --- concept clearโ ๏ธ
Linear searchโ ๏ธ
Sum question solve
1.reverse an array
2.swap max and min number of an array
@shubhamsingh__1
Today my target to complete today array...solve all questions