大貓的第一個家

歡迎來到我的部落格,這裡有我分享的技術筆記、生活點滴和旅遊見聞。

第 4 頁,共 17 頁

  • [Algorithms] Reverse Words in a Sentence

    約 1 分鐘

    Today, we’re tackling the Reverse Words algorithm! This is a fun little challenge where we take a sentence, flip each word individually, and put the sentence back together—no messing with the word order, just reversing each word. Let’s dive in!

  • [Algorithms] Caesar Cipher

    約 1 分鐘

    The algorithm we'll explore in this post is the Caesar Cipher. This classic encryption technique shifts each letter in a string by a specified number of places in the alphabet.

  • [Algorithms] Is Palindrome

    約 1 分鐘

    The 'Is Palindrome' algorithm checks whether a string reads the same forward and backward, ignoring spaces and punctuation. It's a simple yet classic algorithm that can be easily implemented with JavaScript string and array manipulation.

  • 夏季關西八天自由行

    約 7 分鐘

    這是我在部落格寫的第一篇日本關西旅遊紀錄。這次的關西八天自由行,對我來說意義非凡,雖然這是我第四次來日本,更是第三次踏上關西地區,但因為疫情的關係,睽違了好幾年才再度來到這片熟悉又充滿回憶的土地。這次行程規劃得相當充實,除了經典景點外,還安排了一些過去沒去過的新地方,當然,環球影城(USJ)依然是必訪之地,尤其是全新的任天堂園區,對我這種長年遊戲玩家來說,怎麼可能錯過!

  • [Algorithms] Harmless Ransom Note

    約 1 分鐘

    In this post, we'll break down a common algorithm question you might see in coding interviews: the Harmless Ransom Note. It’s a great example to understand how to manipulate strings and use objects as hash tables for performance improvements. Plus, it’s relatively straightforward but offers a solid practice in understanding time complexity.

  • [Algorithms] Time Complexity & Big O Notation

    約 2 分鐘

    Hey there, fellow coders! Today, we're diving into a concept that's super important for anyone who writes algorithms: Big O notation. It helps us understand how an algorithm performs as the size of its input grows. Think of it as a way to measure the efficiency of our code. Let’s break it down into bite-sized pieces, along with some relatable examples.

  • [Algorithms] Fizz Buzz

    約 1 分鐘

    Fizz Buzz is often the very first algorithm people learn. It's a classic and fundamental concept, serving as an entry point into algorithm learning — simple yet fun!

  • 使用 TanStack Query 輕鬆處理 HTTP Requests

    約 4 分鐘

    TanStack Query 可以幫助我們發送 HTTP Request 也就是串接 API,讓前端畫面與後端資料能夠溝通與同步。沒錯!這些事情透過 useEffect 以及 Fetch 或 Axios 就能做到了,只是 TanStack Query 大幅地簡化了這方面的 Code,一起來看看 TanStack Query 如何提升開發者體驗吧。

  • 為你的 React Apps 加上動畫效果

    約 2 分鐘

    沒有動畫效果的 Web Apps 不是說不好,但就是在完整度上少了一點什麼。如果可以適當添加一些動畫效果,除了可以讓網站看起來更加用心,也可以吸引使用者持續瀏覽。本文會介紹前端加入動畫效果的幾種方式,包含 CSS Transitions、CSS Animations,以及 Framer Motion 這套動畫效果 Library。