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
  • ← Previous
  • 1
  • 2
  • …
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • …
  • 20
  • 21
  • Next →