Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pa:laboratoare:laborator-01 [2022/03/01 23:42]
darius.neatu [Laborator 01: Divide et Impera]
pa:laboratoare:laborator-01 [2022/03/21 23:11] (current)
radu.nichita [Exerciții]
Line 370: Line 370:
             }             }
         }         }
-        return (res != -1 && v[pos] == x) ? res : -1;+        return (res != -1 && v[res] == x) ? res : -1;
     }     }
  
Line 384: Line 384:
             }             }
         }         }
-        return (res != -1 && v[pos] == x) ? res : -1;+        return (res != -1 && v[res] == x) ? res : -1;
     }     }
  
Line 475: Line 475:
  }  }
  }  }
- return (res != -1 && v[pos] == x) ? res : -1;+ return (res != -1 && v[res] == x) ? res : -1;
  }  }
  
Line 489: Line 489:
  }  }
  }  }
- return (res != -1 && v[pos] == x) ? res : -1;+ return (res != -1 && v[res] == x) ? res : -1;
  }  }
  
Line 573: Line 573:
  
 <​note>​ <​note>​
-Aceasta problema nu are schelet.+Aceasta problema nu are schelet, dar poate fi testată pe infoarena, la problema [[https://​www.infoarena.ro/​problema/​inv | Inv]].
 </​note>​ </​note>​
  
pa/laboratoare/laborator-01.1646170937.txt.gz · Last modified: 2022/03/01 23:42 by darius.neatu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0