Gist

Below you will find pages that utilize the term “Gist”
September 2, 2023
Longest Common Prefix - LeetCode : Swift

Longest Common Prefix - LeetCode

Write a function to find the longest common prefix string amongst an array of strings.

September 1, 2023
Two Sum - LeetCode : Swift

Two Sum - LeetCode

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.

August 30, 2023
Fidget Loader : SwiftUI

The Fidget Loader is a dynamic and visually engaging iOS component built using SwiftUI, designed to enhance user experience by providing elegant loading animations within any iOS application. This component serves as an intuitive and customizable loading indicator, seamlessly integrating into various app interfaces.

August 29, 2023
Lazy Loader : SwiftUI

The Lazy Loader is a dynamic and visually engaging iOS component built using SwiftUI, designed to enhance user experience by providing elegant loading animations within any iOS application. This component serves as an intuitive and customizable loading indicator, seamlessly integrating into various app interfaces.

August 28, 2023
Arc Progress Loader : SwiftUI

The Arc Progress Loader is a dynamic and visually engaging iOS component built using SwiftUI, designed to enhance user experience by providing elegant loading animations within any iOS application. This component serves as an intuitive and customizable loading indicator, seamlessly integrating into various app interfaces.

August 27, 2023
Four Sided Fidget Loader: SwiftUI

The Four Sided Fidget Loader is a dynamic and visually engaging iOS component built using SwiftUI, designed to enhance user experience by providing elegant loading animations within any iOS application. This component serves as an intuitive and customizable loading indicator, seamlessly integrating into various app interfaces.

August 26, 2023
Ripple Loader : SwiftUI

The Ripple Loader is a dynamic and visually engaging iOS component built using SwiftUI, designed to enhance user experience by providing elegant loading animations within any iOS application. This component serves as an intuitive and customizable loading indicator, seamlessly integrating into various app interfaces.

August 25, 2023
Ring and Circle Loader : SwiftUI

The Ring and Circle Loader is a dynamic and visually engaging iOS component built using SwiftUI, designed to enhance user experience by providing elegant loading animations within any iOS application. This component serves as an intuitive and customizable loading indicator, seamlessly integrating into various app interfaces.

August 24, 2023
Rotating Circular Sticks Loader : SwiftUI

The Rotating Circular Sticks Loader is a dynamic and visually engaging iOS component built using SwiftUI, designed to enhance user experience by providing elegant loading animations within any iOS application. This component serves as an intuitive and customizable loading indicator, seamlessly integrating into various app interfaces.

August 23, 2023
Rotating Square Loader : SwiftUI

The Rotating Square Loader is a dynamic and visually engaging iOS component built using SwiftUI, designed to enhance user experience by providing elegant loading animations within any iOS application. This component serves as an intuitive and customizable loading indicator, seamlessly integrating into various app interfaces.

July 18, 2023
Bubble Sort : Swift

Bubble sort is a simple and straightforward sorting algorithm commonly used in computer science. In Swift language, Bubble sort works by repeatedly swapping adjacent elements if they are in the wrong order until the entire list is sorted. It has a time complexity of O(n^2), making it inefficient for large data sets. The algorithm iterates through the list multiple times, comparing and swapping elements. However, it is easy to understand and implement, making it suitable for small or nearly sorted arrays where simplicity is prioritized over efficiency. For larger data sets, more efficient sorting algorithms like QuickSort or MergeSort are preferred.

July 15, 2023
Carousel View : SwiftUI

A carousel view is a user interface component commonly used in mobile and web applications to display a collection of items in a horizontally scrolling manner. It allows users to swipe or navigate through a set of images, cards, or other content. The carousel view typically presents a subset of items at a time, with the ability to cycle through the remaining items. It is an engaging and intuitive way to showcase multiple pieces of content within a limited space, providing an interactive and visually appealing user experience.

July 13, 2023
Linked List Implementation: Swift

A linked list is a data structure in Swift that consists of nodes linked together via pointers or references. Each node contains data and a reference to the next node. Unlike an array, a linked list does not require contiguous memory allocation. Insertions and deletions can be performed efficiently in a linked list by updating the pointers, but accessing elements requires traversing the list linearly. Linked lists are useful when frequent insertions or deletions are expected, and their time complexity for most operations is O(1) or O(n) depending on the operation.

July 11, 2023
Remove duplicates from array: Swift

To remove duplicates from an array in Swift using a dictionary, we can create an empty dictionary and iterate through the array. For each element, we use it as a key in the dictionary and assign a dummy value. The dictionary automatically removes duplicate keys, so we end up with only unique elements. The time complexity of this approach is O(n), where n is the number of elements in the array, making it an efficient solution for removing duplicates..

July 8, 2023
Binary Serach : Swift

Binary search is an efficient search algorithm used to locate a specific element in a sorted array or list. It works by repeatedly dividing the search space in half until the target element is found. In Swift, binary search is typically implemented recursively or iteratively. The time complexity of binary search is O(log n), where n is the number of elements in the array. This makes it highly efficient for large data sets as it eliminates half of the remaining search space at each step, significantly reducing the search time.

July 8, 2023
Merge 2 sorted Array: Swift

Merging two sorted Int arrays in Swift means combining them into a single sorted array while preserving the order. With Swift, you can efficiently implement the merging algorithm. By comparing elements in both arrays and arranging them accordingly, you’ll obtain a new sorted array. This process ensures that the elements from both arrays are in ascending order, allowing you to organize your data effectively. The merged sorted Int array can be readily used in your Swift app for various purposes like displaying sorted lists or conducting efficient searches.

July 8, 2023
Merge 2 sorted Linked List: Swift

Merging two sorted linked lists in Swift is like combining two ordered lists into one, while still maintaining the sorted order. You can use Swift to define the linked list structure and implement a merging algorithm. By comparing the elements in both lists and arranging them accordingly, you’ll create a new sorted linked list. This process ensures that the elements from both lists are in ascending order, resulting in a single, sorted, and merged linked list that you can use in your Swift app for efficient data organization.

July 5, 2023
Instagram Post : SwiftUI

Coding an Instagram post in SwiftUI is an engaging project. You can use various components like images, text, and buttons to design a post layout. With SwiftUI’s simple syntax and powerful features, you can easily arrange the content and customize the post’s appearance. Adding interactive features like like and comment buttons makes the post come alive. It’s a fun way to learn SwiftUI and create your own unique Instagram-style posts, perfect for displaying your creativity or sharing with friends on social media.

July 3, 2023
Instagarm Logo : SwiftUI

Creating the Instagram logo in SwiftUI is an exciting task. Using basic shapes like circles, squares, and colors, you can piece together the iconic camera symbol and colorful gradient background. With SwiftUI’s user-friendly syntax and pre-built shape modifiers, you’ll enjoy a smooth coding experience. By combining shapes and arranging them creatively, you can replicate the recognizable Instagram logo, ready to be used in your own SwiftUI projects or to explore your coding creativity. Have fun and unleash your artistic side while coding this popular logo!

July 2, 2023
Insertion Sort : Swift

Insertion sort is a simple sorting algorithm in Swift that builds the final sorted array one element at a time. It iterates through the array, comparing each element with the sorted portion and placing it in the correct position. This process continues until all elements are sorted. Insertion sort has a time complexity of O(n^2) in the worst case, but it performs well on small data sets or partially sorted arrays. It also has an advantage in that it can efficiently sort elements in real-time as they are received or generated.

1 2 3