Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions number-of-1-bits/RiaOh.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* @param {number} n
* @return {number}
*/

// week3 다시 올림
var hammingWeight = function (n) {
const binary = n.toString(2);
const arr = [...binary];
Expand Down
1 change: 1 addition & 0 deletions valid-palindrome/RiaOh.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @param {string} s
* @return {boolean}
*/
// Week 3에 다시 올림
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오오 Palindrome의 특성을 이용해서 반복문을 구성한게 인상적이네요! 👏👏

var isPalindrome = function (s) {
const arr = [...s];
let text = "";
Expand Down