Pradeep SuryavanshiLongest alternating subsequence GeeksforGeeks Solution | Problem of the DayYou are given an array arr. Your task is to find the longest length of a good sequence. A good sequence {x1, x2, .. xn} is an alternating…21h ago21h ago
Pradeep SuryavanshiConstruct Binary Tree from Parent Array GeeksforGeeks Solution | Problem of the DayGiven an array parent that is used to represent a tree. The array indices (0-based indexing) are the values of the tree nodes and parent[i]…1d ago1d ago
Pradeep SuryavanshiGeeksforGeeks Remaining String Solution | Problem of the DayGiven a string s without spaces, a character ch and an integer count. Your task is to return the substring that remains after the character…2d ago2d ago
Pradeep SuryavanshiGeeksforGeeks Segregate 0s and 1s Solution | Problem of the DayGiven an array arr consisting of only 0’s and 1’s in random order. Modify the array in-place to segregate 0s onto the left side and 1s onto…4d ago4d ago
Pradeep SuryavanshiGeeksforGeeks Root to leaf path sum Solution | Problem of the DayGiven a binary tree and an integer target, check whether there is a root-to-leaf path with its sum as target.6d ago6d ago
Pradeep SuryavanshiGeeksforGeeks Maximum Connected group Solution | problem of the DayYou are given a square binary grid. A grid is considered binary if every value in the grid is either 1 or 0. You can change at most one…Jul 11Jul 11
Pradeep SuryavanshiLargest square formed in a matrix GeeksforGeeks Solution | Problem of the DayGiven a binary matrix mat of size n * m, find out the maximum length of a side of a square sub-matrix with all 1s.Jul 10Jul 10
Pradeep SuryavanshiAncestors in Binary Tree GeeksforGeeks Solution | Problem of the DayGiven a Binary Tree and an integer target. Find all the ancestors of the given target.Jul 7Jul 7
Pradeep SuryavanshiPopulate Inorder Successor for all nodes GeeksforGeeks Solution | Problem of the DayGiven a Binary Tree, complete the function to populate the next pointer for all nodes. The next pointer for every node should point to the…Jul 6Jul 6
Pradeep SuryavanshiVertical Width of a Binary Tree GeeksforGeeks Solution | Problem of the DayGiven a Binary Tree. You need to find and return the vertical width of the tree.Jul 5Jul 5