ACPCDUMATH
Math problems
Combinations - LeetCode
Combinations - LeetCode
Can you solve this real interview question? Combinations - Given two integers n and k, return all possible combinations of k numbers chosen from the range [1, n]. You may return the answer in any order. Example 1: Input: n = 4, k = 2 Output: [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]] Explanation: There are 4 choose 2 = 6 total combinations. Note that combinations are unordered, i.e., [1,2] and [2,1] are considered to be the same combination. Example 2: Input: n = 1, k = 1 Output: [[1]] Explanation: There is 1 choose 1 = 1 total combination. Constraints: * 1 <= n <= 20 * 1 <= k <= n
Convert a Number to Hexadecimal - LeetCode
Convert a Number to Hexadecimal - LeetCode
Can you solve this real interview question? Convert a Number to Hexadecimal - Given a 32-bit integer num, return a string representing its hexadecimal representation. For negative integers, two’s complement [https://en.wikipedia.org/wiki/Two%27s_complement] method is used. All the letters in the answer string should be lowercase characters, and there should not be any leading zeros in the answer except for the zero itself. Note: You are not allowed to use any built-in library method to directly solve this problem. Example 1: Input: num = 26 Output: "1a" Example 2: Input: num = -1 Output: "ffffffff" Constraints: * -231 <= num <= 231 - 1
Transpose Matrix - LeetCode
Transpose Matrix - LeetCode
Set Matrix Zeroes - LeetCode
Set Matrix Zeroes - LeetCode
01 Matrix - LeetCode
01 Matrix - LeetCode
01 Matrix - LeetCode
More from Linktree
Products
Link in bio + tools
Manage your social media
Grow and engage your audience
Monetize your following
Measure your success
Templates
Marketplace
Learn
Resources
How to use Linktree
Pricing
Link in bio + tools
Link in bio
Customize your Linktree
Link shortener
Create trackable, shareable short links
QR code generator
Turn links into scannable QR codes
Canva Background Editor
Import your custom designs from Canva into your profile
Linktree for every social platform
Grow and engage your audience everywhere
Instagram
TikTok
LinkedIn
X
Manage your social media
Schedule and auto-post
Hands-free, hassle-free social media planning
Instagram auto reply
Automated replies and DMs triggered by comments
AI content & caption generator
Instant AI-powered post ideas and captions
Hashtag generator
Trending hashtag suggestions for better reach
Social integration for every social platform
Plan, auto post, and share across all platforms
Instagram
TikTok
Facebook
Pinterest
LinkedIn
Threads
Youtube
Grow and engage your audience
Collect leads with contact forms
Turn visitors into subscribers
Manage and activate your audience
Organize, tag, and track contacts
Send contacts to email tools
Sync with Mailchimp, Klaviyo, Kit & more
Monetize your following
Earn with a Linktree Shop
Sell products and earn commission
Sell an online course
Create and sell your expertise easily
Host digital products
Sell digital products and build your email list
Earn by hosting sponsored links
Share brand offers and earn for every sign-up or sale
Get rewarded for growing your Linktree
Earn points, level up and unlock cash bonuses
Booked and paid, easily
Offer sessions and earn from your expertise
Measure your success
Social + link analytics
Track clicks, engagement and audience insights
Resources
Read our blog
All the latest tips, tricks and growth strategies
Success Stories
Real people, real results on Linktree
How to use Linktree
Linktree Help Centre
Get answers, guides and support