Migratory Assets
Today many
organizations use one or more public clouds to meet the demand for the compute
resource by its employees. A large number of these requests are fine grained
where customers request a handful of virtual machines for their private use.
Usually not more than twenty percent of the customers have demands that are
very large ranging to about a hundred or more virtual machines.
Consequent to these two factors, the cloud services provider
can package services such as additional storage, regular backup schedule,
patching schedule, system management, securing and billing at the time of
request for each asset. However such services depend on the cloud where the
services are requested. For private cloud a lot of the service is in-house
adding to the costs even if the inventory is free.
I describe that a significant percentage of the end users do
not care about where the assets come from. Consequently we can move assets between public
cloud to public cloud or even public cloud to private cloud or even private to
private cloud while letting the users access their resources by name and in
some cases by the same IP.
#codingexercise
Find the maximum of a subsequence of an array of integers such that no two elements are adjacent.
int GetMaxSum(List<int> A)
{
if (A == null || A.Count == 0) return 0;
int inclusive = A[0];
int exclusive = 0;
for (int i = 1; i < A.Count; i++)
{
var max = Math.max(inclusive, exclusive);
inclusive = exclusive + A[i];
exclusive = max;
}
return Math.max(inclusive, exclusive);
}
Courtesy: geeksforgeeks
#codingexercise
Find the maximum of a subsequence of an array of integers such that no two elements are adjacent.
int GetMaxSum(List<int> A)
{
if (A == null || A.Count == 0) return 0;
int inclusive = A[0];
int exclusive = 0;
for (int i = 1; i < A.Count; i++)
{
var max = Math.max(inclusive, exclusive);
inclusive = exclusive + A[i];
exclusive = max;
}
return Math.max(inclusive, exclusive);
}
Courtesy: geeksforgeeks
No comments:
Post a Comment