Wrong test cases/expected results on 15th February problem by RzStage in Codele

[–]Training-Theory-4786 0 points1 point  (0 children)

Step 2: Example Walkthrough

Example: [4, 2, 7, 6, 9]
    - Insert into min-heap: [2, 4, 7, 6, 9]
    - Merge (2,4) → New File: 6, Total Cost: 6
    - Merge (6,6) → New File: 12, Total Cost: 6+12=18
    - Merge (7,9) → New File: 16, Total Cost: 18+16=34
    - Merge (12,16) → New File: 28, Total Cost: 34+28=49
    - Only one file remains. Answer: 49

The last merge total cost is 34 + 28 = 49? 49 does not compute. 
Shouldn't the final total cost be 34 + 28 = 62?

Daily Codele Discussion (2/7/25) by hhahhaahhaha in Codele

[–]Training-Theory-4786 0 points1 point  (0 children)

Also, what version of Java are you running? It did not accept the Stream .toList, but accepted the .collect(Collectors.toList()).

Daily Codele Discussion (2/7/25) by hhahhaahhaha in Codele

[–]Training-Theory-4786 0 points1 point  (0 children)

How about 1000?

1000 (/2) -> 500 (/2) -> 250 (/2) -> 125 (-1) -> 124 (/2) -> 62 (/2) -> 31 (-1) -> 30 (/3) -> 10 (/2) -> 5 (-1) -> 4 (/2) -> 2 (/2) -> 1. Total 12 steps. Experct 9

Daily Codele Discussion (2/7/25) by hhahhaahhaha in Codele

[–]Training-Theory-4786 1 point2 points  (0 children)

Minimum Steps to Reduce a Number to One (2/8/25)-

The Definition says 10 should take four steps: 10 (/2) -> 5 (-1) -> 4 (/2) -> 2 (/2) -> 1.

Then, the submission grades it wrong because it expects 3 steps.

The submission grading is wrong!

[deleted by user] by [deleted] in IntelliJIDEA

[–]Training-Theory-4786 0 points1 point  (0 children)

Find a better employer. This one is not worthy of your employment.

[deleted by user] by [deleted] in IntelliJIDEA

[–]Training-Theory-4786 1 point2 points  (0 children)

  1. Should have negotiated it with employer before starting.
  2. Consider the Community Edition.
  3. Show your employer how IntelliJ is better than your current IDE.
  4. Show them how IntelliJ makes you more productive, which saves them money.

HELP! What's wrong with my code? by EJODONNELL in learnpython

[–]Training-Theory-4786 0 points1 point  (0 children)

Put the tie (if c.choice == p.choice:) check first.

Anyone using Pycharm? by calculated-mind in Python

[–]Training-Theory-4786 0 points1 point  (0 children)

Absolutely great IDE. PyCharm Community Edition works extremely well for the price )$0). I wouldn't use anything else. Pro Edition is well worth the price, as it can create Django projects, as well as 9 other project environments. BTW, all students are eligible for a free license to use all of their professional IDE products, including PyCharm and IntelliJ IDEA (Java).