 Tags IOS SQL HTML C RUBY-ON-RAILS MYSQL ASP.NET DEVELOPMENT RUBY .NET LINUX SQL-SERVER REGEX WINDOWS ALGORITHM ECLIPSE VISUAL-STUDIO STRING SVN PERFORMANCE APACHE-FLEX UNIT-TESTING SECURITY LINQ UNIX MATH EMAIL OOP LANGUAGE-AGNOSTIC VB6 # how to find which integer no is maximim out of given numbers

By : Danielle Fisher
Date : September 14 2020, 08:00 PM code :
``````(x+y+abs(x-y))/2
``````
``````if (x >= y && x >= z) {
max = x;
} else if (y >= x && y >= z) {
max = y;
} else  {
max = z;
}
``````

## Cross-platform C++ determining maximim integer value (no headers)

By : Amit Afre
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further Signedness could be determined at compile-time if you wish to merge maxSigned with maxUnsigned.
code :
``````#include <iostream>
#include <cstddef> // for pytdiff_t, intptr_t

template <typename T> static inline  bool is_signed() {
return ~T(0) < T(1);
}
template <typename T> static inline  T min_value() {
return is_signed<T>() ? ~T(0) << (sizeof(T)*8-1) : T(0);
}
template <typename T> static inline  T max_value() {
return ~min_value<T>();
}

#define REPORT(type) do{ std::cout\
<< "<" #type "> is " << (is_signed<type>() ? "signed" : "unsigned")\
<< ", with lower limit " << min_value<type>()\
<< " and upper limit " << max_value<type>()\
<< std::endl; }while(false)

int main(int argc, char* argv[]) {
REPORT(char);  // min, max not numeric
REPORT(int);
REPORT(unsigned);
REPORT(long long);
REPORT(unsigned long long);
REPORT(ptrdiff_t);
REPORT(size_t);
REPORT(uintptr_t);
REPORT(intptr_t);
}
``````

## Find if it's possible to make up a integer with some given numbers

By : Junjian Lu
Date : March 29 2020, 07:55 AM
I wish this help you Question: , It is same as the Knapsack problem with following parameters :-
code :
``````W = Knapsack capacity = N

items = 19 ( N/19 times), 27 (N/27 times), 37 (N/37 times).

Cost & weight of items are same.

Maximize profit. If maximum profit equals N then it is possible to construct N using 19,27,37
``````

## Axis breaks with integer and non-integer numbers: how to suppress the zero decimals of the integer numbers without exclu

By : Yy Yy
Date : March 29 2020, 07:55 AM
Hope this helps I’m working in a graph where the axis breaks include integer and non-integer numbers. For illustration purposes consider the following example: , Try this:
code :
``````ggplot()+geom_point(aes(x=0:10,y=0:10))+
scale_x_continuous(breaks=seq(0,10,2.5), labels=c(0,2.5,5,7.5,10))+
scale_y_continuous(breaks=seq(0,10,2.5), labels=c(0,2.5,5,7.5,10))
``````

## Sql query find the car whcih is having maximim mileage

By : user3466063
Date : March 29 2020, 07:55 AM
I hope this helps . find the car whcih is having maximum mileage , You seem to be looking for aggregation:
code :
``````select
car,
sum(mileage) / count(*) res
from mytable
group by id, car
``````
``````select
car,
sum(mileage) / count(*) res
from mytable
group by id, car
order by res desc
limit 1
``````

## Find integer numbers in string except numbers include % c#

By : Tejash Desai
Date : March 29 2020, 07:55 AM
should help you out I need to find integer number in a string which includes one integer and one percentage number. , You don't need regex for this. A simple Linq is enough 