Cracking Code
文章平均质量分 50
ActiveCoder
An active programmer
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CRCK 1.6 (Easy can be extened to Hard)
Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in palace? (This problem is in Easy Level) Ex原创 2016-03-29 01:30:14 · 370 阅读 · 0 评论 -
CRCK array 1.5 (easy)
Write a method to replace all spaces in a string with ‘%20’. // there are actually no tricks in this problem.// the API can be a vector, however, the idea is the same.string repaceSpaces(string input原创 2016-03-27 01:20:47 · 239 阅读 · 0 评论 -
CRCK array 1.4
Write a method to decide if two strings are anagrams or not. There are two ways to solve this problem. // use the sort algorithm in C++.// Time complexity (nLgn), space o(1);bool isAnagrams(string a原创 2016-03-27 00:55:16 · 226 阅读 · 0 评论 -
CRCK, array 1.2
Write code to reverse a C-Style String. (C-String means that “abcd” is represented as five characters, including the null character.) // This question is for C/C++ programmer.// #include if programm原创 2016-03-27 00:41:35 · 277 阅读 · 0 评论 -
CRCK: Array 1.1 (easy)
Cracking the Code interview 1.1: Implement an algorithm to determine if a string has all unique characters and what if you can't use additional data structures. (easy level) // First with extra dat原创 2016-03-27 00:03:33 · 305 阅读 · 0 评论 -
CRCK array 1.8
Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one call to isSubstring原创 2016-03-27 06:07:52 · 248 阅读 · 0 评论 -
max submatrix which has all borders the same color.
/* Imagine you have a square matrix, where each cell is filled with either black or white. Design an algorithm to find the maximum subsquare such that all four borders are filled with black pixe转载 2016-06-06 08:29:42 · 253 阅读 · 0 评论
分享