摘要: 旋转矩阵是计算机图形学里面的基础内容。之前我还写过一篇计算机图形学基础知识的总结 操作的步骤可以分为两部,一是沿正对角线对称,二是沿水平对称轴对称原图: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ==》第一步之后:1 5 9 13 2 6... 阅读全文
posted @ 2015-07-31 17:47 Fridge 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 原问题在这里 Write a method to decide if two strings are anagrams or not.同位词(anagrams)是指两个单词的字符相同,但是字符的位置不同。算法一 算法思想:将两个单词的词汇进行排序,然后再进行比较。本质上就是让各个字... 阅读全文
posted @ 2015-07-31 15:57 Fridge 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two addi... 阅读全文
posted @ 2015-07-31 01:30 Fridge 阅读(6056) 评论(0) 推荐(0) 编辑