21 Apr 2025, 16:48 UTC542 views3 reactionsread 10 August 2026 Photo
Simple Modularization setup for a New App
This article introduces a simple modularization setup for new iOS apps using Swift Package Manager and local packages.
It explains the benefits of modularization, outlines a basic project structure with Core, Domain, and Presentation layers, and offers practical tips for managing dependencies and scaling the approach as the app grows.
🔥2👍1
14 Apr 2025, 03:54 UTC470 views1 reactionsread 10 August 2026 Software Engineer ≠ Developer 🔍
Software Engineer = Problem Solver 💡
Here’s the truth no one tells you when you start writing code:
Great engineers don’t just jump into coding.
They start by solving the problem,
without writing a single line.
Why?
Because code is a liability.
Every line you write = something you’ll maintain, debug, and defend in production later.
The best engineers I’ve worked with all do the sam…
❤1
12 Oct 2024, 06:12 UTC670 viewsread 10 August 2026 Photo
📝 #solution #3
Explanation:
- The formula n * (n + 1) / 2 gives the sum of numbers from 0 to n.
- nums.reduce(0, +) calculates the sum of the elements in the array.
- The missing number is simply the difference between the expected sum and the actual sum.
* the array should contain n distinct numbers in the range [0, n]. Otherwise, the algorithm won't work as expected because it's designed for a specific kind of in…
11 Oct 2024, 10:26 UTC553 viewsread 10 August 2026 The journey of a thousand miles begins with one step.
a Chinese philosopher.
11 Oct 2024, 10:26 UTC532 viewsread 10 August 2026 📝 #challenge #3: easy.
Find the Missing Number
🔍 Problem Statement: Given an array nums containing n distinct numbers in the range [0, n], find the one number that is missing from the array. Your solution should run in O(n) time and use O(1) extra space.
💡 Example:
let nums = [3, 0, 1]
let result = missingNumber(nums)
print(result)
// Output: 2
🔧 Function Signature:
func missingNumber(_ nums: [Int]) -> Int {
…
11 Oct 2024, 10:21 UTC415 viewsread 10 August 2026 Photo
📝 #solution #2
This solution runs in O(n) time and uses O(1) extra space by modifying the array in place. It works by using the indices of the array to mark the presence of each number. When we encounter a number that has already been marked negative, we know it's a duplicate.
@software_efficiency
14 Sept 2024, 08:20 UTC436 views1 reactionsread 10 August 2026 📝 #challenge N2: #medium level.
Find All Duplicates in an Array
🔍 Problem Statement: Given an integer array nums of length n where all integers are in the range [1, n], find all the integers that appear twice in the array. The solution must run in O(n) time and use only constant extra space.
💡 Example:
let input = [4,3,2,7,8,2,3,1]
let result = findDuplicates(input)
print(result)
// Output: [2, 3]
🔧 Function Sign…
❤1
14 Sept 2024, 08:07 UTC350 viewsread 10 August 2026 Photo
📝 #solution N1
Explanation:
- Boyer-Moore Voting Algorithm works by maintaining a candidate for the majority element and a counter.
- We iterate through the array:
-- If the count is zero, we set the current element as the candidate.
-- For each element, we either increase the count (if it matches the candidate) or decrease it (if it doesn't).
- By the end of the iteration, the candidate will be the majority element…
2 Sept 2024, 11:48 UTC≈1,020 views1 reactionsread 10 August 2026 📝 #challenge N1: #medium level.
Find the Majority Element.
🔍 Problem Statement:
Given an array of integers, find the majority element. The majority element is the one that appears more than half the time in the array. You may assume that the array is non-empty and that the majority element always exists in the array.
💡 Example:
let input = [3, 2, 3]
let result = findMajorityElement(input)
print(result) // Output: …
❤1
Software efficiency pinned «🎉 Introducing: Challenge Series 🧑💻 Hello, developers! 🚀 We’re excited to announce the launch of our Challenge Series! 🎯 This series is designed to sharpen your coding skills, boost your problem-solving abilities, and help you dive deeper into the world…»
2 Sept 2024, 11:04 UTC517 views3 reactionsread 10 August 2026 🎉 Introducing: Challenge Series 🧑💻
Hello, developers! 🚀
We’re excited to announce the launch of our Challenge Series! 🎯
This series is designed to sharpen your coding skills, boost your problem-solving abilities, and help you dive deeper into the world of programming. Whether you’re just starting out or you’re a seasoned developer, these challenges will push you to think critically and write efficient code.
🔍 Wh…
👍2❤1
1 Sept 2024, 00:02 UTC257 views1 reactionsread 10 August 2026 Insight:
"Consistent naming conventions are essential for clean code. Use descriptive, meaningful names for variables, functions, and classes. Good names should reveal intent, making your code easier to understand without requiring extensive comments."
- Consistency: Stick to a consistent pattern throughout your codebase to make it easier for others (and yourself) to understand and maintain.
🔥1
Showing the 12 most recent of 20 posts we hold for @software_efficiency. View and reaction counts are the latest single reading for each post, not a live figure, and a recent post is still accumulating both. A view count marked ≈ was rounded by Telegram before we ever saw it — t.me prints views in full below 1,000 and to three significant figures above, so ≈1,200,000 means somewhere between 1,150,000 and 1,249,999. Unmarked counts are exact. Text is reproduced from the public post preview and truncated for length.