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 ...
Search results for linked list, array
Cubic array
Posted by CMaster
Question:
Given an array of integers A[N], find the maximum value of (j-k) such that A[k] <= A[j] & j>k
Given an array of integers A[N], find the maximum value of (j-k) such that A[k] <= A[j] & j>k
How to generate random linked list?
Posted by CMaster
Considering following definition of linked list data structure
class Node
{
public string Data = string.Empty;
...
Find largest element in array
Posted by CMaster
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 ...
Calculate length of the linked list
Posted by aleksin
This problem can be easily solved by using simple recursion and again creates a basis for solving subset of related coding problems.
Possible soluti ...
