Question
A started a business with an investment of Rs.1800.
After some months, B joins the business with an investment of Rs.3600 and after two more months C joins the business with Rs.2800. If the annual profit share of A and B is equal, then find for how many months C invested his money?Solution
Let B joined after ‘x’ months. => 1800 ×  12 : (12 - x) ×  3600 : 2800 ×  (12 – x – 2) => 1800 ×  12 : (12 - x) ×  3600 : 2800 ×  (10 – x) => 1800 ×  12 = (12 - x) ×  3600 => 12 – x = 6 => x = 6 C invested his money = 10 – x = 4 months
In a data analysis workflow, an index is created on a column with very low cardinality (e.g., a 'gender' column). What is a potential consequence of this?
Binary trees are often used to represent hierarchical data. Which of the following is NOT a direct application of binary trees?
What does it mean for an algorithm to be "in-place"?
What is the primary goal of the Matrix Chain Multiplication problem in dynamic programming?
Consider the following Java code:
public class LengthMix {
  public static void main(String[] args) {
    int[] numbers...
A function sum_matrix_elements(matrix, R, C) is designed to sum all elements of a matrix with R rows and C columns. The implementation uses nested loops...
Which is best fit for blank space 14?
Which of the following statements accurately describes Third Normal Form (3NF) in database normalization?
In a multi-homed network, BGP route flapping causes external instability. Which mechanism MOST effectively prevents repeated advertisement of unstable r...
What is the time complexity of the KMP algorithm for searching a pattern of length 'M' in a text of length 'N'?