Inspiration

The inspiration for this project came from the desire to demonstrate the power and flexibility of TypeScript for handling complex data structures and algorithms, such as sorting.

What it does

This project sorts an array of Student objects in ascending order based on their score property. It demonstrates how to define complex types in TypeScript, how to implement the Insertion Sort algorithm, and how to use these tools to sort a complex data structure. Along with a console.log of "Hello World"

How we built it

We built this project using TypeScript. We defined a Student type with name, age, and score properties, implemented the Insertion Sort algorithm in a function called insertionSort, and used this function to sort an array of Student objects in the main function.

Challenges we ran into

One of the main challenges was implementing the Insertion Sort algorithm in a way that it could sort an array of complex objects, not just simple numbers or strings. We overcame this challenge by using TypeScript's powerful typing system to define a complex Student type and then sorting the Student objects based on their score property.

Accomplishments that we're proud of

We're proud of successfully implementing the Insertion Sort algorithm to sort a complex data structure in TypeScript. This demonstrates the power and flexibility of TypeScript for handling complex data structures and algorithms.

What we learned

We learned how to define complex types in TypeScript, how to implement a classic computer science algorithm (Insertion Sort), and how to use these tools to sort a complex data structure.

What's next for Sort A List and Get A Hello World

Next, we plan to extend this project to handle other types of complex data structures and other sorting algorithms. We also plan to add more features, such as user input to create the Student objects, and more advanced sorting options.

Share this project:

Updates