ALGODAILY
  • All Courses
  • Premium 50% Off
  • Testimonials
  • Company
    Learn About Us Sample Newsletter AlgoDaily Blog Youtube Channel Contact Us Privacy Policy Terms and Conditions
  • Login
  • Sign Up
  • Resources
    AlgoDaily Video Library Company Interview Reports All Interview Challenges Tech Interview Flash Cards Generate a Custom Course AlgoDaily Book: Core Essentials Latest Additions

Community

Start a Thread
Filters
All Threads
Answered
Unanswered

By Category
All
Career
Challenges
Feedback
General

Split Set To Equal Subsets - Javascript Question

Challenges • Last reply from Anonymous at April 10, 2020 at 12:00AM UTC

"Both subsets sum to 19 and are equal." - sure this should be 21? Link to problem: Split Set To Equal Subsets .

1 post

Sorted Two Sum - Javascript Question

Challenges • Last reply from Anonymous at April 10, 2020 at 12:00AM UTC

Could this also be implemented as a binary search in O) time? Link to problem: Sorted Two Sum .

1 post

Treats Distribution - Javascript Question

Challenges • Last reply from Anonymous at April 9, 2020 at 12:00AM UTC

Why do we need to sort the array? Just keep adding the values into a set and then take the min of the size of the set and n /2 . Should be O time complexity - no? Link to problem: Treats Distribution .

1 post

Least Missing Positive Number - Javascript Question

Challenges • Last reply from Anonymous at April 9, 2020 at 12:00AM UTC

So, what happens when the array contains a value greater than the length of the array? It would be useful if the problem statement actually specified that. Similarly, that there could be many missing positive integers, or only one. Link to problem...

1 post

Lonely Number - Python Question

Challenges • Last reply from Anonymous at April 9, 2020 at 12:00AM UTC

Stritcly speaking ins't the hasmap solution also O space complexity? The unique values in the array are the numbers base 10 so there are only max 10 entries in the map. Space complexity of O is the same as O as it doesn't vary with the length of t...

1 post

Majority Element - Python Question

Challenges • Last reply from Anonymous at April 9, 2020 at 12:00AM UTC

Is it not possible to create a O solution? By creating a hashmap where the keys are the digits and the values are the number of times that the digits appear, and then looking for the hashmap value that is greater than n / 2? By using a sort you a...

1 post

Is An Anagram - Python Question

Challenges • Last reply from Anonymous at April 9, 2020 at 12:00AM UTC

is_anagram should return False - Mistake? Should return True Link to problem: Is An Anagram .

3 posts

How Out Of Order (Main Thread)

Challenges • Last reply from Ashish Bhattarai at March 28, 2020 at 12:00AM UTC

This is the main discussion thread generated for How Out Of Order .

5 posts

Swap Every Two Nodes In A Linked List (Main Thread)

Challenges • Last reply from Ashish Bhattarai at March 28, 2020 at 12:00AM UTC

This is the main discussion thread generated for Swap Every Two Nodes In A Linked List .

4 posts

Validate Palindrome

Challenges • Last reply from Anonymous at February 14, 2020 at 12:00AM UTC

I think for the solution you provided, we must account for the case of the character or letter as well as the whitespaces.

So here's my solution:

```js /* jshint esversion: 6 */ function isPalindrome { if ) { // return false; ...

6 posts

How Out Of Order - Python Question

Challenges • Last reply from Jake from AlgoDaily at February 2, 2020 at 12:00AM UTC

The following errors come up when I try to run the code takes exactly 1 argument ',)) takes exactly 1 argument ',)) ) Link to problem: How Out Of Order .

2 posts

How To Use Algodaily And Get The Most Out Of It (Main Thread)

General • Last reply from Anonymous at January 30, 2020 at 12:00AM UTC

This is the main discussion thread generated for How To Use Algodaily And Get The Most Out Of It .

2 posts

Validate Symbols - Python Question

Challenges • Last reply from Jake from AlgoDaily at January 29, 2020 at 12:00AM UTC

There is a syntax error in the testing code. assert validate_symbols = True is not valid since we need to do comparison with == instead of assignment as we are doing here. In addition, the third point in the list of test cases should be validat...

2 posts

Max Per Level (Main Thread)

Challenges • Last reply from Jake from AlgoDaily at January 1, 2020 at 12:00AM UTC

This is the main discussion thread generated for Max Per Level .

8 posts

Merge Intervals - Python Question

Challenges • Last reply from Jake from AlgoDaily at December 25, 2019 at 12:00AM UTC

Some test cases are using mergeIntervals function name instead of merge_intervals as shown in the stub Link to problem: Merge Intervals .

2 posts

Traverse In A Zig Zag - Python Question

Challenges • Last reply from Jake from AlgoDaily at December 23, 2019 at 12:00AM UTC

The two examples present in the question contradict each other. For the first tree, 1 / \ 2 3 / \ 4 5 The traversal presented is is left to right on second level and right to left on third level, giving us [[1], [2, 3], [5...

2 posts

Split Set To Equal Subsets - Python Question

Challenges • Last reply from Devesh Kumar Singh at December 23, 2019 at 12:00AM UTC

There is a syntax error in one of the test cases assert has_equal_subsets == False an opening [ is missing in the above statement Link to problem: Split Set To Equal Subsets .

1 post

How Many Strongly Connected (Main Thread)

Challenges • Last reply from Anonymous at December 18, 2019 at 12:00AM UTC

This is the main discussion thread generated for How Many Strongly Connected .

2 posts

Find The Intersection Of Two Linked Lists (Main Thread)

Challenges • Last reply from Jake from AlgoDaily at November 30, 2019 at 12:00AM UTC

This is the main discussion thread generated for Find The Intersection Of Two Linked Lists .

3 posts

Max Of Min Pairs (Main Thread)

Challenges • Last reply from Jake from AlgoDaily at November 28, 2019 at 12:00AM UTC

This is the main discussion thread generated for Max Of Min Pairs .

9 posts

Next Larger In A Circular Array (Main Thread)

Challenges • Last reply from Anonymous at November 12, 2019 at 12:00AM UTC

This is the main discussion thread generated for Next Larger In A Circular Array .

2 posts

Targets And Vicinities - Python Question

Challenges • Last reply from Jake from AlgoDaily at November 12, 2019 at 12:00AM UTC

Why getTV should return '0T1V'? 3 exists in 130, so V + 1 and 0 also exists in 130, so V += 1 total: V=2, T=0 Link to problem: Targets And Vicinities .

2 posts

Convert Number To Words (Main Thread)

Challenges • Last reply from Anonymous at October 31, 2019 at 12:00AM UTC

This is the main discussion thread generated for Convert Number To Words .

2 posts

Sum Digits Until One - Python Question

Challenges • Last reply from Alexander Volinski at October 11, 2019 at 12:00AM UTC

Guys, test don`t work for this problem: ) ) ) Link to problem: Sum Digits Until One .

1 post

Lowest Common Ancestor (Main Thread)

Challenges • Last reply from Anonymous at October 2, 2019 at 12:00AM UTC

This is the main discussion thread generated for Lowest Common Ancestor .

2 posts

Subsets Summing Zero (Main Thread)

Challenges • Last reply from Thomas Hansen at September 12, 2019 at 12:00AM UTC

This is the main discussion thread generated for Subsets Summing Zero .

2 posts

Reverse Only Alphabetical - Python Question

Challenges • Last reply from triangles at September 7, 2019 at 12:00AM UTC

Strings have the .isalpha method, so you don't need to check them against a regular expression. Link to problem: Reverse Only Alphabetical .

1 post

Is An Anagram - Javascript Question

Challenges • Last reply from Anonymous at August 27, 2019 at 12:00AM UTC

The test cases here don't try sending strings of different length or strings with repeating characters. Link to problem: Is An Anagram .

1 post

Understanding The Cap Theorem (Main Thread)

General • Last reply from Anonymous at August 16, 2019 at 12:00AM UTC

This is the main discussion thread generated for Understanding The Cap Theorem .

2 posts

I M Making Algodaily Free (Main Thread)

General • Last reply from radj at August 6, 2019 at 12:00AM UTC

This is the main discussion thread generated for I M Making Algodaily Free .

2 posts
  • ← Previous
  • 1
  • 2
  • …
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • …
  • 20
  • 21
  • Next →