212 place 0

246 LeetCode, Hard: 2818. Apply Operations to Maximize Score. Swift

Habr
Habr 2 place · 08/19/2023 13:09 EDT

LeetCode, Hard: 2818. Apply Operations to Maximize Score. Swift

ComplexityTime complexity: O(max(nums) * log(max(nums)) + n * log(n)). Accounting for computing prime scores, using the stack to compute next greater elements, and sorting the tuples.Space complexity: O(max(nums) + n). Considering the space required for arrays and the stack used for computation. Read more

To see detailed statistics for the news please log in »

Read the original

Add your comment
You must be logged in with Facebook to read and write comments.

A newsletter a day!

You may get 10 most important news around midday in daily newsletter. Press the button and we will send you the most important news only, no spam attached.

or register

LIKE us on Facebook so you won't miss the most important news of the day!

News from the same source
Habr Habr
Engadget
Mariella Moon @ Engadget 1 place · today 08:00 EDT

Iran restricts internet access to ward off Israeli cyberattacks

People in Iran have been having difficulties accessing internet services, mostly foreign websites and messaging apps like WhatsApp. According to The New York Times and NBC News, it was the government's decision to restrict internet in the country to ward off cyberattacks by Israel as the conflict between the countries escalate. Fatemeh Mohajerani, Iran's spokesperson, said the government was forced to throttle internet speeds in the country to maintain network... Read more

2,534 fresh

🔮
18.06.2025 ♍︎ Horoscope for Virgo Today Dear Virgo, today promises to be a busy and somewhat challenging... Read more ›
Business Insider
Matthew Loh @ Business Insider 1 place · today 04:41 EDT

Kim Jong Un is sending another 6,000 people to Kursk, after an estimated 6,000 of his troops were killed or wounded there

The new arrangement, aimed at rebuilding Kursk, is another avenue for North Korea to gain valuable experience and economic resources from Russia. Read more

1,985 fresh

Vox
Noam Hassenfeld @ Vox 1 place · today 07:00 EDT

This veteran health official watched Americans lose trust in science. How do we get it back?

Francis Collins has overseen some of the most revolutionary science of the last few decades. He led the Human Genome Project that sequenced the entire human genome by 2003, and then in 2009, he became director of the National Institutes of Health, where he served under three presidents and led the agency’s research on a […] Read more

1,529 fresh

MacRumors
Tim Hardwick @ MacRumors 1 place · today 06:19 EDT

2027 iPhone Air Could Debut Power-Saving LTPO3 OLED Display

Apple is considering introducing displays that use a lot less battery power in its iPhone lineup starting in 2027, according to a new report from The Elec. According to the Korean-language report, the technology would involve upgrading Apple's current LTPO (low-temperature polycrystalline oxide) OLED displays by incorporating oxide semiconductors in both switching and drive transistors. Every iPhone screen has millions of tiny switches that control each pixel. Right now, Apple... Read more

1,063 fresh

Tom's Hardware
Tom's Hardware 1 place · today 05:21 EDT

Misguided copper thieves plunge LA into internet blackout — perps cut lines only to find fiber-optic cables

Some would-be copper thieves sliced into Spectrum fiber optic internet lines in Los Angeles this week, cutting internet and TV service to large swaths of the L.A. area. Repairs and restoration of service took over a day of work. Read more

1,041 fresh

Business Insider
Jacky Barile @ Business Insider 3 place · 06/17/2025 15:42 EDT

Trump family unveils Trump Mobile with a flashy $500 gold smartphone

Donald Trump's sons unveiled a new Trump Mobile service on Monday. Among the new offerings will be a $500 gold-colored smartphone. Read more

1,008

Eurogamer.net
Ed Nightingale @ Eurogamer.net 1 place · today 06:44 EDT

Hades 2 gets fresh early access update as development finally approaches full release

Hades 2 has received a fresh update for those playing in early access, as the studio finally approaches the final phase of development ahead of a full release. Read more Read more

1,004 fresh

Business Insider
Peter Kafka @ Business Insider · today 05:02 EDT

Trump doesn't seem like he's taking the TikTok sale-or-ban law seriously. Does anyone?

TikTok still has the same owner. There's another ban-or-sale deadline coming up, but Donald Trump is going to extend it — again. Read more

850 fresh

Wired
Vittoria Elliott, Leah Feiger @ Wired 1 place · 06/17/2025 19:03 EDT

Far-Right ‘Appeal to Heaven’ Flag Flown Above Government Agency in DC

The "Appeal To Heaven" flag, a popular symbol for Christian nationalists that was waved by January 6 rioters, was raised over the Small Business Administration headquarters last week. Read more

742

Vox
Zack Beauchamp @ Vox 2 place · today 06:30 EDT

Trump doesn’t have a foreign policy

This story was adapted from the On the Right newsletter. New editions drop every Wednesday. Sign up here. For years, there has been an increasingly bitter foreign policy fight between two factions of the Republican Party. On one hand, you have the GOP hawks like Sen. Lindsey Graham (SC) who want the United States to impose its […] Read more

537 fresh

Wired
Alana Yzola @ Wired 2 place · today 07:00 EDT

Authors Are Posting TikToks to Protest AI Use in Writing—and to Prove They Aren’t Doing It

Traditional and indie authors are flooding #WritersTok with videos of them editing their manuscripts to refute accusations of generative AI use—and bring readers into their very human process. Read more

448 fresh

Business Insider
Claire Turrell @ Business Insider · today 05:46 EDT

I built an annex for my daughter and her new family in my backyard. It's the perfect way of living.

Sacha Warren built an annex for her daughter and her young family so they didn't have to take on debt breaking into the overpriced property market. Read more

425 fresh

Tom's Hardware
Tom's Hardware 2 place · today 05:29 EDT

AMD reveals benchmarks of Ryzen Threadripper 9000 — claims it's up to 145% faster than rival Xeon in some tests

AMD has finally revealed performance benchmarks for its Ryzen Threadripper 9000-series CPUs, showing that the new Zen 5-based 9995WX and 9980X deliver substantial gains over both their predecessors and Intel’s Xeon W9-3595X. Read more

422 fresh

TechRadar
TechRadar 1 place · today 06:41 EDT

NordPass will now let you keep all your most vital files in a special secure vault

Passports, driving licenses, birth certifications and more can now be uploaded, securely encrypted, to NordPass. Read more

386 fresh

Eurogamer.net
Ed Nightingale @ Eurogamer.net 2 place · today 05:14 EDT

Final Fantasy Tactics remade "by sheer force", as original source code no longer exists

The forthcoming remake of Final Fantasy Tactics has been developed "by sheer force" as the source code of the original PS1 game no longer exists. Read more Read more

383 fresh

Business Insider
Chris Panella @ Business Insider · 06/17/2025 16:39 EDT

Israel's one-of-a-kind F-35 stealth jet is flying into a higher level of combat in fights with Iran

Combat missions against Iran are the most challenging that an F-35 has flown, showcasing the jet's capabilities, an airpower expert said. Read more

379

CNET
Zachary McAuliffe @ CNET 1 place · today 06:00 EDT

What You Should Know About Mail Categories on Your iPhone

I also show you how to turn the Mail feature off in a few easy steps. Read more

373 fresh

Wired
Julia Forbes @ Wired 3 place · today 07:03 EDT

Silk & Snow S&S Organic Mattress Review: Soft as a Cloud

Silk & Snow’s got an organic mattress in its lineup, and it’s amazingly comfortable—but only for solo sleepers. Read more

369 fresh

GSMArena.com
GSMArena.com 1 place · today 05:27 EDT

iQOO Z10 Lite is official with Dimensity 6300 and 6,000mAh battery

The iQOO Z10 Lite is the latest addition to the series, and it slots in as the most affordable entry with its INR 9,999 ($115) launch price. The device is also expected to launch soon as the vivo T4 Lite. iQOO Z10 Lite Z10 Lite is built around a 6.74-inch IPS LCD with HD+ resolution and a 90Hz refresh rate. The panel is rated at 1,000 nits peak local brightness... Read more

363 fresh

The most popular news from the same source for the last week
Habr Habr
Habr
suncru (Selectel) @ Habr 2 place · 06/12/2025 04:07 EDT

Как устроены LLM-агенты: архитектура, планирование и инструменты

Всем привет! С вами Кирилл Филипенко, сисадмин из Selectel, и сегодня мы погрузимся в тему LLM-агентов. Сейчас об этих самых «агентах» кричат буквально из каждого утюга, поэтому пришло время наконец-то разобраться, что это такое, как они работают и с чем их, собственно, едят. Прыгайте под кат, будет интересно! Read more → Read more

0

Habr
profleaddev @ Habr 1 place · 06/12/2025 10:47 EDT

OpenAI Codex: A Software Engineering Agent

A few weeks ago, OpenAI announced that Codex is available for Plus users, and I didn’t miss a chance to try it. And today, I’m excited to share a guide to OpenAI’s Codex. As a developer, I’ve found it to be a powerful and practical tool. Read more Read more

0

Habr
xcont @ Habr 1 place · 06/14/2025 16:54 EDT

[Translation] The Billiard Fractals

Complex systems often appear chaotic or incomprehensible, yet closer examination reveals that such complexity can frequently be reduced to a simple underlying mechanism. By systematically removing layers of emergent behavior, one can uncover a fundamental rule or equation from which the entire system originates. Read more → Read more

0

Habr
melanny20 (Postgres Professional) @ Habr 3 place · 06/16/2025 07:00 EDT

[Translation] Whose feature is better, or how to compare the efficiency of SQL query plans

How to compare the efficiency of SQL query plans? “Measure the execution time, of course!” — an experienced reader would say. And they would be absolutely right: from a practical perspective, the more efficient DBMS is the one that delivers higher TPS. However, sometimes we need to design a system that doesn't exist yet or predict behavior under loads that haven't occurred yet. In such cases, we need a characteristic... Read more

0

Habr
LongMoney @ Habr 3 place · 06/16/2025 08:21 EDT

Becoming a lead isn’t just another line in your resume,  it’s a mental shift. It’s the moment you go from being a developer to someone responsible for your code and the entire team. Next, you’re also listening, mentoring, negotiating, motivating, and knowing how to find common ground even in challenging situations.Today, I’m a Dev Lead at EXANTE. We develop internal services for a select group of internal stakeholders. But my... Read more

0

Habr
kentavr009 @ Habr 3 place · 06/17/2025 06:16 EDT

[Translation] AI Agents in Modern IT Solutions

These days, it seems like everyone is talking about AI. AI here, AI there—AI will replace us all, and so on. I started to wonder: how exactly is AI going to replace us? I decided to dig into this question and examine the technical foundations, mainly to understand it for myself—how exactly is AI supposed to replace us all? Spoiler: it isn’t planning to just yet, but what’s already available... Read more

0

Habr
RuStore (VK) @ Habr 2 place · 06/17/2025 07:34 EDT

Любовь, платежи и профит: как романтическая игра внедрила новый Pay SDK от RuStore

В какой-то момент всё становится серьёзным — даже в приложениях про любовь. Команда Redspell, создатели игры Senses (интерактивные романтические истории), решили стать одними из первых, кто интегрировал новую платёжку от RuStore — Pay SDK. И встроили — с нуля, но в итоге с ростом метрик.Вот честный рассказ о том, как ребята внедряли RuStore Pay SDK, что пошло не так, как с этим справились и какие результаты в итоге получили. Если... Read more

0

Most popular sources

  • You see 833 news out of 833.
  • Sources 61 out of 61.
Business Insider 37% 5
Gizmodo 14% 8
Eurogamer.net 6% 5
Wired 5% 3
The Verge 5% 1
View sources »

LIKE us on Facebook so you won't miss the most important news of the day!

18.06.2025 08:20
Last update: 08:15 EDT.
News rating updated: 15:12.

What is Times42?

Times42 brings you the most popular news from tech news portals in real-time chart.
Read about us in FAQ section.


Times42 © 2025