top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Explain the problem with dynamic type checking in C++?

+1 vote
437 views
Explain the problem with dynamic type checking in C++?
posted Feb 3, 2015 by Alwaz

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Problem With Dynamic type Checking:

  1. Authoring code without errors is very difficult using dynamic type checking.
  2. It is hard to read or modify or maintain the code for dynamic type checking.
answer Feb 4, 2015 by Mohammed Hussain
Similar Questions
+2 votes

suppose we have an array of N natural numbers and asks him to solve the following queries:-
Query a:- modify the element present at index i to x.
Query b:- count the number of even numbers in range l to r inclusive.
Query c:- count the number of odd numbers in range l to r inclusive.

input:
First line of the input contains the number N. Next line contains N natural numbers.Next line contains an integer Q followed by Q queries.
a x y - modify the number at index x to y.
b x y - count the number of even numbers in range l to r inclusive.
c x y - count the number of odd numbers in range l to r inclusive.
I tried to solve using simple arrays but it isn't doing well for big constraints so I thought to use other DS with efficient algorithm so please explain appropriate algorithm.Thanks in advance.

...