Login
Discover
Waves
Communities
Login
Signup
Topics
#coding-exercise
Global
Trending
Hot
New
Top
#coding-exercise
New
Top communities
Create your community
latest #coding-exercise created topics | Ecency
justyy
programming
2018-08-08 22:43
C++ Coding Exercise - Find All Duplicates in an Array - 编程练习题:找出数组中所有重复的元素
XXX: // Reposted to my blog for better indexing: Support me and my work as a witness - witness thread by voting me here, or voting me as a proxy. Thank you! Some of My Contributions: SteemIt Tutorials,
$ 4.304
109
2
1
justyy
programming
2018-08-06 20:00
Coding Exercise - Find Letter Case Permutation with DFS 编程练习题:找出字符串的所有大小小组合
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible strings we could create. Examples: Input: S = "a1b2"
$ 10.492
106
2
justyy
programming
2018-08-05 11:09
C++ Coding Exercise - Find Maximum Depth of N-ary Tree - 编程练习题:找出N叉树的深度
Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. For example, given a 3-ary tree: We should
justyy
programming
2018-08-01 15:41
Coding Exercise - Find Third Maximum 编程练习题 - 找出第三大的数
Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n). Example 1: Input: [3, 2, 1] Output:
travelwritemoney
LeoFinance
2026-08-13 20:04
Published via Ecency
Promoted
Ether.fi Summer Launches: Stocks, Precious Metals & On-Chain Loans Now Available
This morning, Ether.fi Summer kicked off. The company held a video conference announcing their latest updates to the platform, which include the purchase of sto
justyy
programming
2018-07-28 23:18
Coding Exercise - Find Max Consecutive Ones 编程练习题 - 最多连续的 1
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two digits or the last three digits are consecutive 1s. The
justyy
programming
2018-07-27 07:28
Coding Exercise - Sum of Left Leaves (BFS + DFS + Recursion) - 编程练习题 - 左子树叶节点之和 (深度优先+广度优先+递归)
XXXX Reposted to my blog for better indexing. Support me and my work as a witness - witness thread by voting me here, or voting me as a proxy. Thank you! Some of My Contributions: SteemIt Tutorials, Robots,
justyy
programming
2018-07-25 18:57
Coding Exercise - Container With Most Water (Recursion) 编程练习题 - 最多水容器 (递归)
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two
justyy
programming
2018-07-23 23:17
Coding Exercise - Flip the Integers (Bit Manipulation) - 编程练习题:翻转整数位
Question: Write a function to compute the number of bits required to convert a integer to another. For example, Input 29 (or 11101), 15 (or 01111) the output is 2. It may seem complex but it is actually
wiseagent
Scrobble.life
2026-08-11 01:05
Promoted
MOVIE REVIEW: “Sneekweek | Scream Week” (2016)
This publication was also writen in SPANISH and PORTUGUESE. IMDb Synopsis: A group of friends (recently graduated from university) decide to travel to the beach to celebrate a new phase in their lives.
justyy
programming
2018-07-21 19:18
Coding Exercise - Add Two Numbers on Singly-Linked List 编程练习题: 对两单向链表求和
Question: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and
justyy
programming
2018-07-20 19:36
Coding Exercise - Inspect Two Consecutive Bits - 编程练习题 :判断是否有连续两个1
Question: Implement the inspect_bits function to check if any given 32-bit integer contains 2 or more consecutive ones in its binary representation. If it does, the function should return 1 otherwise it
justyy
programming
2018-07-18 22:07
Coding Exercise - How to Merge Two Sorted Array? 编程练习题 - 如何合并两个有序的数组?
Task: Merge two given sorted integer array A and B into a new sorted integer array. Example A=[1,2,3,4], B=[2,4,5,6], return [1,2,2,3,4,4,5,6] XXX: Support me and my work as a witness - witness thread
justyy
programming
2018-07-10 12:54
Coding Exercise - Search Insert Position 编程练习题 - 寻找插入位置
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array. Example
senses18
StemSocial
2026-08-11 10:12
Published via Ecency
Promoted
WHY MANY SOLAR INSTALLATIONS FAIL AFTER ONE YEAR — AND HOW TO PREVENT IT
Expensive generator fuel has pushed lots of Nigerians to install solar, but it has become a nightmare for several homes !! AI: Complete solar power system Solar power has become one of the most attractive
justyy
programming
2018-07-10 00:27
Coding Exercise - Sort Letters by Case | 编程练习题 - 排序字母
Given a string which contains only letters. Sort it by lower case first and upper case second. Example For "abAcD", a reasonable answer is "acbAD" Challenge Do it in one-pass and in-place.