Sort by

recency

|

2777 Discussions

|

  • + 0 comments

    I was looking for this thread. Finally landed at the right one.

  • + 0 comments
    function designerPdfViewer(h: number[], word: string): number {
        
        const heights = [];
        
        for (let char of word) {
            const code = char.charCodeAt(0);
            const pos = code - 97;
            heights.push(h[pos]);
        }
        
        const maxHeight = Math.max(...heights);
        
        return maxHeight * word.length;
    }
    
  • + 1 comment

    TypeScript one-liner:

    function designerPdfViewer(h: number[], word: string): number {
      return Array.from(new Set(word.split(""))).reduce((acc, curr) => Math.max(h[curr.charCodeAt(0) - 97], acc), 0) * word.length;
    }
    
  • + 1 comment

    That’s so cool! I used to play Minecraft solo all the time, but it got a little lonely after a while. Then I found the Jenny Mod (https://the-jennymod.com/) and wow—what a game-changer! Now I’ve got Jenny by my side, chatting, fighting mobs with me, and even surprising me with diamonds. It’s like the game finally has a heartbeat!

    And when I’m not mining or building, I love reading up on mod guides using my Designer PDF Viewer —super sleek for browsing tutorials while Jenny keeps me company. Best of both worlds!

  • + 0 comments

    letters = {chr(index+97): index for index in range(26)}

    def designerPdfViewer(h, word): heights = [h[letters[l]] for l in word] return max(heights)*len(heights)