Coder Social home page Coder Social logo

为啥不用OC嘞 about leetcode HOT 2 CLOSED

iSuAbner avatar iSuAbner commented on June 2, 2024
为啥不用OC嘞

from leetcode.

Comments (2)

geemaple avatar geemaple commented on June 2, 2024

OC是一门不错的语言,尤其是近10年来,移动端发展比较迅猛,OC进入开发者的视野。其语法表意,易于学习和普及,受到不少年轻人的喜爱。但是对于算法,我认为OC有以下缺点。可以用swift替代,而且Tensorflow也把swift作为支持语言之一。

  1. 使用的OJ(Online Judge)不支持该语言
  2. OC命名过于冗长,不易记忆,算法一个重要场景是面试,要白板上书写
  3. OC使用繁琐,对于简单的数字数组,还要包一层Number
  4. OC缺少一些内置数据容器,例如,双端队列, 优先队列等。同样原因也不推荐用C写
  5. OC算法领域使用场景比较狭窄,不便于网络交流

个人推荐的语言依次为Python,C++,Java,Swift和Javascript

from leetcode.

iSuAbner avatar iSuAbner commented on June 2, 2024

嗯嗯 现在开始尝试用Python写了。

from leetcode.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.