Quick Sort in Objective C

Published on 28 April 2022 (Updated: 25 January 2023)

Quick Sort in Objective C

Welcome to the Quick Sort in Objective C page! Here, you’ll find the source code for this program as well as a description of how the program works.

Current Solution

```objective c // // main.m // // QuickSort in ObjC //

#import <Foundation/Foundation.h>

@interface QuickSort: NSObject

@end

@implementation QuickSort

}

int main(int argc, const char * argv[]) { @autoreleasepool {

    QuickSort *quickSort = [[QuickSort alloc] init];
    
    // Hardcoded values
    // NSArray *data = @[@33, @12, @104, @87, @12, @60, @93, @6, @18, @40, @52, @22, @43];
    
    // Command line input
    NSLog(@"Enter comma separated values: ");
    NSString* userInput = [quickSort getUserInput];
    
    NSArray *data = [userInput componentsSeparatedByString:@","];
    
    NSArray *sortedArray = [quickSort quickSort: (NSArray *)data];
    
    NSLog(@"%@", sortedArray);
    
}
return 0; }

@end ```

Quick Sort in Objective C was written by:

If you see anything you’d like to change or update, please consider contributing.

Note: The solution shown above is the current solution in the Sample Programs repository as of Oct 04 2020 17:02:28. The solution was first committed on Oct 04 2020 16:46:55. As a result, documentation below may be outdated.

How to Implement the Solution

No ‘How to Implement the Solution’ section available. Please consider contributing.

How to Run the Solution

No ‘How to Run the Solution’ section available. Please consider contributing.