|

Search results for linked list, array



Cubic array

Posted by CMaster
Given a cubic array made up of NxNxN smaller cubes: the cubic array is N cubes wide, N cubes deep and N cubes high. Question: How many cubes are on ...
Question:

Given an array of integers A[N], find the maximum value of (j-k) such that A[k] <= A[j] & j>k
Considering following definition of linked list data structure class Node { public string Data = string.Empty; ...
Answer in C# public static int FindMax( int[] input ) { int max = Int32.MinValue; for ( int i = 0; i < input.length; i++ ) { if ( i ...
Answer The solution, while being extremely simple, sometimes confuses many people because of the necessity of maintaining an array index for the nex ...
Write a function to find a largest sub-sequence in a given array of integers both positive and negative. Examples: { -100, 1, 2, 3, -20, -20, -20, ...
Task:“Compute the sum of all the values in the nodes of a single linked list”   The only thing is needed to solve this problem is linked list tr ...
This problem can be easily solved by using simple recursion and again creates a basis for solving subset of related coding problems. Possible soluti ...