{"id":16012466,"url":"https://github.com/ikhsan/ctci-swift","last_synced_at":"2025-03-18T02:32:28.196Z","repository":{"id":140819213,"uuid":"115471426","full_name":"ikhsan/ctci-swift","owner":"ikhsan","description":"Cracking the Coding Interview","archived":false,"fork":false,"pushed_at":"2018-05-09T23:03:48.000Z","size":5847,"stargazers_count":33,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T16:24:29.429Z","etag":null,"topics":["cracking-the-coding-interview","interview-preparation","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ikhsan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-27T02:12:52.000Z","updated_at":"2024-08-26T11:49:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"2cc60b20-0872-4616-bd2c-e11f1a08a02f","html_url":"https://github.com/ikhsan/ctci-swift","commit_stats":{"total_commits":87,"total_committers":1,"mean_commits":87.0,"dds":0.0,"last_synced_commit":"d093b0869b5d0f902e08ba2a1d523e04656aad7a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikhsan%2Fctci-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikhsan%2Fctci-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikhsan%2Fctci-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikhsan%2Fctci-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikhsan","download_url":"https://codeload.github.com/ikhsan/ctci-swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244144241,"owners_count":20405377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cracking-the-coding-interview","interview-preparation","swift"],"created_at":"2024-10-08T14:03:36.480Z","updated_at":"2025-03-18T02:32:28.187Z","avatar_url":"https://github.com/ikhsan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cracking The Coding Interview\n\n[![Build Status](https://travis-ci.org/ikhsan/ctci-swift.svg?branch=master)](https://travis-ci.org/ikhsan/ctci-swift)\n![Swift 4](https://img.shields.io/badge/Swift-4.0-orange.svg)\n\nSolutions of Cracking The Coding Interview written in Swift.\n\n## Tests\n\nTests are updated by using [Sourcery](https://github.com/krzysztofzablocki/Sourcery). When editing tests (add, remove, disable, enable tests) run `sourcery` from the root folder. You can unzip `sourcery`'s [latest binary](https://github.com/krzysztofzablocki/Sourcery/releases) and put the `bin` directory in the root directory, then run `bin/sourcery` from the root directory.\n\nRun the test by using SPM's test command:\n\n```bash\n$ swift test\n```\n\nYou can also run individual tests by using its number.\n\n```bash\n$ swift test --filter 2.1\n```\n\n## Solved Problems\n\n- ArrayAndString\n  - 1.1.AllUnique\n  - 1.2.CheckPermutation\n  - 1.3.Urlify\n  - 1.4.PalindromPermutation\n  - 1.5.OneAway\n  - 1.6.StringCompression\n  - 1.7.RotateMatrix\n  - 1.8.ZeroMatrix\n  - 1.9.StringRotation\n- BitManipulation\n  - 5.1.Insertion\n  - 5.6.Conversion\n- HardQuestions\n  - 17.7.BabyNames\n  - 17.21.VolumeOfHistogram\n- LinkedLists\n  - 2.1.RemoveDups\n  - 2.2.ReturnKthToLast\n  - 2.5.SumLists\n  - 2.6.Palindrome\n  - 2.7.Intersection\n  - 2.8.LoopDetection\n- Moderate\n  - 16.1.NumberSwap\n  - 16.2.WordFrequencies\n  - 16.3.CountZeroFactorial\n  - 16.4.FindMinDiff\n  - 16.8.EnglishInt\n  - 16.11.DivingBoard\n  - 16.13.XMLEncoding\n  - 16.15.MasterMind\n  - 16.17.ContiguousSequence\n  - 16.19.PondSize\n  - 16.21.SumSwap\n  - 16.22.LangtonsAnt\n- RecursionAndDynamicProgramming\n  - 8.1.TripleSteps\n  - 8.2.RobotInAGrid\n  - 8.4.PowerSet\n  - 8.5.RecursiveMultiply\n  - 8.9.Parens\n  - 8.11.Coins\n- SortingAndSearching\n  - 10.1.SortedMerge\n- StacksAndQueues\n  - 3.2.StackMin\n  - 3.4.QueueViaStacks\n  - 3.5.SortStack\n- TreesAndGraphs\n  - 4.1.RouteBetweenNodes\n  - 4.2.MinimalTree\n  - 4.3.ListOfDepth\n  - 4.5.ValidateBST\n  - 4.7.BuildOrder\n  - 4.8.FirstCommonAncestor\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikhsan%2Fctci-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikhsan%2Fctci-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikhsan%2Fctci-swift/lists"}