- C
- A
- B,C,D,E
- B
- C
- A
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
| def getFileType(file): | |
| if file is None: | |
| return None | |
| file_extension = file.name.split('.')[-1] | |
| if file_extension is None: | |
| return None | |
| file_type = None | |
| for ft in FileType: | |
| if ft.value == file_extension.upper(): | |
| file_type = ft |
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
| import android.graphics.Paint | |
| import android.util.Log | |
| import android.view.MotionEvent | |
| import androidx.compose.foundation.Canvas | |
| import androidx.compose.foundation.layout.BoxWithConstraints | |
| import androidx.compose.foundation.layout.size | |
| import androidx.compose.material.MaterialTheme | |
| import androidx.compose.runtime.* | |
| import androidx.compose.ui.Alignment |
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
| int partition (int arr[], int low, int high) | |
| { | |
| int pivot = arr[low]; | |
| int i = low; | |
| int j = high; | |
| while (i<j) | |
| { | |
| while(arr[i]<=pivot){ | |
| i++; | |
| } |