TECH |
Engadget Japanese |
2015年3月7日、ランニングを強力にサポートする「Smart B-Trainer」が発売されました:今日は何の日? |
https://japanese.engadget.com/today7-203038848.html
|
smartbtrainer |
2022-03-06 20:30:38 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
RubyでSOLID原則1: 単一責任原則 |
https://qiita.com/Paul_Dirac/items/3521a36f58d92834cab3
|
クラスを分けるこのEngineerクラスは労務部と技術部の二つのアクターから利用されるので、単一責任原則を破っています。 |
2022-03-07 05:29:34 |
海外TECH |
DEV Community |
Day 25 of Studying LeetCode Solution until I Can Solve One on My Own: Problem#121. Best Time to Buy and Sell Stock(Easy/JS) |
https://dev.to/corndog/day-25-of-studying-leetcode-solution-until-i-can-solve-one-on-my-own-problem121-best-time-to-buy-and-sell-stockeasyjs-185d
|
Day of Studying LeetCode Solution until I Can Solve One on My Own Problem Best Time to Buy and Sell Stock Easy JS Intro I am a former accountant turned software engineer graduated from coding bootcamp Algorithms and Data Structure is an unavoidable part of interviews for most of the tech companies now And one of my friends told me that you need to solve a medium leetcode problem under seconds in order to get into the top tech companies So I thought I d start learning how to do it while job searching Since I have no clue on how to solve any of the problems even the easy ones I thought there is no point for me to waste hours and can t get it figured out Here is my approach Pick a leetcode problem randomly or Online Assessment from targeted companies Study solutions from Youtube or LeetCode discussion section One brute force solution another one more optimal Write a blog post with detailed explanation and do a verbal walk through to help understand the solutions better Code out the solution in LeetCode without looking at the solutionsCombat the forgetting curve Re do the question for the next three days And come back regularly to revisit the problem Best Time to Buy and Sell StockDifficulty Easy Language JavaScript You are given an array prices where prices i is the price of a given stock on the ith day You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock Return the maximum profit you can achieve from this transaction If you cannot achieve any profit return Example Input prices Output Explanation Buy on day price and sell on day price profit Note that buying on day and selling on day is not allowedbecause you must buy before you sell Example Input prices Output Explanation In this case no transactions are done and the maxprofit Constraints lt prices length lt lt prices i lt Solution My first though is to find all possible profits and get the max profit with two for loops but that exceeds the time limit Key to solve this problem is understanding that stock can only be sold after it s bought We will set the prices on day one as purchase and loop through the prices array If a higher price is seem on the next day save profit made by subtracting purchase price from the higher price Note that the profit will be constantly updated whenever a new higher profit is found If a lower price is seem on the next day set it as the new puchase price Note the purchase price variable will be constantly updated whenever a new lower price is seem When the loop ends the final profit is our answer var maxProfit function prices let purchase prices let profit set initial profit as and the prices on day one note as puchase price for let i i lt prices length i Loop note prices array starting on index as index is already set as purchase price if prices i lt purchase purchase prices i If note a lower price is seem on the next day set it as the new puchase price else profit Math max profit prices i purchase If a higher price is seem on the next day save profit made by subtracting purchase price from the higher price Note that the profit will be constantly updated note whenever a new higher profit is found return profit References LeetCode Problem LinkYoutube ThinkFWDNote For LoopNote Access an array item by its indexNote if elseNote Math max Blog Cover Image Credit |
2022-03-06 20:19:55 |
海外TECH |
DEV Community |
Nevertheless, Kavisha Continued Coding! |
https://dev.to/kaviiiiisha/nevertheless-kavisha-continued-coding-354a
|
Nevertheless Kavisha Continued Coding A very happy International Women s Day I ve been a member of the DEV Community since and this is the second time I ve shared my story with SheCoded My biggest technical goal is…to contribute more in open sourse and expand my knowledge and skills to understand programming memes My biggest technical achievements are…Participating for Hacktoberfest and contribute in open source Completing Pearson BTEC HND in Computing Started doing TOP UP degree at London Met University Advocating for myself looks like…Setting healthy boundaries making space for my feelings asking for help when needed developing self love and self care routines allowing myself to express emotions and start coding I m excited about…future me My advice for allies to support underrepresented folks who code is Create the space you want to be Create the future you want to see and ensure that everyone gets their voice heard in a positive environment Happy Coding |
2022-03-06 20:10:44 |
Apple |
AppleInsider - Frontpage News |
Hackers leak 190GB of data taken in alleged Samsung breach |
https://appleinsider.com/articles/22/03/06/hackers-leak-190gb-of-data-taken-in-alleged-samsung-breach?utm_medium=rss
|
Hackers leak GB of data taken in alleged Samsung breachSamsung has allegedly suffered a major security breach with hackers claiming to have leaked approximately gigabytes of data including source code and biometric unlocking algorithms On Friday the Lapsus hacking group published a gigabyte trove of confidential data that it claims to have seized from Samsung Electronics If genuine the leak may be a big security problem for the Apple rival The data leak was originally teased by the group on Friday as including a snapshot of C C directives in Samsung software reports Bleeping Computer The group then expanded on its description of the leak saying it contained confidential Samsung source code Read more |
2022-03-06 20:20:44 |
海外TECH |
Engadget |
Activision Blizzard and Epic pause game sales in Russia |
https://www.engadget.com/activision-blizzard-epic-games-pause-game-sales-russia-201856440.html?src=rss
|
Activision Blizzard and Epic pause game sales in RussiaActivision Blizzard and Epic Games have joined a growing list of publishers suspending sales of their games in Russia due to the country s ongoing invasion of Ukraine In an employee letter it shared publicly on Friday Activision president and chief operating officer Daniel Alegre said the company would pause selling its games to Russian consumers It will also temporarily stop offering in game microtransactions to those same customers Epic is stopping commerce with Russia in our games in response to its invasion of Ukraine We re not blocking access for the same reason other communication tools remain online the free world should keep all lines of dialogue open ーEpic Games Newsroom EpicNewsroom March One day after Activision s announcement Epic Games said it too was halting transactions within the country “Epic is stopping commerce with Russia in our games in response to its invasion of Ukraine the company said “We re not blocking access for the same reason other communication tools remain online the free world should keep all lines of dialogue open nbsp It s unclear if Epic s decision includes both its own titles and any in game microtransactions it offers in Fortnite What s more notably neither Activision nor Epic mentioned Belarus in their respective announcements In halting sales to Russia Activision and Epic join companies like Microsoft Electronic Arts and CD Projekt Red Russia isn t a small market either According to a estimate from Statista the country with approximately billion in industry revenue that year was the eighth largest market for video games |
2022-03-06 20:18:56 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
日本のDXブームが壮大に空回っている理由、ITベンダー・コンサル・経産省・企業の功罪 - 企業・ITベンダー・コンサル…DX狂騒曲 天国と地獄 |
https://diamond.jp/articles/-/297947
|
天国と地獄 |
2022-03-07 05:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
旧日産系マレリ再建へ、負債1.1兆円の「銀行別内訳」を公開!借金も利害関係者も多すぎる - 日産マレリ劇場 |
https://diamond.jp/articles/-/298192
|
事業再生adr |
2022-03-07 05:22:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
日立本体に吸収した上場子会社で「無慈悲リストラ」、新社長の剛腕にグループ震撼![話題のリストラ] - 見逃し配信 |
https://diamond.jp/articles/-/298248
|
日立本体に吸収した上場子会社で「無慈悲リストラ」、新社長の剛腕にグループ震撼話題のリストラ見逃し配信産業構造が激変する中、ホンダやフジテレビなど超優良とされてきた大企業でもリストラの嵐が吹き荒れています。 |
2022-03-07 05:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
商船三井は「ロシアが戦争中」でも北極圏LNG運搬ビジネスを継続できるか - 混迷ウクライナ |
https://diamond.jp/articles/-/298222
|
商船三井 |
2022-03-07 05:17:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「DXで売り上げ3倍にしたいんですぅ」無知な客、ベンダーの謎商品…DXブームのトホホ実態【IT業界インサイダー座談会1】 - 企業・ITベンダー・コンサル…DX狂騒曲 天国と地獄 |
https://diamond.jp/articles/-/297946
|
|
2022-03-07 05:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「仮想敵はアクセンチュアと野村総研」SHIFT社長が豪語、株価10倍・時価総額10兆円も!? - 今こそチャンス!日米テンバガー投資術 |
https://diamond.jp/articles/-/297262
|
shift |
2022-03-07 05:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
源氏が平家を破った富士川の戦い、「水鳥の羽音で平家が逃げた」説の真相 - 新説・新発見!今こそ学ぶ「歴史・地理」 |
https://diamond.jp/articles/-/297887
|
大河ドラマ |
2022-03-07 05:05:00 |
ビジネス |
電通報 | 広告業界動向とマーケティングのコラム・ニュース |
茨城県北のPR動画が“青春”を描いて総計27万PV突破した件
〜自治体発ウェブドラマ「県北高校フシギ部の事件ノート」ができるまで~ |
https://dentsu-ho.com/articles/8102
|
魅力 |
2022-03-07 06:00:00 |
ビジネス |
電通報 | 広告業界動向とマーケティングのコラム・ニュース |
アスリートの知恵を、ブレイクに使え |
https://dentsu-ho.com/articles/8091
|
電通 |
2022-03-07 06:00:00 |
北海道 |
北海道新聞 |
<社説>安保戦略見直し 平和主義堅持が前提だ |
https://www.hokkaido-np.co.jp/article/653596/
|
国家安全保障 |
2022-03-07 05:05:00 |
ビジネス |
東洋経済オンライン |
物言う株主すら退散する「M&A最強タッグ」の正体 東京機械も「秘策」で勝利した専門家集団たち | 最新の週刊東洋経済 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/536086?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
投資会社 |
2022-03-07 05:30:00 |
コメント
コメントを投稿