kotlin-99 | Ninety-Nine Problems in Kotlin | Learning library

 by   dkandalov Kotlin Version: Current License: No License

kandi X-RAY | kotlin-99 Summary

kandi X-RAY | kotlin-99 Summary

kotlin-99 is a Kotlin library typically used in Tutorial, Learning, Example Codes applications. kotlin-99 has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

This is an adaptation of Ninety-Nine Scala Problems by Phil Gold which itself is an adaptation of the Ninety-Nine Prolog Problems written by Werner Hett at the Berne University of Applied Sciences in Berne, Switzerland. Some problems have been altered to be more amenable to programming in Kotlin. You might want to do these problems if you want to learn Kotlin, are interested in the problems described below, or both. The main reason to prefer this to using websites like hackerrank.com and codewars.com is that there is no vendor lock-in and no hidden agenda pursued by the website owner. The suggested workflow is to solve a problem yourself and then compare solution to the one provided. Solutions are available by clicking on the link at the beginning of the problem description. Your goal should be to find the most elegant solution to the given problems. Efficiency is important, but clarity is even more crucial. Some of the (easy) problems can be trivially solved using built-in functions. However, in these cases, you can learn more if you try to find your own solution. The problems have different levels of difficulty. Those marked with a single asterisk * are easy. If you have successfully solved the preceding problems, you might be able to solve them within a few (say 15) minutes. Problems marked with two asterisks ** are of intermediate difficulty and might take about 30-90 minutes to solve. Problems marked with three asterisks *** are more difficult. You may need more time (i.e. a few hours or more) to find a good solution. Please note that levels of difficulty is just a guess and assumes you are somewhat familiar with the problem domain. It is perfectly ok if some of them take longer. Overall, the goal is to learn, not to finish "on time". You might notice that there are less than 99 problems. This is because numbering of original problems was wrong. It was kept here for consistency with 99 problems in other programming languages. The first 50 or so problems are easy. If this is boring for you, feel free to jump to Binary Trees. All contributions are welcome (including alternative solutions for problems which already have a solution).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              kotlin-99 has a low active ecosystem.
              It has 624 star(s) with 91 fork(s). There are 23 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 7 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of kotlin-99 is current.

            kandi-Quality Quality

              kotlin-99 has 0 bugs and 0 code smells.

            kandi-Security Security

              kotlin-99 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              kotlin-99 code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              kotlin-99 does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              kotlin-99 releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.
              It has 5162 lines of code, 583 functions and 90 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of kotlin-99
            Get all kandi verified functions for this library.

            kotlin-99 Key Features

            No Key Features are available at this moment for kotlin-99.

            kotlin-99 Examples and Code Snippets

            No Code Snippets are available at this moment for kotlin-99.

            Community Discussions

            QUESTION

            What does Any mean in this context? Why does adding `:Any` get rid of the compiler error?
            Asked 2019-Nov-11 at 18:16

            I was trying out some example code from https://github.com/dkandalov/kotlin-99#lists. First there is a function that takes a list of any type and returns a list of lists

            ...

            ANSWER

            Answered 2019-Nov-11 at 18:16

            This is about nullability.

            In Kotlin, the top type is Any?, which can hold any object or null. The subtype Any, however, is not nullable, and can't store a null.

            In your first version, the generic type T could be any type; in particular, it could be a nullable type. So the compiler won't let you return a T as Any, in case it's null.

            You could solve this by declaring it to return Any?, or by restricting the generic type to be non-nullable. In your second version, you've done the latter by restricting T to be the non-nullable Any type.

            Source https://stackoverflow.com/questions/58806420

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install kotlin-99

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/dkandalov/kotlin-99.git

          • CLI

            gh repo clone dkandalov/kotlin-99

          • sshUrl

            git@github.com:dkandalov/kotlin-99.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link