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
    
  
  
    
  | public class ColumnNumberToExcelName { | |
| public String convertToTitle(int n) { | |
| String[] arrayAlpha = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}; | |
| String ans=""; | |
| if(n<=26){ | |
| ans = arrayAlpha[n-1].toUpperCase(); | |
| }else{ | |
| int remaintoN = n%26; | |
| int multiple = n/26; | 
  
    
      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
    
  
  
    
  | // Java program to reverse an array | |
| import java.io.*; | |
| class ReverseArray { | |
| /* Function to reverse arr[] from start to end*/ | |
| static void rvereseArray(int arr[], int start, int end) | |
| { | |
| int temp; | |
| if (start >= end) | 
  
    
      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
    
  
  
    
  | // Java program to find maximum product subarray | |
| import java.io.*; | |
| class ProductSubarray { | |
| // Utility functions to get minimum of two integers | |
| static int min (int x, int y) {return x < y? x : y; } | |
| // Utility functions to get maximum of two integers | |
| static int max (int x, int y) {return x > y? x : y; } | 
  
    
      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
    
  
  
    
  | class MaximumSumPath | |
| { | |
| // Utility function to find maximum of two integers | |
| int max(int x, int y) | |
| { | |
| return (x > y) ? x : y; | |
| } | |
| // This function returns the sum of elements on maximum path | |
| // from beginning to end | 
  
    
      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
    
  
  
    
  | public class Solution { | |
| public int removeDuplicates(int[] A) { | |
| int length=A.length; | |
| if(length==0 || length==1) return length; | |
| int i=1; | |
| for(int j=1; j<length; j++) | |
| { | |
| if(A[j]!=A[j-1]) | |
| { | |
| A[i]=A[j]; |