47 place 344

81 [Translation] One does not simply calculate the absolute value

Habr
lany @ Habr 1 place · 08/22/2021 06:33 EDT

[Translation] One does not simply calculate the absolute value

It seems that the problem of calculating the absolute value of a number is completely trivial. If the number is negative, change the sign. Otherwise, just leave it as it is. In Java, it may look something like this:public static double abs(double value) {
if (value < 0) {
return -value;
}
return value;
}It seems to be too easy even for a junior interview question. Are there any pitfalls here? 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
Business Insider
Anneta Konstantinides @ Business Insider 1 place · today 06:29 EDT

Miss Universe runner-up says she wasn't offended by the CEO calling the winner's blond hair and blue eyes the 'ultimate evolution' for the pageant

Miss Nigeria Chidimma Adetshina told BI she wasn't offended by Miss Universe CEO Anne Jakrajutatip's comment that the pageant doesn't need to evolve. Read more ›

3,396 fresh

đź”®
26.11.2024 ♋︎ Today will be a busy day full of emotions and events for the zodiac sign... Read more ›
Business Insider
Ryan Pickrell,Mia Jankowicz @ Business Insider 2 place · today 04:00 EDT

Elon Musk says human-piloted fighter jets like the F-35 are obsolete. Drone tech can't yet fill the gap.

The Tesla CEO went after the F-35, calling crewed fighter jets "obsolete in the age of drones," but uncrewed technology isn't there yet. Read more ›

2,683 fresh

CNET
Tyler Lacoma @ CNET 1 place · today 07:00 EDT

This Age-Old Device Stops Porch Pirates Every Time

Need to protect your important package deliveries? A centuries-old home hack is still one of the easiest ways to beat package theft. Read more ›

2,219 fresh

Eurogamer.net
Ed Nightingale @ Eurogamer.net 1 place · today 05:53 EDT

PSA: Dino Crisis is now available for all to purchase on PlayStation

Iconic PS1 survival horror Dino Crisis was released on PlayStation last month, but was only available for PS Plus Premium subscribers. Read more Read more ›

1,619 fresh

Wired
Venki Ramakrishnan @ Wired 1 place · today 06:45 EDT

3 Simple Rules to Beat the Downsides of Aging

While we wait for scientists to come up with a miracle pill, we can take matters into our own hands with easy steps to ensure that life in old age isn’t also the end of living well. Read more ›

1,264 fresh

Gizmodo
Jorge Jimenez @ Gizmodo 2 place · today 07:00 EDT

This Soda Can-Sized Projector Saved Bedtime in My House

The Anker Nebula Capsule Air might be my favorite little gadget of the year. Read more ›

1,158 fresh

CNET
Brian Bennett @ CNET 2 place · today 06:00 EDT

Outdoor Turkey Cooking Showdown: Big Green Egg vs. Deep Fryer vs. Smoker vs. Grill

We tested the four most popular ways of cooking turkey outside to find the best and safest ways to do it this Thanksgiving. Read more ›

979 fresh

EU-Startups
David Cendon Garcia @ EU-Startups 1 place · today 06:00 EDT

Sofia-based AMPECO raises €24.7 million to expand global EV charging management platform

AMPECO, a Bulgarian provider of EV charging management solutions, has secured €24.7 million in a Series B funding round led by Revaia, with participation from existing investors Cavalry Ventures, BMW i Ventures, and LAUNCHub Ventures. Founded in 2019, AMPECO offers a white-label, hardware-agnostic platform that enables charge point operators (CPOs) and e-mobility service providers (eMSPs) ... Read more ›

786 fresh

Vox
Kenny Torrella @ Vox 1 place · today 07:00 EDT

How America broke the turkey

Editor’s note: This story was originally published on November 22, 2023, and reflects events that took place that year. We’re republishing it in its original form this week in advance of Thanksgiving. Late into the night on November 2, a few animal rights activists opened an unlocked barn door and stepped foot into a sea of […] Read more ›

673 fresh

Tech Wire Asia
Muhammad Zulhusni @ Tech Wire Asia 1 place · 11/25/2024 17:38 EDT

Nvidia CEO Jensen Huang’s optimism amid US tech policies

Nvidia CEO Jensen Huang expresses confidence in the resilience of global collaboration. President-elect Trump’s potential tariffs on Taiwanese semiconductors could disrupt supply chain. Nvidia’s CEO Jensen Huang believes that global tech collaboration will remain strong, even as the US considers stricter policies on advanced computing products. During a recent visit to Hong Kong, Huang addressed... Read more » Read more ›

643

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

Apple Intelligence Faces Complex Approval Process in China

Apple is experiencing challenges as it attempts to launch Apple Intelligence in China, with regulators cautioning that foreign companies face a "difficult and long process" for approval unless they partner with local firms, according to a new Financial Times report. A senior official at the Cyberspace Administration of China told the FT that foreign device makers would find a "simple and straightforward approval process" if they utilize already-approved large language... Read more ›

612 fresh

Eurogamer.net
Ed Nightingale @ Eurogamer.net 2 place · today 06:21 EDT

Nintendo adds The Legend of Zelda: Echoes of Wisdom to the official series timeline

Nintendo has added The Legend of Zelda: Echoes of Wisdom to the official series timeline. Read more Read more ›

519 fresh

Eurogamer.net
Ed Nightingale @ Eurogamer.net 3 place · today 06:51 EDT

Nintendo Switch eShop closing 2026 in China

Nintendo will close its Switch eShop and all network services in China in 2026. Read more Read more ›

518 fresh

Business Insider
Theron Mohamed @ Business Insider · today 04:57 EDT

Money guru shares 5 ways to set your kids up for financial success — and some tough love will be necessary

Parents should start teaching their children about money when they're little, and stop helping as soon as possible, says financial planner Mark Berg. Read more ›

476 fresh

Wired
Genevieve Guenther @ Wired 2 place · today 04:40 EDT

The Fossil Fuels Conversation Needs a Hard Reset

The term “reducing emissions” has outlived its usefulness, a crutch to soften the blow that’s being exploited by greenwashers. Now it’s time to get real. Read more ›

463 fresh

Irish Tech News
Ronan Leonard @ Irish Tech News 1 place · today 06:00 EDT

Datapac strikes a chord with National Opera House in new €150,000 sponsorship deal

Datapac, Ireland’s leading technology solutions and services provider, is pleased to announce the renewal of its sponsorship with the National Opera House. This new deal, valued at €150,000 over the next four years, marks the latest chapter in a decades-spanning partnership that has supported the venue in delivering world-class performances and events. As the official […] Read more ›

431 fresh

CNET
Hallie Seltzer @ CNET · today 07:00 EDT

Is Gigabit Internet Worth the Money? Here’s Why You May Not Need That Much Speed

Gigabit internet is often touted as the gold standard for a high-speed internet connection, but is it worth the cost? Let's take a closer look. Read more ›

408 fresh

The most popular news from the same source for the last week
Habr Habr
Habr
kaze_no_saga (Postgres Professional) @ Habr 2 place · 11/22/2024 03:04 EDT

[Translation] PostgreSQL 18: Part 1 or CommitFest 2024-07

This article is the first in the series about the upcoming PostgreSQL 18 release. Let us take a look at the features introduced in the July CommitFest. Planner: Hash Right Semi Join support Planner: materializing an internal row set for parallel nested loop join Planner support functions for generate_series EXPLAIN (analyze): statistics for Parallel Bitmap Heap Scan node workers Functions min and max for composite types Parameter names for regexp*... Read more ›

0

Habr
Akshiira @ Habr 2 place · 11/22/2024 16:20 EDT

The Implicit Reparameterization Trick in Action: Python Library for Gradients Computation

The explicit reparameterization trick is often used to train various latent variable models due to the ease of calculating gradients of continuous random variables. However, due to its peculiarities, explicit reparameterization trick is not applicable to several important continuous standard distributions, such as mixture, Gamma, Beta and Dirichlet.An alternative method for calculating reparameterization gradients relies on implicit differentiation of cumulative distribution functions. The implicit reparame Read more ›

0

Habr
habrbah @ Habr 1 place · 11/23/2024 13:37 EDT

Lifecycle of an IT product using the example of Telepathy – a brain-computer interface (BCI) from Nueralink

1. The purpose of the IT product Telepathy – the brain-computer interface of  NueralinkThe UN General Assembly Resolution of 22.03.2024 No. A/78/L.49 “Harnessing the Potential of Safe, Secure and Trustworthy Artificial Intelligence Systems for Sustainable Development” [1] confirms (paragraph 5) that"human rights and fundamental freedoms must be respected, protected and encouraged throughout the life cycle of artificial intelligence systems"and to all Member States of the United Nations and, where appropriat Read more ›

0

Habr
janna_melnikova @ Habr 2 place · 11/25/2024 02:36 EDT

How can a manual tester understand an automation tester, and vice versa?

When we go abroad for vacation or meet a foreigner on the street who doesn’t speak Russian but is trying to ask, “Where is the restroom? How do I get to…”, we wonder how to explain things to them in Russian in a way they would understand. I asked myself a similar question when trying to explain something to a colleague using SQL while they were working with Java. The... Read more ›

0

Most popular sources

  • You see 1,046 news out of 1,046.
  • Sources 63 out of 63.
Business Insider 28% 1
Tech Wire Asia 14%
CNET 8% 2
The Verge 6% 2
Gizmodo 6% 0
View sources »

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

26.11.2024 07:50
Last update: 07:45 EDT.
News rating updated: 14:42.

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 © 2024