Login
Discover
Waves
Communities
Write
Login
Signup
Topics
#
leetcode
Explore topics
#leetcode
Global
Trending
Hot
New
Payout
Muted
Promoted
#leetcode
New
#leetcode
Follow to get notified about new posts with this tag
Get #leetcode by email
Follow
simplestack
leetcode
1y
!
Low reputation account with an unverified outbound link, Reveal content
F*ck Leetcode! Why Roy’s Story Matters
A 21 year old exposing how broken the hiring system is, at least for the Big Boys
$ 0.000
6
lochard
coding
3y
Published via Ecency
Leetcode - 139. Word Break
Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or more dictionary words. Note that the same word in the dictionary may be
$ 0.000
0
lochard
programming
3y
Published via Ecency
Leetcode - 1089. Duplicate Zeros
Given a fixed-length integer array arr, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elements beyond the length of the original array are not written. Do the
lilacse
Programming & Dev
4y
Published via Ecency
Little Leetcode Adventures 3: Pow(x, n)
What do you do when the power is over 9000?
nabbas0786
Suseona Pulse
1d
Promoted
How to Beat Extreme Sleep Debt: [7 Days] to Reset Clock?
Sleep issues? 7-day roadmap for better deep sleep. Homeopathic doctor's personal journey to fix broken biological clock & gain peace.
life-hacker
Programming & Dev
4y
Published via Ecency
LeetCode Challenge (Python3). Problem#3
Source Introduction of this challenge: I recently decided to improve my programming skills, so I started using LeetCode to achieve this goal. However, since I don't have much programming experience and
life-hacker
Programming & Dev
4y
Published via Ecency
LeetCode Challenge (Python3). Problem 2
Source Introduction of this challenge: I recently decided to improve my programming skills, so I started using LeetCode to achieve this goal. However, since I don't have much programming experience and
life-hacker
Programming & Dev
4y
Published via Ecency
LeetCode Challenge (Python3). Problem#1
Source I recently decided to improve my programming skills, so I decided to use LeetCode to achieve this goal. However, since I don't have much programming experience and this is my first time using LeetCode,
shiziwen
python
6y
!
Low reputation account with an unverified outbound link, Reveal content
one simple implementation of trie in python3
This is the implementation of trie in python3, you can get the question from implement-trie-prefix-tree. class Trie: def __init__(self): """ Initialize your data structure here.
jenifers
Bangla Hive
1d
Published via Ecency
Promoted
My Six C's for Alphabet Hunt - Bangla Hive #3 (Bn-Eng)
Hello friends how are you all I am also doing well. So today I am going to participate in a contest which is Alphabet Hunt so here what we have to do is that we have to find words that start with the letter
gaottantacinque
coding
7y
JavaScript interview questions [with solutions]
I have been a software engineer for almost 5 years now but (for one reason or another) only today for the first time I interviewed another developer for a position in my company. Here is the simple exercise
blackanger
rust
8y
【Rust每日新闻】 2018-12-20
Rust Quiz 解读: Quiz 20 #quiz Read More LeetCode already supports Rust @rustlang @LeetCode #leetcode 中国版和美国版都支持了,另外了解到的消息是,目前是基于Rust stable 1.31版,而且还会持续跟进Rust Stable版本。在未来会逐渐加入常用的crate,这个看使用者反馈来持续改进。 刷Leetcode
jacobyu
kr-dev
8y
[Coding study (leetcode)] Tree problems. 105, 106
이야기 Leetcode에서 트리관련 문제를 이어서 풀고 있습니다. Leetcode와 유사한 서비스로 Hackerank도 있는데요. Hackerank도 잘 되어있어 둘다 활용하여 코딩테스트 공부를 하고있습니다. 문제 Given inorder and postorder traversal of a tree, construct the binary tree. Given
jacobyu
kr-dev
8y
[Leetcode] 94, 144, 145. binary tree traversal
서론 Leetcode를 아시나요? Leetcode는 여러 프로그래밍 언어로 자료구조를 공부할 수 있고, 코딩문제들을 풀어볼 수 있습니다. Leetcode에서는 easy, medium, hard로 분류되는 총 804개의 코딩 문제가 있습니다. 804개에서 자신이 원하는 키워드를 검색해서 풀 수도 있으며, 자료구조에 대해 공부하고, 문제를 풀 수 있게도 해줍니다.
zainalbakri
INDONESIAN HIVE
3d
Promoted
KIP Lhokseumawe Equips Students to Become Smart Voters
The Independent Election Commission (KIP) of Lhokseumawe City continues to strengthen voter education for the younger generation by conducting electoral outreach for first-time voters at several schools.
jacobyu
jjangjjangman
8y
[Leetcode] 100.same-tree
문제 [100] Same Tree Easy (47.95%) Total Accepted: 270.6K Total Submissions: 564.2K 두 개의 트리가 있을 때, 같은 트리인지 확인하라. 풀이 과정 같은 트리인지 어떻게 확인하지? 트리 구조가 같은지 체크한다. 두 개의 트리에서 특정 노드의 value가 같은지 체크한다. 탐색 순서는? preorder로
juneepa
kr
9y
!
Low reputation account with an unverified outbound link, Reveal content
[LeetCode] 677. Map Sum Pairs (Python3)
Implement a MapSum class with insert, and sum methods. Check the website above for more details Medium, 44ms, 100% class MapSum: ## Initialize the dictionary def __init__(self): self.wdict = {} ## Insert
elsyr
leetcode
9y
!
Low reputation account with an unverified outbound link, Reveal content
LeetCode 1. Two Sum: CPP Solution
Problem Statement Given an integer array of size N, return indices of the two numbers such that they add up to a specific target. Function Signature: C++ vector<int> twoSum(vector<int> input,
nbfuhao
programming
10y
[LeetCode] Objective C — Reverse a NSString
[LeetCode: reverse a string] ( NSString* reverseString(NSString *originalString) { // use a new string to append the chars from the old one NSString *newString = @""; for (int i =
ini-odu
Ladies of Hive
2d
Published via Ecency
Promoted
FUNMILAYO RANSOM-KUTI: THE WOMAN WHO DARED TO SPEAK.
I sketched Funmilayo Ransom Kuti, a courageous fearless Nigerian woman who stood for education, and freedom. Her story reminds us that one voice can inspire thousands to stand for what is right. Dibujé
nbfuhao
programming
10y
[LeetCode] Objective C — Check If a String Has Duplicate Characters
BOOL checkDuplicates(NSString *str) { NSMutableArray *storageArray = [NSMutableArray array]; for (int i = 0; i < str.length; i++) { NSString *charStr = [str substringWithRange:NSMakeRange(i,1)]; if
nbfuhao
programming
10y
[LeetCode] Convert Sorted Array to Binary Search Tree in Objective C
LeetCode Convert Sorted Array to Binary Search Tree in Objective C typedef struct { int value; struct TreeNode *left; struct TreeNode *right; } TreeNode; -(TreeNode *)sortedArrayToBST:(NSArray *array)
nbfuhao
programming
10y
[LeetCode] Validate Binary Search Tree in Objective C
LeetCode: Validate Binary Search Tree in Objective C typedef struct { int value; struct TreeNode *left; struct TreeNode *right; } TreeNode; -(BOOL)isValidBST:(TreeNode *)node { return (valid:node
nbfuhao
programming
10y
[LeetCode] Balanced Binary Tree in Objective C
LeetCode: Balanced Binary Tree in Objective C typedef struct { int value; struct TreeNode *left; struct TreeNode *right; } TreeNode; - (BOOL)isBalanced:(TreeNode *)node { if (!node) return true; return
Older →
Discover communities
Explore communities
Create your community