Leetcode questions
Dinosaur
           https://leetcode.com/discuss/interview-question/685613/production-engineer-
           interview-questions-facebook
           https://leetcode.com/discuss/interview-question/391865/facebook-software-
           engineer-phone-screen-interview-questions-reject
           https://leetcode.com/discuss/interview-question/469422/facebook-phone-count-
           all-friend-requests
              in the above question we will be given 2 csv file, in first c
              sv we will be given leg, while in 2nd csv file we will be giv
              en stride.
           Duplicate Records
           Get duplicate records from 3 different files. the task here is to get duplicate
           record
           Possible Leetcode question for above task
           https://leetcode.com/problems/find-duplicate-file-in-system/description/
           splitarray
           https://www.geeksforgeeks.org/split-array-two-equal-sum-subarrays/
Leetcode questions                                                                           1
              Solution for array splitting problem.
              def split_arr(arr):
                     tot_sum = sum(arr)
                     if tot_sum % 2 != 0:
                         return []
                     target = tot_sum / 2
                     i = 0
                     cum_sum = 0
                     while cum_sum < target:
                        cum_sum += arr[i]
                        if cum_sum == target:
                            return [arr[:i+1],arr[i+1:]]
                        i += 1
                     return []
           Popular Viewed
           Write a fucntion and rank of popular recently viewed stories by score?
           you will be provide with pre existing function, get recent viewed that returns
           random recent stories along with the popularity score
           your task is write a function get recent popular viewed (cut off score) which
           returns the list of recently viewed popular stories based on following criteria
           Return the list of story ids excluding the popularity score
           ( Sorting Algorithm being used )
           Battleship
           https://leetcode.com/problems/battleships-in-a-board/description/
Leetcode questions                                                                           2
           Mythical half-human, half-horse creatures
           https://leetcode.com/discuss/interview-question/469422/facebook-phone-count-
           all-friend-requests
           https://leetcode.com/discuss/interview-experience/1675574/facebookmeta-
           phone-screen-new-grad-minimum-add-valid-parentheses-pattern-match
           https://leetcode.ca/2017-01-11-408-Valid-Word-Abbreviation/
           Goat Latin
           https://leetcode.com/problems/goat-latin/description/
           prepare these 6 questions:
            1. dinosaur question
            2. goat Latin
            3. battleship problem
            4. Split an array such a way that their sum is the same.
            5. Bulb Switcher question
            6. palindrome
Leetcode questions                                                                        3