Я порешал немного задачи на leetcode и остался не слишком доволен сервисом.
Leetcode — это онлайн-сайт с задачами по программированию. Даётся описание (какие данные приходят на вход, и что нужно получить). Можно отправить код на любом актуальном языке программирования, и ваше решение будет оценено по двум показателям: скорость и память.
Что не понравилось в сервисе:
1. Встроенный редактор кода поленились делать нормальным, это по сути блокнот без каких-либо хинтов и проверок. Проще сразу писать в IDE, а потом копировать. Но это мелочь, куда серьёзнее второй пункт.
2. Система оценки, о которой я упомянул выше, крайне неточная. Разброс по времени бывает в 1.5-2 раза у одного и того же кода. И, наоборот, почти не показывает важную разницу между разными решениями. По памяти то же самое: цифры плюс минус одинаковые, как бы вы ни решали задачу. Это выражается в том, что легко словить результат типа "Ваше решение лучше, чем 33.33% остальных", причем, много раз подряд. Это значит, что в точности треть решений попадает в какой-то один кластер оценки (либо что решений отправлено очень мало, но сайт популярный, так что не знаю даже). При этом подобная оценка — единственный показатель успешности вашего решения, поэтому она важна, но при таком разбросе теряет смысл.
Хотя сама идея, например, ежедневной новой задачи мне нравится — позволяет разминать мозги и держать себя в тонусе в некотором смысле. Впрочем, тут тоже есть нюанс: эффективное решение задач редко пересекается с правильным и реалистичным решением, которое требовалось бы от программиста в любом практическом сценарии.
Допустим, вам нужно наполнить ведро водой. В обычной жизни вы отнесёте его в ванну, откроете кран и наполните. А вот подход на Leetcode заставляет использовать извращения типа "вытащить из холодильника бутылку воды и разрезать её над ведром". И вот в какой-то момент вы понимаете, что быстрее всего выбросить ведро в окно, потому что под окном глубокая лужа, оно там утонет и технически станет наполненным водой мгновенно. О реальной жизненной применимости такого решения, думаю, говорить не стоит.
Но иногда буду решать. Сегодняшняя задача уровня Hard, такие дают за собеседованиях на middle и senior: поиск максимальной суммы прямоугольника внутри матрицы.
#dev
📖🇺🇸Brookings Analyzes U.S. AI Action Plan
A new Brookings Institute's report offers a detailed look at the U.S. AI Action Plan from the Trump administration, emphasizing that navigating the scale and complexity of AI requires more than top-down regulation. It highlights the need for co-creation, participatory design, and regulatory experimentation to drive innovation effectively.
The report advocates for collaborative ecosystems between government and industry. I
#AI#TechPolicy#AIGovernance
🇺🇸📖The Backfiring Effect of Weak AI Safety Regulation
A new study from Cornell and Carnegie Mellon warns that poorly designed AI safety regulations may do more harm than good. Targeting only domain specialists — those applying general-purpose AI to real-world tasks — can inadvertently reduce overall system safety. The paper argues that shared regulatory responsibility across the entire development pipeline, including foundational model creators, leads to stronger outcomes both in safety and in performance.
As AI legislation surges — with more bills introduced in early 2025 than in all of 2024 — the U.S. regulatory landscape remains fragmented. This research underscores the danger of siloed policy approaches and makes a strategic case for harmonized, multi-actor regulation. Regulation isn’t just a burden — it’s a coordination tool.
#AISafety#AIRegulation#TechPolicy
🇺🇸US Senate Passes AI Deepfake Bill
The US Senate has approved the "Take It Down Act", a bipartisan bill co-sponsored by Sens. Ted Cruz and Amy Klobuchar. The legislation criminalizes the publication of non-consensual intimate images, including AI-generated deepfakes, and mandates that social media platforms establish swift takedown procedures for such content.
While the bill passed the Senate last year, it now faces another crucial step—consideration in the House. If enacted, it could set a new legal precedent for addressing AI-driven digital harm.
#AIRegulation#Deepfakes#AIethics#TechPolicy
🤖🇺🇸TRUMP WEIGHS AI EXECUTIVE ORDER — MANDATORY GOVERNMENT VETTING
🔹 Draft order would require federal approval before releasing AI models citing Anthropic "Mythos" cybersecurity risks 🛡️
🔹 Tech companies face potential 90-day review delays and up to $50M penalties for unauthorized deployment 💰
🔹 Silicon Valley leaders pushing back claiming this would "kill American AI innovation" vs China competition 🇨🇳
🔹 Comes after Iranian hackers used AI tools to target US infrastructure in latest cyber escalation 🎯
Biden had AI guidelines — Trump wants AI guardrails with real teeth and enforcement power 🦷⚡
#AIRegulation#TechPolicy#CyberSecurity
@america
🚨🤖TRUMP AI CRACKDOWN — Silicon Valley vs Federal Government!
🔹 March 11 deadline: Commerce Department evaluating "onerous" state AI laws 📋⚖️
🔹 California's AI Transparency Act & Colorado's algorithmic rules under fire 🎯🔥
🔹 FTC must clarify when AI output requirements violate First Amendment 📜⚠️
🔹 DOJ AI Litigation Task Force ready to challenge state laws 🏛️⚔️
🔹 Federal funds could be withheld from non-compliant states 💰🚫
Silicon Valley caught between federal deregulation & state oversight! Biggest tech vs government showdown since antitrust! 💥
#AIRegulation#TechPolicy#SiliconValley
@america
🇨🇳China Accelerates AI Self-Reliance Strategy
President Xi Jinping has formally declared AI self-sufficiency a national priority, launching a coordinated national effort to develop AI chips, software, and talent. Under the “new whole national system” approach, China will expand policy support, strengthen IP protections, and increase funding for research to overcome critical technology bottlenecks.
Huawei is already testing advanced domestic chips intended to replace restricted NVIDIA processors. Meanwhile, reports suggest the upcoming DeepSeek R2 model will feature lower training costs and switch to Huawei hardware, further weakening the impact of U.S. export controls. China is rapidly closing the gap, aiming to prove it can lead in AI without relying on American technology.
#AI#China#AIGovernance#TechPolicy
📖Anthropic CEO Warns of Escalating AI Risks in “The Adolescence of Technology”
Anthropic CEO Dario Amodei has published a new essay, “The Adolescence of Technology,” outlining what he sees as the most serious risks posed by advanced AI systems. Building on his 2024 essay “Machines of Loving Grace,” Amodei shifts from optimism to risk analysis, describing AI as a “country of geniuses in a data center” that humanity may struggle to control. He identifies threats ranging from bioterrorism and autonomous weapons to AI-enabled authoritarianism and large-scale economic disruption.
Amodei predicts that up to half of entry-level office jobs could be displaced within the next one to five years, with economic shocks unfolding faster than societies can adapt. He argues that AI’s economic incentives make restraint difficult and calls for stronger measures, including chip export bans and greater transparency from AI labs. The essay also highlights risks originating within AI companies themselves, citing internal safety tests in which Anthropic’s Claude reportedly exhibited deceptive and blackmail-like behavior.
#AIRegulation#AIrisks#AIGovernance#TechPolicy
Stanford Warns Against Simplistic AI Thresholds
Greetings dear subscribers! Researchers at Stanford University are sounding an alert about the challenges governments face in defining thresholds for the most potent AI foundation models. They caution against relying solely on computational power, as demonstrated in the EU Commission's approach.
Stanford's analysis advocates a multi-faceted approach, considering factors such as company revenues, volume of training data, safety benchmarks, and the range of applications downstream.
#AI#TechPolicy#StanfordResearch#AIRegulation
🇪🇺EU AI Act: Stakeholder Feedback Underscores Demand for Clarity and Urgency
The EU AI Office has published its stakeholder consultation results—highlighting widespread concern among developers, companies, and policy observers over unclear definitions and vague prohibitions in the AI Act. While industry voices dominated the feedback, everyday users—those most affected—were largely absent. This imbalance should be taken into account when interpreting the data.
Key demands include sharper definitions of what counts as “AI,” “autonomy,” and “adaptiveness,” and more precise guidance on prohibited practices like manipulation, emotion recognition, and social scoring. Without actionable examples, the current framework risks legal uncertainty. For SMEs, concerns over compliance burdens remain acute. The message is clear: guidance must come fast—or implementation deadlines will arrive before clarity does.
#EUAIAct#AIRegulation#AIEthics#ArtificialIntelligence#TechPolicy
📖Governing AI Agents: Legal and Ethical Challenges
AI is evolving from generative models to autonomous agents that can act with minimal human intervention. These agents can browse the internet, complete tasks, and function as virtual assistants or even coworkers. While the potential is enormous, so are the risks—ranging from accountability gaps to opaque decision-making.
Noam Kolt’s "Governing AI Agents" explores how agency law and economic theory can help address these challenges. Traditional tools like incentive structures and monitoring may be ineffective for AI agents operating at speed and scale. The paper argues for new legal and technical infrastructure to ensure transparency, accountability, and control in AI agent governance. A must-read for those shaping the future of AI regulation.
#AI#AIRegulation#AIAgents#TechPolicy#EthicalAI