Last active
          November 12, 2018 06:53 
        
      - 
      
- 
        Save mariusmg2/d015aaff19f967030796d1f48c369afb to your computer and use it in GitHub Desktop. 
    Cerinte Java
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Sa se citeasca un numar natural N, urmat de un sir de N numere naturale. | |
| Se cere afisarea acelor numere care se repeta de cel putin o data (+ de cate ori se repeta). | |
| Ex: N: 7, sir: [4, 6, 3, 4, 2, 2, 0], Rezultat: 4->2, 2->2. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Sa se citeasca un numar natural N, urmat de un sir de N numere naturale. | |
| Se cere implementarea unui algoritm de sortare, si sortarea sirului citit crescator sau descrescator, in functie de metoda selectata de utilizator. | |
| Ex: N: 14, sir: 1, 2, 4, 3, 6, 5, 8, 7, 0, 9, 3, 4, 5. | |
| Pentru optiunea aleasa "crescator" (string) se va afisa: 0, 1, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9. | |
| Pentru optiunea aleasa "descrescator" (string) se va afisa: 9, 8, 7, 6, 5, 5, 4, 4, 3, 3, 2, 1, 0. | |
| /** | |
| * Despre algoritmi de sortare: https://brilliant.org/wiki/sorting-algorithms/ | |
| * Exempu de algoritm "Bubble Sort" implementat in Java: http://www.java2novice.com/java-sorting-algorithms/bubble-sort/ | |
| */ | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment