Relative Content

Tag Archive for c#c#-4.0

Time Optimization

I am solving a question on array manipulation on hackerrank. For a particular problem I write this solution. But this solution was ruled out due to timeout for some test cases. Can anyone help me with this please-

c# How to update variable value in loop

I’ve try to loop and from the below code, The problem is when it loop back to “IEnumerable selectedRows =”. The value of DateStart and DateEnd remain the same “9/1/2003 2:00:00” and “9/1/2003 2:59:00” respectively as its initial value. Why the “IEnumerable selectedRows =” do not update the DateTime value? Please help and thank you.