2 Topics
|
|
Hi, I have a grid, which contains cells that have several different properties. [CODE]struct fluidProperties1 { float foo; float bar; };[/CODE] and I create the grid as follows using a template [CODE]Grid2D<fluidProperties1> grid1;[/CODE] Now, I want to pass the array formed only by the values of foo, and not by … |
|
How can we find a sub array in a 1-D array? Is there any other method other than brute force method? It is not for maximum sum so we can't use kadane's algorithm. |
The End.