There are N houses built in a line, each of which contains some value in it. A thief is going to steal the maximum value… Read More
Tag Archives: Oxigen Wallet
Given an integer array with repeated elements, the task is to find the sum of all distinct elements in the array.Examples: Input : arr[] =… Read More
First Round: Online coding test on Cocubes.com Q1. Given two integers m and n write the function to compute the number of bit changes required… Read More
Written Round There was 2 coding questions conducted on cocubes platform Time limit- 40 mins 1. Find the sum of all non- repeated elements in… Read More
It was 3 round process. Round 1: There were 2 online coding question on cocubes. 1. Find the sum of all non repeating element. 2.… Read More
Given a number n, find the smallest number that has same set of digits as n and is greater than n. If n is the… Read More
We have discussed AVL insertion in the previous post. In this post, we will follow a similar approach for deletion. Steps to follow for… Read More
AVL Tree: AVL tree is a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees cannot be more than… Read More
Given an array arr[] of positive numbers, The task is to find the maximum sum of a subsequence such that no 2 numbers in the… Read More
Courses