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
#coding-exercise
Follow to get notified about new posts with this tag
Get #coding-exercise by email
Follow
justyy
programming
8y
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
8y
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
8y
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
8y
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:
jongolson
The Kingdom
6d
Promoted
Renew Your Mind [Podcast]
I'm going to link to the podcast where I got the idea for this short talk.... => Heritage & Hope Podcast It's absolutely fantastic stuff and whether or not you agree with the science behind it all,
justyy
programming
8y
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
8y
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
8y
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
8y
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
rayhanhiveman
Indiaunited
1d
Published via Ecency
Promoted
The Truth Behind Wealth and Character
Does money change people or does it only unveil the person that they really are? There are so many cases in my life as a man of more than 50 years that can illustrate my point. I have seen people get poor,
justyy
programming
8y
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
8y
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
8y
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
8y
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
ryanaa
Foodies Bee Hive
2d
Promoted
Chiken noodles in the late afternoon at a cozy café.
in the afternoon when our stomachs felt hungry and we chose Enjoying chiken noodles which I think are quite delicious and the place is also very safe and comfortable to be Mie ayam is a noodle dish topped
justyy
programming
8y
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.