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
https://t.co/XUL79SdpyO 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)