Amazon ML Summer School 2023 | Applied Scientist | Developer Devendra | Previous Questions Leetcode

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024

Комментарии • 15

  • @MeenakshiMarree
    @MeenakshiMarree 4 месяца назад +2

    Sir ,Can you do vedios on remaining questions asked in prev year?

  • @SritamNanda-x5h
    @SritamNanda-x5h 3 месяца назад

    your approach fails for testcase "SHEHAP" according to ur explanation it's coming "EAHHSP"....
    edit: i even test the code now, it gives wrong output.

  • @nagareddy5555
    @nagareddy5555 Год назад

    bro is there any chance of selection if we are able to solve only 7/10 testcases

  • @monojtewari2071
    @monojtewari2071 4 месяца назад

    Stack can be used here

  • @atharvapatil4058
    @atharvapatil4058 4 месяца назад

    Can you please solve the remaining programming questions as well?

  • @mayalurianusha385
    @mayalurianusha385 Год назад +1

    Sir, I think this simple code will pass all the test cases
    s=input()
    sorted_string = ''.join(sorted(s))
    print(sorted_string)
    Let me know if it fails any test case! Can we write this in the test?

    • @DeveloperDevendra
      @DeveloperDevendra  Год назад

      Please check the question once only after doing move1 and move2 we can attach

    • @mayalurianusha385
      @mayalurianusha385 Год назад

      @@DeveloperDevendra However, the result will be same!

    • @mayalurianusha385
      @mayalurianusha385 Год назад

      In a recent test which I gave, I was asked 5 coding questions similar to this! All the 5 should be completed within 30 minutes! In that case, my solution can be written to save time to attempt other questions! Otherwise, we can't attempt 5 questions!

    • @nitianslife8967
      @nitianslife8967 4 месяца назад

      check for case s="bdda" , your code will fail as correct output is "addb"

    • @priyanshu4004
      @priyanshu4004 4 месяца назад

      @@nitianslife8967 output will be "badd"

  • @SaiKumar-tc4xt
    @SaiKumar-tc4xt Год назад

    Bro mi personal contact evvara