home.social

#timecomplexity — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #timecomplexity, aggregated by home.social.

  1. Big-O Notation học khám phá phức tạp thời gian trong code. Bài viết cung cấp kiến thức nền tảng về phân tích hiệu suất thuật toán (O(1), O(n), O(log n)...), hữu ích cho việc chuẩn bị coding interview. Kết thèm video và câu hỏi Reddit hỗ trợ tự học. #BigONotation #CodingInterview #TimeComplexity #ComputerScienceTutorial #VietnameseTechCommunity

    reddit.com/r/programming/comme

  2. Time Complexity (Big O) simplified:

    - When your calculation is not dependent on the input size, it is a constant time complexity (O(1)).
    - When the input size is reduced by half, maybe when iterating, handling recursion, or whatsoever, it is a logarithmic time complexity (O(log n)).
    - When you have a single loop within your algorithm, it is linear time complexity (O(n)).
    - When you have nested loops within your algorithm, meaning a loop in a loop, it is quadratic time complexity (O(n^2)).
    - When the growth rate doubles with each addition to the input, it is exponential time complexity (O2^n).

    #timecomplexity #BigO #programming #code #complexity

  3. Time Complexity (Big O) simplified:

    - When your calculation is not dependent on the input size, it is a constant time complexity (O(1)).
    - When the input size is reduced by half, maybe when iterating, handling recursion, or whatsoever, it is a logarithmic time complexity (O(log n)).
    - When you have a single loop within your algorithm, it is linear time complexity (O(n)).
    - When you have nested loops within your algorithm, meaning a loop in a loop, it is quadratic time complexity (O(n^2)).
    - When the growth rate doubles with each addition to the input, it is exponential time complexity (O2^n).

    #timecomplexity #BigO #programming #code #complexity

  4. Time Complexity (Big O) simplified:

    - When your calculation is not dependent on the input size, it is a constant time complexity (O(1)).
    - When the input size is reduced by half, maybe when iterating, handling recursion, or whatsoever, it is a logarithmic time complexity (O(log n)).
    - When you have a single loop within your algorithm, it is linear time complexity (O(n)).
    - When you have nested loops within your algorithm, meaning a loop in a loop, it is quadratic time complexity (O(n^2)).
    - When the growth rate doubles with each addition to the input, it is exponential time complexity (O2^n).

    #timecomplexity #BigO #programming #code #complexity